6ff91cb8850657b95441e7ed3ccdac09f69b57a6
[gnulib.git] / ChangeLog
1 2010-04-07  Karl Berry  <karl@gnu.org>
2
3         * config/srclist.txt,
4         * config/srclistvars.sh,
5         * config/srclist-update: doc fixes.
6
7 2010-04-07  Jim Meyering  <meyering@redhat.com>
8
9         maint.mk: add a PATH crosschecking syntax-check rule
10         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
11         Useful if you use a test like the one in help-version (coreutils,
12         diffutils, grep, gzip) that ensures $(VERSION) matches what is
13         printed by prog --version.
14
15 2010-04-06  Bruno Haible  <bruno@clisp.org>
16
17         Fix link error on mingw.
18         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
19         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
20
21 2010-04-06  Bruno Haible  <bruno@clisp.org>
22
23         Assume rmdir exists.
24         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
25
26 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
27
28         doc: update users.txt
29         * users.txt: Add gcal.
30
31 2010-04-06  Jim Meyering  <meyering@redhat.com>
32
33         init.sh: simply unset TMPDIR rather than risking env -i
34         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
35         although it probably works fine on all Unix-based systems, some
36         systems (Cygwin?) cannot tolerate a totally cleared environment.
37         Suggestion from Eric Blake.
38
39 2010-04-06  Jim Meyering  <meyering@redhat.com>
40
41         init.sh: portability fix: use env's POSIX-specified -i option not -u
42         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
43         than unportable env -u.  Solaris 5.11's env lacks support for -u.
44
45 2010-04-05  Bruno Haible  <bruno@clisp.org>
46
47         btowc: Work around Cygwin 1.7.2 bug.
48         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
49         does not map NUL to 0.
50         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
51
52 2010-04-05  Bruno Haible  <bruno@clisp.org>
53
54         Make the multithread modules work on Cygwin 1.7.2.
55         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
56         imported symbols can be declared weak, so that it returns "no" on
57         Cygwin 1.7.2.
58
59 2010-04-05  Bruno Haible  <bruno@clisp.org>
60
61         Use the module 'strncat'.
62         * modules/unistr/u8-strncat (Depends-on): Add strncat.
63
64         Tests for module 'strncat'.
65         * modules/strncat-tests: New file.
66         * tests/test-strncat.c: New file.
67
68         New module 'strncat'.
69         * lib/string.in.h (strncat): New declaration.
70         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
71         * m4/strncat.m4: New file, based on m4/memchr.m4.
72         * modules/strncat: New file.
73         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
74         is declared.
75         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
76         REPLACE_STRNCAT.
77         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
78         REPLACE_STRNCAT.
79         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
80         module.
81         * tests/test-string-c++.cc: Check signature of strncat.
82
83 2010-04-05  Jim Meyering  <meyering@redhat.com>
84
85         xstrtoumax-tests: convert to use init.sh
86         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
87         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
88         Use Exit, not exit.
89         Remove uses of $EXEEXT and "./" to run a program in the current dir.
90
91         xstrtoimax-tests: convert to use init.sh
92         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
93         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
94         Use Exit, not exit.
95         Remove uses of $EXEEXT and "./" to run a program in the current dir.
96
97 2010-04-05  Bruno Haible  <bruno@clisp.org>
98
99         sys_socket: Avoid #define replacements in C++ mode.
100         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
101         warning to the function if possible, rather than #defining the symbol
102         to a dysfunctional alias.
103
104 2010-04-05  Bruno Haible  <bruno@clisp.org>
105
106         fseeko: Fix C++ test error on mingw.
107         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
108         gl_FUNC_FSEEKO.
109         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
110         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
111         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
112         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
113
114 2010-04-05  Bruno Haible  <bruno@clisp.org>
115
116         duplocale: Improve test output.
117         * tests/test-duplocale.c (main): Print reason for skipped test.
118
119 2010-04-05  Bruno Haible  <bruno@clisp.org>
120
121         Assume rmdir exists.
122         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
123         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
124
125 2010-04-05  Bruno Haible  <bruno@clisp.org>
126
127         Fix link error on Solaris 8 with cc.
128         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
129
130 2010-04-05  Bruno Haible  <bruno@clisp.org>
131
132         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
133         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
134
135 2010-04-05  Bruno Haible  <bruno@clisp.org>
136
137         vasprintf: Update documentation.
138         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
139
140 2010-04-05  Bruno Haible  <bruno@clisp.org>
141
142         ptsname: Improve test.
143         * tests/test-ptsname.c (main): Also try the various master names of BSD
144         systems.
145
146 2010-04-05  Bruno Haible  <bruno@clisp.org>
147
148         memchr: Avoid a possible C++ test error.
149         * lib/string.in.h (memchr): Provide declaration if function is missing.
150         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
151         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
152         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
153         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
154
155 2010-04-05  Bruno Haible  <bruno@clisp.org>
156
157         strtok_r: Improve idiom.
158         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
159         AC_LIBOBJ is used.
160
161 2010-04-05  Bruno Haible  <bruno@clisp.org>
162
163         strdup: Improve idiom.
164         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
165         AC_LIBOBJ is used.
166         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
167         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
168         when AC_LIBOBJ is used.
169
170 2010-04-05  Bruno Haible  <bruno@clisp.org>
171
172         mbsinit, mbrtowc, wcrtomb: Improve idioms.
173         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
174         don't set REPLACE_MBSINIT to 1.
175         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
176         don't set REPLACE_MBRTOWC to 1.
177         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
178         exist, don't set REPLACE_MBSRTOWCS to 1.
179         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
180         exist, don't set REPLACE_MBSNRTOWCS to 1.
181         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
182         don't set REPLACE_WCRTOMB to 1.
183         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
184         exist, don't set REPLACE_WCSRTOMBS to 1.
185         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
186         exist, don't set REPLACE_WCSNRTOMBS to 1.
187
188 2010-04-05  Bruno Haible  <bruno@clisp.org>
189
190         ldexpl: Improve idiom.
191         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
192         make sure to set HAVE_DECL_LDEXPL to 0.
193
194 2010-04-05  Jim Meyering  <meyering@redhat.com>
195
196         xstrtol-tests: convert to use init.sh
197         * modules/xstrtol-tests (Files): Add tests/init.sh.
198         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
199         Use Exit, not exit.
200         Remove uses of $EXEEXT and "./" to run a program in the current dir.
201
202         atexit-tests: convert to use init.sh
203         * modules/atexit-tests (Files): Add tests/init.sh.
204         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
205         Use Exit, not exit.
206         Remove uses of $EXEEXT and "./" to run a program in the current dir.
207
208         init.sh: fix typo
209         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
210
211         init.sh: make it easier for a test script to write to the tty, ...
212         when using automake's parallel-tests mode.
213         * tests/init.sh (stderr_fileno_): Define overridable variable.
214         (warn_): New function, to use it.
215         (fail_, skip_, framework_failure_): Use warn_.
216
217 2010-04-04  Bruno Haible  <bruno@clisp.org>
218
219         btowc: Avoid warning.
220         * lib/btowc.c: Include <stdlib.h>.
221         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
222
223 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
224             Bruno Haible  <bruno@clisp.org>
225
226         wchar: Port to NetBSD 1.5.
227         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
228         * lib/wctype.in.h (WEOF): Likewise.
229
230 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
231             Bruno Haible  <bruno@clisp.org>
232
233         Port extended stdio to NetBSD 1.5.
234         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
235         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
236         older.
237
238 2010-04-04  Bruno Haible  <bruno@clisp.org>
239
240         string: Remove unused substitution.
241         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
242         HAVE_DECL_STRERROR.
243         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
244
245 2010-04-04  Bruno Haible  <bruno@clisp.org>
246
247         strtod: Avoid a possible C++ test error.
248         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
249         set REPLACE_STRTOD.
250
251 2010-04-04  Bruno Haible  <bruno@clisp.org>
252
253         strerror: Update documentation.
254         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
255
256 2010-04-04  Bruno Haible  <bruno@clisp.org>
257
258         stdio: Fix some C++ test errors on Solaris 8 with GCC.
259         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
260         _GL_CXXALIAS_SYS_CAST.
261
262 2010-04-04  Bruno Haible  <bruno@clisp.org>
263
264         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
265         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
266         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
267         REPLACE_FREXPL to 1.
268         * doc/posix-functions/frexpl.texi: Update documentation.
269
270 2010-04-04  Bruno Haible  <bruno@clisp.org>
271
272         math: Fix some C++ test errors on Solaris 8 and Cygwin.
273         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
274
275 2010-04-04  Bruno Haible  <bruno@clisp.org>
276
277         Implement nanosleep for native Windows.
278         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
279
280 2010-04-04  Bruno Haible  <bruno@clisp.org>
281
282         math: Fix some C++ test errors on Solaris 8.
283         * lib/math.in.h (truncf, trunc): Use simpler idiom.
284
285 2010-04-04  Bruno Haible  <bruno@clisp.org>
286
287         math: Fix some C++ test errors on Cygwin.
288         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
289         truncl): Provide declaration if the system does not have it.
290         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
291         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
292         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
293         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
294         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
295         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
296         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
297         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
298         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
299         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
300         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
301         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
302         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
303         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
304         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
305         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
306         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
307         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
308         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
309         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
310         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
311         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
312
313 2010-04-04  Bruno Haible  <bruno@clisp.org>
314
315         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
316         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
317         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
318         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
319         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
320         * m4/isinf.m4 (gl_ISINF): Likewise.
321         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
322
323 2010-04-04  Bruno Haible  <bruno@clisp.org>
324
325         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
326         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
327
328 2010-04-04  Bruno Haible  <bruno@clisp.org>
329
330         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
331         * modules/tmpfile (configure.ac): Update.
332
333         tmpfile: Fix C++ test error on mingw.
334         * lib/stdio.in.h (tmpfile): New declaration.
335         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
336         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
337         * modules/tmpfile (Depends-on): Add stdio.
338         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
339         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
340         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
341         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
342         REPLACE_TMPFILE.
343         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
344
345 2010-04-04  Bruno Haible  <bruno@clisp.org>
346
347         ioctl: Fix C++ test error on mingw.
348         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
349         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
350         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
351
352 2010-04-03  Bruno Haible  <bruno@clisp.org>
353
354         wcwidth: Fix C++ test error on mingw.
355         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
356         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
357         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
358
359 2010-04-03  Bruno Haible  <bruno@clisp.org>
360
361         nanosleep: Fix C++ test error on mingw.
362         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
363         * lib/time.in.h (nanosleep): Use modern idiom.
364         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
365         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
366         REPLACE_NANOSLEEP to 1.
367         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
368         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
369
370 2010-04-03  Bruno Haible  <bruno@clisp.org>
371
372         strptime: Fix C++ test error on mingw.
373         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
374         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
375         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
376         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
377         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
378         not REPLACE_STRPTIME.
379         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
380         REPLACE_STRPTIME.
381
382 2010-04-03  Bruno Haible  <bruno@clisp.org>
383
384         timegm: Fix C++ test error on mingw.
385         * lib/time.in.h (timegm): Use modern idiom.
386         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
387         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
388         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
389         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
390
391 2010-04-03  Bruno Haible  <bruno@clisp.org>
392
393         timegm: Assume declaration if function exists.
394         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
395         if it exists. Don't clobber ac_cv_func_timegm.
396
397 2010-04-03  Bruno Haible  <bruno@clisp.org>
398
399         time_r: Fix C++ test error on mingw.
400         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
401         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
402         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
403         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
404         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
405
406 2010-04-03  Bruno Haible  <bruno@clisp.org>
407
408         time_r: Minor updates.
409         * modules/time_r (Description): Mention the provided functions.
410         * lib/time_r.c: Don't include <string.h>.
411         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
412         * doc/posix-functions/localtime_r.texi: Likewise.
413
414 2010-04-03  Bruno Haible  <bruno@clisp.org>
415
416         time: Fix regression introduced on 2010-03-08.
417         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
418         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
419
420 2010-04-03  Jim Meyering  <meyering@redhat.com>
421
422         maint.mk: don't silently disable project-specific syntax-check rules
423         * top/maint.mk (_prohibit_regexp): Define, to help people realize
424         that they need to convert their project-specific syntax-check rules
425         to use the new _sc_search_regexp.
426
427 2010-04-03  Bruno Haible  <bruno@clisp.org>
428
429         fchdir: Fix regression introduced on 2010-03-08.
430         * lib/unistd.in.h (fchdir): Fix declaration.
431         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
432         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
433         REPLACE_FCHDIR.
434         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
435         REPLACE_FCHDIR.
436
437 2010-04-03  Bruno Haible  <bruno@clisp.org>
438
439         getpagesize: Fix C++ test error on mingw.
440         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
441         system does not declare the function.
442         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
443         declared.
444         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
445         HAVE_DECL_GETPAGESIZE.
446         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
447
448 2010-04-03  Bruno Haible  <bruno@clisp.org>
449
450         stdio: Make C++ tests work on mingw.
451         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
452         does not declare the function.
453
454 2010-04-03  Bruno Haible  <bruno@clisp.org>
455
456         ftello: Fix C++ test error on mingw.
457         * lib/stdio.in.h (ftello): Use modern idiom.
458         * lib/ftello.c (ftello): Renamed from rpl_ftello.
459         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
460         is missing and that it needs to be replaced.
461         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
462         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
463         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
464
465 2010-04-03  Bruno Haible  <bruno@clisp.org>
466
467         fseeko: Fix C++ test error on mingw.
468         * lib/stdio.in.h (fseeko): Use modern idiom.
469         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
470         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
471         is missing and that it needs to be replaced.
472         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
473         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
474         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
475
476 2010-04-03  Bruno Haible  <bruno@clisp.org>
477
478         mkstemp: Fix C++ test error on mingw.
479         * lib/stdlib.in.h (mkstemp): Use modern idiom.
480         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
481         function is missing and that it needs to be replaced.
482         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
483         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
484
485 2010-04-03  Bruno Haible  <bruno@clisp.org>
486
487         stpncpy: Fix C++ test error on mingw.
488         * lib/string.in.h (stpncpy): Use modern idiom.
489         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
490         function is missing and that it needs to be replaced.
491         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
492         REPLACE_STPNCPY.
493         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
494
495 2010-04-03  Bruno Haible  <bruno@clisp.org>
496
497         sys_stat: Fix C++ test error on mingw.
498         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
499         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
500
501 2010-04-03  Bruno Haible  <bruno@clisp.org>
502
503         pty: Update doc.
504         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
505
506 2010-04-03  Bruno Haible  <bruno@clisp.org>
507
508         unistd: Fix C++ test error on mingw.
509         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
510
511 2010-04-03  Bruno Haible  <bruno@clisp.org>
512
513         Update doc regarding mingw.
514         * doc/glibc-functions/openpty.texi: Update regarding mingw.
515         * doc/glibc-functions/login_tty.texi: Likewise.
516         * doc/glibc-functions/forkpty.texi: Likewise.
517
518 2010-04-03  Bruno Haible  <bruno@clisp.org>
519
520         stdlib: Avoid compilation failure of c-strtold on mingw.
521         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
522
523 2010-04-03  Bruno Haible  <bruno@clisp.org>
524
525         locale: Make C++ tests work on Cygwin and mingw.
526         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
527         cannot provide the function.
528         Reported by Simon Josefsson.
529
530 2010-04-03  Bruno Haible  <bruno@clisp.org>
531
532         localename: Port to MacOS X 10.6.
533         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
534         memory layout of the locales in MacOS X 10.6 as well.
535         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
536
537 2010-04-02  Bruno Haible  <bruno@clisp.org>
538
539         gnulib-tool: Ensure that long-running tests are executed last.
540         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
541         running tests after the one for the other tests.
542
543 2010-04-02  Bruno Haible  <bruno@clisp.org>
544
545         gnulib-tool: Ensure the tests in the main directory are executed first.
546         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
547         start with the current directory.
548
549 2010-04-02  Bruno Haible  <bruno@clisp.org>
550
551         Tests for module 'havelib', moved here from GNU gettext.
552         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
553         modifications.
554         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
555         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
556         with modifications.
557         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
558         modifications.
559         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
560         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
561         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
562         with modifications.
563         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
564         with modifications.
565         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
566         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
567         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
568         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
569         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
570         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
571         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
572         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
573         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
574         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
575         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
576         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
577         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
578         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
579         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
580         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
581         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
582         with modifications.
583         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
584         with modifications.
585         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
586         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
587         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
588         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
589         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
590         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
591         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
592         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
593         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
594         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
595         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
596         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
597         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
598         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
599         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
600         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
601         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
602         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
603         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
604         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
605         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
606         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
607         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
608         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
609         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
610         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
611         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
612         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
613         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
614         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
615         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
616         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
617         * tests/havelib/rpathx/rpathx.c: New file, from
618         gettext/autoconf-lib-link.
619         * tests/havelib/rpathx/Makefile.am: New file, from
620         gettext/autoconf-lib-link.
621         * tests/havelib/rpathx/configure.ac: New file, from
622         gettext/autoconf-lib-link with modifications.
623         * tests/havelib/rpathy/rpathy.c: New file, from
624         gettext/autoconf-lib-link.
625         * tests/havelib/rpathy/Makefile.am: New file, from
626         gettext/autoconf-lib-link.
627         * tests/havelib/rpathy/configure.ac: New file, from
628         gettext/autoconf-lib-link with modifications.
629         * tests/havelib/rpathz/rpathz.c: New file, from
630         gettext/autoconf-lib-link.
631         * tests/havelib/rpathz/Makefile.am: New file, from
632         gettext/autoconf-lib-link.
633         * tests/havelib/rpathz/configure.ac: New file, from
634         gettext/autoconf-lib-link with modifications.
635         * tests/havelib/rpathlx/usex.c: New file, from
636         gettext/autoconf-lib-link.
637         * tests/havelib/rpathlx/Makefile.am: New file, from
638         gettext/autoconf-lib-link.
639         * tests/havelib/rpathlx/configure.ac: New file, from
640         gettext/autoconf-lib-link with modifications.
641         * tests/havelib/rpathly/usey.c: New file, from
642         gettext/autoconf-lib-link.
643         * tests/havelib/rpathly/Makefile.am: New file, from
644         gettext/autoconf-lib-link.
645         * tests/havelib/rpathly/configure.ac: New file, from
646         gettext/autoconf-lib-link with modifications.
647         * tests/havelib/rpathlz/usez.c: New file, from
648         gettext/autoconf-lib-link.
649         * tests/havelib/rpathlz/Makefile.am: New file, from
650         gettext/autoconf-lib-link.
651         * tests/havelib/rpathlz/configure.ac: New file, from
652         gettext/autoconf-lib-link with modifications.
653         * tests/havelib/rpathlyx/usey.c: New file, from
654         gettext/autoconf-lib-link.
655         * tests/havelib/rpathlyx/Makefile.am: New file, from
656         gettext/autoconf-lib-link.
657         * tests/havelib/rpathlyx/configure.ac: New file, from
658         gettext/autoconf-lib-link with modifications.
659         * tests/havelib/rpathlzyx/usez.c: New file, from
660         gettext/autoconf-lib-link.
661         * tests/havelib/rpathlzyx/Makefile.am: New file, from
662         gettext/autoconf-lib-link.
663         * tests/havelib/rpathlzyx/configure.ac: New file, from
664         gettext/autoconf-lib-link with modifications.
665         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
666         with modifications.
667
668 2010-04-02  Bruno Haible  <bruno@clisp.org>
669
670         gnulib-tool: Create distributed built sources also for the tests.
671         * gnulib-tool (func_create_testdir): Also generate distributed built
672         sources in the tests directory.
673
674 2010-04-02  Bruno Haible  <bruno@clisp.org>
675
676         gnulib-tool: Obey user's environment variables.
677         * gnulib-tool (func_create_testdir): When creating built sources,
678         respect the environment variables for autoconf, automake, etc. given by
679         the user.
680
681 2010-04-02  Bruno Haible  <bruno@clisp.org>
682
683         gnulib-tool: Provide the value of --m4-base to modules.
684         * gnulib-tool (func_import, func_create_testdir): Emit a definition
685         of gl_m4_base.
686
687 2010-04-02  Eric Blake  <eblake@redhat.com>
688
689         maint.mk: fix some fallout
690         * NEWS: Document the incompatible change, and its effect on cfg.mk.
691         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
692
693 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
694
695         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
696         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
697         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
698         (sc_cast_of_x_alloc_return_value): Likewise.
699         (sc_cast_of_alloca_return_value): Likewise.
700         (sc_space_tab): Likewise.
701         (sc_prohibit_atoi_atof): Likewise.
702         (sc_prohibit_magic_number_exit): Likewise.
703         (sc_error_exit_success): Likewise.
704         (sc_file_system): Likewise.
705         (sc_prohibit_have_config_h): Likewise.
706         (sc_require_config_h): Likewise.
707         (sc_prohibit_HAVE_MBRTOWC): Likewise.
708         (sc_obsolete_symbols): Likewise.
709         (sc_changelog): Likewise.
710         (sc_program_name): Likewise.
711         (sc_the_the): Likewise.
712         (sc_trailing_blank): Likewise.
713         (sc_two_space_separator_in_usage): Likewise.
714         (sc_useless_cpp_parens): Likewise.
715         (sc_GPL_version): Likewise.
716         (sc_GFDL_version): Likewise.
717         (sc_texinfo_acronym): Likewise.
718         (sc_prohibit_cvs_keyword): Likewise.
719         (sc_prohibit_stat_st_blocks): Likewise.
720         (sc_prohibit_S_IS_definition): Likewise.
721         (sc_redundant_const): Likewise.
722         (sc_makefile_TAB_only_indentation): Likewise.
723         (sc_m4_quote_check): Likewise.
724         (sc_makefile_path_separator_check): Likewise.
725         (sc_copyright_check): Likewise.
726         (sc_Wundef_boolean): Likewise.
727         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
728
729         maint.mk: match 0 or more whitespace-before-function-call '('
730         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
731         that have zero or two-and-more spaces between the function name
732         and the open parenthesis.
733         (sc_error_message_warn_fatal): Likewise.
734         (sc_error_message_uppercase): Likewise.
735         (sc_error_message_period): Likewise.
736
737 2010-03-31  Eric Blake  <eblake@redhat.com>
738
739         maint.mk: check for [ as well as test
740         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
741         Based on a libvirt report by Matthias Bolte.
742
743         gnumakefile: don't squelch _version output
744         * top/GNUmakefile (_version): Create one-shot dependency rather
745         than using $(shell) when version must be regenerated.
746         (_autoreconf): Run verbosely, by default.
747
748         sys_time: avoid compiler warnings
749         * lib/sys_time.in.h (includes): Ensure gcc pragma is
750         unconditional, fixing regression from 2010-03-29.
751         Reported by Simon Josefsson.
752
753 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
754
755         maint.mk: s/_header_without_use/_sc_header_without_use/
756         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
757         (sc_prohibit_assert_without_use): Use the new name.
758         (sc_prohibit_close_stream_without_use): Likewise.
759         (sc_prohibit_getopt_without_use): Likewise.
760         (sc_prohibit_quotearg_without_use): Likewise.
761         (sc_prohibit_quote_without_use): Likewise.
762         (sc_prohibit_long_options_without_use): Likewise.
763         (sc_prohibit_inttostr_without_use): Likewise.
764         (sc_prohibit_ignore_value_without_use): Likewise.
765         (sc_prohibit_error_without_use): Likewise.
766         (sc_prohibit_xalloc_without_use): Likewise.
767         (sc_prohibit_hash_without_use): Likewise.
768         (sc_prohibit_hash_pjw_without_use): Likewise.
769         (sc_prohibit_safe_read_without_use): Likewise.
770         (sc_prohibit_argmatch_without_use): Likewise.
771         (sc_prohibit_canonicalize_without_use): Likewise.
772         (sc_prohibit_root_dev_ino_without_use): Likewise.
773         (sc_prohibit_openat_without_use): Likewise.
774         (sc_prohibit_c_ctype_without_use): Likewise.
775         (sc_prohibit_signal_without_use): Likewise.
776         (sc_prohibit_intprops_without_use): Likewise.
777
778 2010-03-30  Eric Blake  <eblake@redhat.com>
779
780         maint: improve module indicators
781         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
782         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
783         columns, and avoid extra macro expansion.
784
785         fdopendir: work around FreeBSD bug
786         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
787         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
788         * modules/dirent (Makefile.am): Substitute it.
789         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
790         declaration.
791         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
792         fix.
793         Reported by Christian Weisgerber <naddy@mips.inka.de>.
794
795 2010-03-29  Bruno Haible  <bruno@clisp.org>
796
797         Emit #pragma system_header after the inclusion guard, not before.
798         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
799         guard that spans the entire file, not before. This enables an
800         optimization in GCC's preprocessor.
801         * lib/ctype.in.h: Likewise.
802         * lib/dirent.in.h: Likewise.
803         * lib/errno.in.h: Likewise.
804         * lib/float.in.h: Likewise.
805         * lib/getopt.in.h: Likewise.
806         * lib/iconv.in.h: Likewise.
807         * lib/langinfo.in.h: Likewise.
808         * lib/locale.in.h: Likewise.
809         * lib/math.in.h: Likewise.
810         * lib/netdb.in.h: Likewise.
811         * lib/netinet_in.in.h: Likewise.
812         * lib/pty.in.h: Likewise.
813         * lib/sched.in.h: Likewise.
814         * lib/se-selinux.in.h: Likewise.
815         * lib/search.in.h: Likewise.
816         * lib/spawn.in.h: Likewise.
817         * lib/stdarg.in.h: Likewise.
818         * lib/stdint.in.h: Likewise.
819         * lib/string.in.h: Likewise.
820         * lib/strings.in.h: Likewise.
821         * lib/sys_file.in.h: Likewise.
822         * lib/sys_ioctl.in.h: Likewise.
823         * lib/sys_time.in.h: Likewise.
824         * lib/sys_times.in.h: Likewise.
825         * lib/sys_utsname.in.h: Likewise.
826         * lib/sys_wait.in.h: Likewise.
827         * lib/sysexits.in.h: Likewise.
828         * lib/wctype.in.h: Likewise.
829
830 2010-03-28  James Youngman  <jay@gnu.org>
831
832         save-cwd: don't leak a file descriptor when the caller execs.
833         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
834         saved file descriptor.
835         * modules/save-cwd (Depends-on): Depend on cloexec.
836
837 2010-03-29  Bruno Haible  <bruno@clisp.org>
838
839         Remove vestiges of fts-lgpl module.
840         * lib/fts_.h: Assume GNULIB_FTS is 1.
841         * lib/fts.c: Likewise.
842         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
843
844 2010-03-28  Bruno Haible  <bruno@clisp.org>
845
846         Fix definition of tests witness macro.
847         * gnulib-tool (func_import): Fix definition of witness macro.
848
849 2010-03-28  Bruno Haible  <bruno@clisp.org>
850
851         Fix ioctl's protoype on glibc systems.
852         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
853         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
854         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
855         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
856         signature. If not, arrange to replace the ioctl function.
857         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
858         REPLACE_IOCTL.
859         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
860         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
861         Reported by Ludovic Courtès <ludo@gnu.org>.
862
863 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
864
865         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
866         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
867         made it so grep -r --include=GLOB* ... did not work.
868
869 2010-03-26  Jim Meyering  <meyering@redhat.com>
870             Eric Blake  <eblake@redhat.com>
871
872         maint.mk: prohibit use of test's -o and -a operators
873         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
874
875 2010-03-28  Bruno Haible  <bruno@clisp.org>
876
877         Remove unused GNULIB_XYZ macro definitions.
878         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
879         invocation.
880
881 2010-03-28  Bruno Haible  <bruno@clisp.org>
882
883         Mark privileged tests modules.
884         * modules/idpriv-drop-tests (Status): New section.
885         * modules/idpriv-droptemp-tests (Status): New section.
886
887 2010-03-28  Bruno Haible  <bruno@clisp.org>
888
889         Split C++ tests into separate tests modules.
890         * modules/dirent-c++-tests: New file, extracted from
891         modules/dirent-tests.
892         * modules/dirent-tests: Depend on it.
893         * modules/fcntl-h-c++-tests: New file, extracted from
894         modules/fcntl-h-tests.
895         * modules/fcntl-h-tests: Depend on it.
896         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
897         * modules/glob-tests: Depend on it.
898         * modules/iconv-h-c++-tests: New file, extracted from
899         modules/iconv-h-tests.
900         * modules/iconv-h-tests: Depend on it.
901         * modules/langinfo-c++-tests: New file, extracted from
902         modules/langinfo-tests.
903         * modules/langinfo-tests: Depend on it.
904         * modules/locale-c++-tests: New file, extracted from
905         modules/locale-tests.
906         * modules/locale-tests: Depend on it.
907         * modules/math-c++-tests: New file, extracted from modules/math-tests.
908         * modules/math-tests: Depend on it.
909         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
910         * modules/pty-tests: Depend on it.
911         * modules/search-c++-tests: New file, extracted from
912         modules/search-tests.
913         * modules/search-tests: Depend on it.
914         * modules/signal-c++-tests: New file, extracted from
915         modules/signal-tests.
916         * modules/signal-tests: Depend on it.
917         * modules/spawn-c++-tests: New file, extracted from
918         modules/spawn-tests.
919         * modules/spawn-tests: Depend on it.
920         * modules/stdio-c++-tests: New file, extracted from
921         modules/stdio-tests.
922         * modules/stdio-tests: Depend on it.
923         * modules/stdlib-c++-tests: New file, extracted from
924         modules/stdlib-tests.
925         * modules/stdlib-tests: Depend on it.
926         * modules/string-c++-tests: New file, extracted from
927         modules/string-tests.
928         * modules/string-tests: Depend on it.
929         * modules/sys_ioctl-c++-tests: New file, extracted from
930         modules/sys_ioctl-tests.
931         * modules/sys_ioctl-tests: Depend on it.
932         * modules/sys_select-c++-tests: New file, extracted from
933         modules/sys_select-tests.
934         * modules/sys_select-tests: Depend on it.
935         * modules/sys_socket-c++-tests: New file, extracted from
936         modules/sys_socket-tests.
937         * modules/sys_socket-tests: Depend on it.
938         * modules/sys_stat-c++-tests: New file, extracted from
939         modules/sys_stat-tests.
940         * modules/sys_stat-tests: Depend on it.
941         * modules/sys_time-c++-tests: New file, extracted from
942         modules/sys_time-tests.
943         * modules/sys_time-tests: Depend on it.
944         * modules/time-c++-tests: New file, extracted from modules/time-tests.
945         * modules/time-tests: Depend on it.
946         * modules/unistd-c++-tests: New file, extracted from
947         modules/unistd-tests.
948         * modules/unistd-tests: Depend on it.
949         * modules/wchar-c++-tests: New file, extracted from
950         modules/wchar-tests.
951         * modules/wchar-tests: Depend on it.
952         * modules/wctype-c++-tests: New file, extracted from
953         modules/wctype-tests.
954         * modules/wctype-tests: Depend on it.
955         Reported by Simon Josefsson.
956
957 2010-03-28  Bruno Haible  <bruno@clisp.org>
958
959         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
960         * gnulib-tool (func_exists_module): New function, extracted from
961         func_verify_module.
962         (func_verify_module): Use it.
963         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
964         'foo' only if 'foo' exists.
965         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
966         module.
967
968 2010-03-28  Bruno Haible  <bruno@clisp.org>
969
970         gnulib-tool: Add support for special categories of tests.
971         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
972         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
973         (func_usage): Document them.
974         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
975         inc_unportable_tests, inc_all_tests): New variables.
976         (func_acceptable): Consider these variables.
977         (func_modules_transitive_closure): Make it work when the 'Status' field
978         consists of multiple words.
979         (func_import): Store and restore the values of inc_cxx_tests,
980         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
981         inc_all_tests in gnulib-comp.m4.
982         (func_create_testdir): Set inc_all_tests to true.
983         * doc/gnulib.texi (Extra tests modules): New section.
984         Suggested by Jim Meyering.
985
986 2010-03-28  Bruno Haible  <bruno@clisp.org>
987
988         ansi-c++-opt: Allow turning off the C++ build by default.
989         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
990         gl_CXX_CHOICE_DEFAULT_NO is defined.
991         Requested by Eric Blake.
992
993 2010-03-28  Bruno Haible  <bruno@clisp.org>
994
995         unistd: Avoid #define replacements in C++ mode.
996         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
997         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
998         setsockopt, shutdown, select): In C++, attach a warning to the function
999         if possible, rather than #defining the symbol to a dysfunctional alias.
1000         Reported by John W. Eaton <jwe@gnu.org>.
1001
1002 2010-03-28  Bruno Haible  <bruno@clisp.org>
1003
1004         Fix link errors on mingw.
1005         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
1006         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
1007         $(LIBSOCKET).
1008         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
1009         $(LIBSOCKET).
1010
1011 2010-03-28  Bruno Haible  <bruno@clisp.org>
1012             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1013
1014         lib-ignore: Determine different options for different compilers.
1015         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
1016         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
1017         Add comments.
1018         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
1019         * NEWS: Mention the change.
1020
1021 2010-03-27  Bruno Haible  <bruno@clisp.org>
1022
1023         Remove unused GNULIB_XYZ macro definitions.
1024         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
1025         * modules/fseek (configure.ac): Likewise.
1026         * modules/ioctl (configure.ac): Likewise.
1027         * modules/open (configure.ac): Likewise.
1028         * modules/stdlib-safer (configure.ac): Likewise.
1029
1030 2010-03-27  Bruno Haible  <bruno@clisp.org>
1031
1032         Add a remark about certain modules.
1033         * modules/malloc (Comment): New section.
1034         * modules/realloc (Comment): Likewise.
1035         * modules/sigpipe (Comment): Likewise.
1036
1037 2010-03-27  Bruno Haible  <bruno@clisp.org>
1038
1039         Resolve conflict between the two kinds of module indicators.
1040         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
1041         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
1042         * modules/canonicalize (configure.ac): Invoke
1043         gl_MODULE_INDICATOR_FOR_TESTS.
1044         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
1045         GNULIB_XYZ.
1046         * tests/test-dirent-c++.cc: Likewise.
1047         * tests/test-dirent-safer.c: Likewise.
1048         * tests/test-dup2.c: Likewise.
1049         * tests/test-fchdir.c: Likewise.
1050         * tests/test-fcntl-h-c++.cc: Likewise.
1051         * tests/test-getopt.c: Likewise.
1052         * tests/test-getopt.h: Likewise.
1053         * tests/test-langinfo-c++.cc: Likewise.
1054         * tests/test-locale-c++.cc: Likewise.
1055         * tests/test-math-c++.cc: Likewise.
1056         * tests/test-pty-c++.cc: Likewise.
1057         * tests/test-search-c++.cc: Likewise.
1058         * tests/test-signal-c++.cc: Likewise.
1059         * tests/test-spawn-c++.cc: Likewise.
1060         * tests/test-stdio-c++.cc: Likewise.
1061         * tests/test-stdlib-c++.cc: Likewise.
1062         * tests/test-string-c++.cc: Likewise.
1063         * tests/test-sys_ioctl-c++.cc: Likewise.
1064         * tests/test-sys_select-c++.cc: Likewise.
1065         * tests/test-sys_socket-c++.cc: Likewise.
1066         * tests/test-sys_stat-c++.cc: Likewise.
1067         * tests/test-sys_time-c++.cc: Likewise.
1068         * tests/test-time-c++.cc: Likewise.
1069         * tests/test-unistd-c++.cc: Likewise.
1070         * tests/test-wchar-c++.cc: Likewise.
1071         * tests/uninorm/test-u8-nfc.c: Likewise.
1072         * tests/uninorm/test-u8-nfd.c: Likewise.
1073         * tests/uninorm/test-u8-nfkc.c: Likewise.
1074         * tests/uninorm/test-u8-nfkd.c: Likewise.
1075         * tests/uninorm/test-u16-nfc.c: Likewise.
1076         * tests/uninorm/test-u16-nfd.c: Likewise.
1077         * tests/uninorm/test-u16-nfkc.c: Likewise.
1078         * tests/uninorm/test-u16-nfkd.c: Likewise.
1079         * tests/uninorm/test-u32-nfc.c: Likewise.
1080         * tests/uninorm/test-u32-nfc-big.c: Likewise.
1081         * tests/uninorm/test-u32-nfd.c: Likewise.
1082         * tests/uninorm/test-u32-nfd-big.c: Likewise.
1083         * tests/uninorm/test-u32-nfkc.c: Likewise.
1084         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
1085         * tests/uninorm/test-u32-nfkd.c: Likewise.
1086         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
1087         * tests/uninorm/test-u32-normalize-big.c: Likewise.
1088
1089 2010-03-27  Bruno Haible  <bruno@clisp.org>
1090
1091         Distinguish two kinds of module indicators.
1092         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
1093         gl_MODULE_INDICATOR.
1094         (gl_MODULE_INDICATOR): New macro.
1095         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
1096         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
1097         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
1098         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
1099         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
1100         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
1101         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
1102         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
1103         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
1104         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
1105         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
1106         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
1107         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
1108         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
1109         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
1110         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
1111         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
1112         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
1113         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
1114         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
1115         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
1116         * modules/cloexec (configure.ac): Likewise.
1117         * modules/getopt-gnu (configure.ac): Likewise.
1118         * modules/uninorm/u8-normalize (configure.ac): Likewise.
1119         * modules/uninorm/u16-normalize (configure.ac): Likewise.
1120         * modules/uninorm/u32-normalize (configure.ac): Likewise.
1121         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
1122
1123 2010-03-27  Bruno Haible  <bruno@clisp.org>
1124
1125         New module description field 'Comment'.
1126         * gnulib-tool: New option --extract-comment.
1127         (func_usage): Document it.
1128         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
1129         (func_get_comment): New function.
1130         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
1131
1132 2010-03-27  Bruno Haible  <bruno@clisp.org>
1133
1134         Addendum to 2010-02-07 commit.
1135         * gnulib-tool (func_usage): Document --extract-applicability option.
1136
1137 2010-03-27  Bruno Haible  <bruno@clisp.org>
1138
1139         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
1140         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
1141         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
1142         rather than link errors.
1143
1144 2010-03-27  Bruno Haible  <bruno@clisp.org>
1145
1146         Avoid side effects from tests-related modules on the compilation of lib.
1147         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
1148         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
1149         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
1150         parameter. Emit into AM_CPPFLAGS a definition of the designated C
1151         macro.
1152         (func_import): Define a witness macro. Assign it a value that depends
1153         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
1154         tests-related modules.
1155         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
1156         Reported by Jim Meyering.
1157
1158 2010-03-27  Bruno Haible  <bruno@clisp.org>
1159
1160         Factorize common .m4 code.
1161         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
1162         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
1163         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
1164         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
1165         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
1166         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
1167         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
1168         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
1169         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
1170         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
1171         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
1172         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
1173         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
1174         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
1175         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
1176         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
1177         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
1178         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
1179         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
1180         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
1181         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
1182         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
1183         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
1184         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
1185         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
1186         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
1187         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
1188         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
1189         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
1190         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
1191         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
1192         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
1193
1194 2010-03-27  Bruno Haible  <bruno@clisp.org>
1195
1196         Fix a compilation error on Cygwin with g++ >= 4.3.
1197         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
1198         if it is undefined or if we alias it to chmod.
1199         (lstat): Don't warn about the use of this function if it is undefined
1200         or if we alias it to stat.
1201         Reported by Simon Josefsson.
1202
1203 2010-03-27  Bruno Haible  <bruno@clisp.org>
1204
1205         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
1206         * modules/getlogin (configure.ac): Update.
1207
1208         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
1209         * modules/getlogin_r (configure.ac): Update.
1210
1211         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
1212         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
1213         * modules/inet_ntop (configure.ac): Update.
1214
1215         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
1216         * modules/inet_pton (configure.ac): Update.
1217
1218         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
1219         * modules/mbslen (configure.ac): Update.
1220
1221         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
1222         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
1223         * modules/forkpty (configure.ac): Update.
1224         * modules/openpty (configure.ac): Update.
1225
1226 2010-03-26  Simon Josefsson  <simon@josefsson.org>
1227
1228         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
1229         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
1230
1231 2010-03-25  Eric Blake  <eblake@redhat.com>
1232
1233         maint: use pragma consistently across replacement headers
1234         * lib/ctype.in.h (system_header): Hoist for consistent placement.
1235         * lib/dirent.in.h (system_header): Likewise.
1236         * lib/errno.in.h (system_header): Likewise.
1237         * lib/float.in.h (system_header): Likewise.
1238         * lib/getopt.in.h (system_header): Likewise.
1239         * lib/iconv.in.h (system_header): Likewise.
1240         * lib/inttypes.in.h (system_header): Likewise.
1241         * lib/langinfo.in.h (system_header): Likewise.
1242         * lib/locale.in.h (system_header): Likewise.
1243         * lib/math.in.h (system_header): Likewise.
1244         * lib/netdb.in.h (system_header): Likewise.
1245         * lib/netinet_in.in.h (system_header): Likewise.
1246         * lib/pty.in.h (system_header): Likewise.
1247         * lib/sched.in.h (system_header): Likewise.
1248         * lib/se-selinux.in.h (system_header): Likewise.
1249         * lib/search.in.h (system_header): Likewise.
1250         * lib/spawn.in.h (system_header): Likewise.
1251         * lib/stdarg.in.h (system_header): Likewise.
1252         * lib/stdint.in.h (system_header): Likewise.
1253         * lib/string.in.h (system_header): Likewise.
1254         * lib/strings.in.h (system_header): Likewise.
1255         * lib/sys_file.in.h (system_header): Likewise.
1256         * lib/sys_ioctl.in.h (system_header): Likewise.
1257         * lib/sys_socket.in.h (system_header): Likewise.
1258         * lib/sys_times.in.h (system_header): Likewise.
1259         * lib/sys_utsname.in.h (system_header): Likewise.
1260         * lib/sys_wait.in.h (system_header): Likewise.
1261         * lib/sysexits.in.h (system_header): Likewise.
1262         * lib/unistd.in.h (system_header): Likewise.
1263         * lib/wctype.in.h (system_header): Likewise.
1264
1265         arpa/inet: fix mingw compilation warning
1266         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
1267         Reported by Matthew Bolte.
1268
1269 2010-03-25  Bruno Haible  <bruno@clisp.org>
1270
1271         Avoid collision between gnulib wrapper and libintl wrapper.
1272         * lib/printf.c (printf): Don't define if a printf wrapper is already
1273         defined in intl/printf.c.
1274         Reported by Michel Boaventura <michel@michelboaventura.com>.
1275
1276 2010-03-25  Bruno Haible  <bruno@clisp.org>
1277
1278         Use ANSI C.
1279         * lib/readutmp.h (getutent): Provide ANSI C prototype.
1280
1281 2010-03-25  Bruno Haible  <bruno@clisp.org>
1282
1283         Minor formatting changes.
1284         * lib/acosl.c: Insert space before function argument list.
1285         * lib/argz.c: Likewise.
1286         * lib/asinl.c: Likewise.
1287         * lib/expl.c: Likewise.
1288         * lib/gen-uni-tables.c: Likewise.
1289         * lib/gettext.h: Likewise.
1290         * lib/glthread/lock.h: Likewise.
1291         * lib/tanl.c: Likewise.
1292         * lib/uniname/uniname.c: Likewise.
1293         * tests/test-idpriv-drop.c: Likewise.
1294         * tests/test-idpriv-droptemp.c: Likewise.
1295         * tests/test-lock.c: Likewise.
1296         * tests/test-tls.c: Likewise.
1297         * lib/argp-help.c: Insert space before function-like macro argument
1298         list.
1299         * lib/memcmp.c: Likewise.
1300         * tests/test-base64.c: Likewise.
1301         * lib/localename.c: Insert space before sizeof's argument list.
1302         * lib/safe-alloc.h: Likewise.
1303         * lib/file-set.h: Insert space before macro argument list.
1304         * tests/test-argp.c: Likewise.
1305         * lib/argp-namefrob.h: Insert space before function parameter list.
1306         * lib/getaddrinfo.c: Likewise.
1307         * lib/netdb.in.h: Likewise.
1308         * lib/parse-duration.h: Likewise.
1309         * lib/parse-duration.c: Likewise.
1310         * lib/poll.c: Likewise.
1311         * lib/select.c: Likewise.
1312         * lib/trim.h: Likewise.
1313         * tests/test-usleep.c: Likewise.
1314         * lib/ldexpl.c: Insert space before function parameter list and before
1315         function argument list.
1316         * lib/logl.c: Likewise.
1317         * lib/sqrtl.c: Likewise.
1318         * lib/trim.c: Likewise.
1319         * lib/cosl.c: Use GNU style indentation. Insert space before function
1320         argument list.
1321         * lib/sinl.c: Likewise.
1322         * lib/tsearch.c: Insert space after 'for'.
1323         Reported by Jim Meyering.
1324
1325 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
1326
1327         * maint.mk (sc_Wundef_boolean): Check for the presence of the
1328         config header before grepping, as it's not present before
1329         autoreconf/configure are run.  Reported by Simon Josefsson.
1330
1331 2010-03-23  Bruno Haible  <bruno@clisp.org>
1332
1333         pt_chown: Make it work with automake < 1.11.
1334         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
1335         Reported by Simon Josefsson.
1336
1337 2010-03-23  Bruno Haible  <bruno@clisp.org>
1338
1339         pt_chown: Don't depend on GPLed modules.
1340         * lib/pt_chown.c: Don't include idpriv.h.
1341         (main): Don't drop privileges.
1342         * modules/pt_chown (Depends-on): Remove idpriv-drop.
1343         Reported by Simon Josefsson.
1344
1345 2010-03-24  Simon Josefsson  <simon@josefsson.org>
1346
1347         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
1348         suggestions from karl@freefriends.org (Karl Berry).
1349
1350 2010-03-22  Eric Blake  <eblake@redhat.com>
1351
1352         gethostname: further tweaks
1353         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
1354         are overriding gethostname.
1355         Suggested by Bruno Haible.
1356
1357 2010-03-21  Bruno Haible  <bruno@clisp.org>
1358
1359         Fix comments.
1360         * lib/forkpty.c (rpl_forkpty): Fix comment.
1361         * lib/openpty.c (rpl_openpty): Likewise.
1362         Reported by Eric Blake.
1363
1364 2010-03-22  Eric Blake  <eblake@redhat.com>
1365
1366         gethostname: fix build on mingw
1367         * lib/unistd.in.h (includes): Work around fact that mingw
1368         <winsock2.h> re-includes <unistd.h>, by avoiding any
1369         redeclarations if we are being included by <winsock2.h>.
1370         Reported by Matthias Bolte.
1371
1372 2010-03-21  Bruno Haible  <bruno@clisp.org>
1373
1374         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
1375         * lib/forkpty.c (forkpty): New replacement function, from glibc with
1376         modifications.
1377         * lib/pty.in.h (forkpty): Update declaration. Add comments.
1378         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
1379         provide the replacement.
1380         * modules/forkpty (Depends-on): Add openpty, login_tty.
1381         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
1382         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
1383         * doc/glibc-functions/forkpty.texi: More supported platforms.
1384         * config/srclist.txt: Add forkpty.c (commented).
1385
1386 2010-03-21  Bruno Haible  <bruno@clisp.org>
1387
1388         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
1389         (Makefile.am): Verify that PTY_LIB is defined.
1390
1391         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
1392
1393 2010-03-21  Bruno Haible  <bruno@clisp.org>
1394
1395         Tests for module 'login_tty'.
1396         * modules/login_tty-tests: New file.
1397         * tests/test-login_tty.c: New file.
1398
1399         New module 'login_tty'.
1400         * lib/login_tty.c: New file.
1401         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
1402         * modules/login_tty: New file.
1403         * doc/glibc-functions/login_tty.texi: Mention the new module.
1404
1405 2010-03-21  Bruno Haible  <bruno@clisp.org>
1406
1407         login_tty: Documentation.
1408         * doc/glibc-functions/login_tty.texi: New file.
1409         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
1410
1411 2010-03-21  Bruno Haible  <bruno@clisp.org>
1412
1413         pty: Consistent macro naming.
1414         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
1415         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
1416         * modules/pty (configure.ac): Update.
1417
1418 2010-03-21  Bruno Haible  <bruno@clisp.org>
1419
1420         Tests for openpty: Make stricter.
1421         * tests/test-openpty.c (main): Add test of canonical processing and
1422         erase.
1423         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
1424
1425         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
1426         * lib/openpty.c (openpty): New replacement function.
1427         * lib/pty.in.h: Include <termios.h>.
1428         (openpty): Update declaration. Add comments.
1429         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
1430         is not declared, arrange to provide the replacement. Check for _getpty
1431         and posix_openpt.
1432         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
1433         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
1434         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
1435         * modules/pty-tests (test_pty_c___LDADD): New variable.
1436         * doc/glibc-functions/openpty.texi: More supported platforms.
1437
1438 2010-03-21  Bruno Haible  <bruno@clisp.org>
1439
1440         setenv: Tweaks.
1441         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
1442         the test program.
1443         * doc/posix-functions/setenv.texi: Update platforms list.
1444
1445 2010-03-21  Bruno Haible  <bruno@clisp.org>
1446
1447         New module 'unlockpt'.
1448         * lib/unlockpt.c: New file, from glibc with modifications.
1449         * m4/unlockpt.m4: New file.
1450         * modules/unlockpt: New file.
1451         * lib/stdlib.in.h (unlockpt): New declaration.
1452         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
1453         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
1454         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
1455         HAVE_UNLOCKPT.
1456         * doc/posix-functions/unlockpt.texi: Mention the new module.
1457         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
1458         * config/srclist.txt: Add unlockpt.c (commented).
1459
1460 2010-03-21  Jim Meyering  <meyering@redhat.com>
1461
1462         maint.mk: prohibit inclusion of "intprops.h" without use
1463         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
1464
1465 2010-03-21  Bruno Haible  <bruno@clisp.org>
1466
1467         New module 'grantpt'.
1468         * lib/grantpt.c: New file, from glibc with modifications.
1469         * m4/grantpt.m4: New file.
1470         * modules/grantpt: New file.
1471         * lib/stdlib.in.h (grantpt): New declaration.
1472         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
1473         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
1474         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
1475         HAVE_GRANTPT.
1476         * doc/posix-functions/grantpt.texi: Mention the new module.
1477         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
1478         * config/srclist.txt: Add grantpt.c (commented).
1479
1480 2010-03-21  Bruno Haible  <bruno@clisp.org>
1481
1482         New module 'pt_chown'.
1483         * lib/pt_chown.c: New file, from glibc with modifications.
1484         * lib/pty-private.h: New file, from glibc with modifications.
1485         * modules/pt_chown: New file.
1486         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
1487
1488 2010-03-21  Bruno Haible  <bruno@clisp.org>
1489
1490         Tests for module 'ptsname'.
1491         * modules/ptsname-tests: New file.
1492         * tests/test-ptsname.c: New file.
1493
1494         New module 'ptsname'.
1495         * lib/ptsname.c: New file, from glibc with modifications.
1496         * m4/ptsname.m4: New file.
1497         * modules/ptsname: New file.
1498         * lib/stdlib.in.h (ptsname): New declaration.
1499         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
1500         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
1501         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
1502         HAVE_PTSNAME.
1503         * doc/posix-functions/ptsname.texi: Mention the new module.
1504         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
1505         * config/srclist.txt: Add ptsname.c (commented).
1506
1507 2010-03-21  Bruno Haible  <bruno@clisp.org>
1508
1509         Tests for module 'ttyname_r'.
1510         * modules/ttyname_r-tests: New file.
1511         * tests/test-ttyname_r.c: New file.
1512
1513         New module 'ttyname_r'.
1514         * lib/ttyname_r.c: New file.
1515         * m4/ttyname_r.m4: New file.
1516         * modules/ttyname_r: New file.
1517         * lib/unistd.in.h (ttyname_r): New declaration.
1518         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
1519         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
1520         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
1521         HAVE_TTYNAME_R.
1522         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
1523         * doc/posix-functions/ttyname_r.texi: Mention the new module.
1524
1525 2010-03-20  Bruno Haible  <bruno@clisp.org>
1526
1527         signal: Undefine macro definitions in C++ mode.
1528         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
1529         sigfillset): Undefine macro definitions from the system header in C++
1530         mode.
1531         Reported by John W. Eaton <jwe@gnu.org>.
1532
1533 2010-03-20  Bruno Haible  <bruno@clisp.org>
1534
1535         Ensure no #include statements inside extern "C" { ... }.
1536         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
1537         contain #include statements.
1538         * lib/time.in.h: Likewise.
1539
1540 2010-03-20  Bruno Haible  <bruno@clisp.org>
1541
1542         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
1543         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
1544         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
1545         Reported by John W. Eaton <jwe@gnu.org>.
1546
1547 2010-03-20  Bruno Haible  <bruno@clisp.org>
1548
1549         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
1550         Reported by Jim Meyering.
1551
1552 2010-03-20  Bruno Haible  <bruno@clisp.org>
1553
1554         pipe: Set errno upon failure.
1555         * lib/pipe.h: Specify that when -1 is returned, errno is set.
1556         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
1557         errno value in error message.
1558
1559 2010-03-20  Bruno Haible  <bruno@clisp.org>
1560             Jim Meyering  <meyering@redhat.com>
1561
1562         lchown: Avoid "unused variable" warning.
1563         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
1564
1565 2010-03-20  Bruno Haible  <bruno@clisp.org>
1566
1567         Work around unlink() bug on MacOS X 10.5.6.
1568         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
1569         attempting to unlink a parent directory.
1570         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
1571         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
1572         activate for the replacement function.
1573         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
1574
1575 2010-03-20  Bruno Haible  <bruno@clisp.org>
1576
1577         Fix link errors on Solaris 8.
1578         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
1579         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
1580
1581 2010-03-19  Jim Meyering  <meyering@redhat.com>
1582
1583         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
1584         The _LIBC implementation of build_range_exp correctly honors the
1585         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
1586         However, the non-_LIBC implementation would ignore that syntax-bit
1587         flag and return REG_ERANGE unconditionally.
1588         This change makes it honor that flag.
1589         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
1590         Make two pointer parameters "const".
1591         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
1592         (parse_bracket_exp): Update caller.
1593
1594         regex.m4: correct the reversed range endpoint ([b-a]) test
1595         * m4/regex.m4: When requiring that [b-a] evoke failure,
1596         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
1597         test pass once again for x86-based systems.
1598
1599 2010-03-19  Bruno Haible  <bruno@clisp.org>
1600
1601         scandir: Fix link error on Solaris 8.
1602         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
1603         macros.
1604
1605 2010-03-19  Bruno Haible  <bruno@clisp.org>
1606
1607         getusershell: Fix documentation.
1608         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
1609         module.
1610         * doc/glibc-functions/setusershell.texi: Likewise.
1611
1612         getusershell: Provide declaration, missing on Solaris 9.
1613         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
1614         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
1615         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
1616         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
1617         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
1618         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
1619         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
1620         HAVE_GETUSERSHELL.
1621         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
1622
1623 2010-03-19  Bruno Haible  <bruno@clisp.org>
1624
1625         wctype: Provide iswblank function.
1626         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
1627         exists and is fine.
1628         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
1629         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
1630         * tests/test-wctype.c (main): Re-enable the iswblank tests.
1631         * doc/posix-functions/iswblank.texi: Update.
1632
1633 2010-03-19  Bruno Haible  <bruno@clisp.org>
1634
1635         Tests of module 'pty' in C++ mode.
1636         * modules/pty-tests: New file.
1637         * tests/test-pty-c++.cc: New file.
1638         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
1639
1640 2010-03-19  Eric Blake  <eblake@redhat.com>
1641
1642         logb: fix documentation
1643         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
1644         1.5 declaration bug.
1645
1646         forkpty, openpty: prefer glibc's const-safe prototype
1647         * lib/forkpty.c (rpl_forkpty): New file.
1648         * lib/openpty.c (rpl_openpty): Likewise.
1649         * modules/forkpty (Files): Distribute it.
1650         * modules/openpty (Files): Likewise.
1651         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
1652         check...
1653         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
1654         replacement for for non-const BSD signature.
1655         * modules/pty (Makefile.am): Substitute witnesses.
1656         * lib/pty.in.h (forkpty, openpty): Declare replacements.
1657         * tests/test-forkpty.c: Update signature check.
1658         * tests/test-openpty.c: Likewise.
1659         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
1660         * doc/glibc-functions/openpty.texi (openpty): Likewise.
1661
1662         forkpty, openpty: split functions into new modules
1663         * modules/pty (Makefile.am): Substitute new witnesses.
1664         (Libraries): Move library detection...
1665         * modules/forkpty: ...into new module.
1666         * modules/openpty: Another new module.
1667         * modules/pty-tests: Rename and split...
1668         * modules/forkpty-tests: ...to this...
1669         * modules/openpty-tests: ...and this.
1670         * tests/test-pty.c: Rename and split...
1671         * tests/test-forkpty.c: ...to this...
1672         * tests/test-openpty.c: ...and this.
1673         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
1674         (gl_PTY): Split library searching...
1675         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
1676         (gl_FORKPTY, gl_OPENPTY): New macros.
1677         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
1678         * NEWS: Mention the split.
1679         * MODULES.html.sh (Misc): Document the modules.
1680         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
1681         * doc/glibc-functions/openpty.texi (openpty): Likewise.
1682
1683         pty: improve replacement header
1684         * lib/pty.in.h: New file.
1685         * modules/pty (Files): Ship it.
1686         (Makefile.am): Always build replacement.
1687         * m4/pty.m4: Rename...
1688         * m4/pty_h.m4: ...to this.
1689         (gl_PTY): Modernize setting of witness macros; update check of
1690         forkpty to take proper advantage of cache.
1691         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
1692
1693         getopt: avoid compiler warning
1694         * lib/getopt.c (attribute_hidden): Remove unused macro.
1695
1696 2010-03-18  Bruno Haible  <bruno@clisp.org>
1697
1698         Fix link errors on Solaris 8.
1699         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
1700         * modules/search-tests (test_search_c___LDADD): Likewise.
1701         * modules/signal-tests (test_signal_c___LDADD): Likewise.
1702         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
1703         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
1704         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
1705         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
1706         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
1707         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
1708
1709 2010-03-18  Bruno Haible  <bruno@clisp.org>
1710
1711         Fix bug introduced on 2010-03-14.
1712         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
1713         (gl_SPAWN_H): Require it.
1714         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
1715         Reported by Simon Josefsson.
1716
1717 2010-03-18  Bruno Haible  <bruno@clisp.org>
1718
1719         Fix typo introduced on 2009-12-31.
1720         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
1721         posix_spawn_file_actions_adddup2.
1722
1723 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
1724         and Eric Blake  <eblake@redhat.com>
1725
1726         test-vc-list-files-git: make more robust
1727         * tests/test-vc-list-files-git.sh: Unset problematic environment
1728         variables.  Chain commands together.
1729
1730 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
1731
1732         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
1733         `AC_CHECK_DECL' invocation.
1734
1735 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
1736
1737         * lib/inttostr.c (inttostr): Make sure the invocation of verify
1738         appears before executable statements. Suggested by Petr Sumbera
1739         <Petr.Sumbera@Sun.COM>.
1740
1741 2010-03-14  Bruno Haible  <bruno@clisp.org>
1742
1743         * tests/test-flock.c (test_exclusive): Comment out a test that causes
1744         portability problems. Instead use a simpler test.
1745         (main): Check that invalid arguments are rejected only on Linux.
1746
1747 2010-03-14  Bruno Haible  <bruno@clisp.org>
1748
1749         Fix bug introduced on 2009-12-31.
1750         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
1751         gl_PREREQ_SYS_H_WINSOCK2 always.
1752         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
1753         SYS_SOCKET_H variable.
1754         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
1755         Update comments.
1756         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
1757         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
1758         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
1759         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
1760         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
1761
1762 2010-03-14  Bruno Haible  <bruno@clisp.org>
1763
1764         Fix values returned by sinl, cosl.
1765         * lib/trigl.h: Add specification comments.
1766         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
1767         that combines the values from the precomputed table with the values of
1768         the Chebyshev polynomials.
1769
1770 2010-03-14  Bruno Haible  <bruno@clisp.org>
1771
1772         Fix compilation error when modules 'posix_spawn[p]' are not used.
1773         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
1774         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
1775
1776 2010-03-14  Bruno Haible  <bruno@clisp.org>
1777
1778         Fix compilation error on mingw when module 'time_r' is not used.
1779         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
1780         is 1.
1781         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
1782         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
1783         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
1784         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
1785
1786 2010-03-14  Bruno Haible  <bruno@clisp.org>
1787
1788         Fix compilation error with Sun C.
1789         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
1790         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
1791         instead of GCC specific ULONG_LONG_MAX.
1792         * lib/xstrtoll.c: Likewise.
1793         * lib/xstrtoull.c: Likewise.
1794
1795 2010-03-13  Bruno Haible  <bruno@clisp.org>
1796
1797         Allow the user to disable C++ code and tests.
1798         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
1799         (gl_PROG_ANSI_CXX): Require it.
1800
1801 2010-03-13  Bruno Haible  <bruno@clisp.org>
1802
1803         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
1804         cases.
1805
1806 2010-03-13  Bruno Haible  <bruno@clisp.org>
1807
1808         Test that gnulib does not break the standard C++ headers.
1809         * tests/test-locale-c++2.cc: New file.
1810         * modules/locale-tests (Files): Add it.
1811         (Makefile.am): Compile it for test-locale-c++.
1812         * tests/test-math-c++2.cc: New file.
1813         * modules/math-tests (Files): Add it.
1814         (Makefile.am): Compile it for test-math-c++.
1815         * tests/test-signal-c++2.cc: New file.
1816         * modules/signal-tests (Files): Add it.
1817         (Makefile.am): Compile it for test-signal-c++.
1818         * tests/test-stdio-c++2.cc: New file.
1819         * modules/stdio-tests (Files): Add it.
1820         (Makefile.am): Compile it for test-stdio-c++.
1821         * tests/test-stdlib-c++2.cc: New file.
1822         * modules/stdlib-tests (Files): Add it.
1823         (Makefile.am): Compile it for test-stdlib-c++.
1824         * tests/test-string-c++2.cc: New file.
1825         * modules/string-tests (Files): Add it.
1826         (Makefile.am): Compile it for test-string-c++.
1827         * tests/test-time-c++2.cc: New file.
1828         * modules/time-tests (Files): Add it.
1829         (Makefile.am): Compile it for test-time-c++.
1830         Reported by John W. Eaton <jwe@gnu.org>.
1831
1832 2010-03-13  Bruno Haible  <bruno@clisp.org>
1833
1834         * gnulib-tool (func_usage): Clarify which options are available for
1835         --create-testdir and --create-megatestdir.
1836
1837 2010-03-13  Bruno Haible  <bruno@clisp.org>
1838
1839         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
1840         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
1841         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
1842         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
1843         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
1844         when appropriate.
1845         Reported by Jim Meyering.
1846
1847 2010-03-12  Simon Josefsson  <simon@josefsson.org>
1848
1849         * gnulib-tool (func_import): Explain origin of code.
1850
1851 2010-03-12  Bruno Haible  <bruno@clisp.org>
1852
1853         Fix problem with automake's definition of CXXLINK.
1854         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
1855         Reported by Simon Josefsson and Ludovic Courtès.
1856
1857 2010-03-12  Bruno Haible  <bruno@clisp.org>
1858
1859         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
1860         stable releases.
1861
1862 2010-03-11  Bruno Haible  <bruno@clisp.org>
1863
1864         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
1865         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
1866         whether the system provides one variant or multiple variants of the
1867         function.
1868         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
1869         C++ compilers.
1870         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
1871         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
1872         Reported by Jim Meyering.
1873
1874 2010-03-09  Simon Josefsson  <simon@josefsson.org>
1875
1876         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
1877
1878 2010-03-08  Bruno Haible  <bruno@clisp.org>
1879
1880         gnulib-tool: Add support for --libtool in --create-testdir.
1881         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
1882         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
1883
1884 2010-03-08  Eric Blake  <eblake@redhat.com>
1885
1886         gnulib-tool.texi: mention possibility of git submodule
1887         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
1888         submodules.
1889         * doc/.gitignore: Ignore another generated file.
1890
1891 2010-03-08  Karl Berry  <karl@gnu.org>
1892
1893         * doc/gnulib-tool.texi (VCS Issues): Mention third option
1894         of committing gnulib files while skipping others.
1895
1896 2010-03-07  Bruno Haible  <bruno@clisp.org>
1897
1898         Tests of module 'wctype' in C++ mode.
1899         * tests/test-wctype-c++.cc: New file.
1900         * modules/wctype-tests (Files): Add it and tests/signature.h.
1901         (Depends-on): Add ansi-c++-opt.
1902         (Makefile.am): Arrange to compile and run test-wctype-c++.
1903
1904         Tests of module 'wchar' in C++ mode.
1905         * tests/test-wchar-c++.cc: New file.
1906         * modules/wchar-tests (Files): Add it and tests/signature.h.
1907         (Depends-on): Add ansi-c++-opt.
1908         (Makefile.am): Arrange to compile and run test-wchar-c++.
1909         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
1910         gl_MODULE_INDICATOR.
1911
1912         Tests of module 'unistd' in C++ mode.
1913         * tests/test-unistd-c++.cc: New file.
1914         * modules/unistd-tests (Files): Add it and tests/signature.h.
1915         (Depends-on): Add ansi-c++-opt.
1916         (Makefile.am): Arrange to compile and run test-unistd-c++.
1917         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
1918         gl_MODULE_INDICATOR.
1919
1920         Tests of module 'time' in C++ mode.
1921         * tests/test-time-c++.cc: New file.
1922         * modules/time-tests (Files): Add it and tests/signature.h.
1923         (Depends-on): Add ansi-c++-opt.
1924         (Makefile.am): Arrange to compile and run test-time-c++.
1925         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
1926
1927         Tests of module 'sys_time' in C++ mode.
1928         * tests/test-sys_time-c++.cc: New file.
1929         * modules/sys_time-tests (Files): Add it and tests/signature.h.
1930         (Depends-on): Add ansi-c++-opt.
1931         (Makefile.am): Arrange to compile and run test-sys_time-c++.
1932         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
1933         gl_MODULE_INDICATOR.
1934
1935         Tests of module 'sys_stat' in C++ mode.
1936         * tests/test-sys_stat-c++.cc: New file.
1937         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
1938         (Depends-on): Add ansi-c++-opt.
1939         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
1940         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
1941         gl_MODULE_INDICATOR.
1942
1943         Tests of module 'sys_socket' in C++ mode.
1944         * tests/test-sys_socket-c++.cc: New file.
1945         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
1946         (Depends-on): Add ansi-c++-opt.
1947         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
1948         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
1949         gl_MODULE_INDICATOR.
1950
1951         Tests of module 'sys_select' in C++ mode.
1952         * tests/test-sys_select-c++.cc: New file.
1953         * modules/sys_select-tests (Files): Add it and tests/signature.h.
1954         (Depends-on): Add ansi-c++-opt.
1955         (Makefile.am): Arrange to compile and run test-sys_select-c++.
1956         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
1957         gl_MODULE_INDICATOR.
1958
1959         Tests of module 'sys_ioctl' in C++ mode.
1960         * tests/test-sys_ioctl-c++.cc: New file.
1961         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
1962         (Depends-on): Add ansi-c++-opt.
1963         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
1964         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
1965         gl_MODULE_INDICATOR.
1966
1967         Tests of module 'string' in C++ mode.
1968         * tests/test-string-c++.cc: New file.
1969         * modules/string-tests (Files): Add it and tests/signature.h.
1970         (Depends-on): Add ansi-c++-opt.
1971         (Makefile.am): Arrange to compile and run test-string-c++.
1972         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
1973         gl_MODULE_INDICATOR.
1974
1975         Tests of module 'stdlib' in C++ mode.
1976         * tests/test-stdlib-c++.cc: New file.
1977         * modules/stdlib-tests (Files): Add it and tests/signature.h.
1978         (Depends-on): Add ansi-c++-opt.
1979         (Makefile.am): Arrange to compile and run test-stdlib-c++.
1980         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
1981         gl_MODULE_INDICATOR.
1982
1983         Tests of module 'stdio' in C++ mode.
1984         * tests/test-stdio-c++.cc: New file.
1985         * modules/stdio-tests (Files): Add it and tests/signature.h.
1986         (Depends-on): Add ansi-c++-opt.
1987         (Makefile.am): Arrange to compile and run test-stdio-c++.
1988         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
1989         gl_MODULE_INDICATOR.
1990
1991         Tests of module 'spawn' in C++ mode.
1992         * tests/test-spawn-c++.cc: New file.
1993         * modules/spawn-tests (Files): Add it and tests/signature.h.
1994         (Depends-on): Add ansi-c++-opt.
1995         (Makefile.am): Arrange to compile and run test-spawn-c++.
1996         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
1997         gl_MODULE_INDICATOR.
1998
1999         Tests of module 'signal' in C++ mode.
2000         * tests/test-signal-c++.cc: New file.
2001         * modules/signal-tests (Files): Add it and tests/signature.h.
2002         (Depends-on): Add ansi-c++-opt.
2003         (Makefile.am): Arrange to compile and run test-signal-c++.
2004         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
2005         gl_MODULE_INDICATOR.
2006
2007         Tests of module 'search' in C++ mode.
2008         * tests/test-search-c++.cc: New file.
2009         * modules/search-tests (Files): Add it and tests/signature.h.
2010         (Depends-on): Add ansi-c++-opt.
2011         (Makefile.am): Arrange to compile and run test-search-c++.
2012         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
2013         gl_MODULE_INDICATOR.
2014
2015         Tests of module 'math' in C++ mode.
2016         * tests/test-math-c++.cc: New file.
2017         * modules/math-tests (Files): Add it and tests/signature.h.
2018         (Depends-on): Add ansi-c++-opt.
2019         (Makefile.am): Arrange to compile and run test-math-c++.
2020         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
2021
2022         Tests of module 'locale' in C++ mode.
2023         * tests/test-locale-c++.cc: New file.
2024         * modules/locale-tests (Files): Add it and tests/signature.h.
2025         (Depends-on): Add ansi-c++-opt.
2026         (Makefile.am): Arrange to compile and run test-locale-c++.
2027         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
2028         gl_MODULE_INDICATOR.
2029
2030         Tests of module 'langinfo' in C++ mode.
2031         * tests/test-langinfo-c++.cc: New file.
2032         * modules/langinfo-tests (Files): Add it and tests/signature.h.
2033         (Depends-on): Add ansi-c++-opt.
2034         (Makefile.am): Arrange to compile and run test-langinfo-c++.
2035         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
2036         gl_MODULE_INDICATOR.
2037
2038         Tests of module 'iconv-h' in C++ mode.
2039         * tests/test-iconv-h-c++.cc: New file.
2040         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
2041         (Depends-on): Add ansi-c++-opt.
2042         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
2043
2044         Tests of module 'glob' in C++ mode.
2045         * tests/test-glob-c++.cc: New file.
2046         * modules/glob-tests (Files): Add it.
2047         (Depends-on): Add ansi-c++-opt.
2048         (Makefile.am): Arrange to compile and run test-glob-c++.
2049
2050         Tests of module 'fcntl-h' in C++ mode.
2051         * tests/test-fcntl-h-c++.cc: New file.
2052         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
2053         (Depends-on): Add ansi-c++-opt.
2054         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
2055         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
2056         gl_MODULE_INDICATOR.
2057
2058         Tests of module 'dirent' in C++ mode.
2059         * tests/test-dirent-c++.cc: New file.
2060         * modules/dirent-tests (Files): Add it and tests/signature.h.
2061         (Depends-on): Add ansi-c++-opt.
2062         (Makefile.am): Arrange to compile and run test-dirent-c++.
2063         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
2064         gl_MODULE_INDICATOR.
2065
2066         New module 'ansi-c++-opt'.
2067         * modules/ansi-c++-opt: New file.
2068         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
2069
2070         Document C++ namespace mode.
2071         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
2072
2073         wctype: Avoid #define replacements in C++ mode.
2074         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
2075         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
2076         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
2077         In C++, define a namespaced alias symbol.
2078         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
2079         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
2080         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
2081         rule.
2082
2083         wchar: Avoid #define replacements in C++ mode.
2084         * lib/wchar.in.h: Include c++defs.h.
2085         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
2086         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
2087         symbol.
2088         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
2089         * modules/wchar (Depends-on): Add c++defs.
2090         (Makefile.am): Update wchar.h rule.
2091
2092         unistd: Avoid #define replacements in C++ mode.
2093         * lib/unistd.in.h: Include c++defs.h.
2094         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
2095         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
2096         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
2097         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
2098         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
2099         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
2100         symbol.
2101         (environ): Update.
2102         * modules/unistd (Depends-on): Add c++defs.
2103         (Makefile.am): Update unistd.h rule.
2104
2105         time: Avoid #define replacements in C++ mode.
2106         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
2107         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
2108         define a namespaced alias symbol.
2109         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
2110         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
2111         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
2112         * modules/time (Depends-on): Add c++defs, warn-on-use.
2113         (Makefile.am): Update time.h rule.
2114         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
2115         * modules/nanosleep (configure.ac): Likewise.
2116         * modules/strptime (configure.ac): Likewise.
2117         * modules/timegm (configure.ac): Likewise.
2118
2119         sys_time: Avoid #define replacements in C++ mode.
2120         * lib/sys_time.in.h: Include c++defs.h.
2121         (gettimeofday): In C++, define a namespaced alias symbol.
2122         * modules/sys_time (Depends-on): Add c++defs.
2123         (Makefile.am): Update sys/time.h rule.
2124
2125         sys_stat: Avoid #define replacements in C++ mode.
2126         * lib/sys_stat.in.h: Include c++defs.h.
2127         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
2128         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
2129         namespaced alias symbol.
2130         In C++, define a namespaced alias symbol.
2131         * modules/sys_stat (Depends-on): Add c++defs.
2132         (Makefile.am): Update sys/stat.h rule.
2133
2134         sys_socket: Avoid #define replacements in C++ mode.
2135         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
2136         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
2137         definitions also when the system has a <sys/socket.h>.
2138         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
2139         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
2140         In C++, define a namespaced alias symbol.
2141         * modules/sys_socket (Depends-on): Add c++defs.
2142         (Makefile.am): Update sys/socket.h rule.
2143
2144         sys_select: Avoid #define replacements in C++ mode.
2145         * lib/sys_select.in.h: Include c++defs.h. Enable the function
2146         definitions also when the system has a <sys/select.h>.
2147         (select): In C++, define a namespaced alias symbol.
2148         * modules/sys_select (Depends-on): Add c++defs.
2149         (Makefile.am): Update sys/select.h rule.
2150
2151         sys_ioctl: Avoid #define replacements in C++ mode.
2152         * lib/sys_ioctl.in.h: Include c++defs.h.
2153         (ioctl): In C++, define a namespaced alias symbol.
2154         * modules/sys_ioctl (Depends-on): Add c++defs.
2155         (Makefile.am): Update sys/ioctl.h rule.
2156
2157         string: Avoid #define replacements in C++ mode.
2158         * lib/string.in.h: Include c++defs.h.
2159         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
2160         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
2161         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
2162         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
2163         strsignal, strverscmp): In C++, define a namespaced alias symbol.
2164         * modules/string (Depends-on): Add c++defs.
2165         (Makefile.am): Update string.h rule.
2166
2167         stdlib: Avoid #define replacements in C++ mode.
2168         * lib/stdlib.in.h: Include c++defs.h.
2169         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
2170         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
2171         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
2172         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
2173         symbol.
2174         * modules/stdlib (Depends-on): Add c++defs.
2175         (Makefile.am): Update stdlib.h rule.
2176
2177         stdio: Avoid #define replacements in C++ mode.
2178         * lib/stdio.in.h: Include c++defs.h.
2179         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
2180         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
2181         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
2182         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
2183         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
2184         namespaced alias symbol.
2185         * modules/stdio (Depends-on): Add c++defs.
2186         (Makefile.am): Update stdio.h rule.
2187
2188         spawn: Avoid #define replacements in C++ mode.
2189         * lib/spawn.in.h: Include c++defs.h.
2190         (posix_spawn, posix_spawnp, posix_spawnattr_init,
2191         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
2192         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
2193         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
2194         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
2195         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
2196         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
2197         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
2198         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
2199         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
2200         In C++, define a namespaced alias symbol.
2201         * modules/spawn (Depends-on): Add c++defs.
2202         (Makefile.am): Update spawn.h rule.
2203
2204         signal: Avoid #define replacements in C++ mode.
2205         * lib/signal.in.h: Include c++defs.h.
2206         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
2207         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
2208         namespaced alias symbol.
2209         * modules/signal (Depends-on): Add c++defs.
2210         (Makefile.am): Update signal.h rule.
2211
2212         search: Avoid #define replacements in C++ mode.
2213         * lib/search.in.h: Include c++defs.h.
2214         (_gl_search_compar_fn, _gl_search_action_fn): New types.
2215         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
2216         symbol.
2217         * modules/search (Depends-on): Add c++defs.
2218         (Makefile.am): Update search.h rule.
2219
2220         math: Avoid #define replacements in C++ mode.
2221         * lib/math.in.h: Include c++defs.h.
2222         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
2223         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
2224         trunc, truncl): In C++, define a namespaced alias symbol.
2225         * modules/math (Depends-on): Add c++defs.
2226         (Makefile.am): Update math.h rule.
2227
2228         locale: Avoid #define replacements in C++ mode.
2229         * lib/locale.in.h: Include c++defs.h.
2230         (duplocale): In C++, define a namespaced alias symbol.
2231         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
2232         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
2233         * modules/locale (Depends-on): Add c++defs.
2234         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
2235
2236         langinfo: Avoid #define replacements in C++ mode.
2237         * lib/langinfo.in.h: Include c++defs.h.
2238         (nl_langinfo): In C++, define a namespaced alias symbol.
2239         * modules/langinfo (Depends-on): Add c++defs.
2240         (Makefile.am): Update langinfo.h rule.
2241
2242         iconv-h: Avoid #define replacements in C++ mode.
2243         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
2244         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
2245         symbol.
2246         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
2247         whenever iconv is present.
2248         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
2249         (Makefile.am): Update iconv.h rule.
2250
2251         glob: Avoid #define replacements in C++ mode.
2252         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
2253         (_gl_glob_errfunc_fn): New type.
2254         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
2255         symbol.
2256         * modules/glob (Depends-on): Add c++defs, warn-on-use.
2257         (Makefile.am): Update glob.h rule.
2258
2259         fcntl-h: Avoid #define replacements in C++ mode.
2260         * lib/fcntl.in.h: Include c++defs.h.
2261         (fcntl, open, openat): In C++, define a namespaced alias symbol.
2262         * modules/fcntl-h (Depends-on): Add c++defs.
2263         (Makefile.am): Update fcntl.h rule.
2264
2265         dirent: Avoid #define replacements in C++ mode.
2266         * lib/dirent.in.h: Include c++defs.h.
2267         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
2268         namespaced alias symbol.
2269         (dirfd): Update declaration.
2270         * modules/dirent (Depends-on): Add c++defs.
2271         (Makefile.am): Update dirent.h rule.
2272
2273         ctype: Make it usable in C++ code.
2274         * lib/ctype.in.h: Include c++defs.h.
2275         (isblank): Declare as extern "C".
2276         * modules/ctype (Depends-on): Add c++defs.
2277         (Makefile.am): Update ctype.h rule.
2278
2279         New module 'c++defs'.
2280         * modules/c++defs: New file.
2281         * build-aux/c++defs.h: New file.
2282         Reported by John W. Eaton <jwe@gnu.org>.
2283
2284 2010-03-07  Bruno Haible  <bruno@clisp.org>
2285
2286         logb: Provide missing declaration for Cygwin.
2287         * lib/math.in.h (logb): New declaration.
2288         * m4/logb.m4: New file.
2289         * modules/logb (Files): Add m4/logb.m4.
2290         (Depends-on): Add math.
2291         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
2292         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
2293         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
2294         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
2295         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
2296
2297 2010-03-07  Bruno Haible  <bruno@clisp.org>
2298
2299         Fix test-cond link error.
2300         * tests/test-cond.c: Include <stdio.h>.
2301
2302 2010-03-07  Bruno Haible  <bruno@clisp.org>
2303
2304         Fix test-dirent-safer link error.
2305         * modules/dirent-safer-tests (Makefile.am): Define
2306         test_dirent_safer_LDADD.
2307
2308 2010-03-07  Bruno Haible  <bruno@clisp.org>
2309
2310         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
2311         among default module list.
2312
2313 2010-03-07  Bruno Haible  <bruno@clisp.org>
2314
2315         Fix link error on platforms with GNU libiconv.
2316         * modules/unistr/u8-strcoll-tests (Makefile): Define
2317         test_u8_strcoll_LDADD.
2318         * modules/unistr/u16-strcoll-tests (Makefile): Define
2319         test_u16_strcoll_LDADD.
2320         * modules/unistr/u32-strcoll-tests (Makefile): Define
2321         test_u32_strcoll_LDADD.
2322
2323 2010-03-07  Bruno Haible  <bruno@clisp.org>
2324
2325         Use POSIX declarations for socket functions.
2326         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
2327         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
2328         rpl_sendto): Change declaration to match POSIX.
2329         * lib/connect.c (rpl_connect): Likewise.
2330         * lib/accept.c (rpl_accept): Likewise.
2331         * lib/bind.c (rpl_bind): Likewise.
2332         * lib/getpeername.c (rpl_getpeername): Likewise.
2333         * lib/getsockname.c (rpl_getsockname): Likewise.
2334         * lib/recv.c (rpl_recv): Likewise.
2335         * lib/send.c (rpl_send): Likewise.
2336         * lib/recvfrom.c (rpl_recvfrom): Likewise.
2337         * lib/sendto.c (rpl_sendto): Likewise.
2338
2339 2010-03-06  Bruno Haible  <bruno@clisp.org>
2340
2341         Clarify access, euidaccess, faccessat.
2342         * doc/posix-functions/faccessat.texi: Mention security problem under
2343         "Other problems", not "Portability problems".
2344         * doc/posix-functions/access.texi: Likewise. Mention a related security
2345         problem.
2346         * doc/glibc-functions/euidaccess.texi: Mention security problems.
2347         * lib/euidaccess.c: Add comments about platforms.
2348         * lib/unistd.in.h (access, euidaccess): Add warnings.
2349
2350 2010-03-07  Bruno Haible  <bruno@clisp.org>
2351
2352         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
2353         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
2354         (POSIX_SPAWN_SETSCHEDULER): Likewise.
2355         (POSIX_SPAWN_USEVFORK): Define in a way that works when
2356         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
2357         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
2358         declare when POSIX_SPAWN_SETSCHEDULER is zero.
2359         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
2360         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
2361         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
2362         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
2363         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
2364         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
2365         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
2366         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
2367         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
2368         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
2369         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
2370         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
2371         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
2372         Likewise.
2373         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
2374         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
2375         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
2376         Likewise.
2377         * tests/test-spawn.c (main): Make it work when
2378         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
2379
2380 2010-03-07  Bruno Haible  <bruno@clisp.org>
2381
2382         Fix incorrect Makefile.am generation in German locale.
2383         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
2384         Execute sed command with character range in C locale.
2385
2386 2010-03-06  Bruno Haible  <bruno@clisp.org>
2387
2388         Tests for module 'iconv-h'.
2389         * modules/iconv-h-tests: New file.
2390         * tests/test-iconv-h.c: New file.
2391
2392         New module 'iconv-h'.
2393         * modules/iconv-h: New file.
2394         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
2395         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
2396         (configure.ac): Remove gl_ICONV_H.
2397         (Makefile.am): Remove rule for iconv.h.
2398
2399 2010-03-06  Bruno Haible  <bruno@clisp.org>
2400
2401         More consistent naming of *.m4 files.
2402         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
2403         * modules/wctype (Files): Update.
2404
2405         More consistent naming of *.m4 files.
2406         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
2407         * modules/wchar (Files): Update.
2408
2409 2010-03-06  Jim Meyering  <meyering@redhat.com>
2410
2411         euidaccess: relax license to LGPLv2+
2412         * modules/euidaccess (License): Relax to LGPLv2+.
2413
2414 2010-03-06  Bruno Haible  <bruno@clisp.org>
2415
2416         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
2417         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
2418         (Makefile.am): Augment lib_SOURCES instead.
2419
2420 2010-03-04  Jim Meyering  <meyering@redhat.com>
2421
2422         utime: remove obsolete module
2423         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
2424         unnecessary for years, and has been marked as obsolete for 10 months.
2425         * modules/utime: Remove file.
2426         * lib/utime.c: Remove file.
2427         * m4/utime.m4: Remove file.
2428         * m4/utimes-null.m4: Remove file.
2429         * doc/posix-functions/utime.texi (utime): Remove reference to
2430         the module.  Move the sole "fixed by gnulib" item into the
2431         "problems not fixed by Gnulib" list.
2432         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
2433
2434 2010-03-05  Simon Josefsson  <simon@josefsson.org>
2435
2436         * modules/exit (License): Relax license to LGPLv2+.
2437         (Status): Mark as obsolete.
2438         * NEWS: Mention deprecated 'exit' module.
2439         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
2440         of now obsolete 'exit'.
2441
2442 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2443
2444         fts-lgpl: remove unused module
2445         * modules/fts-lgpl: Remove.
2446         * MODULES.html.sh (func_all_modules): Adjust.
2447         * check-module (find_included_lib_files): Adjust.
2448         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
2449
2450 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
2451
2452         copy-acl: enhance Solaris ACL error handling
2453         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
2454         * lib/set-mode-acl.c (qset_acl): Likewise.
2455
2456 2010-03-02  Bruno Haible  <bruno@clisp.org>
2457
2458         spawn: Don't override the system defined values on FreeBSD 8.
2459         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
2460         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
2461         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
2462         if HAVE_POSIX_SPAWN is 1.
2463         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
2464
2465 2010-03-01  Bruno Haible  <bruno@clisp.org>
2466
2467         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
2468         regarding Automake.
2469
2470 2010-02-25  Bruno Haible  <bruno@clisp.org>
2471
2472         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
2473         * gnulib-tool: Define 'echo' as a function only before the ksh alias
2474         setting, not afterwards.
2475         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
2476
2477 2010-02-24  Eric Blake  <eblake@redhat.com>
2478
2479         bootstrap, git-version-gen: use timestamp
2480         * build-aux/git-version-gen (scriptversion): Force UTC.
2481         * build-aux/bootstrap (scriptversion): New variable.
2482
2483         bootstrap: allow older git
2484         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
2485         older than 1.6.4.  Requested by the libvirt project.
2486
2487 2010-02-23  Eric Blake  <eblake@redhat.com>
2488
2489         warn-on-use: work with old autoconf
2490         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
2491         AS_VAR semantics of autoconf 2.60.
2492         Reported by Bruno Haible.
2493
2494         bootstrap: improve some comments
2495         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
2496         clarification comments.
2497
2498         gettimeofday: provide correct function
2499         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
2500         when replacement is declared, otherwise provide gettimeofday.
2501         Reported by Michael Goffioul.
2502
2503 2010-02-23  Jim Meyering  <meyering@redhat.com>
2504
2505         lib-ignore: relax license to "unlimited", not LGPLv2+
2506         * modules/lib-ignore (License): Relax to "unlimited".
2507
2508 2010-02-23  Jim Meyering  <meyering@redhat.com>
2509
2510         lib-ignore: relax license to LGPLv2+
2511         * modules/lib-ignore (License): Relax to LGPLv2+.
2512
2513 2010-02-22  Eric Blake  <eblake@redhat.com>
2514
2515         lseek: avoid bash 3.2 broken pipe bug
2516         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
2517         warning from bash 3.2.
2518         Reported by Ben Pfaff, with analysis from Bruno Haible.
2519
2520         bootstrap: support non-FSF copyright holder
2521         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
2522         bootstrap.conf override of COPYRIGHT_HOLDER.
2523         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
2524
2525         bootstrap: interoperate with gettext 0.14.1
2526         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
2527
2528         bootstrap: allow for alternate submodule location
2529         * build-aux/bootstrap (gnulib_path): New variable; use instead of
2530         hardcoding submodule location.
2531         (gnulib_mk): Allow direct use of Makefile.am.
2532
2533         bootstrap: use GNULIB_SRCDIR to reduce disk usage
2534         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
2535         rather than reconfiguring where the submodule points.
2536
2537         gettimeofday: restore support for platforms that lack function
2538         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
2539         replacement if function is missing.
2540         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
2541         * modules/sys_time (Makefile.am): Substitute it.
2542         * lib/sys_time.in.h (gettimeofday): Check it.
2543         Reported by Michael Goffioul.
2544
2545 2010-02-21  Bruno Haible  <bruno@clisp.org>
2546
2547         * lib/stdio.in.h (obstack_printf): Fix typo.
2548
2549 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
2550
2551         vc-list-files: use bzr ls's -R option
2552         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
2553         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
2554
2555 2010-02-21  Jim Meyering  <meyering@redhat.com>
2556
2557         init.sh: fix EXEEXT shims to work also for names like test-prog
2558         * tests/init.sh: Re-exec a better shell, when needed.
2559         If the current shell lacks support for posix $(...), an init.sh-using
2560         test will now try to find a shell that supports that.  If EXEEXT is
2561         nonempty, we also require support for hyphen-in-alias-name and shell
2562         substitutions like ${var#glob}.  Failure to find such a shell results
2563         in a skipped test.
2564
2565 2010-02-21  Bruno Haible  <bruno@clisp.org>
2566
2567         Really work around around "broken pipe" error message from bash 3.2.
2568         * gnulib-tool (func_reset_sigpipe): Remove function.
2569         (echo): In bash 3.2, define to a function that uses printf.
2570         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
2571
2572 2010-02-20  Bruno Haible  <bruno@clisp.org>
2573
2574         Restore support for automake 1.9.6 with autoconf 2.61.
2575         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
2576         Reported by James Youngman <jay@gnu.org>.
2577
2578 2010-02-20  Bruno Haible  <bruno@clisp.org>
2579
2580         Improve *printf warning condition.
2581         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
2582         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
2583         and the function is overridden due to SIGPIPE emulation.
2584
2585 2010-02-20  Bruno Haible  <bruno@clisp.org>
2586
2587         * lib/stdio.in.h: Tweak comments.
2588
2589 2010-02-19  Bruno Haible  <bruno@clisp.org>
2590
2591         Make it easier to find modules. New gnulib-tool option '--find'.
2592         * gnulib-tool: New option --find.
2593         (func_usage): Document it.
2594         (func_sanitize_modulelist): New function, extracted from
2595         func_all_modules.
2596         (func_all_modules): Invoke it.
2597         * doc/gnulib-tool.texi (Which modules?): New node.
2598
2599 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
2600
2601         * lib/sys_select.in.h: Provide select replacement even if
2602         sys/select.h exists on a system, for Interix.
2603
2604 2010-02-18  Jim Meyering  <meyering@redhat.com>
2605
2606         init.sh: don't use $(...) just yet
2607         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
2608         to accommodate e.g., Solaris' /bin/sh.
2609
2610 2010-02-17  Bruno Haible  <bruno@clisp.org>
2611
2612         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
2613         Reported by Ludovic Courtès <ludo@gnu.org>.
2614
2615 2010-02-16  Simon Josefsson  <simon@josefsson.org>
2616
2617         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
2618         linking with -lintl.
2619
2620 2010-02-17  Simon Josefsson  <simon@josefsson.org>
2621
2622         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
2623         if not provided by the system's netdb.h.  Reported by
2624         ludo@gnu.org (Ludovic Courtès).
2625
2626 2010-02-15  Jim Meyering  <meyering@redhat.com>
2627
2628         init.sh: improve portability and efficiency
2629         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
2630         "dummy" in a for loop.
2631         Use '!', not '^' to select the complement of a character set used
2632         in a "case" statement.
2633         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
2634         Suggestions from Eric Blake.
2635
2636         init.sh: automatically accommodate programs with the .exe suffix
2637         Automatically arrange for an invocation of "prog" to execute the
2638         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
2639         may use the simpler "prog", yet still work when built on a system
2640         that requires specifying the added suffix.
2641         Do this by constructing a function named "prog" that invokes
2642         "prog.exe" for each .exe file in selected directories.
2643         * tests/init.sh (find_exe_basenames_): New function.
2644         (create_exe_shim_functions_): New function.
2645         (path_prepend_): Use it.
2646
2647         maint.mk: mark syntax-check sc_*.m rules as .PHONY
2648         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
2649         "make -t syntax-check" doesn't create a ton of sc_*.m files.
2650
2651 2010-02-14  Jim Meyering  <meyering@redhat.com>
2652
2653         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
2654         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
2655         (sc_prohibit_hash_pjw_without_use): New rule.
2656
2657         maint.mk: allow the default upload destination dir to be overridden
2658         * top/maint.mk (upload_dest_dir_): Define with a default that
2659         preserves the status quo.
2660         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
2661         Reported by Peter Simons.
2662
2663         maint.mk: prohibit inclusion of "hash.h" without_use
2664         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
2665
2666 2010-02-10  Jim Meyering  <meyering@redhat.com>
2667
2668         maint.mk: prohibit inclusion of "ignore-value.h" without_use
2669         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
2670
2671 2010-02-09  Eric Blake  <ebb9@byu.net>
2672         and Bruno Haible  <bruno@clisp.org>
2673
2674         obstack-printf-posix: ensure declaration
2675         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
2676         extracted from gl_FUNC_OBSTACK_PRINTF.
2677         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
2678         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
2679         Likewise.
2680         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
2681         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
2682         0.
2683
2684 2010-02-08  Bruno Haible  <bruno@clisp.org>
2685
2686         gnulib-tool: Fix typo in 2010-02-07 commit.
2687         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
2688         Reported by Eric Blake.
2689
2690 2010-02-07  Bruno Haible  <bruno@clisp.org>
2691
2692         gnulib-tool: Fix up caching patches.
2693         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
2694         option --no-cache. Use associative arrays when supported by the shell.
2695         (sed_comments): New variable.
2696         (modcache): Renamed from do_cache.
2697         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
2698         abbreviate unnecessarily.
2699         (have_associative): New variable.
2700         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
2701         way also for ksh and zsh.
2702         (func_init_sed_convert_to_cache_statements): New function, extracted
2703         from func_cache_lookup_module. Add support for associative arrays.
2704         Don't set the c_MODULE_cached variable here. Ignore all lines before
2705         the first field header. Remove only the final newline, not all trailing
2706         newlines. Support empty fields correctly. Limit the use of 'eval' to
2707         assignments.
2708         (func_get_description, func_get_status, func_get_notice,
2709         func_get_applicability, func_get_filelist, func_get_dependencies,
2710         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
2711         func_get_automake_snippet, func_get_include_directive,
2712         func_get_link_directive, func_get_license, func_get_maintainer):
2713         Update documentation. List the unoptimized code first. Add support for
2714         associative arrays. Limit the use of 'eval' to assignments.
2715         (func_get_applicability): Undo stylistic pessimisations.
2716         (func_get_automake_snippet, func_get_include_directive): Reduce code
2717         duplication.
2718         (func_modules_transitive_closure, func_modules_add_dummy,
2719         func_modules_notice, func_modules_to_filelist, func_add_file,
2720         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
2721         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
2722         func_create_testdir, func_create_megatestdir): Update documentation.
2723
2724 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2725
2726         * gnulib-tool (func_cache_lookup_module): Store the module name
2727         belonging to the cache variable; error out if two different
2728         module names map to the same cache variable name.
2729
2730 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2731
2732         gnulib-tool: Make caching optional.
2733         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
2734         Update matching short versions of --no-changelog.
2735         (func_usage): Update.
2736         (sed_extract_cache_prog): Renamed from ...
2737         (sed_extract_prog): ... this; revert to old extraction script.
2738         (func_get_description, func_get_status)
2739         (func_get_notice, func_get_applicability, func_get_filelist)
2740         (func_get_dependencies, func_get_autoconf_early_snippet)
2741         (func_get_autoconf_snippet, func_get_automake_snippet)
2742         (func_get_include_directive, func_get_link_directive)
2743         (func_get_license, func_get_maintainer): If $do_cache is false,
2744         use old, non-caching extraction scripts.
2745         Suggestion by Bruno Haible.
2746
2747 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2748
2749         gnulib-tool: cache module metainformation.
2750         * gnulib-tool (sed_extract_prog): Match newline before each
2751         header, and rewrite header to a shell variable suffix.
2752         (func_cache_var, func_cache_lookup_module): New functions,
2753         to turn a module name into a cache variable prefix, and to
2754         look up and cache module metainformation.
2755         (func_get_description, func_get_status)
2756         (func_get_notice, func_get_applicability, func_get_filelist)
2757         (func_get_dependencies, func_get_autoconf_early_snippet)
2758         (func_get_autoconf_snippet, func_get_automake_snippet)
2759         (func_get_include_directive, func_get_link_directive)
2760         (func_get_license, func_get_maintainer): Use
2761         func_cache_lookup_module.
2762
2763 2010-02-07  Bruno Haible  <bruno@clisp.org>
2764
2765         fnctl: Fix missing dependency.
2766         * modules/fcntl (Depends-on): Add getdtablesize.
2767         Reported by John W. Eaton <jwe@gnu.org>.
2768
2769 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
2770
2771         Argp: fix recognition of short alias options.
2772
2773         * lib/argp-parse.c (convert_options): Fix improper use of
2774         `|' between character values.
2775         * tests/test-argp.c (group1_option): New alias option
2776         --read (-r).
2777         (group1_parser): Special handling for 'r'.
2778         (test15): New test case.
2779         (test_fun): Add test15.
2780         * tests/test-argp-2.sh: Update expected --help and --usage
2781         outputs.
2782
2783 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
2784
2785         * tests/test-argp.c: Fix indentation.
2786
2787 2010-02-04  Eric Blake  <ebb9@byu.net>
2788
2789         gettimeofday: expose type of second argument
2790         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
2791         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
2792         * tests/test-gettimeofday.c: Use it to silence warning.
2793         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
2794         the issue.
2795
2796 2010-02-03  Jim Meyering  <meyering@redhat.com>
2797
2798         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
2799         * lib/regcomp.c (TYPE_SIGNED): Define.
2800         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
2801
2802         regcomp.c: avoid a new -Wshadow warning
2803         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
2804
2805 2010-02-01  Jim Meyering  <meyering@redhat.com>
2806
2807         removing useless parentheses in cpp #define directives
2808         For motivation, see commit c0221df4, "define STREQ(a,b)
2809         consistently, removing useless parentheses"
2810         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
2811         * lib/mountlist.c (MNT_IGNORE): Likewise.
2812         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
2813
2814 2010-02-01  Eric Blake  <ebb9@byu.net>
2815
2816         sys_time: use link-warning
2817         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
2818         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
2819         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
2820         * modules/sys_time (Depends-on): Add warn-on-use.
2821         (Makefile.am): Always build replacement.
2822         (configure.ac): Update substitutions.
2823         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
2824         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
2825         bother with SYS_TIME_H.
2826         * modules/gettimeofday (configure.ac): Declare indicator.
2827         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
2828         in use.
2829
2830         closein-tests: silence compiler warning
2831         * tests/test-closein.c (main): Ignore fread result.
2832         * modules/closein-tests (Depends-on): Add ignore-value.
2833
2834         tests: silence warning about system return
2835         * tests/test-areadlink-with-size.c (main): Ignore system result.
2836         * tests/test-areadlink.c (main): Likewise.
2837         * tests/test-areadlinkat-with-size.c (main): Likewise.
2838         * tests/test-areadlinkat.c (main): Likewise.
2839         * tests/test-canonicalize-lgpl.c (main): Likewise.
2840         * tests/test-canonicalize.c (main): Likewise.
2841         * tests/test-chown.c (main): Likewise.
2842         * tests/test-fchownat.c (main): Likewise.
2843         * tests/test-fdutimensat.c (main): Likewise.
2844         * tests/test-fstatat.c (main): Likewise.
2845         * tests/test-futimens.c (main): Likewise.
2846         * tests/test-lchown.c (main): Likewise.
2847         * tests/test-link.c (main): Likewise.
2848         * tests/test-linkat.c (main): Likewise.
2849         * tests/test-lstat.c (main): Likewise.
2850         * tests/test-mkdir.c (main): Likewise.
2851         * tests/test-mkdirat.c (main): Likewise.
2852         * tests/test-mkfifo.c (main): Likewise.
2853         * tests/test-mkfifoat.c (main): Likewise.
2854         * tests/test-mknod.c (main): Likewise.
2855         * tests/test-readlink.c (main): Likewise.
2856         * tests/test-remove.c (main): Likewise.
2857         * tests/test-rename.c (main): Likewise.
2858         * tests/test-renameat.c (main): Likewise.
2859         * tests/test-rmdir.c (main): Likewise.
2860         * tests/test-symlink.c (main): Likewise.
2861         * tests/test-symlinkat.c (main): Likewise.
2862         * tests/test-unlink.c (main): Likewise.
2863         * tests/test-unlinkat.c (main): Likewise.
2864         * tests/test-utimens.c (main): Likewise.
2865         * tests/test-utimensat.c (main): Likewise.
2866         * modules/areadlink-tests (Depends-on): Add ignore-value.
2867         * modules/areadlink-with-size-tests (Depends-on): Likewise.
2868         * modules/areadlinkat-tests (Depends-on): Likewise.
2869         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
2870         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
2871         * modules/canonicalize-tests (Depends-on): Likewise.
2872         * modules/chown-tests (Depends-on): Likewise.
2873         * modules/fdutimensat-tests (Depends-on): Likewise.
2874         * modules/futimens-tests (Depends-on): Likewise.
2875         * modules/lchown-tests (Depends-on): Likewise.
2876         * modules/link-tests (Depends-on): Likewise.
2877         * modules/linkat-tests (Depends-on): Likewise.
2878         * modules/lstat-tests (Depends-on): Likewise.
2879         * modules/mkdir-tests (Depends-on): Likewise.
2880         * modules/mkfifo-tests (Depends-on): Likewise.
2881         * modules/mkfifoat-tests (Depends-on): Likewise.
2882         * modules/mknod-tests (Depends-on): Likewise.
2883         * modules/openat-tests (Depends-on): Likewise.
2884         * modules/readlink-tests (Depends-on): Likewise.
2885         * modules/remove-tests (Depends-on): Likewise.
2886         * modules/rename-tests (Depends-on): Likewise.
2887         * modules/renameat-tests (Depends-on): Likewise.
2888         * modules/rmdir-tests (Depends-on): Likewise.
2889         * modules/symlink-tests (Depends-on): Likewise.
2890         * modules/symlinkat-tests (Depends-on): Likewise.
2891         * modules/unlink-tests (Depends-on): Likewise.
2892         * modules/utimens-tests (Depends-on): Likewise.
2893         * modules/utimensat-tests (Depends-on): Likewise.
2894
2895 2010-01-31  Bruno Haible  <bruno@clisp.org>
2896
2897         Perform the same test for many <math.h> functions.
2898         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
2899         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
2900         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
2901         of gl_MATHFUNC.
2902         * modules/acos (configure.ac): Likewise.
2903         * modules/asin (configure.ac): Likewise.
2904         * modules/atan (configure.ac): Likewise.
2905         * modules/atan2 (configure.ac): Likewise.
2906         * modules/cbrt (configure.ac): Likewise.
2907         * modules/copysign (configure.ac): Likewise.
2908         * modules/cos (configure.ac): Likewise.
2909         * modules/cosh (configure.ac): Likewise.
2910         * modules/erf (configure.ac): Likewise.
2911         * modules/erfc (configure.ac): Likewise.
2912         * modules/exp (configure.ac): Likewise.
2913         * modules/fmod (configure.ac): Likewise.
2914         * modules/hypot (configure.ac): Likewise.
2915         * modules/j0 (configure.ac): Likewise.
2916         * modules/j1 (configure.ac): Likewise.
2917         * modules/jn (configure.ac): Likewise.
2918         * modules/lgamma (configure.ac): Likewise.
2919         * modules/log (configure.ac): Likewise.
2920         * modules/log10 (configure.ac): Likewise.
2921         * modules/log1p (configure.ac): Likewise.
2922         * modules/pow (configure.ac): Likewise.
2923         * modules/remainder (configure.ac): Likewise.
2924         * modules/sin (configure.ac): Likewise.
2925         * modules/sinh (configure.ac): Likewise.
2926         * modules/tan (configure.ac): Likewise.
2927         * modules/tanh (configure.ac): Likewise.
2928         * modules/y0 (configure.ac): Likewise.
2929         * modules/y1 (configure.ac): Likewise.
2930         * modules/yn (configure.ac): Likewise.
2931         Suggested by Paolo Bonzini.
2932
2933 2010-01-31  Bruno Haible  <bruno@clisp.org>
2934
2935         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
2936
2937 2010-01-31  Bruno Haible  <bruno@clisp.org>
2938
2939         Work around getdelim() bug on FreeBSD 8.0.
2940         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
2941         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
2942         not work.
2943         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
2944         is 1.
2945         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
2946         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
2947         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
2948         a non-zero size.
2949         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
2950
2951 2010-01-31  Bruno Haible  <bruno@clisp.org>
2952
2953         Work around getline() bug on FreeBSD 8.0.
2954         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
2955         and a non-zero size.
2956         * tests/test-getline.c (main): Likewise.
2957         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
2958         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
2959
2960 2010-01-28  Eric Blake  <ebb9@byu.net>
2961
2962         regex: fix build failure
2963         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
2964         platforms.
2965
2966 2010-01-28  Jim Meyering  <meyering@redhat.com>
2967
2968         regex: do not ignore memory allocation failure
2969         * lib/regex_internal.c (create_cd_newstate): Detect
2970         re_node_set_init_copy failure.   Extracted from glibc commit
2971         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
2972
2973         regex: sync more white-space changes from libc
2974         * lib/regex_internal.c: White-space only changes.
2975         * lib/regexec.c: Likewise.
2976
2977         regex: add many uses of __attribute_warn_unused_result__
2978         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
2979         * lib/regexec.c: Likewise.
2980         Extracted from a messy glibc commit.
2981
2982         regcomp.c: spelling and merge-artifact from glibc
2983         * lib/regcomp.c: Merge remainder of glibc's
2984         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
2985
2986         regcomp.c: sync white-space changes from glibc
2987         * lib/regcomp.c: Merge to accommodate white space
2988         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
2989
2990         regcomp.c: do not ignore internal return values
2991         * lib/regcomp.c: Do not ignore internal return values.
2992         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
2993         but without its white-space changes and spelling fixes.
2994
2995         regex_internal.h: define __attribute_warn_unused_result__
2996         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
2997
2998         maint: add a syntax-check rule to check for vulnerable Makefile.in
2999         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
3000
3001 2010-01-27  Jim Meyering  <meyering@redhat.com>
3002
3003         ncftpput-ftp: clean up spaces
3004         * build-aux/ncftpput-ftp: Make Copyright line consistent.
3005         Remove trailing blanks.
3006
3007 2010-01-27  Simon Josefsson  <simon@josefsson.org>
3008
3009         * build-aux/git-version-gen: Fix copyright statement.
3010         * build-aux/gnupload: Likewise.
3011         * tests/test-arcfour.c: Likewise.
3012         * tests/test-arctwo.c: Likewise.
3013         * tests/test-count-one-bits.c: Likewise.
3014         * tests/test-crc.c: Likewise.
3015         * tests/test-des.c: Likewise.
3016         * tests/test-gc-arcfour.c: Likewise.
3017         * tests/test-gc-arctwo.c: Likewise.
3018         * tests/test-gc-des.c: Likewise.
3019         * tests/test-gc-hmac-md5.c: Likewise.
3020         * tests/test-gc-hmac-sha1.c: Likewise.
3021         * tests/test-gc-md2.c: Likewise.
3022         * tests/test-gc-md4.c: Likewise.
3023         * tests/test-gc-md5.c: Likewise.
3024         * tests/test-gc-pbkdf2-sha1.c: Likewise.
3025         * tests/test-gc-rijndael.c: Likewise.
3026         * tests/test-gc-sha1.c: Likewise.
3027         * tests/test-gc.c: Likewise.
3028         * tests/test-gethostname.c: Likewise.
3029         * tests/test-gettimeofday.c: Likewise.
3030         * tests/test-hash.c: Likewise.
3031         * tests/test-hmac-md5.c: Likewise.
3032         * tests/test-hmac-sha1.c: Likewise.
3033         * tests/test-md2.c: Likewise.
3034         * tests/test-md4.c: Likewise.
3035         * tests/test-md5.c: Likewise.
3036         * tests/test-memchr.c: Likewise.
3037         * tests/test-memchr2.c: Likewise.
3038         * tests/test-memcmp.c: Likewise.
3039         * tests/test-memmem.c: Likewise.
3040         * tests/test-memrchr.c: Likewise.
3041         * tests/test-rawmemchr.c: Likewise.
3042         * tests/test-read-file.c: Likewise.
3043         * tests/test-rijndael.c: Likewise.
3044         * tests/test-sockets.c: Likewise.
3045         * tests/test-strchrnul.c: Likewise.
3046         * tests/test-strstr.c: Likewise.
3047         * tests/test-strtod.c: Likewise.
3048         * build-aux/ncftpput-ftp: Likewise.
3049
3050 2010-01-26  Eric Blake  <ebb9@byu.net>
3051
3052         ignore-value: update recommended header name
3053         * modules/ignore-value (Include): Only use <> for headers that
3054         exist in glibc.
3055
3056 2010-01-26  Jim Meyering  <meyering@redhat.com>
3057
3058         test-userspec.c: avoid compiler warnings
3059         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
3060         and "initialization discards qualifiers..." warnings.
3061         Put the first "uid" in its own scope, and make char* members "const".
3062
3063 2010-01-25  Bruno Haible  <bruno@clisp.org>
3064
3065         gnulib-tool: Make warning diagnostics consistent.
3066         * gnulib-tool (func_warning): New function.
3067         Use it everywhere where gnulib-tool produces output to stderr and it is
3068         not a fatal error.
3069
3070 2010-01-25  Bruno Haible  <bruno@clisp.org>
3071
3072         Fix test dependencies.
3073         * modules/xstrtol-tests (Depends-on): Add inttypes.
3074         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
3075
3076 2010-01-25 Pádraig Brady <P@draigBrady.com>
3077
3078         syntax-check: detect incorrect boolean macro values in config.h
3079         * modules/maintainer-makefile (configure.ac): Parameterize the location
3080         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
3081         The logic is from Eric Blake and the location indicated by Jim Meyering.
3082         Note the more natural CONFIG_HEADER name is prohibited by automake
3083         for backwards compatibility reasons.
3084         * top/maint.mk (sc_Wundef_boolean): New rule.
3085
3086 2010-01-25  Jim Meyering  <meyering@redhat.com>
3087
3088         bootstrap: detect MacOS 10.6's shasum, too
3089         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
3090         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
3091
3092 2010-01-23  Jim Meyering  <meyering@redhat.com>
3093
3094         xstrtoll: new module
3095         * modules/xstrtoll: New file.
3096         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
3097         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
3098         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
3099         ./configure fails if you use this module and lack "long long".
3100         * modules/xstrtoll-tests: New module.
3101         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
3102         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
3103         new init.sh-based test framework.
3104
3105 2010-01-24  Bruno Haible  <bruno@clisp.org>
3106
3107         Tests for module 'yn'.
3108         * modules/yn-tests: New file.
3109         * tests/test-yn.c: New file.
3110
3111         Tests for module 'y1'.
3112         * modules/y1-tests: New file.
3113         * tests/test-y1.c: New file.
3114
3115         Tests for module 'y0'.
3116         * modules/y0-tests: New file.
3117         * tests/test-y0.c: New file.
3118
3119         Tests for module 'tanh'.
3120         * modules/tanh-tests: New file.
3121         * tests/test-tanh.c: New file.
3122
3123         Tests for module 'tan'.
3124         * modules/tan-tests: New file.
3125         * tests/test-tan.c: New file.
3126
3127         Tests for module 'sqrt'.
3128         * modules/sqrt-tests: New file.
3129         * tests/test-sqrt.c: New file.
3130
3131         Tests for module 'sinh'.
3132         * modules/sinh-tests: New file.
3133         * tests/test-sinh.c: New file.
3134
3135         Tests for module 'sin'.
3136         * modules/sin-tests: New file.
3137         * tests/test-sin.c: New file.
3138
3139         Tests for module 'rint'.
3140         * modules/rint-tests: New file.
3141         * tests/test-rint.c: New file.
3142
3143         Tests for module 'remainder'.
3144         * modules/remainder-tests: New file.
3145         * tests/test-remainder.c: New file.
3146
3147         Tests for module 'pow'.
3148         * modules/pow-tests: New file.
3149         * tests/test-pow.c: New file.
3150
3151         Tests for module 'nextafter'.
3152         * modules/nextafter-tests: New file.
3153         * tests/test-nextafter.c: New file.
3154
3155         Tests for module 'modf'.
3156         * modules/modf-tests: New file.
3157         * tests/test-modf.c: New file.
3158
3159         Tests for module 'logb'.
3160         * modules/logb-tests: New file.
3161         * tests/test-logb.c: New file.
3162
3163         Tests for module 'log1p'.
3164         * modules/log1p-tests: New file.
3165         * tests/test-log1p.c: New file.
3166
3167         Tests for module 'log10'.
3168         * modules/log10-tests: New file.
3169         * tests/test-log10.c: New file.
3170
3171         Tests for module 'log'.
3172         * modules/log-tests: New file.
3173         * tests/test-log.c: New file.
3174
3175         Tests for module 'lgamma'.
3176         * modules/lgamma-tests: New file.
3177         * tests/test-lgamma.c: New file.
3178
3179         Tests for module 'ldexp'.
3180         * modules/ldexp-tests: New file.
3181         * tests/test-ldexp.c: New file.
3182
3183         Tests for module 'jn'.
3184         * modules/jn-tests: New file.
3185         * tests/test-jn.c: New file.
3186
3187         Tests for module 'j1'.
3188         * modules/j1-tests: New file.
3189         * tests/test-j1.c: New file.
3190
3191         Tests for module 'j0'.
3192         * modules/j0-tests: New file.
3193         * tests/test-j0.c: New file.
3194
3195         Tests for module 'hypot'.
3196         * modules/hypot-tests: New file.
3197         * tests/test-hypot.c: New file.
3198
3199         Tests for module 'fmod'.
3200         * modules/fmod-tests: New file.
3201         * tests/test-fmod.c: New file.
3202
3203         Tests for module 'fabs'.
3204         * modules/fabs-tests: New file.
3205         * tests/test-fabs.c: New file.
3206
3207         Tests for module 'exp'.
3208         * modules/exp-tests: New file.
3209         * tests/test-exp.c: New file.
3210
3211         Tests for module 'erfc'.
3212         * modules/erfc-tests: New file.
3213         * tests/test-erfc.c: New file.
3214
3215         Tests for module 'erf'.
3216         * modules/erf-tests: New file.
3217         * tests/test-erf.c: New file.
3218
3219         Tests for module 'cosh'.
3220         * modules/cosh-tests: New file.
3221         * tests/test-cosh.c: New file.
3222
3223         Tests for module 'cos'.
3224         * modules/cos-tests: New file.
3225         * tests/test-cos.c: New file.
3226
3227         Tests for module 'copysign'.
3228         * modules/copysign-tests: New file.
3229         * tests/test-copysign.c: New file.
3230
3231         Tests for module 'cbrt'.
3232         * modules/cbrt-tests: New file.
3233         * tests/test-cbrt.c: New file.
3234
3235         Tests for module 'atan2'.
3236         * modules/atan2-tests: New file.
3237         * tests/test-atan2.c: New file.
3238
3239         Tests for module 'atan'.
3240         * modules/atan-tests: New file.
3241         * tests/test-atan.c: New file.
3242
3243         Tests for module 'asin'.
3244         * modules/asin-tests: New file.
3245         * tests/test-asin.c: New file.
3246
3247         Tests for module 'acos'.
3248         * modules/acos-tests: New file.
3249         * tests/test-acos.c: New file.
3250
3251 2010-01-24  Bruno Haible  <bruno@clisp.org>
3252
3253         Fix tests for common <math.h> functions.
3254         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
3255         code snippet that references the function pointer, rather than merely
3256         calling the function. Substitute the FUNC_LIBM variable.
3257         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
3258         * modules/acos (configure.ac): Likewise.
3259         * modules/asin (configure.ac): Likewise.
3260         * modules/atan (configure.ac): Likewise.
3261         * modules/atan2 (configure.ac): Likewise.
3262         * modules/cbrt (configure.ac): Likewise.
3263         * modules/copysign (configure.ac): Likewise.
3264         * modules/cos (configure.ac): Likewise.
3265         * modules/cosh (configure.ac): Likewise.
3266         * modules/erf (configure.ac): Likewise.
3267         * modules/erfc (configure.ac): Likewise.
3268         * modules/exp (configure.ac): Likewise.
3269         * modules/fabs (configure.ac): Likewise.
3270         * modules/fmod (configure.ac): Likewise.
3271         * modules/hypot (configure.ac): Likewise.
3272         * modules/j0 (configure.ac): Likewise.
3273         * modules/j1 (configure.ac): Likewise.
3274         * modules/jn (configure.ac): Likewise.
3275         * modules/ldexp (configure.ac): Likewise.
3276         * modules/lgamma (configure.ac): Likewise.
3277         * modules/log (configure.ac): Likewise.
3278         * modules/log10 (configure.ac): Likewise.
3279         * modules/log1p (configure.ac): Likewise.
3280         * modules/logb (configure.ac): Likewise.
3281         * modules/modf (configure.ac): Likewise.
3282         * modules/nextafter (configure.ac): Likewise.
3283         * modules/pow (configure.ac): Likewise.
3284         * modules/remainder (configure.ac): Likewise.
3285         * modules/rint (configure.ac): Likewise.
3286         * modules/sin (configure.ac): Likewise.
3287         * modules/sinh (configure.ac): Likewise.
3288         * modules/tan (configure.ac): Likewise.
3289         * modules/tanh (configure.ac): Likewise.
3290         * modules/y0 (configure.ac): Likewise.
3291         * modules/y1 (configure.ac): Likewise.
3292         * modules/yn (configure.ac): Likewise.
3293
3294 2010-01-24  Bruno Haible  <bruno@clisp.org>
3295
3296         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
3297         * tests/test-acosl.c (x): New variable.
3298         (main): Store argument in x and fetch it from x.
3299         * tests/test-asinl.c (x): New variable.
3300         (main): Store argument in x and fetch it from x.
3301         * tests/test-atanl.c (x): New variable.
3302         (main): Store argument in x and fetch it from x.
3303         * tests/test-cosl.c (x): New variable.
3304         (main): Store argument in x and fetch it from x.
3305         * tests/test-expl.c (x): New variable.
3306         (main): Store argument in x and fetch it from x.
3307         * tests/test-logl.c (x): New variable.
3308         (main): Store argument in x and fetch it from x.
3309         * tests/test-sinl.c (x): New variable.
3310         (main): Store argument in x and fetch it from x.
3311         * tests/test-sqrtl.c (x): New variable.
3312         (main): Store argument in x and fetch it from x.
3313         * tests/test-tanl.c (x): New variable.
3314         (main): Store argument in x and fetch it from x.
3315
3316 2010-01-24  Bruno Haible  <bruno@clisp.org>
3317
3318         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
3319         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
3320         assignments to the initial TESTS_ENVIRONMENT.
3321         * doc/gnulib.texi (Unit test modules): Document it.
3322         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
3323         TESTS_ENVIRONMENT.
3324         * modules/btowc-tests (Makefile.am): Likewise.
3325         * modules/c-stack-tests (Makefile.am): Likewise.
3326         * modules/c-strcase-tests (Makefile.am): Likewise.
3327         * modules/copy-file-tests (Makefile.am): Likewise.
3328         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
3329         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
3330         * modules/mbrtowc-tests (Makefile.am): Likewise.
3331         * modules/mbscasecmp-tests (Makefile.am): Likewise.
3332         * modules/mbscasestr-tests (Makefile.am): Likewise.
3333         * modules/mbschr-tests (Makefile.am): Likewise.
3334         * modules/mbscspn-tests (Makefile.am): Likewise.
3335         * modules/mbsinit-tests (Makefile.am): Likewise.
3336         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
3337         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
3338         * modules/mbspbrk-tests (Makefile.am): Likewise.
3339         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
3340         * modules/mbsrchr-tests (Makefile.am): Likewise.
3341         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
3342         * modules/mbsspn-tests (Makefile.am): Likewise.
3343         * modules/mbsstr-tests (Makefile.am): Likewise.
3344         * modules/nl_langinfo-tests (Makefile.am): Likewise.
3345         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
3346         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
3347         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
3348         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
3349         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
3350         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
3351         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
3352         * modules/wcrtomb-tests (Makefile.am): Likewise.
3353         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
3354         * modules/wcsrtombs-tests (Makefile.am): Likewise.
3355         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
3356         assignments from TESTS_ENVIRONMENT.
3357         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
3358         augmentation.
3359         * modules/argp-version-etc-tests (Makefile.am): Likewise.
3360         * modules/atexit-tests (Makefile.am): Likewise.
3361         * modules/binary-io-tests (Makefile.am): Likewise.
3362         * modules/closein-tests (Makefile.am): Likewise.
3363         * modules/dprintf-posix-tests (Makefile.am): Likewise.
3364         * modules/exclude-tests (Makefile.am): Likewise.
3365         * modules/fflush-tests (Makefile.am): Likewise.
3366         * modules/fpending-tests (Makefile.am): Likewise.
3367         * modules/fprintf-posix-tests (Makefile.am): Likewise.
3368         * modules/freadahead-tests (Makefile.am): Likewise.
3369         * modules/freadptr-tests (Makefile.am): Likewise.
3370         * modules/freadseek-tests (Makefile.am): Likewise.
3371         * modules/fseek-tests (Makefile.am): Likewise.
3372         * modules/fseeko-tests (Makefile.am): Likewise.
3373         * modules/ftell-tests (Makefile.am): Likewise.
3374         * modules/ftello-tests (Makefile.am): Likewise.
3375         * modules/idpriv-drop-tests (Makefile.am): Likewise.
3376         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
3377         * modules/lseek-tests (Makefile.am): Likewise.
3378         * modules/parse-duration-tests (Makefile.am): Likewise.
3379         * modules/perror-tests (Makefile.am): Likewise.
3380         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
3381         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
3382         * modules/pipe-tests (Makefile.am): Likewise.
3383         * modules/pread-tests (Makefile.am): Likewise.
3384         * modules/printf-posix-tests (Makefile.am): Likewise.
3385         * modules/select-tests (Makefile.am): Likewise.
3386         * modules/sigpipe-tests (Makefile.am): Likewise.
3387         * modules/tsearch-tests (Makefile.am): Likewise.
3388         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
3389         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
3390         * modules/uniname/uniname-tests (Makefile.am): Likewise.
3391         * modules/uniwidth/width-tests (Makefile.am): Likewise.
3392         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
3393         * modules/version-etc-tests (Makefile.am): Likewise.
3394         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
3395         * modules/vprintf-posix-tests (Makefile.am): Likewise.
3396         * modules/xalloc-die-tests (Makefile.am): Likewise.
3397         * modules/xprintf-posix-tests (Makefile.am): Likewise.
3398         * modules/xstrtoimax-tests (Makefile.am): Likewise.
3399         * modules/xstrtol-tests (Makefile.am): Likewise.
3400         * modules/xstrtoumax-tests (Makefile.am): Likewise.
3401         * modules/yesno-tests (Makefile.am): Likewise.
3402         Suggested by Jim Meyering.
3403
3404 2010-01-24  Bruno Haible  <bruno@clisp.org>
3405
3406         More documentation.
3407         * doc/gnulib.texi (Writing modules): New chapter.
3408         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
3409         the new chapter.
3410
3411 2010-01-24  Jim Meyering  <meyering@redhat.com>
3412
3413         maint.mk: do not prepend "./" after filtering
3414         * top/maint.mk (_prepend_srcdir_prefix): New variable
3415         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
3416         "./" when $(srcdir) is ".".
3417
3418         define STREQ(a,b) consistently, removing useless parentheses
3419         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
3420         since the only risk is that "a" or "b" contains an unparenthesized
3421         comma, but if either did that, STREQ would have 3 or more arguments.
3422         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
3423         * lib/fts.c (STREQ): Remove unnecessary parentheses.
3424         * lib/hash-triple.c (STREQ): Likewise.
3425         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
3426         * lib/getugroups.c (STREQ): Likewise.
3427
3428 2010-01-23  Jim Meyering  <meyering@redhat.com>
3429
3430         maint.mk: fix syntax-check in a non-srcdir build directory
3431         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
3432         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
3433
3434 2010-01-22  Jim Meyering  <meyering@redhat.com>
3435
3436         userspec: add unit tests
3437         * tests/test-userspec.c: New file.
3438         * modules/userspec-tests: Likewise.
3439
3440 2010-01-21  Jim Meyering  <meyering@redhat.com>
3441
3442         maint.mk: handle source file names containing "." robustly
3443         * top/maint.mk (_dot_escaped_srcdir): Define.
3444         (VC_LIST): Use it in LHS of sed substitution.
3445
3446 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
3447
3448         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
3449         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
3450         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
3451         from a non-srcdir build.
3452
3453 2010-01-20  Eric Blake  <ebb9@byu.net>
3454
3455         warn-on-use: use instead of link-warning
3456         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
3457         * modules/unistd (Depends-on, Makefile.am): Likewise.
3458         * modules/arpa_inet (Depends-on): Replace link-warning with
3459         warn-on-use.
3460         (Makefile.am): Update rules accordingly.
3461         * modules/ctype (Depends-on, Makefile.am): Likewise.
3462         * modules/dirent (Depends-on, Makefile.am): Likewise.
3463         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
3464         * modules/inttypes (Depends-on, Makefile.am): Likewise.
3465         * modules/langinfo (Depends-on, Makefile.am): Likewise.
3466         * modules/locale (Depends-on, Makefile.am): Likewise.
3467         * modules/math (Depends-on, Makefile.am): Likewise.
3468         * modules/search (Depends-on, Makefile.am): Likewise.
3469         * modules/signal (Depends-on, Makefile.am): Likewise.
3470         * modules/spawn (Depends-on, Makefile.am): Likewise.
3471         * modules/stdlib (Depends-on, Makefile.am): Likewise.
3472         * modules/string (Depends-on, Makefile.am): Likewise.
3473         * modules/strings (Depends-on, Makefile.am): Likewise.
3474         * modules/sys_file (Depends-on, Makefile.am): Likewise.
3475         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
3476         * modules/sys_select (Depends-on, Makefile.am): Likewise.
3477         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
3478         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
3479         * modules/sys_times (Depends-on, Makefile.am): Likewise.
3480         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
3481         * modules/wchar (Depends-on, Makefile.am): Likewise.
3482         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
3483         should be poisoned.
3484         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
3485         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
3486         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
3487         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
3488         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
3489         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
3490         * m4/math_h.m4 (gl_MATH_H): Likewise.
3491         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
3492         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
3493         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
3494         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
3495         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
3496         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
3497         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
3498         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
3499         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
3500         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
3501         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
3502         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
3503         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
3504         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
3505         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
3506         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
3507         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
3508         GL_LINK_WARNING.
3509         * lib/ctype.in.h: Likewise.
3510         * lib/dirent.in.h: Likewise.
3511         * lib/fcntl.in.h: Likewise.
3512         * lib/inttypes.in.h: Likewise.
3513         * lib/langinfo.in.h: Likewise.
3514         * lib/locale.in.h: Likewise.
3515         * lib/math.in.h: Likewise.
3516         * lib/search.in.h: Likewise.
3517         * lib/signal.in.h: Likewise.
3518         * lib/spawn.in.h: Likewise.
3519         * lib/stdio.in.h: Likewise.
3520         * lib/stdlib.in.h: Likewise.
3521         * lib/string.in.h: Likewise.
3522         * lib/strings.in.h: Likewise.
3523         * lib/sys_file.in.h: Likewise.
3524         * lib/sys_ioctl.in.h: Likewise.
3525         * lib/sys_select.in.h: Likewise.
3526         * lib/sys_socket.in.h: Likewise.
3527         * lib/sys_stat.in.h: Likewise.
3528         * lib/sys_times.in.h: Likewise.
3529         * lib/sys_utsname.in.h: Likewise.
3530         * lib/unistd.in.h: Likewise.
3531         * lib/wchar.in.h: Likewise.
3532
3533 2010-01-20  Bruno Haible  <bruno@clisp.org>
3534
3535         Avoid duplicate -lm.
3536         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
3537         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
3538         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
3539         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
3540         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
3541         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
3542         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
3543         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
3544         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
3545         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
3546         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
3547         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
3548         Reported by Paolo Bonzini.
3549
3550 2010-01-19  Bruno Haible  <bruno@clisp.org>
3551
3552         langinfo, nl_langinfo: Relicense under LGPLv2+.
3553         * modules/langinfo (License): Change to LGPLv2+.
3554         * modules/nl_langinfo (License): Likewise.
3555         Patch by David Lutterkort <lutter@redhat.com>.
3556
3557 2010-01-19  Bruno Haible  <bruno@clisp.org>
3558
3559         Avoid compilation error with cc on OSF/1 5.1.
3560         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
3561         statement, not before.
3562         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3563
3564 2010-01-18  Bruno Haible  <bruno@clisp.org>
3565
3566         Avoid a link error due to the __printf__ symbol.
3567         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
3568         and 2.6.x.
3569         (__format__, __printf__): Remove definitions.
3570         * lib/argp-fmtstream.h: Likewise.
3571         * lib/argp.h: Likewise.
3572         * lib/error.h: Likewise.
3573         * lib/vasnprintf.h: Likewise.
3574         * lib/xprintf.h: Likewise.
3575         * lib/xvasprintf.h: Likewise.
3576         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3577
3578 2010-01-18  Bruno Haible  <bruno@clisp.org>
3579
3580         Tests for module 'tanl'.
3581         * modules/tanl-tests: New file.
3582         * tests/test-tanl.c: New file.
3583
3584         Tests for module 'sqrtl'.
3585         * modules/sqrtl-tests: New file.
3586         * tests/test-sqrtl.c: New file.
3587
3588         Tests for module 'sinl'.
3589         * modules/sinl-tests: New file.
3590         * tests/test-sinl.c: New file.
3591
3592         Tests for module 'logl'.
3593         * modules/logl-tests: New file.
3594         * tests/test-logl.c: New file.
3595
3596         Tests for module 'expl'.
3597         * modules/expl-tests: New file.
3598         * tests/test-expl.c: New file.
3599
3600         Tests for module 'cosl'.
3601         * modules/cosl-tests: New file.
3602         * tests/test-cosl.c: New file.
3603
3604         Tests for module 'atanl'.
3605         * modules/atanl-tests: New file.
3606         * tests/test-atanl.c: New file.
3607
3608         Tests for module 'asinl'.
3609         * modules/asinl-tests: New file.
3610         * tests/test-asinl.c: New file.
3611
3612         Tests for module 'acosl'.
3613         * modules/acosl-tests: New file.
3614         * tests/test-acosl.c: New file.
3615
3616         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
3617         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
3618         tanl): Use the standard gnulib idiom.
3619         * lib/cosl.c: Don't include trigl.c and sincosl.c.
3620         * lib/sinl.c: Likewise.
3621         * lib/tanl.c: Don't include trigl.c.
3622         (kernel_tanl): Make static.
3623         * lib/sincosl.c: Include trigl.h first.
3624         * lib/trigl.c: Likewise.
3625         * m4/acosl.m4: New file.
3626         * m4/asinl.m4: New file.
3627         * m4/atanl.m4: New file.
3628         * m4/cosl.m4: New file.
3629         * m4/expl.m4: New file.
3630         * m4/logl.m4: New file.
3631         * m4/sinl.m4: New file.
3632         * m4/sqrtl.m4: New file.
3633         * m4/tanl.m4: New file.
3634         * m4/mathl.m4: Remove file.
3635         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
3636         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
3637         Don't initialize GNULIB_MATHL.
3638         * modules/acosl: New file.
3639         * modules/asinl: New file.
3640         * modules/atanl: New file.
3641         * modules/cosl: New file.
3642         * modules/expl: New file.
3643         * modules/logl: New file.
3644         * modules/sinl: New file.
3645         * modules/sqrtl: New file.
3646         * modules/tanl: New file.
3647         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
3648         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
3649         substitute GNULIB_MATHL.
3650         * modules/mathl: Rewritten.
3651         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
3652         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
3653         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
3654         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
3655         * doc/posix-functions/expl.texi: Mention the 'expl' module.
3656         * doc/posix-functions/logl.texi: Mention the 'logl' module.
3657         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
3658         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
3659         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
3660
3661 2010-01-18  Bruno Haible  <bruno@clisp.org>
3662
3663         sqrt: Make gl_FUNC_SQRT requirable.
3664         * m4/sqrt.m4: New file.
3665         * modules/sqrt (Files): Add it.
3666         (configure.ac): Invoke gl_FUNC_SQRT.
3667
3668 2010-01-18  Bruno Haible  <bruno@clisp.org>
3669
3670         New modules for common <math.h> functions.
3671         * m4/mathfunc.m4: New file.
3672         * modules/acos: New file.
3673         * modules/asin: New file.
3674         * modules/atan: New file.
3675         * modules/atan2: New file.
3676         * modules/cbrt: New file.
3677         * modules/copysign: New file.
3678         * modules/cos: New file.
3679         * modules/cosh: New file.
3680         * modules/erf: New file.
3681         * modules/erfc: New file.
3682         * modules/exp: New file.
3683         * modules/fabs: New file.
3684         * modules/fmod: New file.
3685         * modules/hypot: New file.
3686         * modules/j0: New file.
3687         * modules/j1: New file.
3688         * modules/jn: New file.
3689         * modules/ldexp: New file.
3690         * modules/lgamma: New file.
3691         * modules/log: New file.
3692         * modules/log10: New file.
3693         * modules/log1p: New file.
3694         * modules/logb: New file.
3695         * modules/modf: New file.
3696         * modules/nextafter: New file.
3697         * modules/pow: New file.
3698         * modules/remainder: New file.
3699         * modules/rint: New file.
3700         * modules/sin: New file.
3701         * modules/sinh: New file.
3702         * modules/sqrt: New file.
3703         * modules/tan: New file.
3704         * modules/tanh: New file.
3705         * modules/y0: New file.
3706         * modules/y1: New file.
3707         * modules/yn: New file.
3708         * doc/posix-functions/acos.texi: Mention the 'acos' module.
3709         * doc/posix-functions/asin.texi: Mention the 'asin' module.
3710         * doc/posix-functions/atan.texi: Mention the 'atan' module.
3711         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
3712         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
3713         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
3714         * doc/posix-functions/cos.texi: Mention the 'cos' module.
3715         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
3716         * doc/posix-functions/erf.texi: Mention the 'erf' module.
3717         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
3718         * doc/posix-functions/exp.texi: Mention the 'exp' module.
3719         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
3720         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
3721         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
3722         * doc/posix-functions/j0.texi: Mention the 'j0' module.
3723         * doc/posix-functions/j1.texi: Mention the 'j1' module.
3724         * doc/posix-functions/jn.texi: Mention the 'jn' module.
3725         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
3726         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
3727         * doc/posix-functions/log.texi: Mention the 'log' module.
3728         * doc/posix-functions/log10.texi: Mention the 'log10' module.
3729         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
3730         * doc/posix-functions/logb.texi: Mention the 'logb' module.
3731         * doc/posix-functions/modf.texi: Mention the 'modf' module.
3732         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
3733         * doc/posix-functions/pow.texi: Mention the 'pow' module.
3734         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
3735         * doc/posix-functions/rint.texi: Mention the 'rint' module.
3736         * doc/posix-functions/sin.texi: Mention the 'sin' module.
3737         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
3738         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
3739         * doc/posix-functions/tan.texi: Mention the 'tan' module.
3740         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
3741         * doc/posix-functions/y0.texi: Mention the 'y0' module.
3742         * doc/posix-functions/y1.texi: Mention the 'y1' module.
3743         * doc/posix-functions/yn.texi: Mention the 'yn' module.
3744
3745 2010-01-18  Jim Meyering  <meyering@redhat.com>
3746
3747         ignore-value: relax license to LGPLv2+
3748         * modules/ignore-value (License): Relax to LGPLv2+.
3749
3750         getdate: don't leak when TZ contains two or more '"'s
3751         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
3752         double quote in TZ after the first one.
3753
3754         readtokens: do not leak internal token_lengths buffer
3755         * lib/readtokens.c (readtokens): Free the local, lengths,
3756         when the supplied "token_lengths" parameter is NULL.
3757
3758 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3759
3760         Fix a couple of missing LIBTHREAD link failures on AIX.
3761         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
3762         $(LIBTHREAD).
3763         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
3764
3765         Link test-poll against INET_PTON_LIB.
3766         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
3767         for inet_pton on Solaris 10.
3768
3769 2010-01-17  Bruno Haible  <bruno@clisp.org>
3770
3771         unistdio/*-sprintf: Fix typo in module description.
3772         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
3773         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
3774         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
3775         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
3776         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
3777         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
3778         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
3779         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3780
3781 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3782
3783         gnulib-tool: fix filelist for AIX, HP-UX ksh.
3784         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
3785         variables in shell case patterns, for AIX and HP-UX ksh.
3786
3787         Split large sed scripts, for HP-UX sed.
3788         * modules/stdio: Split sed scripts around 50 sed commands,
3789         to avoid HP-UX limit of 99 commands, in the near future.
3790         * modules/string: Likewise.
3791         * modules/unistd: Likewise.
3792
3793         gnulib-tool: avoid writing in the current directory.
3794         * gnulib-tool (func_emit_lib_Makefile_am)
3795         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
3796         not in the current directory, so concurrent gnulib-tool
3797         instances do not interfere.
3798
3799 2010-01-16  Jim Meyering  <meyering@redhat.com>
3800
3801         doc: update users.txt
3802         * users.txt: Add grep.
3803         (diffutils, gzip): Update URLs.
3804
3805 2010-01-12  Bruno Haible  <bruno@clisp.org>
3806
3807         posix_spawn: Avoid test failure on Cygwin.
3808         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
3809         characters.
3810         Reported by Simon Josefsson.
3811
3812 2010-01-12  Bruno Haible  <bruno@clisp.org>
3813
3814         * tests/test-cond.c (main): When skipping the test, show the reason.
3815
3816 2010-01-12  Simon Josefsson  <simon@josefsson.org>
3817
3818         * lib/striconv.c (str_cd_iconv): Avoid if before free.
3819
3820 2010-01-12  Simon Josefsson  <simon@josefsson.org>
3821
3822         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
3823         VC_LIST_ALWAYS_EXCLUDE_REGEX.
3824
3825 2010-01-12  Eric Blake  <ebb9@byu.net>
3826
3827         build: guarantee AS_VAR_IF
3828         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
3829         (gl_AS_VAR_IF): Move...
3830         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
3831         Reported by Simon Josefsson.
3832
3833 2010-01-12  Simon Josefsson  <simon@josefsson.org>
3834
3835         * lib/stdio.in.h: Fix typo.
3836
3837 2010-01-12  Simon Josefsson  <simon@josefsson.org>
3838
3839         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
3840         libgpg-error.
3841
3842 2010-01-12  Simon Josefsson  <simon@josefsson.org>
3843
3844         * tests/test-xalloc-die.sh: Use $EXEEXT.
3845
3846 2010-01-12  Simon Josefsson  <simon@josefsson.org>
3847             Bruno Haible  <bruno@clisp.org>
3848
3849         getlogin, getlogin_r: Avoid test failure.
3850         * tests/test-getlogin.c: Include <stdio.h>.
3851         (main): Skip the test when the function fails because stdin is not a
3852         tty.
3853         * tests/test-getlogin_r.c: Include <stdio.h>.
3854         (main): Skip the test when the function fails because stdin is not a
3855         tty.
3856
3857 2010-01-11  Eric Blake  <ebb9@byu.net>
3858
3859         tests: avoid more large file warnings
3860         * tests/test-fflush.c: Avoid warning about ftell use.
3861         * tests/test-fseek.c: Avoid warning about fseek use.
3862
3863 2010-01-10  Bruno Haible  <bruno@clisp.org>
3864
3865         nproc: Work better on Linux when /proc and /sys are not mounted.
3866         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
3867         as lower bound when, on glibc/Linux systems,
3868         sysconf (_SC_NPROCESSORS_CONF) returns 1.
3869         Suggested by Pádraig Brady <P@draigbrady.com>.
3870         Reported by Dmitry V. Levin <ldv@altlinux.org>.
3871
3872         nproc: Refactor.
3873         * lib/nproc.c (num_processors_via_affinity_mask): New function,
3874         extracted from num_processors.
3875         (num_processors): Call it.
3876
3877 2010-01-11  Jim Meyering  <meyering@redhat.com>
3878
3879         utimecmp: avoid new warning from upcoming gcc-4.5.0
3880         * lib/utimecmp.c (BILLION): Define using #define rather than an
3881         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
3882
3883 2010-01-11  Eric Blake  <ebb9@byu.net>
3884
3885         math: add portability warnings for classification macros
3886         * modules/math (Depends-on): Add warn-on-use.
3887         (Makefile.am): Provide new substitutions.
3888         * m4/math_h.m4 (gl_MATH_H): Require inline.
3889         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
3890         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
3891         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
3892         implement warnings.
3893
3894         unistd: warn on use of environ without module
3895         * modules/unistd (Depends-on): Add warn-on-use.
3896         (Makefile.am): Provide new substitutions.
3897         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
3898         * lib/unistd.in.h (environ): Wrap with a warning helper function.
3899
3900         stdio: warn on suspicious uses
3901         * modules/stdio (Depends-on): Add warn-on-use.
3902         (Makefile.am): Provide new substitutions.
3903         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
3904         fseeko.
3905         * lib/stdio.in.h (gets): Always warn on use.
3906         (fseek, ftell): Adjust when warnings are issued, and honor
3907         _GL_NO_LARGE_FILES as a way to silence the warning.
3908         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
3909         any warning about large file offsets.
3910         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
3911         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
3912         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
3913         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
3914         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
3915         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
3916         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
3917         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
3918
3919         warn-on-use: new module
3920         * modules/warn-on-use: New file.
3921         * build-aux/warn-on-use.h: Likewise.
3922         * m4/warn-on-use.m4: Likewise.
3923         * MODULES.html.sh (Support for building): Mention it.
3924
3925 2010-01-10  Bruno Haible  <bruno@clisp.org>
3926
3927         Tests for module 'unistr/u32-strdup'.
3928         * modules/unistr/u32-strdup-tests: New file.
3929         * tests/unistr/test-u32-strdup.c: New file.
3930
3931         Tests for module 'unistr/u16-strdup'.
3932         * modules/unistr/u16-strdup-tests: New file.
3933         * tests/unistr/test-u16-strdup.c: New file.
3934
3935         Tests for module 'unistr/u8-strdup'.
3936         * modules/unistr/u8-strdup-tests: New file.
3937         * tests/unistr/test-u8-strdup.c: New file.
3938         * tests/unistr/test-strdup.h: New file.
3939
3940         Tests for module 'unistr/u32-strncmp'.
3941         * modules/unistr/u32-strncmp-tests: New file.
3942         * tests/unistr/test-u32-strncmp.c: New file.
3943
3944         Tests for module 'unistr/u16-strncmp'.
3945         * modules/unistr/u16-strncmp-tests: New file.
3946         * tests/unistr/test-u16-strncmp.c: New file.
3947
3948         Tests for module 'unistr/u8-strncmp'.
3949         * modules/unistr/u8-strncmp-tests: New file.
3950         * tests/unistr/test-u8-strncmp.c: New file.
3951         * tests/unistr/test-strncmp.h: New file.
3952
3953         Tests for module 'unistr/u32-strcoll'.
3954         * modules/unistr/u32-strcoll-tests: New file.
3955         * tests/unistr/test-u32-strcoll.c: New file.
3956
3957         Tests for module 'unistr/u16-strcoll'.
3958         * modules/unistr/u16-strcoll-tests: New file.
3959         * tests/unistr/test-u16-strcoll.c: New file.
3960
3961         Tests for module 'unistr/u8-strcoll'.
3962         * modules/unistr/u8-strcoll-tests: New file.
3963         * tests/unistr/test-u8-strcoll.c: New file.
3964
3965         Tests for module 'unistr/u32-strcmp'.
3966         * modules/unistr/u32-strcmp-tests: New file.
3967         * tests/unistr/test-u32-strcmp.c: New file.
3968         * tests/unistr/test-u32-strcmp.h: New file.
3969
3970         Tests for module 'unistr/u16-strcmp'.
3971         * modules/unistr/u16-strcmp-tests: New file.
3972         * tests/unistr/test-u16-strcmp.c: New file.
3973         * tests/unistr/test-u16-strcmp.h: New file.
3974
3975         Tests for module 'unistr/u8-strcmp'.
3976         * modules/unistr/u8-strcmp-tests: New file.
3977         * tests/unistr/test-u8-strcmp.c: New file.
3978         * tests/unistr/test-u8-strcmp.h: New file.
3979         * tests/unistr/test-strcmp.h: New file.
3980
3981         Tests for module 'unistr/u32-strncat'.
3982         * modules/unistr/u32-strncat-tests: New file.
3983         * tests/unistr/test-u32-strncat.c: New file.
3984
3985         Tests for module 'unistr/u16-strncat'.
3986         * modules/unistr/u16-strncat-tests: New file.
3987         * tests/unistr/test-u16-strncat.c: New file.
3988
3989         Tests for module 'unistr/u8-strncat'.
3990         * modules/unistr/u8-strncat-tests: New file.
3991         * tests/unistr/test-u8-strncat.c: New file.
3992         * tests/unistr/test-strncat.h: New file.
3993
3994         Tests for module 'unistr/u32-strcat'.
3995         * modules/unistr/u32-strcat-tests: New file.
3996         * tests/unistr/test-u32-strcat.c: New file.
3997
3998         Tests for module 'unistr/u16-strcat'.
3999         * modules/unistr/u16-strcat-tests: New file.
4000         * tests/unistr/test-u16-strcat.c: New file.
4001
4002         Tests for module 'unistr/u8-strcat'.
4003         * modules/unistr/u8-strcat-tests: New file.
4004         * tests/unistr/test-u8-strcat.c: New file.
4005         * tests/unistr/test-strcat.h: New file.
4006
4007         Tests for module 'unistr/u32-stpncpy'.
4008         * modules/unistr/u32-stpncpy-tests: New file.
4009         * tests/unistr/test-u32-stpncpy.c: New file.
4010
4011         Tests for module 'unistr/u16-stpncpy'.
4012         * modules/unistr/u16-stpncpy-tests: New file.
4013         * tests/unistr/test-u16-stpncpy.c: New file.
4014
4015         Tests for module 'unistr/u8-stpncpy'.
4016         * modules/unistr/u8-stpncpy-tests: New file.
4017         * tests/unistr/test-u8-stpncpy.c: New file.
4018         * tests/unistr/test-stpncpy.h: New file.
4019
4020         Tests for module 'unistr/u32-strncpy'.
4021         * modules/unistr/u32-strncpy-tests: New file.
4022         * tests/unistr/test-u32-strncpy.c: New file.
4023
4024         Tests for module 'unistr/u16-strncpy'.
4025         * modules/unistr/u16-strncpy-tests: New file.
4026         * tests/unistr/test-u16-strncpy.c: New file.
4027
4028         Tests for module 'unistr/u8-strncpy'.
4029         * modules/unistr/u8-strncpy-tests: New file.
4030         * tests/unistr/test-u8-strncpy.c: New file.
4031         * tests/unistr/test-strncpy.h: New file.
4032
4033         Tests for module 'unistr/u32-stpcpy'.
4034         * modules/unistr/u32-stpcpy-tests: New file.
4035         * tests/unistr/test-u32-stpcpy.c: New file.
4036
4037         Tests for module 'unistr/u16-stpcpy'.
4038         * modules/unistr/u16-stpcpy-tests: New file.
4039         * tests/unistr/test-u16-stpcpy.c: New file.
4040
4041         Tests for module 'unistr/u8-stpcpy'.
4042         * modules/unistr/u8-stpcpy-tests: New file.
4043         * tests/unistr/test-u8-stpcpy.c: New file.
4044         * tests/unistr/test-stpcpy.h: New file.
4045
4046         Tests for module 'unistr/u32-strcpy'.
4047         * modules/unistr/u32-strcpy-tests: New file.
4048         * tests/unistr/test-u32-strcpy.c: New file.
4049
4050         Tests for module 'unistr/u16-strcpy'.
4051         * modules/unistr/u16-strcpy-tests: New file.
4052         * tests/unistr/test-u16-strcpy.c: New file.
4053
4054         Tests for module 'unistr/u8-strcpy'.
4055         * modules/unistr/u8-strcpy-tests: New file.
4056         * tests/unistr/test-u8-strcpy.c: New file.
4057         * tests/unistr/test-strcpy.h: New file.
4058
4059         Tests for module 'unistr/u32-strnlen'.
4060         * modules/unistr/u32-strnlen-tests: New file.
4061         * tests/unistr/test-u32-strnlen.c: New file.
4062
4063         Tests for module 'unistr/u16-strnlen'.
4064         * modules/unistr/u16-strnlen-tests: New file.
4065         * tests/unistr/test-u16-strnlen.c: New file.
4066
4067         Tests for module 'unistr/u8-strnlen'.
4068         * modules/unistr/u8-strnlen-tests: New file.
4069         * tests/unistr/test-u8-strnlen.c: New file.
4070         * tests/unistr/test-strnlen.h: New file.
4071
4072         Tests for module 'unistr/u32-strlen'.
4073         * modules/unistr/u32-strlen-tests: New file.
4074         * tests/unistr/test-u32-strlen.c: New file.
4075
4076         Tests for module 'unistr/u16-strlen'.
4077         * modules/unistr/u16-strlen-tests: New file.
4078         * tests/unistr/test-u16-strlen.c: New file.
4079
4080         Tests for module 'unistr/u8-strlen'.
4081         * modules/unistr/u8-strlen-tests: New file.
4082         * tests/unistr/test-u8-strlen.c: New file.
4083
4084         Tests for module 'unistr/u32-prev'.
4085         * modules/unistr/u32-prev-tests: New file.
4086         * tests/unistr/test-u32-prev.c: New file.
4087
4088         Tests for module 'unistr/u16-prev'.
4089         * modules/unistr/u16-prev-tests: New file.
4090         * tests/unistr/test-u16-prev.c: New file.
4091
4092         Tests for module 'unistr/u8-prev'.
4093         * modules/unistr/u8-prev-tests: New file.
4094         * tests/unistr/test-u8-prev.c: New file.
4095
4096         Tests for module 'unistr/u32-next'.
4097         * modules/unistr/u32-next-tests: New file.
4098         * tests/unistr/test-u32-next.c: New file.
4099
4100         Tests for module 'unistr/u16-next'.
4101         * modules/unistr/u16-next-tests: New file.
4102         * tests/unistr/test-u16-next.c: New file.
4103
4104         Tests for module 'unistr/u8-next'.
4105         * modules/unistr/u8-next-tests: New file.
4106         * tests/unistr/test-u8-next.c: New file.
4107
4108         Tests for module 'unistr/u32-strmbtouc'.
4109         * modules/unistr/u32-strmbtouc-tests: New file.
4110         * tests/unistr/test-u32-strmbtouc.c: New file.
4111
4112         Tests for module 'unistr/u16-strmbtouc'.
4113         * modules/unistr/u16-strmbtouc-tests: New file.
4114         * tests/unistr/test-u16-strmbtouc.c: New file.
4115
4116         Tests for module 'unistr/u8-strmbtouc'.
4117         * modules/unistr/u8-strmbtouc-tests: New file.
4118         * tests/unistr/test-u8-strmbtouc.c: New file.
4119
4120         Tests for module 'unistr/u32-strmblen'.
4121         * modules/unistr/u32-strmblen-tests: New file.
4122         * tests/unistr/test-u32-strmblen.c: New file.
4123
4124         Tests for module 'unistr/u16-strmblen'.
4125         * modules/unistr/u16-strmblen-tests: New file.
4126         * tests/unistr/test-u16-strmblen.c: New file.
4127
4128         Tests for module 'unistr/u8-strmblen'.
4129         * modules/unistr/u8-strmblen-tests: New file.
4130         * tests/unistr/test-u8-strmblen.c: New file.
4131
4132         Tests for module 'unistr/u32-cpy-alloc'.
4133         * modules/unistr/u32-cpy-alloc-tests: New file.
4134         * tests/unistr/test-u32-cpy-alloc.c: New file.
4135
4136         Tests for module 'unistr/u16-cpy-alloc'.
4137         * modules/unistr/u16-cpy-alloc-tests: New file.
4138         * tests/unistr/test-u16-cpy-alloc.c: New file.
4139
4140         Tests for module 'unistr/u8-cpy-alloc'.
4141         * modules/unistr/u8-cpy-alloc-tests: New file.
4142         * tests/unistr/test-u8-cpy-alloc.c: New file.
4143         * tests/unistr/test-cpy-alloc.h: New file.
4144
4145         Tests for module 'unistr/u32-mbsnlen'.
4146         * modules/unistr/u32-mbsnlen-tests: New file.
4147         * tests/unistr/test-u32-mbsnlen.c: New file.
4148
4149         Tests for module 'unistr/u16-mbsnlen'.
4150         * modules/unistr/u16-mbsnlen-tests: New file.
4151         * tests/unistr/test-u16-mbsnlen.c: New file.
4152
4153         Tests for module 'unistr/u8-mbsnlen'.
4154         * modules/unistr/u8-mbsnlen-tests: New file.
4155         * tests/unistr/test-u8-mbsnlen.c: New file.
4156
4157         Tests for module 'unistr/u32-chr'.
4158         * modules/unistr/u32-chr-tests: New file.
4159         * tests/unistr/test-u32-chr.c: New file.
4160
4161         Tests for module 'unistr/u16-chr'.
4162         * modules/unistr/u16-chr-tests: New file.
4163         * tests/unistr/test-u16-chr.c: New file.
4164
4165         Tests for module 'unistr/u8-chr'.
4166         * modules/unistr/u8-chr-tests: New file.
4167         * tests/unistr/test-u8-chr.c: New file.
4168         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
4169
4170         Tests for module 'unistr/u32-cmp2'.
4171         * modules/unistr/u32-cmp2-tests: New file.
4172         * tests/unistr/test-u32-cmp2.c: New file.
4173
4174         Tests for module 'unistr/u16-cmp2'.
4175         * modules/unistr/u16-cmp2-tests: New file.
4176         * tests/unistr/test-u16-cmp2.c: New file.
4177
4178         Tests for module 'unistr/u8-cmp2'.
4179         * modules/unistr/u8-cmp2-tests: New file.
4180         * tests/unistr/test-u8-cmp2.c: New file.
4181         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
4182
4183         Tests for module 'unistr/u32-cmp'.
4184         * modules/unistr/u32-cmp-tests: New file.
4185         * tests/unistr/test-u32-cmp.c: New file.
4186
4187         Tests for module 'unistr/u16-cmp'.
4188         * modules/unistr/u16-cmp-tests: New file.
4189         * tests/unistr/test-u16-cmp.c: New file.
4190
4191         Tests for module 'unistr/u8-cmp'.
4192         * modules/unistr/u8-cmp-tests: New file.
4193         * tests/unistr/test-u8-cmp.c: New file.
4194         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
4195
4196         Tests for module 'unistr/u32-set'.
4197         * modules/unistr/u32-set-tests: New file.
4198         * tests/unistr/test-u32-set.c: New file.
4199
4200         Tests for module 'unistr/u16-set'.
4201         * modules/unistr/u16-set-tests: New file.
4202         * tests/unistr/test-u16-set.c: New file.
4203
4204         Tests for module 'unistr/u8-set'.
4205         * modules/unistr/u8-set-tests: New file.
4206         * tests/unistr/test-u8-set.c: New file.
4207         * tests/unistr/test-set.h: New file.
4208
4209         Tests for module 'unistr/u32-move'.
4210         * modules/unistr/u32-move-tests: New file.
4211         * tests/unistr/test-u32-move.c: New file.
4212
4213         Tests for module 'unistr/u16-move'.
4214         * modules/unistr/u16-move-tests: New file.
4215         * tests/unistr/test-u16-move.c: New file.
4216
4217         Tests for module 'unistr/u8-move'.
4218         * modules/unistr/u8-move-tests: New file.
4219         * tests/unistr/test-u8-move.c: New file.
4220         * tests/unistr/test-move.h: New file.
4221
4222         Tests for module 'unistr/u32-cpy'.
4223         * modules/unistr/u32-cpy-tests: New file.
4224         * tests/unistr/test-u32-cpy.c: New file.
4225
4226         Tests for module 'unistr/u16-cpy'.
4227         * modules/unistr/u16-cpy-tests: New file.
4228         * tests/unistr/test-u16-cpy.c: New file.
4229
4230         Tests for module 'unistr/u8-cpy'.
4231         * modules/unistr/u8-cpy-tests: New file.
4232         * tests/unistr/test-u8-cpy.c: New file.
4233         * tests/unistr/test-cpy.h: New file.
4234
4235 2010-01-09  Bruno Haible  <bruno@clisp.org>
4236
4237         Tests for module 'unistr/u32-uctomb'.
4238         * modules/unistr/u32-uctomb-tests: New file.
4239         * tests/unistr/test-u32-uctomb.c: New file.
4240
4241         Tests for module 'unistr/u16-uctomb'.
4242         * modules/unistr/u16-uctomb-tests: New file.
4243         * tests/unistr/test-u16-uctomb.c: New file.
4244
4245         Tests for module 'unistr/u8-uctomb'.
4246         * modules/unistr/u8-uctomb-tests: New file.
4247         * tests/unistr/test-u8-uctomb.c: New file.
4248
4249         Tests for module 'unistr/u32-mbtoucr'.
4250         * modules/unistr/u32-mbtoucr-tests: New file.
4251         * tests/unistr/test-u32-mbtoucr.c: New file.
4252
4253         Tests for module 'unistr/u16-mbtoucr'.
4254         * modules/unistr/u16-mbtoucr-tests: New file.
4255         * tests/unistr/test-u16-mbtoucr.c: New file.
4256
4257         Tests for module 'unistr/u8-mbtoucr'.
4258         * modules/unistr/u8-mbtoucr-tests: New file.
4259         * tests/unistr/test-u8-mbtoucr.c: New file.
4260
4261         Tests for module 'unistr/u32-mbtouc'.
4262         * modules/unistr/u32-mbtouc-tests: New file.
4263         * tests/unistr/test-u32-mbtouc.c: New file.
4264
4265         Tests for module 'unistr/u16-mbtouc'.
4266         * modules/unistr/u16-mbtouc-tests: New file.
4267         * tests/unistr/test-u16-mbtouc.c: New file.
4268
4269         Tests for module 'unistr/u8-mbtouc'.
4270         * modules/unistr/u8-mbtouc-tests: New file.
4271         * tests/unistr/test-u8-mbtouc.c: New file.
4272
4273         Tests for module 'unistr/u32-mbtouc-unsafe'.
4274         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
4275         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
4276         * tests/unistr/test-u32-mbtouc.h: New file.
4277
4278         Tests for module 'unistr/u16-mbtouc-unsafe'.
4279         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
4280         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
4281         * tests/unistr/test-u16-mbtouc.h: New file.
4282
4283         Tests for module 'unistr/u8-mbtouc-unsafe'.
4284         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
4285         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
4286         * tests/unistr/test-u8-mbtouc.h: New file.
4287
4288         Tests for module 'unistr/u32-mblen'.
4289         * modules/unistr/u32-mblen-tests: New file.
4290         * tests/unistr/test-u32-mblen.c: New file.
4291
4292         Tests for module 'unistr/u16-mblen'.
4293         * modules/unistr/u16-mblen-tests: New file.
4294         * tests/unistr/test-u16-mblen.c: New file.
4295
4296         Tests for module 'unistr/u8-mblen'.
4297         * modules/unistr/u8-mblen-tests: New file.
4298         * tests/unistr/test-u8-mblen.c: New file.
4299
4300         Tests for module 'unistr/u32-to-u16'.
4301         * modules/unistr/u32-to-u16-tests: New file.
4302         * tests/unistr/test-u32-to-u16.c: New file.
4303
4304         Tests for module 'unistr/u32-to-u8'.
4305         * modules/unistr/u32-to-u8-tests: New file.
4306         * tests/unistr/test-u32-to-u8.c: New file.
4307
4308         Tests for module 'unistr/u16-to-u32'.
4309         * modules/unistr/u16-to-u32-tests: New file.
4310         * tests/unistr/test-u16-to-u32.c: New file.
4311
4312         Tests for module 'unistr/u16-to-u8'.
4313         * modules/unistr/u16-to-u8-tests: New file.
4314         * tests/unistr/test-u16-to-u8.c: New file.
4315
4316         Tests for module 'unistr/u8-to-u32'.
4317         * modules/unistr/u8-to-u32-tests: New file.
4318         * tests/unistr/test-u8-to-u32.c: New file.
4319
4320         Tests for module 'unistr/u8-to-u16'.
4321         * modules/unistr/u8-to-u16-tests: New file.
4322         * tests/unistr/test-u8-to-u16.c: New file.
4323
4324         Tests for module 'unistr/u32-check'.
4325         * modules/unistr/u32-check-tests: New file.
4326         * tests/unistr/test-u32-check.c: New file.
4327
4328         Tests for module 'unistr/u16-check'.
4329         * modules/unistr/u16-check-tests: New file.
4330         * tests/unistr/test-u16-check.c: New file.
4331
4332         Tests for module 'unistr/u8-check'.
4333         * modules/unistr/u8-check-tests: New file.
4334         * tests/unistr/test-u8-check.c: New file.
4335
4336         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
4337         (category_equals): New function.
4338         (main): Add more tests.
4339         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
4340
4341         * tests/unictype/test-bidi_byname.c (main): Add more tests.
4342
4343 2010-01-10  Bruno Haible  <bruno@clisp.org>
4344
4345         unistr/u*-strcoll: Try harder to distinguish different strings.
4346         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
4347         compare s1 and s2 to see if they are different.
4348
4349 2010-01-10  Bruno Haible  <bruno@clisp.org>
4350
4351         unistr/u*-stpncpy: Fix the return value.
4352         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
4353         description of the return value consistent with stpncpy in glibc.
4354         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
4355         written non-NUL unit.
4356
4357 2010-01-10  Bruno Haible  <bruno@clisp.org>
4358
4359         unistr/u*-next: Add missing dependencies.
4360         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
4361         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
4362         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
4363
4364 2010-01-10  Bruno Haible  <bruno@clisp.org>
4365
4366         unistr/u8-mbsnlen: Fix return value for incomplete character.
4367         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
4368         u8_mblen.
4369         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
4370         Remove unistr/u8-mblen.
4371         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
4372         u16_mblen.
4373         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
4374         Remove unistr/u16-mblen.
4375
4376 2010-01-10  Bruno Haible  <bruno@clisp.org>
4377
4378         wchar: Fix compilation error when <wchar.h> is used from coreutils.
4379         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
4380         Reported by Brian Gough <bjg@gnu.org> and
4381         Chris Clayton <chris2553@googlemail.com> via
4382         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
4383
4384 2010-01-09  Bruno Haible  <bruno@clisp.org>
4385
4386         unistr/u16-to-u32: Reject invalid input.
4387         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
4388         u16_mbtouc.
4389         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
4390         Remove unistr/u16-mbtouc.
4391
4392         unistr/u16-to-u8: Reject invalid input.
4393         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
4394         u16_mbtouc.
4395         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
4396         Remove unistr/u16-mbtouc.
4397
4398         unistr/u8-to-u32: Reject invalid input.
4399         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
4400         u8_mbtouc.
4401         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
4402         Remove unistr/u8-mbtouc.
4403
4404         unistr/u8-to-u16: Reject invalid input.
4405         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
4406         u8_mbtouc.
4407         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
4408         Remove unistr/u8-mbtouc.
4409
4410 2010-01-09  Bruno Haible  <bruno@clisp.org>
4411
4412         Tests for module 'getlogin'.
4413         * modules/getlogin-tests: New file.
4414         * tests/test-getlogin.c: New file.
4415
4416         New module 'getlogin'.
4417         * lib/unistd.in.h (getlogin): New declaration.
4418         * lib/getlogin.c: New file.
4419         * m4/getlogin.m4: New file.
4420         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
4421         HAVE_GETLOGIN.
4422         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
4423         HAVE_GETLOGIN.
4424         * modules/getlogin: New file.
4425         * doc/posix-functions/getlogin.texi: Mention the new module.
4426         Reported by John W. Eaton <jwe@gnu.org>.
4427
4428 2010-01-09  Bruno Haible  <bruno@clisp.org>
4429
4430         getlogin_r: Support for native Windows.
4431         * lib/getlogin_r.c: Include <windows.h>
4432         (getlogin_r): Implement for native Windows.
4433         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
4434         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
4435         via John W. Eaton <jwe@gnu.org>.
4436
4437 2010-01-09  Bruno Haible  <bruno@clisp.org>
4438
4439         getlogin_r: Small fixes.
4440         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
4441         succeeds.
4442         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
4443         before testing whether getlogin_r is declared. No need to set
4444         HAVE_DECL_GETLOGIN_R to 1.
4445         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
4446
4447 2010-01-09  Bruno Haible  <bruno@clisp.org>
4448
4449         * lib/unistd.in.h (getlogin_r): Add comment.
4450
4451 2010-01-09  Bruno Haible  <bruno@clisp.org>
4452
4453         Tests for module 'getlogin_r'.
4454         * modules/getlogin_r-tests: New file.
4455         * tests/test-getlogin_r.c: New file.
4456
4457 2010-01-09  Jim Meyering  <meyering@redhat.com>
4458
4459         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
4460         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
4461         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
4462
4463 2010-01-08  Simon Josefsson  <simon@josefsson.org>
4464
4465         * lib/dup2.c (rpl_dup2): Improve comment.
4466
4467 2010-01-08  Eric Blake  <ebb9@byu.net>
4468
4469         maint.mk: allow packages to add makefile @@ exceptions
4470         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
4471         (sc_makefile_check): Rename...
4472         (sc_makefile_at_at_check): ...to this, and use hook.
4473
4474         dup2: work around mingw bug
4475         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
4476         Reported by Simon Josefsson.
4477
4478 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
4479
4480         glob: Fix C++ compilation.
4481         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
4482         C++.
4483
4484 2010-01-07  Bruno Haible  <bruno@clisp.org>
4485
4486         Fix indentation of wctype.in.h, broken since 2007-01-06.
4487         * lib/wctype.in.h: Fix indentation of preprocessor directives.
4488
4489 2010-01-07  Bruno Haible  <bruno@clisp.org>
4490
4491         mbslen: Avoid collision with system function.
4492         * lib/string.in.h [MirBSD]: Include <wchar.h>.
4493         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
4494         * m4/mbslen.m4: New file.
4495         * modules/mbslen (Files): Add it.
4496         (configure.ac): Invoke gl_MBSLEN.
4497         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
4498         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
4499         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
4500         via Ian Beckwith <ianb@erislabs.net>.
4501
4502 2010-01-07  Bruno Haible  <bruno@clisp.org>
4503
4504         dirent: Document the last fix.
4505         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
4506
4507 2010-01-07  Bruno Haible  <bruno@clisp.org>
4508
4509         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
4510         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
4511         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
4512         va_list are defined.
4513         * doc/posix-headers/stdio.texi: Document the bug of missing types.
4514         Reported by Eric Blake.
4515
4516 2010-01-07  Bruno Haible  <bruno@clisp.org>
4517
4518         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
4519         * modules/xlist (Depends-on): Add 'list',
4520         * modules/xoset (Depends-on): Add 'oset'.
4521         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
4522
4523 2010-01-07  Bruno Haible  <bruno@clisp.org>
4524
4525         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
4526         * doc/posix-functions/strncasecmp.texi: Likewise.
4527
4528 2010-01-07  Bruno Haible  <bruno@clisp.org>
4529
4530         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
4531
4532 2010-01-07  John W. Eaton  <jwe@octave.org>
4533
4534         wctype: allow C++ use
4535         * lib/wctype.in.h: Add extern "C" block for C++.
4536
4537 2010-01-06  Eric Blake  <ebb9@byu.net>
4538
4539         maint.mk: detect incorrect GFDL usage
4540         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
4541
4542 2010-01-06  Jim Meyering  <meyering@redhat.com>
4543         and Eric Blake  <ebb9@byu.net>
4544
4545         maint.mk: ignore multi-line copyright in NEWS
4546         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
4547
4548 2010-01-06  Eric Blake  <ebb9@byu.net>
4549
4550         select: add missing dependency
4551         * modules/select-tests (Depends-on): Move sockets dependency...
4552         * modules/select (Depends-on): ...here.
4553         Reported by Ian Beckwith.
4554
4555         doc: regenerate INSTALL
4556         * doc/INSTALL: Reflect recent autoconf update.
4557         * doc/INSTALL.ISO: Likewise.
4558         * doc/INSTALL.UTF-8: Likewise.
4559
4560         pread: fix compilation on glibc
4561         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
4562         Reported by Ralf Wildenhues.
4563
4564         dirent: fix test failure
4565         * lib/dirent.in.h (includes): Guarantee ino_t.
4566         Reported by Ralf Wildenhues.
4567
4568 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
4569
4570         linkat, renameat: avoid bad free
4571         * lib/at-func2.c (at_func2): Fix typo.
4572         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
4573
4574 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4575
4576         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
4577         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
4578         to avoid failure of symlink test later.
4579
4580 2010-01-06  Eric Blake  <ebb9@byu.net>
4581
4582         stdio, unistd: guarantee ssize_t
4583         * lib/unistd.in.h (includes): Ensure that types required by POSIX
4584         2008 are exposed when needed.
4585         * lib/stdio.in.h (includes): Likewise.
4586         Reported by Ralf Wildenhues.
4587
4588 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
4589
4590         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
4591         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
4592         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
4593
4594 2010-01-06  Jim Meyering  <meyering@redhat.com>
4595
4596         readtokens: this module *does* require xalloc.h
4597         It uses only functions that were omitted by the old syntax-check rule.
4598         * lib/readtokens.c: Include "xalloc.h" once again.
4599         * modules/readtokens (Depends-on): Add xalloc.
4600         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
4601
4602 2010-01-05  Eric Blake  <ebb9@byu.net>
4603
4604         maint: support 'make announcement' from a VPATH build
4605         * top/maint.mk (announcement): Look for correct NEWS file.
4606
4607 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
4608
4609         utimens (fdutimens): ignore a negative FD, per contract
4610         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
4611         when we have a valid file descriptor.  Otherwise, using a brand
4612         new glibc (with just-patched futimens that now fails with EBADF)
4613         would cause this function to fail with ENOSYS.
4614         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
4615         See also http://bugzilla.redhat.com/552320.
4616
4617 2010-01-05  Eric Blake  <ebb9@byu.net>
4618
4619         strcase: document what it provides
4620         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
4621         gnulib module.
4622         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
4623         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
4624
4625 2010-01-05  Jim Meyering  <meyering@redhat.com>
4626
4627         maint: remove useless inclusions of "xalloc.h"
4628         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
4629         * lib/readtokens.c: Likewise.
4630         * lib/same.c: Likewise.
4631         * modules/getloadavg (Depends-on): Remove xalloc.
4632         * modules/readtokens: Likewise.
4633         * modules/same: Likewise.
4634
4635         maint.mk: include 4 more function names in alloca.h-checking regexp
4636         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
4637         regexp.  Before, we would give a false-positive (saying alloca.h
4638         is included unnecessarily) when the only uses involved omitted symbols.
4639
4640         xalloc.h: use consistent formatting
4641         * lib/xalloc.h: Move declarations to start in the first column.
4642
4643 2010-01-05  Eric Blake  <ebb9@byu.net>
4644
4645         mkdir: avoid xalloc
4646         * lib/mkdir.c (includes): Drop unused header.
4647         Reported by John W. Eaton.
4648
4649 2010-01-04  Jim Meyering  <meyering@redhat.com>
4650
4651         nl_langinfo: avoid configure-time syntax error
4652         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
4653         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
4654         the empty string.  Don't let that provoke a shell syntax error.
4655
4656         regcomp, regexec, fnmatch: avoid array bounds read error
4657         * lib/regcomp.c (build_equiv_class): From glibc:
4658         Use only the low 24 bits of a findidx return value as an index
4659         into the weights array.  Patch by Ulrich Drepper:
4660         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
4661         * lib/regexec.c (check_node_accept_bytes): Likewise.
4662         * lib/fnmatch_loop.c (FCT): Likewise.
4663
4664         regcomp: skip collseq lookup when there are no rules
4665         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
4666         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
4667
4668         regcomp: recognize ill-formed { } expressions
4669         * lib/regcomp.c (parse_dup_op): From glibc:
4670         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
4671
4672         regcomp: fix typo in comment
4673         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
4674         s/satisfy/satisfies/.
4675
4676         regcomp: sync from glibc: remove dead store
4677         * lib/regcomp.c (duplicate_node_closure): Remove useless
4678         search_duplicated_node call and dead store.
4679
4680         regcomp: sync from glibc; always use nl_langinfo
4681         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
4682         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
4683         * modules/regex (Depends-on): Add nl_langinfo.
4684
4685 2010-01-04  Eric Blake  <ebb9@byu.net>
4686
4687         fdopendir: fix configure test
4688         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
4689
4690 2010-01-01  Bruno Haible  <bruno@clisp.org>
4691
4692         wchar: Remove unused configure check.
4693         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
4694
4695 2010-01-01  Eric Blake  <ebb9@byu.net>
4696
4697         headers: make check of system header explicit
4698         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
4699         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
4700         ourselves.
4701         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
4702         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
4703         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
4704         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
4705         internals.
4706         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
4707         missing.
4708         Suggested by Bruno Haible.
4709
4710 2010-01-01  Jim Meyering  <meyering@redhat.com>
4711
4712         ChangeLog: tweak to eliminate unnecessary copyright line
4713         * ChangeLog: Remove a copyright line that was mistakenly updated
4714         by today's update-copyright run.  Reported by Eric Blake.
4715
4716         test-update-copyright: don't let envvar setting cause test failure
4717         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
4718
4719 2010-01-01  Bruno Haible  <bruno@clisp.org>
4720
4721         localename: Avoid gcc warning.
4722         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
4723         function if it is not used.
4724
4725 2010-01-01  Jim Meyering  <meyering@redhat.com>
4726
4727         update nearly all FSF copyright year lists to include 2010
4728         Use the same procedure as for 2009, outlined in
4729         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
4730
4731         version-etc: set COPYRIGHT_YEAR to 2010
4732         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
4733
4734 2009-12-31  Eric Blake  <ebb9@byu.net>
4735
4736         doc: correct availability of cygwin 1.5.x getopt
4737         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
4738         variables.
4739         * doc/posix-functions/opterr.texi (opterr): Likewise.
4740         * doc/posix-functions/optind.texi (optind): Likewise.
4741         * doc/posix-functions/optopt.texi (optopt): Likewise.
4742         * doc/posix-functions/tzname.texi (tzname): Likewise.
4743
4744         openat: update maintainer
4745         * modules/openat (Maintainer): Add myself.
4746
4747         utimens: avoid shadowing warning
4748         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
4749         buffers into one, to avoid shadowing, as well as avoiding a
4750         redundant stat.
4751         Reported by Jim Meyering.
4752
4753         test-dup2: avoid compiler warning
4754         * tests/test-dup2.c (is_inheritable): Only define if used.
4755
4756 2010-01-01  Bruno Haible  <bruno@clisp.org>
4757
4758         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
4759         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
4760         defined, use wctomb instead of wcrtomb.
4761
4762 2010-01-01  Bruno Haible  <bruno@clisp.org>
4763
4764         iconv: Reject native Solaris iconv.
4765         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
4766         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
4767
4768 2009-12-31  Bruno Haible  <bruno@clisp.org>
4769
4770         * tests/test-signal.c (main): Remove test of 'SIG'.
4771
4772 2009-12-31  Bruno Haible  <bruno@clisp.org>
4773
4774         spawn: Fix incomplete fix.
4775         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
4776         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
4777         warnings for GNULIB_POSIXCHECK again.
4778         Reported by Eric Blake.
4779
4780 2009-12-31  Bruno Haible  <bruno@clisp.org>
4781
4782         Avoid namespace pollution on glibc systems.
4783         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
4784         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
4785         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
4786         glibc systems.
4787
4788 2009-12-31  Bruno Haible  <bruno@clisp.org>
4789
4790         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
4791         (gl_REPLACE_WCHAR_H): Turn into a no-op.
4792         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
4793         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
4794         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
4795         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
4796         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
4797
4798 2009-12-31  Bruno Haible  <bruno@clisp.org>
4799
4800         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
4801         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
4802         afterwards.
4803
4804 2009-12-31  Bruno Haible  <bruno@clisp.org>
4805
4806         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
4807         SYS_UTSNAME_H.
4808
4809 2009-12-31  Bruno Haible  <bruno@clisp.org>
4810
4811         spawn: Fix misapplied patch.
4812         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
4813         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
4814         warnings for GNULIB_POSIXCHECK.
4815
4816 2009-12-31  Bruno Haible  <bruno@clisp.org>
4817
4818         times: Update after sys_times changed.
4819         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
4820         * modules/times (Files): Add it.
4821         (configure.ac): Invoke gl_FUNC_TIMES.
4822
4823 2009-12-31  Bruno Haible  <bruno@clisp.org>
4824
4825         Use AC_C_INLINE where necessary.
4826         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
4827         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
4828         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
4829         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
4830         * m4/mbfile.m4 (gl_MBFILE): Likewise.
4831         * m4/mbiter.m4 (gl_MBITER): Likewise.
4832         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
4833         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
4834         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
4835         * modules/u64 (configure.ac): Likewise.
4836
4837 2009-12-31  Bruno Haible  <bruno@clisp.org>
4838
4839         Use AC_C_INLINE instead of module 'inline' where possible.
4840         * modules/inline (Description): Clarify purpose.
4841         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
4842         * modules/count-one-bits (Depends-on): Remove inline.
4843         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
4844         * modules/openat (Depends-on): Remove inline.
4845         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
4846         instead of depending on module 'inline'.
4847         * modules/filevercmp (Depends-on, configure.ac): Likewise.
4848         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
4849         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
4850         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
4851         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
4852         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
4853         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
4854         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
4855         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
4856         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
4857         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
4858         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
4859         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
4860         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
4861         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
4862         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
4863         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
4864         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
4865         Likewise.
4866         * modules/unictype/property-ascii-hex-digit (Depends-on,
4867         configure.ac): Likewise.
4868         * modules/unictype/property-bidi-arabic-digit (Depends-on,
4869         configure.ac): Likewise.
4870         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
4871         configure.ac): Likewise.
4872         * modules/unictype/property-bidi-block-separator (Depends-on,
4873         configure.ac): Likewise.
4874         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
4875         configure.ac): Likewise.
4876         * modules/unictype/property-bidi-common-separator (Depends-on,
4877         configure.ac): Likewise.
4878         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
4879         Likewise.
4880         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
4881         configure.ac): Likewise.
4882         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
4883         configure.ac): Likewise.
4884         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
4885         configure.ac): Likewise.
4886         * modules/unictype/property-bidi-european-digit (Depends-on,
4887         configure.ac): Likewise.
4888         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
4889         configure.ac): Likewise.
4890         * modules/unictype/property-bidi-left-to-right (Depends-on,
4891         configure.ac): Likewise.
4892         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
4893         configure.ac): Likewise.
4894         * modules/unictype/property-bidi-other-neutral (Depends-on,
4895         configure.ac): Likewise.
4896         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
4897         Likewise.
4898         * modules/unictype/property-bidi-segment-separator (Depends-on,
4899         configure.ac): Likewise.
4900         * modules/unictype/property-bidi-whitespace (Depends-on,
4901         configure.ac): Likewise.
4902         * modules/unictype/property-combining (Depends-on, configure.ac):
4903         Likewise.
4904         * modules/unictype/property-composite (Depends-on, configure.ac):
4905         Likewise.
4906         * modules/unictype/property-currency-symbol (Depends-on,
4907         configure.ac): Likewise.
4908         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
4909         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
4910         Likewise.
4911         * modules/unictype/property-default-ignorable-code-point (Depends-on,
4912         configure.ac): Likewise.
4913         * modules/unictype/property-deprecated (Depends-on, configure.ac):
4914         Likewise.
4915         * modules/unictype/property-diacritic (Depends-on, configure.ac):
4916         Likewise.
4917         * modules/unictype/property-extender (Depends-on, configure.ac):
4918         Likewise.
4919         * modules/unictype/property-format-control (Depends-on, configure.ac):
4920         Likewise.
4921         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
4922         Likewise.
4923         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
4924         Likewise.
4925         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
4926         Likewise.
4927         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
4928         Likewise.
4929         * modules/unictype/property-hyphen (Depends-on, configure.ac):
4930         Likewise.
4931         * modules/unictype/property-id-continue (Depends-on, configure.ac):
4932         Likewise.
4933         * modules/unictype/property-id-start (Depends-on, configure.ac):
4934         Likewise.
4935         * modules/unictype/property-ideographic (Depends-on, configure.ac):
4936         Likewise.
4937         * modules/unictype/property-ids-binary-operator (Depends-on,
4938         configure.ac): Likewise.
4939         * modules/unictype/property-ids-trinary-operator (Depends-on,
4940         configure.ac): Likewise.
4941         * modules/unictype/property-ignorable-control (Depends-on,
4942         configure.ac): Likewise.
4943         * modules/unictype/property-iso-control (Depends-on, configure.ac):
4944         Likewise.
4945         * modules/unictype/property-join-control (Depends-on, configure.ac):
4946         Likewise.
4947         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
4948         Likewise.
4949         * modules/unictype/property-line-separator (Depends-on, configure.ac):
4950         Likewise.
4951         * modules/unictype/property-logical-order-exception (Depends-on,
4952         configure.ac): Likewise.
4953         * modules/unictype/property-lowercase (Depends-on, configure.ac):
4954         Likewise.
4955         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
4956         * modules/unictype/property-non-break (Depends-on, configure.ac):
4957         Likewise.
4958         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
4959         Likewise.
4960         * modules/unictype/property-numeric (Depends-on, configure.ac):
4961         Likewise.
4962         * modules/unictype/property-other-alphabetic (Depends-on,
4963         configure.ac): Likewise.
4964         * modules/unictype/property-other-default-ignorable-code-point
4965         (Depends-on, configure.ac): Likewise.
4966         * modules/unictype/property-other-grapheme-extend (Depends-on,
4967         configure.ac): Likewise.
4968         * modules/unictype/property-other-id-continue (Depends-on,
4969         configure.ac): Likewise.
4970         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
4971         Likewise.
4972         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
4973         Likewise.
4974         * modules/unictype/property-other-math (Depends-on, configure.ac):
4975         Likewise.
4976         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
4977         Likewise.
4978         * modules/unictype/property-paired-punctuation (Depends-on,
4979         configure.ac): Likewise.
4980         * modules/unictype/property-paragraph-separator (Depends-on,
4981         configure.ac): Likewise.
4982         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
4983         Likewise.
4984         * modules/unictype/property-pattern-white-space (Depends-on,
4985         configure.ac): Likewise.
4986         * modules/unictype/property-private-use (Depends-on, configure.ac):
4987         Likewise.
4988         * modules/unictype/property-punctuation (Depends-on, configure.ac):
4989         Likewise.
4990         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
4991         Likewise.
4992         * modules/unictype/property-radical (Depends-on, configure.ac):
4993         Likewise.
4994         * modules/unictype/property-sentence-terminal (Depends-on,
4995         configure.ac): Likewise.
4996         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
4997         Likewise.
4998         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
4999         * modules/unictype/property-terminal-punctuation (Depends-on,
5000         configure.ac): Likewise.
5001         * modules/unictype/property-titlecase (Depends-on, configure.ac):
5002         Likewise.
5003         * modules/unictype/property-unassigned-code-value (Depends-on,
5004         configure.ac): Likewise.
5005         * modules/unictype/property-unified-ideograph (Depends-on,
5006         configure.ac): Likewise.
5007         * modules/unictype/property-uppercase (Depends-on, configure.ac):
5008         Likewise.
5009         * modules/unictype/property-variation-selector (Depends-on,
5010         configure.ac): Likewise.
5011         * modules/unictype/property-white-space (Depends-on, configure.ac):
5012         Likewise.
5013         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
5014         Likewise.
5015         * modules/unictype/property-xid-start (Depends-on, configure.ac):
5016         Likewise.
5017         * modules/unictype/property-zero-width (Depends-on, configure.ac):
5018         Likewise.
5019         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
5020         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
5021         Likewise.
5022
5023 2009-12-31  Bruno Haible  <bruno@clisp.org>
5024
5025         Remove unnecessary AC_C_INLINE invocation.
5026         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
5027         since 2009-08-21.
5028
5029 2009-12-31  Jim Meyering  <meyering@redhat.com>
5030
5031         maint.mk: don't require explicit gpg_key_ID in cfg.mk
5032         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
5033         With this change, we can all remove the gpg_key_ID = ... definition
5034         from our respective cfg.mk files.
5035
5036         maint.mk: create announcement template in ~/, not in /tmp
5037         * top/maint.mk (emit_upload_commands): Adjust.
5038         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
5039         Remove temporary file, .ci-msg.
5040
5041 2009-12-31  Eric Blake  <ebb9@byu.net>
5042
5043         link-warning: always build headers with link warnings
5044         * modules/arpa_inet (Makefile.am): Always build replacement
5045         header.
5046         * modules/ctype (Makefile.am): Likewise.
5047         * modules/dirent (Makefile.am): Likewise.
5048         * modules/inttypes (Makefile.am): Likewise.
5049         * modules/langinfo (Makefile.am): Likewise.
5050         * modules/locale (Makefile.am): Likewise.
5051         * modules/spawn (Makefile.am): Likewise.
5052         * modules/sys_file (Makefile.am): Likewise.
5053         * modules/sys_ioctl (Makefile.am): Likewise.
5054         * modules/sys_select (Makefile.am): Likewise.
5055         * modules/sys_socket (Makefile.am): Likewise.
5056         * modules/sys_times (Makefile.am): Likewise.
5057         * modules/sys_utsname (Makefile.am): Likewise.
5058         * modules/sys_wait (Makefile.am): Likewise.
5059         * modules/wchar (Makefile.am): Likewise.
5060         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
5061         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
5062         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
5063         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
5064         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
5065         Likewise.
5066         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
5067         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
5068         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
5069         Likewise.
5070         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
5071         Likewise.
5072         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
5073         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
5074         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
5075         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
5076         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
5077         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
5078         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
5079         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
5080         (gl_WCHAR_H_DEFAULTS): Likewise.
5081
5082 2009-12-31  Eric Blake  <ebb9@byu.net>
5083
5084         signal, spawn: use link warnings
5085         * lib/signal.in.h (sigset_t): Make unconditional.
5086         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
5087         (sigpending, sigprocmask, sigaction): Add link warnings.
5088         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
5089         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
5090         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
5091         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
5092         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
5093         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
5094         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
5095         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
5096         (posix_spawn_file_actions_destroy)
5097         (posix_spawn_file_actions_addopen)
5098         (posix_spawn_file_actions_addclose)
5099         (posix_spawn_file_actions_adddup2): Likewise.
5100         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
5101         * tests/test-signal.c (main): Enhance test.
5102
5103         spawn: improve wrapper support
5104         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
5105         (gl_SPAWN_H_DEFAULTS): New defaults.
5106         * modules/spawn (Makefile.am): Substitute them.
5107         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
5108         Only declare if missing or broken.
5109
5110         sys_times, sys_utsname: use include_next
5111         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
5112         header.
5113         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
5114         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
5115         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
5116         * modules/sys_times (Depends-on): Add include_next.
5117         (Makefile.am): Substitute additional values.
5118         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
5119         * lib/sys_times.in.h (includes): Include native header, if
5120         available.
5121         * lib/sys_utsname.in.h (includes): Likewise.
5122         * tests/test-sys_times.c (main): Enhance test.
5123
5124         fdutimensat: revert prior patch
5125         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
5126         utimens.h.
5127         Reported by Bruno Haible.
5128
5129 2009-12-30  Eric Blake  <ebb9@byu.net>
5130
5131         sys_wait: drop link-warning dependency
5132         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
5133         link-warning efforts.
5134         * lib/sys_wait.in.h: Likewise.
5135
5136         fdutimensat: remove bogus dependency
5137         * modules/fdutimensat (Depends-on): Drop inline.
5138
5139         unistd: fix typo
5140         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
5141
5142 2009-12-30  Bruno Haible  <bruno@clisp.org>
5143
5144         Fix compilation error with Solaris cc.
5145         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
5146         * lib/unicase/u16-is-invariant.c: Likewise.
5147         * lib/unicase/u32-is-invariant.c: Likewise.
5148         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
5149
5150 2009-12-30  Bruno Haible  <bruno@clisp.org>
5151
5152         Fix test crash.
5153         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
5154         locales.
5155         Reported by Simon Josefsson <simon@josefsson.org>.
5156
5157 2009-12-30  Bruno Haible  <bruno@clisp.org>
5158
5159         Fix compilation error on most platforms.
5160         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
5161         Reported by Simon Josefsson <simon@josefsson.org>
5162         and Nelson H. F. Beebe <beebe@math.utah.edu>.
5163
5164 2009-12-30  Eric Blake  <ebb9@byu.net>
5165
5166         futimens, utimensat: work around ntfs-3g bug
5167         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
5168         a ctime bug is present, and expand workaround to cover ntfs-3g.
5169         * lib/utimens.c (fdutimens, lutimens): Likewise.
5170         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
5171         (validate_timespec): Adjust return value.
5172         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
5173         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
5174         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
5175
5176 2009-12-29  Eric Blake  <ebb9@byu.net>
5177
5178         link-warning: make usage consistent
5179         * modules/ctype (Depends-on): Add link-warning.
5180         (Makefile.am): Update rules accordingly.
5181         * modules/langinfo (Depends-on, Makefile.am): Likewise.
5182         * modules/locale (Depends-on, Makefile.am): Likewise.
5183         * modules/sys_file (Makefile.am): Likewise.
5184         * modules/getopt-posix (Makefile.am): Delete unused link warning
5185         efforts.
5186         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
5187         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
5188         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
5189         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
5190
5191         stdio: remove unused variables
5192         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
5193         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
5194         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
5195
5196         tests: test more substitute headers
5197         * modules/ctype-tests: New file.
5198         * modules/dirent-tests: Likewise.
5199         * modules/spawn-tests: Likewise.
5200         * modules/sys_file-tests: Likewise.
5201         * modules/sys_ioctl-tests: Likewise.
5202         * modules/sys_wait-tests: Likewise.
5203         * tests/test-ctype.c: Likewise.
5204         * tests/test-dirent.c: Likewise.
5205         * tests/test-spawn.c: Likewise.
5206         * tests/test-sys_file.c: Likewise.
5207         * tests/test-sys_ioctl.c: Likewise.
5208         * tests/test-sys_wait.c: Likewise.
5209         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
5210         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
5211         whether or not flock is in use.
5212
5213         tests: remove License section from module
5214         * modules/arpa_inet-tests: Remove unneeded section.
5215         * modules/byteswap-tests: Likewise.
5216         * modules/ceilf-tests: Likewise.
5217         * modules/ceill-tests: Likewise.
5218         * modules/crypto/des-tests: Likewise.
5219         * modules/crypto/gc-arcfour-tests: Likewise.
5220         * modules/crypto/gc-arctwo-tests: Likewise.
5221         * modules/crypto/gc-des-tests: Likewise.
5222         * modules/crypto/gc-hmac-md5-tests: Likewise.
5223         * modules/crypto/gc-hmac-sha1-tests: Likewise.
5224         * modules/crypto/gc-md2-tests: Likewise.
5225         * modules/crypto/gc-md4-tests: Likewise.
5226         * modules/crypto/gc-md5-tests: Likewise.
5227         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
5228         * modules/crypto/gc-rijndael-tests: Likewise.
5229         * modules/crypto/gc-sha1-tests: Likewise.
5230         * modules/crypto/gc-tests: Likewise.
5231         * modules/crypto/md2-tests: Likewise.
5232         * modules/crypto/md4-tests: Likewise.
5233         * modules/fcntl-h-tests: Likewise.
5234         * modules/floorf-tests: Likewise.
5235         * modules/floorl-tests: Likewise.
5236         * modules/frexp-nolibm-tests: Likewise.
5237         * modules/frexp-tests: Likewise.
5238         * modules/frexpl-nolibm-tests: Likewise.
5239         * modules/frexpl-tests: Likewise.
5240         * modules/getaddrinfo-tests: Likewise.
5241         * modules/inttypes-tests: Likewise.
5242         * modules/isfinite-tests: Likewise.
5243         * modules/isinf-tests: Likewise.
5244         * modules/ldexpl-tests: Likewise.
5245         * modules/locale-tests: Likewise.
5246         * modules/math-tests: Likewise.
5247         * modules/netdb-tests: Likewise.
5248         * modules/netinet_in-tests: Likewise.
5249         * modules/printf-frexp-tests: Likewise.
5250         * modules/printf-frexpl-tests: Likewise.
5251         * modules/priv-set-tests: Likewise.
5252         * modules/random_r-tests: Likewise.
5253         * modules/round-tests: Likewise.
5254         * modules/roundf-tests: Likewise.
5255         * modules/roundl-tests: Likewise.
5256         * modules/search-tests: Likewise.
5257         * modules/select-tests: Likewise.
5258         * modules/signal-tests: Likewise.
5259         * modules/stdbool-tests: Likewise.
5260         * modules/stddef-tests: Likewise.
5261         * modules/stdint-tests: Likewise.
5262         * modules/stdio-tests: Likewise.
5263         * modules/stdlib-tests: Likewise.
5264         * modules/string-tests: Likewise.
5265         * modules/strings-tests: Likewise.
5266         * modules/sys_select-tests: Likewise.
5267         * modules/sys_socket-tests: Likewise.
5268         * modules/sys_stat-tests: Likewise.
5269         * modules/sys_time-tests: Likewise.
5270         * modules/sys_utsname-tests: Likewise.
5271         * modules/sysexits-tests: Likewise.
5272         * modules/time-tests: Likewise.
5273         * modules/trunc-tests: Likewise.
5274         * modules/truncf-tests: Likewise.
5275         * modules/truncl-tests: Likewise.
5276         * modules/tsearch-tests: Likewise.
5277         * modules/unistd-tests: Likewise.
5278         * modules/wchar-tests: Likewise.
5279         * modules/wctype-tests: Likewise.
5280
5281         tests: fix license on several tests
5282         * tests/test-des.c: Update to GPLv3+.
5283         * tests/test-flock.c: Likewise.
5284         * tests/test-fsync.c: Likewise.
5285         * tests/test-futimens.h: Likewise.
5286         * tests/test-gc-arcfour.c: Likewise.
5287         * tests/test-gc-arctwo.c: Likewise.
5288         * tests/test-gc-des.c: Likewise.
5289         * tests/test-gc-hmac-md5.c: Likewise.
5290         * tests/test-gc-hmac-sha1.c: Likewise.
5291         * tests/test-gc-md2.c: Likewise.
5292         * tests/test-gc-md4.c: Likewise.
5293         * tests/test-gc-md5.c: Likewise.
5294         * tests/test-gc-pbkdf2-sha1.c: Likewise.
5295         * tests/test-gc-rijndael.c: Likewise.
5296         * tests/test-gc-sha1.c: Likewise.
5297         * tests/test-gc.c: Likewise.
5298         * tests/test-getcwd.c: Likewise.
5299         * tests/test-link.c: Likewise.
5300         * tests/test-link.h: Likewise.
5301         * tests/test-lutimens.h: Likewise.
5302         * tests/test-md2.c: Likewise.
5303         * tests/test-md4.c: Likewise.
5304         * tests/test-mkdir.h: Likewise.
5305         * tests/test-rename.c: Likewise.
5306         * tests/test-rename.h: Likewise.
5307         * tests/test-safe-alloc.c: Likewise.
5308         * tests/test-utimens-common.h: Likewise.
5309         * tests/test-utimens.h: Likewise.
5310
5311         maint: sync license texts
5312         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
5313         * doc/gpl-3.0.texi: Revert copyright year update.
5314         * doc/lgpl-3.0.texi: Likewise.
5315
5316 2009-12-29  Jim Meyering  <meyering@redhat.com>
5317
5318         update nearly all FSF copyright year lists to include 2009
5319         The files named by the following are exempted:
5320             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
5321               test -f "$dst" && { echo "$dst"; continue; }
5322               test -d "$dst" || continue
5323               echo "$dst"/$(basename "$src")
5324             done > exempt
5325             git ls-files tests/unictype >> exempt
5326         In the remaining files, convert to all-interval notation if
5327         - there is already at least one year interval like 2000-2003
5328         - the file is maintained by me
5329         - the file is in lib/uni*/, where that style already prevails
5330         Otherwise, use update-copyright's default.
5331
5332 2009-12-29  Simon Josefsson  <simon@josefsson.org>
5333         and Eric Blake  <ebb9@byu.net>
5334
5335         tests: don't require debug system() to pass
5336         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
5337         * tests/test-rmdir.h (test_rmdir_func): Likewise.
5338         * tests/test-unlink.h (test_unlink_func): Likewise.
5339         * tests/test-fstatat.c (main): ...into callers.
5340         * tests/test-lstat.c (main): Likewise.
5341         * tests/test-rmdir.c (main): Likewise.
5342         * tests/test-unlink.c (main): Likewise.
5343         * tests/test-unlinkat.c (main): Likewise.
5344         * tests/test-areadlink-with-size.c (main): Don't require a
5345         debug-only system call to pass, aiding cross-testing to mingw.
5346         * tests/test-areadlink.c (main): Likewise.
5347         * tests/test-areadlinkat-with-size.c (main): Likewise.
5348         * tests/test-areadlinkat.c (main): Likewise.
5349         * tests/test-canonicalize-lgpl.c (main): Likewise.
5350         * tests/test-canonicalize.c (main): Likewise.
5351         * tests/test-chown.c (main): Likewise.
5352         * tests/test-fchownat.c (main): Likewise.
5353         * tests/test-lchown.c (main): Likewise.
5354         * tests/test-fdutimensat.c (main): Likewise.
5355         * tests/test-futimens.c (main): Likewise.
5356         * tests/test-link.c (main): Likewise.
5357         * tests/test-linkat.c (main): Likewise.
5358         * tests/test-mkdir.c (main): Likewise.
5359         * tests/test-mkdirat.c (main): Likewise.
5360         * tests/test-mkfifo.c (main): Likewise.
5361         * tests/test-mkfifoat.c (main): Likewise.
5362         * tests/test-mknod.c (main): Likewise.
5363         * tests/test-readlink.c (main): Likewise.
5364         * tests/test-remove.c (main): Likewise.
5365         * tests/test-rename.c (main): Likewise.
5366         * tests/test-renameat.c (main): Likewise.
5367         * tests/test-symlink.c (main): Likewise.
5368         * tests/test-symlinkat.c (main): Likewise.
5369         * tests/test-utimens.c (main): Likewise.
5370         * tests/test-utimensat.c (main): Likewise.
5371
5372 2009-12-29  Simon Josefsson  <simon@josefsson.org>
5373
5374         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
5375         on $(UNUSED_PARAMETER_H) to avoid build failure.
5376
5377 2009-12-28  Jim Meyering  <meyering@redhat.com>
5378
5379         update-copyright: you may specify a max. line length other than 72
5380         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
5381
5382         maint: use consistent FSF copyright line syntax
5383         * lib/posixtm.c: Add missing comma in FSF copyright line.
5384         * lib/posixtm.h: Likewise.
5385         * lib/getugroups.c: Add missing ", Inc.".
5386
5387         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
5388         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
5389         FSF copyright line.  Remove trailing blanks.
5390
5391 2009-12-28  Eric Blake  <ebb9@byu.net>
5392
5393         test-dup2: reduce dependencies
5394         * modules/cloexec (Configure.ac): Set witness.
5395         * modules/dup2-tests (Depends-on): Drop cloexec.
5396         * tests/test-dup2.c (main): Skip portion of test if cloexec module
5397         not present.
5398         Suggested by Bruno Haible.
5399
5400 2009-12-26  Bruno Haible  <bruno@clisp.org>
5401
5402         Remove an unneeded dependency.
5403         * modules/fseterr (Depends-on): Remove dup2.
5404
5405 2009-12-26  Eric Blake  <ebb9@byu.net>
5406
5407         tests: use macros.h in more places
5408         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
5409         (ASSERT_STREAM): Provide default of stderr.
5410         * tests/test-dirent-safer.c: Include macros.h, using alternate
5411         stream for assertions.
5412         * tests/test-dup-safer.c: Likewise.
5413         * tests/test-freopen-safer.c: Likewise.
5414         * tests/test-getopt.c: Likewise.
5415         * tests/test-openat-safer.c: Likewise.
5416         * tests/test-pipe.c: Likewise.
5417         * tests/test-popen-safer.c: Likewise.
5418         * modules/dirent-safer-tests (Files): Include macros.h.
5419         * modules/unistd-safer-tests (Files): Likewise.
5420         * modules/freopen-safer-tests (Files): Likewise.
5421         * modules/getopt-posix-tests (Files): Likewise.
5422         * modules/openat-safer-tests (Files): Likewise.
5423         * modules/pipe-tests (Files): Likewise.
5424
5425 2009-12-26  Bruno Haible  <bruno@clisp.org>
5426
5427         javacomp: Portability fix.
5428         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
5429         that it also works on Solaris.
5430
5431 2009-12-26  Bruno Haible  <bruno@clisp.org>
5432
5433         localename: Fix storage allocation of gl_locale_name_thread's result.
5434         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
5435         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
5436         all platforms that have 'uselocale'.
5437         (gl_locale_name_thread_unsafe): New function, extracted from
5438         gl_locale_name_thread.
5439         (gl_locale_name_thread): Call struniq on all platforms that have
5440         'uselocale'.
5441         * tests/test-localename.c (test_locale_name_thread): Check that the
5442         resulting strings are permanently allocated.
5443         * modules/localename-tests (Depends-on): Add strdup.
5444
5445 2009-12-26  Bruno Haible  <bruno@clisp.org>
5446
5447         * tests/test-localename.c (categories): Fill in the strings.
5448
5449 2009-12-26  Jim Meyering  <meyering@redhat.com>
5450
5451         isdir: complete the removal of m4/isdir.m4
5452         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
5453
5454         isdir: clean up, since at least grep still uses it
5455         * lib/isdir.c: Include "isdir.h".
5456         (S_ISDIR): Remove now-unneeded definition.
5457         * modules/isdir (Files): Add lib/isdir.h.
5458         * lib/isdir.h: New file, with declaration.
5459         * m4/isdir.m4: Remove file -- unneeded.
5460
5461 2009-12-25  Bruno Haible  <bruno@clisp.org>
5462
5463         selinux-h: Make generated .h files standalone.
5464         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
5465         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
5466         * lib/se-selinux.in.h: Likewise.
5467         * modules/selinux-h (Depends-on): Add unused-parameter.
5468         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
5469         selinux/selinux.h and selinux/context.h.
5470         Suggested by Eric Blake.
5471
5472 2009-12-25  Bruno Haible  <bruno@clisp.org>
5473
5474         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
5475         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
5476         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
5477         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
5478         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
5479
5480 2009-12-24  Bruno Haible  <bruno@clisp.org>
5481
5482         openat: Fix warning.
5483         * lib/openat-proc.c: Include <unistd.h>.
5484
5485 2009-12-24  Bruno Haible  <bruno@clisp.org>
5486
5487         New module 'unused-parameter'.
5488         * build-aux/unused-parameter.h: New file, extracted from earlier
5489         gnulib-common.m4.
5490         * modules/unused-parameter: New file.
5491         * lib/unistr.h: Include unused-parameter.h.
5492         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
5493         _GL_UNUSED.
5494         * modules/unistr/base (Depends-on): Add unused-parameter.
5495
5496 2009-12-24  Bruno Haible  <bruno@clisp.org>
5497
5498         Add missing dependencies to 'extensions' module.
5499         * m4/extensions.m4: Add comment.
5500         * modules/accept4 (Depends-on): Add extensions.
5501         * modules/dup3 (Depends-on): Likewise.
5502         * modules/fcntl (Depends-on): Likewise.
5503         * modules/futimens (Depends-on): Likewise.
5504         * modules/mknod (Depends-on): Likewise.
5505         * modules/pipe2 (Depends-on): Likewise.
5506         * modules/stat-time (Depends-on): Likewise.
5507         * modules/strcasestr-simple (Depends-on): Likewise.
5508         * modules/strsignal (Depends-on): Likewise.
5509         * modules/utimensat (Depends-on): Likewise.
5510         * modules/localcharset (Depends-on): Likewise. Needed because of
5511         gl_FCNTL_O_FLAGS.
5512         * modules/wcrtomb (Depends-on): Likewise. Needed because of
5513         AC_TYPE_MBSTATE_T.
5514         * modules/wcsnrtombs (Depends-on): Likewise.
5515         * modules/wcsrtombs (Depends-on): Likewise.
5516
5517 2009-12-24  Bruno Haible  <bruno@clisp.org>
5518
5519         binary-io: Avoid gcc warning due to SET_BINARY.
5520         * lib/binary-io.h (SET_BINARY): Cast the result to void.
5521         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
5522
5523 2009-12-24  Bruno Haible  <bruno@clisp.org>
5524
5525         Avoid future namespace pollution on glibc systems.
5526         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
5527         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
5528         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
5529         glibc systems.
5530
5531 2009-12-24  Bruno Haible  <bruno@clisp.org>
5532
5533         Refactor common macros used in tests.
5534         * tests/macros.h: New file.
5535         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
5536         and/or <stdlib.h>, if appropriate.
5537         (ASSERT, SIZEOF): Remove macros.
5538         * tests/test-areadlink-with-size.c: Likewise.
5539         * tests/test-areadlinkat.c: Likewise.
5540         * tests/test-areadlinkat-with-size.c: Likewise.
5541         * tests/test-argmatch.c: Likewise.
5542         * tests/test-argv-iter.c: Likewise.
5543         * tests/test-array-mergesort.c: Likewise.
5544         * tests/test-array_list.c: Likewise.
5545         * tests/test-array_oset.c: Likewise.
5546         * tests/test-avltree_list.c: Likewise.
5547         * tests/test-avltree_oset.c: Likewise.
5548         * tests/test-avltreehash_list.c: Likewise.
5549         * tests/test-base64.c: Likewise.
5550         * tests/test-binary-io.c: Likewise.
5551         * tests/test-bitrotate.c: Likewise.
5552         * tests/test-btowc.c: Likewise.
5553         * tests/test-byteswap.c: Likewise.
5554         * tests/test-c-ctype.c: Likewise.
5555         * tests/test-c-stack.c: Likewise.
5556         * tests/test-c-strcasecmp.c: Likewise.
5557         * tests/test-c-strcasestr.c: Likewise.
5558         * tests/test-c-strncasecmp.c: Likewise.
5559         * tests/test-c-strstr.c: Likewise.
5560         * tests/test-canonicalize-lgpl.c: Likewise.
5561         * tests/test-canonicalize.c: Likewise.
5562         * tests/test-carray_list.c: Likewise.
5563         * tests/test-ceilf1.c: Likewise.
5564         * tests/test-ceilf2.c: Likewise.
5565         * tests/test-ceill.c: Likewise.
5566         * tests/test-chown.c: Likewise.
5567         * tests/test-cloexec.c: Likewise.
5568         * tests/test-copy-acl.c: Likewise.
5569         * tests/test-copy-file.c: Likewise.
5570         * tests/test-count-one-bits.c: Likewise.
5571         * tests/test-dprintf-posix.c: Likewise.
5572         * tests/test-dup2.c: Likewise.
5573         * tests/test-dup3.c: Likewise.
5574         * tests/test-duplocale.c: Likewise.
5575         * tests/test-fbufmode.c: Likewise.
5576         * tests/test-fchdir.c: Likewise.
5577         * tests/test-fchownat.c: Likewise.
5578         * tests/test-fcntl-safer.c: Likewise.
5579         * tests/test-fcntl.c: Likewise.
5580         * tests/test-fdopendir.c: Likewise.
5581         * tests/test-fdutimensat.c: Likewise.
5582         * tests/test-fflush2.c: Likewise.
5583         * tests/test-file-has-acl.c: Likewise.
5584         * tests/test-filevercmp.c: Likewise.
5585         * tests/test-flock.c: Likewise.
5586         * tests/test-floorf1.c: Likewise.
5587         * tests/test-floorf2.c: Likewise.
5588         * tests/test-floorl.c: Likewise.
5589         * tests/test-fnmatch.c: Likewise.
5590         * tests/test-fopen.h: Likewise.
5591         * tests/test-fpending.c: Likewise.
5592         * tests/test-fprintf-posix.c: Likewise.
5593         * tests/test-fpurge.c: Likewise.
5594         * tests/test-freadable.c: Likewise.
5595         * tests/test-freadahead.c: Likewise.
5596         * tests/test-freading.c: Likewise.
5597         * tests/test-freadptr.c: Likewise.
5598         * tests/test-freadptr2.c: Likewise.
5599         * tests/test-freadseek.c: Likewise.
5600         * tests/test-freopen.c: Likewise.
5601         * tests/test-frexp.c: Likewise.
5602         * tests/test-frexpl.c: Likewise.
5603         * tests/test-fseek.c: Likewise.
5604         * tests/test-fseeko.c: Likewise.
5605         * tests/test-fstatat.c: Likewise.
5606         * tests/test-fstrcmp.c: Likewise.
5607         * tests/test-fsync.c: Likewise.
5608         * tests/test-ftell.c: Likewise.
5609         * tests/test-ftello.c: Likewise.
5610         * tests/test-func.c: Likewise.
5611         * tests/test-futimens.c: Likewise.
5612         * tests/test-fwritable.c: Likewise.
5613         * tests/test-fwriting.c: Likewise.
5614         * tests/test-getcwd.c: Likewise.
5615         * tests/test-getdate.c: Likewise.
5616         * tests/test-getdelim.c: Likewise.
5617         * tests/test-getdtablesize.c: Likewise.
5618         * tests/test-getgroups.c: Likewise.
5619         * tests/test-getline.c: Likewise.
5620         * tests/test-getndelim2.c: Likewise.
5621         * tests/test-glob.c: Likewise.
5622         * tests/test-hash.c: Likewise.
5623         * tests/test-i-ring.c: Likewise.
5624         * tests/test-iconv-utf.c: Likewise.
5625         * tests/test-iconv.c: Likewise.
5626         * tests/test-idpriv-drop.c: Likewise.
5627         * tests/test-idpriv-droptemp.c: Likewise.
5628         * tests/test-inet_ntop.c: Likewise.
5629         * tests/test-inet_pton.c: Likewise.
5630         * tests/test-isblank.c: Likewise.
5631         * tests/test-isfinite.c: Likewise.
5632         * tests/test-isinf.c: Likewise.
5633         * tests/test-isnan.c: Likewise.
5634         * tests/test-isnand.h: Likewise.
5635         * tests/test-isnanf.h: Likewise.
5636         * tests/test-isnanl.h: Likewise.
5637         * tests/test-lchown.c: Likewise.
5638         * tests/test-ldexpl.c: Likewise.
5639         * tests/test-link.c: Likewise.
5640         * tests/test-linkat.c: Likewise.
5641         * tests/test-linked_list.c: Likewise.
5642         * tests/test-linkedhash_list.c: Likewise.
5643         * tests/test-localename.c: Likewise.
5644         * tests/test-lseek.c: Likewise.
5645         * tests/test-lstat.c: Likewise.
5646         * tests/test-mbmemcasecmp.c: Likewise.
5647         * tests/test-mbmemcasecoll.c: Likewise.
5648         * tests/test-mbrtowc.c: Likewise.
5649         * tests/test-mbscasecmp.c: Likewise.
5650         * tests/test-mbscasestr1.c: Likewise.
5651         * tests/test-mbscasestr2.c: Likewise.
5652         * tests/test-mbscasestr3.c: Likewise.
5653         * tests/test-mbscasestr4.c: Likewise.
5654         * tests/test-mbschr.c: Likewise.
5655         * tests/test-mbscspn.c: Likewise.
5656         * tests/test-mbsinit.c: Likewise.
5657         * tests/test-mbsncasecmp.c: Likewise.
5658         * tests/test-mbsnrtowcs.c: Likewise.
5659         * tests/test-mbspbrk.c: Likewise.
5660         * tests/test-mbspcasecmp.c: Likewise.
5661         * tests/test-mbsrchr.c: Likewise.
5662         * tests/test-mbsrtowcs.c: Likewise.
5663         * tests/test-mbsspn.c: Likewise.
5664         * tests/test-mbsstr1.c: Likewise.
5665         * tests/test-mbsstr2.c: Likewise.
5666         * tests/test-mbsstr3.c: Likewise.
5667         * tests/test-memchr.c: Likewise.
5668         * tests/test-memchr2.c: Likewise.
5669         * tests/test-memcmp.c: Likewise.
5670         * tests/test-memmem.c: Likewise.
5671         * tests/test-memrchr.c: Likewise.
5672         * tests/test-mkdir.c: Likewise.
5673         * tests/test-mkdirat.c: Likewise.
5674         * tests/test-mkfifo.c: Likewise.
5675         * tests/test-mkfifoat.c: Likewise.
5676         * tests/test-mknod.c: Likewise.
5677         * tests/test-nanosleep.c: Likewise.
5678         * tests/test-nl_langinfo.c: Likewise.
5679         * tests/test-obstack-printf.c: Likewise.
5680         * tests/test-open.c: Likewise.
5681         * tests/test-openat.c: Likewise.
5682         * tests/test-pipe-filter-gi1.c: Likewise.
5683         * tests/test-pipe-filter-gi2-main.c: Likewise.
5684         * tests/test-pipe-filter-ii1.c: Likewise.
5685         * tests/test-pipe-filter-ii2-main.c: Likewise.
5686         * tests/test-pipe2.c: Likewise.
5687         * tests/test-popen.h: Likewise.
5688         * tests/test-posixtm.c: Likewise.
5689         * tests/test-pread.c: Likewise.
5690         * tests/test-printf-frexp.c: Likewise.
5691         * tests/test-printf-frexpl.c: Likewise.
5692         * tests/test-printf-posix.c: Likewise.
5693         * tests/test-priv-set.c: Likewise.
5694         * tests/test-quotearg.c: Likewise.
5695         * tests/test-random_r.c: Likewise.
5696         * tests/test-rawmemchr.c: Likewise.
5697         * tests/test-rbtree_list.c: Likewise.
5698         * tests/test-rbtree_oset.c: Likewise.
5699         * tests/test-rbtreehash_list.c: Likewise.
5700         * tests/test-readlink.c: Likewise.
5701         * tests/test-remove.c: Likewise.
5702         * tests/test-rename.c: Likewise.
5703         * tests/test-renameat.c: Likewise.
5704         * tests/test-rmdir.c: Likewise.
5705         * tests/test-round1.c: Likewise.
5706         * tests/test-roundf1.c: Likewise.
5707         * tests/test-roundl.c: Likewise.
5708         * tests/test-safe-alloc.c: Likewise.
5709         * tests/test-sameacls.c: Likewise.
5710         * tests/test-set-mode-acl.c: Likewise.
5711         * tests/test-setenv.c: Likewise.
5712         * tests/test-sigaction.c: Likewise.
5713         * tests/test-signbit.c: Likewise.
5714         * tests/test-sleep.c: Likewise.
5715         * tests/test-snprintf-posix.c: Likewise.
5716         * tests/test-snprintf.c: Likewise.
5717         * tests/test-sprintf-posix.c: Likewise.
5718         * tests/test-stat-time.c: Likewise.
5719         * tests/test-stat.c: Likewise.
5720         * tests/test-strcasestr.c: Likewise.
5721         * tests/test-strchrnul.c: Likewise.
5722         * tests/test-strerror.c: Likewise.
5723         * tests/test-striconv.c: Likewise.
5724         * tests/test-striconveh.c: Likewise.
5725         * tests/test-striconveha.c: Likewise.
5726         * tests/test-strsignal.c: Likewise.
5727         * tests/test-strstr.c: Likewise.
5728         * tests/test-strtod.c: Likewise.
5729         * tests/test-strverscmp.c: Likewise.
5730         * tests/test-symlink.c: Likewise.
5731         * tests/test-symlinkat.c: Likewise.
5732         * tests/test-trunc1.c: Likewise.
5733         * tests/test-trunc2.c: Likewise.
5734         * tests/test-truncf1.c: Likewise.
5735         * tests/test-truncf2.c: Likewise.
5736         * tests/test-truncl.c: Likewise.
5737         * tests/test-uname.c: Likewise.
5738         * tests/test-unlink.c: Likewise.
5739         * tests/test-unlinkat.c: Likewise.
5740         * tests/test-unsetenv.c: Likewise.
5741         * tests/test-usleep.c: Likewise.
5742         * tests/test-utimens.c: Likewise.
5743         * tests/test-utimensat.c: Likewise.
5744         * tests/test-vasnprintf-posix.c: Likewise.
5745         * tests/test-vasnprintf-posix2.c: Likewise.
5746         * tests/test-vasnprintf.c: Likewise.
5747         * tests/test-vasprintf-posix.c: Likewise.
5748         * tests/test-vasprintf.c: Likewise.
5749         * tests/test-vdprintf-posix.c: Likewise.
5750         * tests/test-vfprintf-posix.c: Likewise.
5751         * tests/test-vprintf-posix.c: Likewise.
5752         * tests/test-vsnprintf-posix.c: Likewise.
5753         * tests/test-vsnprintf.c: Likewise.
5754         * tests/test-vsprintf-posix.c: Likewise.
5755         * tests/test-wcrtomb.c: Likewise.
5756         * tests/test-wcsnrtombs.c: Likewise.
5757         * tests/test-wcsrtombs.c: Likewise.
5758         * tests/test-wctype.c: Likewise.
5759         * tests/test-wcwidth.c: Likewise.
5760         * tests/test-xfprintf-posix.c: Likewise.
5761         * tests/test-xmemdup0.c: Likewise.
5762         * tests/test-xprintf-posix.c: Likewise.
5763         * tests/test-xvasprintf.c: Likewise.
5764         * tests/unicase/test-locale-language.c: Likewise.
5765         * tests/unicase/test-mapping-part1.h: Likewise.
5766         * tests/unicase/test-predicate-part1.h: Likewise.
5767         * tests/unicase/test-u8-casecmp.c: Likewise.
5768         * tests/unicase/test-u8-casecoll.c: Likewise.
5769         * tests/unicase/test-u8-casefold.c: Likewise.
5770         * tests/unicase/test-u8-is-cased.c: Likewise.
5771         * tests/unicase/test-u8-is-casefolded.c: Likewise.
5772         * tests/unicase/test-u8-is-lowercase.c: Likewise.
5773         * tests/unicase/test-u8-is-titlecase.c: Likewise.
5774         * tests/unicase/test-u8-is-uppercase.c: Likewise.
5775         * tests/unicase/test-u8-tolower.c: Likewise.
5776         * tests/unicase/test-u8-totitle.c: Likewise.
5777         * tests/unicase/test-u8-toupper.c: Likewise.
5778         * tests/unicase/test-u16-casecmp.c: Likewise.
5779         * tests/unicase/test-u16-casecoll.c: Likewise.
5780         * tests/unicase/test-u16-casefold.c: Likewise.
5781         * tests/unicase/test-u16-is-cased.c: Likewise.
5782         * tests/unicase/test-u16-is-casefolded.c: Likewise.
5783         * tests/unicase/test-u16-is-lowercase.c: Likewise.
5784         * tests/unicase/test-u16-is-titlecase.c: Likewise.
5785         * tests/unicase/test-u16-is-uppercase.c: Likewise.
5786         * tests/unicase/test-u16-tolower.c: Likewise.
5787         * tests/unicase/test-u16-totitle.c: Likewise.
5788         * tests/unicase/test-u16-toupper.c: Likewise.
5789         * tests/unicase/test-u32-casecmp.c: Likewise.
5790         * tests/unicase/test-u32-casecoll.c: Likewise.
5791         * tests/unicase/test-u32-casefold.c: Likewise.
5792         * tests/unicase/test-u32-is-cased.c: Likewise.
5793         * tests/unicase/test-u32-is-casefolded.c: Likewise.
5794         * tests/unicase/test-u32-is-lowercase.c: Likewise.
5795         * tests/unicase/test-u32-is-titlecase.c: Likewise.
5796         * tests/unicase/test-u32-is-uppercase.c: Likewise.
5797         * tests/unicase/test-u32-tolower.c: Likewise.
5798         * tests/unicase/test-u32-totitle.c: Likewise.
5799         * tests/unicase/test-u32-toupper.c: Likewise.
5800         * tests/unicase/test-ulc-casecmp.c: Likewise.
5801         * tests/unicase/test-ulc-casecoll.c: Likewise.
5802         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
5803         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
5804         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
5805         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
5806         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
5807         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
5808         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
5809         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
5810         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
5811         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
5812         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
5813         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
5814         * tests/unictype/test-bidi_byname.c: Likewise.
5815         * tests/unictype/test-bidi_name.c: Likewise.
5816         * tests/unictype/test-bidi_of.c: Likewise.
5817         * tests/unictype/test-bidi_test.c: Likewise.
5818         * tests/unictype/test-block_list.c: Likewise.
5819         * tests/unictype/test-block_of.c: Likewise.
5820         * tests/unictype/test-block_test.c: Likewise.
5821         * tests/unictype/test-categ_and.c: Likewise.
5822         * tests/unictype/test-categ_and_not.c: Likewise.
5823         * tests/unictype/test-categ_byname.c: Likewise.
5824         * tests/unictype/test-categ_name.c: Likewise.
5825         * tests/unictype/test-categ_none.c: Likewise.
5826         * tests/unictype/test-categ_of.c: Likewise.
5827         * tests/unictype/test-categ_or.c: Likewise.
5828         * tests/unictype/test-categ_test_withtable.c: Likewise.
5829         * tests/unictype/test-combining.c: Likewise.
5830         * tests/unictype/test-decdigit.c: Likewise.
5831         * tests/unictype/test-digit.c: Likewise.
5832         * tests/unictype/test-mirror.c: Likewise.
5833         * tests/unictype/test-numeric.c: Likewise.
5834         * tests/unictype/test-pr_byname.c: Likewise.
5835         * tests/unictype/test-pr_test.c: Likewise.
5836         * tests/unictype/test-predicate-part1.h: Likewise.
5837         * tests/unictype/test-scripts.c: Likewise.
5838         * tests/unictype/test-sy_c_ident.c: Likewise.
5839         * tests/unictype/test-sy_java_ident.c: Likewise.
5840         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
5841         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
5842         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
5843         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
5844         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
5845         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
5846         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
5847         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
5848         * tests/uninorm/test-canonical-decomposition.c: Likewise.
5849         * tests/uninorm/test-compat-decomposition.c: Likewise.
5850         * tests/uninorm/test-composition.c: Likewise.
5851         * tests/uninorm/test-decomposing-form.c: Likewise.
5852         * tests/uninorm/test-decomposition.c: Likewise.
5853         * tests/uninorm/test-u8-nfc.c: Likewise.
5854         * tests/uninorm/test-u8-nfd.c: Likewise.
5855         * tests/uninorm/test-u8-nfkc.c: Likewise.
5856         * tests/uninorm/test-u8-nfkd.c: Likewise.
5857         * tests/uninorm/test-u8-normcmp.c: Likewise.
5858         * tests/uninorm/test-u8-normcoll.c: Likewise.
5859         * tests/uninorm/test-u16-nfc.c: Likewise.
5860         * tests/uninorm/test-u16-nfd.c: Likewise.
5861         * tests/uninorm/test-u16-nfkc.c: Likewise.
5862         * tests/uninorm/test-u16-nfkd.c: Likewise.
5863         * tests/uninorm/test-u16-normcmp.c: Likewise.
5864         * tests/uninorm/test-u16-normcoll.c: Likewise.
5865         * tests/uninorm/test-u32-nfc.c: Likewise.
5866         * tests/uninorm/test-u32-nfd.c: Likewise.
5867         * tests/uninorm/test-u32-nfkc.c: Likewise.
5868         * tests/uninorm/test-u32-nfkd.c: Likewise.
5869         * tests/uninorm/test-u32-normalize-big.c: Likewise.
5870         * tests/uninorm/test-u32-normcmp.c: Likewise.
5871         * tests/uninorm/test-u32-normcoll.c: Likewise.
5872         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
5873         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
5874         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
5875         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
5876         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
5877         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
5878         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
5879         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
5880         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
5881         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
5882         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
5883         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
5884         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
5885         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
5886         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
5887         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
5888         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
5889         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
5890         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
5891         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
5892         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
5893         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
5894         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
5895         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
5896         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
5897         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
5898         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
5899         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
5900         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
5901         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
5902         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
5903         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
5904         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
5905         * tests/uniwidth/test-u8-strwidth.c: Likewise.
5906         * tests/uniwidth/test-u8-width.c: Likewise.
5907         * tests/uniwidth/test-u16-strwidth.c: Likewise.
5908         * tests/uniwidth/test-u16-width.c: Likewise.
5909         * tests/uniwidth/test-u32-strwidth.c: Likewise.
5910         * tests/uniwidth/test-u32-width.c: Likewise.
5911         * tests/uniwidth/test-uc_width.c: Likewise.
5912         * tests/uniwidth/test-uc_width2.c: Likewise.
5913         * modules/acl-tests (Files): Add tests/macros.h.
5914         * modules/areadlink-tests (Files): Likewise.
5915         * modules/areadlink-with-size-tests (Files): Likewise.
5916         * modules/areadlinkat-tests (Files): Likewise.
5917         * modules/areadlinkat-with-size-tests (Files): Likewise.
5918         * modules/argmatch-tests (Files): Likewise.
5919         * modules/argv-iter-tests (Files): Likewise.
5920         * modules/array-list-tests (Files): Likewise.
5921         * modules/array-mergesort-tests (Files): Likewise.
5922         * modules/array-oset-tests (Files): Likewise.
5923         * modules/avltree-list-tests (Files): Likewise.
5924         * modules/avltree-oset-tests (Files): Likewise.
5925         * modules/avltreehash-list-tests (Files): Likewise.
5926         * modules/base64-tests (Files): Likewise.
5927         * modules/binary-io-tests (Files): Likewise.
5928         * modules/bitrotate-tests (Files): Likewise.
5929         * modules/btowc-tests (Files): Likewise.
5930         * modules/byteswap-tests (Files): Likewise.
5931         * modules/c-ctype-tests (Files): Likewise.
5932         * modules/c-stack-tests (Files): Likewise.
5933         * modules/c-strcase-tests (Files): Likewise.
5934         * modules/c-strcasestr-tests (Files): Likewise.
5935         * modules/c-strstr-tests (Files): Likewise.
5936         * modules/canonicalize-lgpl-tests (Files): Likewise.
5937         * modules/canonicalize-tests (Files): Likewise.
5938         * modules/carray-list-tests (Files): Likewise.
5939         * modules/ceilf-tests (Files): Likewise.
5940         * modules/ceill-tests (Files): Likewise.
5941         * modules/chown-tests (Files): Likewise.
5942         * modules/cloexec-tests (Files): Likewise.
5943         * modules/copy-file-tests (Files): Likewise.
5944         * modules/count-one-bits-tests (Files): Likewise.
5945         * modules/dprintf-posix-tests (Files): Likewise.
5946         * modules/dup2-tests (Files): Likewise.
5947         * modules/dup3-tests (Files): Likewise.
5948         * modules/duplocale-tests (Files): Likewise.
5949         * modules/fbufmode-tests (Files): Likewise.
5950         * modules/fchdir-tests (Files): Likewise.
5951         * modules/fcntl-safer-tests (Files): Likewise.
5952         * modules/fcntl-tests (Files): Likewise.
5953         * modules/fdopendir-tests (Files): Likewise.
5954         * modules/fdutimensat-tests (Files): Likewise.
5955         * modules/fflush-tests (Files): Likewise.
5956         * modules/filevercmp-tests (Files): Likewise.
5957         * modules/flock-tests (Files): Likewise.
5958         * modules/floorf-tests (Files): Likewise.
5959         * modules/floorl-tests (Files): Likewise.
5960         * modules/fnmatch-tests (Files): Likewise.
5961         * modules/fopen-safer-tests (Files): Likewise.
5962         * modules/fopen-tests (Files): Likewise.
5963         * modules/fpending-tests (Files): Likewise.
5964         * modules/fprintf-posix-tests (Files): Likewise.
5965         * modules/fpurge-tests (Files): Likewise.
5966         * modules/freadable-tests (Files): Likewise.
5967         * modules/freadahead-tests (Files): Likewise.
5968         * modules/freading-tests (Files): Likewise.
5969         * modules/freadptr-tests (Files): Likewise.
5970         * modules/freadseek-tests (Files): Likewise.
5971         * modules/freopen-tests (Files): Likewise.
5972         * modules/frexp-nolibm-tests (Files): Likewise.
5973         * modules/frexp-tests (Files): Likewise.
5974         * modules/frexpl-nolibm-tests (Files): Likewise.
5975         * modules/frexpl-tests (Files): Likewise.
5976         * modules/fseek-tests (Files): Likewise.
5977         * modules/fseeko-tests (Files): Likewise.
5978         * modules/fstrcmp-tests (Files): Likewise.
5979         * modules/fsync-tests (Files): Likewise.
5980         * modules/ftell-tests (Files): Likewise.
5981         * modules/ftello-tests (Files): Likewise.
5982         * modules/func-tests (Files): Likewise.
5983         * modules/futimens-tests (Files): Likewise.
5984         * modules/fwritable-tests (Files): Likewise.
5985         * modules/fwriting-tests (Files): Likewise.
5986         * modules/getcwd-tests (Files): Likewise.
5987         * modules/getdate-tests (Files): Likewise.
5988         * modules/getdelim-tests (Files): Likewise.
5989         * modules/getdtablesize-tests (Files): Likewise.
5990         * modules/getgroups-tests (Files): Likewise.
5991         * modules/getline-tests (Files): Likewise.
5992         * modules/getndelim2-tests (Files): Likewise.
5993         * modules/glob-tests (Files): Likewise.
5994         * modules/hash-tests (Files): Likewise.
5995         * modules/i-ring-tests (Files): Likewise.
5996         * modules/iconv-tests (Files): Likewise.
5997         * modules/iconv_open-utf-tests (Files): Likewise.
5998         * modules/idpriv-drop-tests (Files): Likewise.
5999         * modules/idpriv-droptemp-tests (Files): Likewise.
6000         * modules/inet_ntop-tests (Files): Likewise.
6001         * modules/inet_pton-tests (Files): Likewise.
6002         * modules/isblank-tests (Files): Likewise.
6003         * modules/isfinite-tests (Files): Likewise.
6004         * modules/isinf-tests (Files): Likewise.
6005         * modules/isnan-tests (Files): Likewise.
6006         * modules/isnand-nolibm-tests (Files): Likewise.
6007         * modules/isnand-tests (Files): Likewise.
6008         * modules/isnanf-nolibm-tests (Files): Likewise.
6009         * modules/isnanf-tests (Files): Likewise.
6010         * modules/isnanl-nolibm-tests (Files): Likewise.
6011         * modules/isnanl-tests (Files): Likewise.
6012         * modules/lchown-tests (Files): Likewise.
6013         * modules/ldexpl-tests (Files): Likewise.
6014         * modules/link-tests (Files): Likewise.
6015         * modules/linkat-tests (Files): Likewise.
6016         * modules/linked-list-tests (Files): Likewise.
6017         * modules/linkedhash-list-tests (Files): Likewise.
6018         * modules/localename-tests (Files): Likewise.
6019         * modules/lseek-tests (Files): Likewise.
6020         * modules/lstat-tests (Files): Likewise.
6021         * modules/mbmemcasecmp-tests (Files): Likewise.
6022         * modules/mbmemcasecoll-tests (Files): Likewise.
6023         * modules/mbrtowc-tests (Files): Likewise.
6024         * modules/mbscasecmp-tests (Files): Likewise.
6025         * modules/mbscasestr-tests (Files): Likewise.
6026         * modules/mbschr-tests (Files): Likewise.
6027         * modules/mbscspn-tests (Files): Likewise.
6028         * modules/mbsinit-tests (Files): Likewise.
6029         * modules/mbsncasecmp-tests (Files): Likewise.
6030         * modules/mbsnrtowcs-tests (Files): Likewise.
6031         * modules/mbspbrk-tests (Files): Likewise.
6032         * modules/mbspcasecmp-tests (Files): Likewise.
6033         * modules/mbsrchr-tests (Files): Likewise.
6034         * modules/mbsrtowcs-tests (Files): Likewise.
6035         * modules/mbsspn-tests (Files): Likewise.
6036         * modules/mbsstr-tests (Files): Likewise.
6037         * modules/memchr-tests (Files): Likewise.
6038         * modules/memchr2-tests (Files): Likewise.
6039         * modules/memcmp-tests (Files): Likewise.
6040         * modules/memmem-tests (Files): Likewise.
6041         * modules/memrchr-tests (Files): Likewise.
6042         * modules/mkdir-tests (Files): Likewise.
6043         * modules/mkfifo-tests (Files): Likewise.
6044         * modules/mkfifoat-tests (Files): Likewise.
6045         * modules/mknod-tests (Files): Likewise.
6046         * modules/nanosleep-tests (Files): Likewise.
6047         * modules/nl_langinfo-tests (Files): Likewise.
6048         * modules/obstack-printf-tests (Files): Likewise.
6049         * modules/open-tests (Files): Likewise.
6050         * modules/openat-tests (Files): Likewise.
6051         * modules/pipe-filter-gi-tests (Files): Likewise.
6052         * modules/pipe-filter-ii-tests (Files): Likewise.
6053         * modules/pipe2-tests (Files): Likewise.
6054         * modules/popen-safer-tests (Files): Likewise.
6055         * modules/popen-tests (Files): Likewise.
6056         * modules/posixtm-tests (Files): Likewise.
6057         * modules/pread-tests (Files): Likewise.
6058         * modules/printf-frexp-tests (Files): Likewise.
6059         * modules/printf-frexpl-tests (Files): Likewise.
6060         * modules/printf-posix-tests (Files): Likewise.
6061         * modules/priv-set-tests (Files): Likewise.
6062         * modules/quotearg-tests (Files): Likewise.
6063         * modules/random_r-tests (Files): Likewise.
6064         * modules/rawmemchr-tests (Files): Likewise.
6065         * modules/rbtree-list-tests (Files): Likewise.
6066         * modules/rbtree-oset-tests (Files): Likewise.
6067         * modules/rbtreehash-list-tests (Files): Likewise.
6068         * modules/readlink-tests (Files): Likewise.
6069         * modules/remove-tests (Files): Likewise.
6070         * modules/rename-tests (Files): Likewise.
6071         * modules/renameat-tests (Files): Likewise.
6072         * modules/rmdir-tests (Files): Likewise.
6073         * modules/round-tests (Files): Likewise.
6074         * modules/roundf-tests (Files): Likewise.
6075         * modules/roundl-tests (Files): Likewise.
6076         * modules/safe-alloc-tests (Files): Likewise.
6077         * modules/setenv-tests (Files): Likewise.
6078         * modules/sigaction-tests (Files): Likewise.
6079         * modules/signbit-tests (Files): Likewise.
6080         * modules/sleep-tests (Files): Likewise.
6081         * modules/snprintf-posix-tests (Files): Likewise.
6082         * modules/snprintf-tests (Files): Likewise.
6083         * modules/sprintf-posix-tests (Files): Likewise.
6084         * modules/stat-tests (Files): Likewise.
6085         * modules/stat-time-tests (Files): Likewise.
6086         * modules/strcasestr-tests (Files): Likewise.
6087         * modules/strchrnul-tests (Files): Likewise.
6088         * modules/strerror-tests (Files): Likewise.
6089         * modules/striconv-tests (Files): Likewise.
6090         * modules/striconveh-tests (Files): Likewise.
6091         * modules/striconveha-tests (Files): Likewise.
6092         * modules/strsignal-tests (Files): Likewise.
6093         * modules/strstr-tests (Files): Likewise.
6094         * modules/strtod-tests (Files): Likewise.
6095         * modules/strverscmp-tests (Files): Likewise.
6096         * modules/symlink-tests (Files): Likewise.
6097         * modules/symlinkat-tests (Files): Likewise.
6098         * modules/trunc-tests (Files): Likewise.
6099         * modules/truncf-tests (Files): Likewise.
6100         * modules/truncl-tests (Files): Likewise.
6101         * modules/uname-tests (Files): Likewise.
6102         * modules/unicase/cased-tests (Files): Likewise.
6103         * modules/unicase/ignorable-tests (Files): Likewise.
6104         * modules/unicase/locale-language-tests (Files): Likewise.
6105         * modules/unicase/tolower-tests (Files): Likewise.
6106         * modules/unicase/totitle-tests (Files): Likewise.
6107         * modules/unicase/toupper-tests (Files): Likewise.
6108         * modules/unicase/u8-casecmp-tests (Files): Likewise.
6109         * modules/unicase/u8-casecoll-tests (Files): Likewise.
6110         * modules/unicase/u8-casefold-tests (Files): Likewise.
6111         * modules/unicase/u8-is-cased-tests (Files): Likewise.
6112         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
6113         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
6114         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
6115         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
6116         * modules/unicase/u8-tolower-tests (Files): Likewise.
6117         * modules/unicase/u8-totitle-tests (Files): Likewise.
6118         * modules/unicase/u8-toupper-tests (Files): Likewise.
6119         * modules/unicase/u16-casecmp-tests (Files): Likewise.
6120         * modules/unicase/u16-casecoll-tests (Files): Likewise.
6121         * modules/unicase/u16-casefold-tests (Files): Likewise.
6122         * modules/unicase/u16-is-cased-tests (Files): Likewise.
6123         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
6124         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
6125         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
6126         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
6127         * modules/unicase/u16-tolower-tests (Files): Likewise.
6128         * modules/unicase/u16-totitle-tests (Files): Likewise.
6129         * modules/unicase/u16-toupper-tests (Files): Likewise.
6130         * modules/unicase/u32-casecmp-tests (Files): Likewise.
6131         * modules/unicase/u32-casecoll-tests (Files): Likewise.
6132         * modules/unicase/u32-casefold-tests (Files): Likewise.
6133         * modules/unicase/u32-is-cased-tests (Files): Likewise.
6134         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
6135         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
6136         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
6137         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
6138         * modules/unicase/u32-tolower-tests (Files): Likewise.
6139         * modules/unicase/u32-totitle-tests (Files): Likewise.
6140         * modules/unicase/u32-toupper-tests (Files): Likewise.
6141         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
6142         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
6143         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
6144         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
6145         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
6146         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
6147         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
6148         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
6149         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
6150         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
6151         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
6152         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
6153         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
6154         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
6155         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
6156         * modules/unictype/bidicategory-name-tests (Files): Likewise.
6157         * modules/unictype/bidicategory-of-tests (Files): Likewise.
6158         * modules/unictype/bidicategory-test-tests (Files): Likewise.
6159         * modules/unictype/block-list-tests (Files): Likewise.
6160         * modules/unictype/block-of-tests (Files): Likewise.
6161         * modules/unictype/block-test-tests (Files): Likewise.
6162         * modules/unictype/category-C-tests (Files): Likewise.
6163         * modules/unictype/category-Cc-tests (Files): Likewise.
6164         * modules/unictype/category-Cf-tests (Files): Likewise.
6165         * modules/unictype/category-Cn-tests (Files): Likewise.
6166         * modules/unictype/category-Co-tests (Files): Likewise.
6167         * modules/unictype/category-Cs-tests (Files): Likewise.
6168         * modules/unictype/category-L-tests (Files): Likewise.
6169         * modules/unictype/category-Ll-tests (Files): Likewise.
6170         * modules/unictype/category-Lm-tests (Files): Likewise.
6171         * modules/unictype/category-Lo-tests (Files): Likewise.
6172         * modules/unictype/category-Lt-tests (Files): Likewise.
6173         * modules/unictype/category-Lu-tests (Files): Likewise.
6174         * modules/unictype/category-M-tests (Files): Likewise.
6175         * modules/unictype/category-Mc-tests (Files): Likewise.
6176         * modules/unictype/category-Me-tests (Files): Likewise.
6177         * modules/unictype/category-Mn-tests (Files): Likewise.
6178         * modules/unictype/category-N-tests (Files): Likewise.
6179         * modules/unictype/category-Nd-tests (Files): Likewise.
6180         * modules/unictype/category-Nl-tests (Files): Likewise.
6181         * modules/unictype/category-No-tests (Files): Likewise.
6182         * modules/unictype/category-P-tests (Files): Likewise.
6183         * modules/unictype/category-Pc-tests (Files): Likewise.
6184         * modules/unictype/category-Pd-tests (Files): Likewise.
6185         * modules/unictype/category-Pe-tests (Files): Likewise.
6186         * modules/unictype/category-Pf-tests (Files): Likewise.
6187         * modules/unictype/category-Pi-tests (Files): Likewise.
6188         * modules/unictype/category-Po-tests (Files): Likewise.
6189         * modules/unictype/category-Ps-tests (Files): Likewise.
6190         * modules/unictype/category-S-tests (Files): Likewise.
6191         * modules/unictype/category-Sc-tests (Files): Likewise.
6192         * modules/unictype/category-Sk-tests (Files): Likewise.
6193         * modules/unictype/category-Sm-tests (Files): Likewise.
6194         * modules/unictype/category-So-tests (Files): Likewise.
6195         * modules/unictype/category-Z-tests (Files): Likewise.
6196         * modules/unictype/category-Zl-tests (Files): Likewise.
6197         * modules/unictype/category-Zp-tests (Files): Likewise.
6198         * modules/unictype/category-Zs-tests (Files): Likewise.
6199         * modules/unictype/category-and-not-tests (Files): Likewise.
6200         * modules/unictype/category-and-tests (Files): Likewise.
6201         * modules/unictype/category-byname-tests (Files): Likewise.
6202         * modules/unictype/category-name-tests (Files): Likewise.
6203         * modules/unictype/category-none-tests (Files): Likewise.
6204         * modules/unictype/category-of-tests (Files): Likewise.
6205         * modules/unictype/category-or-tests (Files): Likewise.
6206         * modules/unictype/category-test-withtable-tests (Files): Likewise.
6207         * modules/unictype/combining-class-tests (Files): Likewise.
6208         * modules/unictype/ctype-alnum-tests (Files): Likewise.
6209         * modules/unictype/ctype-alpha-tests (Files): Likewise.
6210         * modules/unictype/ctype-blank-tests (Files): Likewise.
6211         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
6212         * modules/unictype/ctype-digit-tests (Files): Likewise.
6213         * modules/unictype/ctype-graph-tests (Files): Likewise.
6214         * modules/unictype/ctype-lower-tests (Files): Likewise.
6215         * modules/unictype/ctype-print-tests (Files): Likewise.
6216         * modules/unictype/ctype-punct-tests (Files): Likewise.
6217         * modules/unictype/ctype-space-tests (Files): Likewise.
6218         * modules/unictype/ctype-upper-tests (Files): Likewise.
6219         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
6220         * modules/unictype/decimal-digit-tests (Files): Likewise.
6221         * modules/unictype/digit-tests (Files): Likewise.
6222         * modules/unictype/mirror-tests (Files): Likewise.
6223         * modules/unictype/numeric-tests (Files): Likewise.
6224         * modules/unictype/property-alphabetic-tests (Files): Likewise.
6225         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
6226         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
6227         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
6228         Likewise.
6229         * modules/unictype/property-bidi-block-separator-tests (Files):
6230         Likewise.
6231         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
6232         Likewise.
6233         * modules/unictype/property-bidi-common-separator-tests (Files):
6234         Likewise.
6235         * modules/unictype/property-bidi-control-tests (Files): Likewise.
6236         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
6237         Likewise.
6238         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
6239         Likewise.
6240         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
6241         Likewise.
6242         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
6243         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
6244         Likewise.
6245         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
6246         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
6247         Likewise.
6248         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
6249         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
6250         * modules/unictype/property-bidi-segment-separator-tests (Files):
6251         Likewise.
6252         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
6253         * modules/unictype/property-byname-tests (Files): Likewise.
6254         * modules/unictype/property-combining-tests (Files): Likewise.
6255         * modules/unictype/property-composite-tests (Files): Likewise.
6256         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
6257         * modules/unictype/property-dash-tests (Files): Likewise.
6258         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
6259         * modules/unictype/property-default-ignorable-code-point-tests (Files):
6260         Likewise.
6261         * modules/unictype/property-deprecated-tests (Files): Likewise.
6262         * modules/unictype/property-diacritic-tests (Files): Likewise.
6263         * modules/unictype/property-extender-tests (Files): Likewise.
6264         * modules/unictype/property-format-control-tests (Files): Likewise.
6265         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
6266         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
6267         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
6268         * modules/unictype/property-hex-digit-tests (Files): Likewise.
6269         * modules/unictype/property-hyphen-tests (Files): Likewise.
6270         * modules/unictype/property-id-continue-tests (Files): Likewise.
6271         * modules/unictype/property-id-start-tests (Files): Likewise.
6272         * modules/unictype/property-ideographic-tests (Files): Likewise.
6273         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
6274         * modules/unictype/property-ids-trinary-operator-tests (Files):
6275         Likewise.
6276         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
6277         * modules/unictype/property-iso-control-tests (Files): Likewise.
6278         * modules/unictype/property-join-control-tests (Files): Likewise.
6279         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
6280         * modules/unictype/property-line-separator-tests (Files): Likewise.
6281         * modules/unictype/property-logical-order-exception-tests (Files):
6282         Likewise.
6283         * modules/unictype/property-lowercase-tests (Files): Likewise.
6284         * modules/unictype/property-math-tests (Files): Likewise.
6285         * modules/unictype/property-non-break-tests (Files): Likewise.
6286         * modules/unictype/property-not-a-character-tests (Files): Likewise.
6287         * modules/unictype/property-numeric-tests (Files): Likewise.
6288         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
6289         * modules/unictype/property-other-default-ignorable-code-point-tests
6290         (Files): Likewise.
6291         * modules/unictype/property-other-grapheme-extend-tests (Files):
6292         Likewise.
6293         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
6294         * modules/unictype/property-other-id-start-tests (Files): Likewise.
6295         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
6296         * modules/unictype/property-other-math-tests (Files): Likewise.
6297         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
6298         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
6299         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
6300         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
6301         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
6302         * modules/unictype/property-private-use-tests (Files): Likewise.
6303         * modules/unictype/property-punctuation-tests (Files): Likewise.
6304         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
6305         * modules/unictype/property-radical-tests (Files): Likewise.
6306         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
6307         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
6308         * modules/unictype/property-space-tests (Files): Likewise.
6309         * modules/unictype/property-terminal-punctuation-tests (Files):
6310         Likewise.
6311         * modules/unictype/property-test-tests (Files): Likewise.
6312         * modules/unictype/property-titlecase-tests (Files): Likewise.
6313         * modules/unictype/property-unassigned-code-value-tests (Files):
6314         Likewise.
6315         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
6316         * modules/unictype/property-uppercase-tests (Files): Likewise.
6317         * modules/unictype/property-variation-selector-tests (Files): Likewise.
6318         * modules/unictype/property-white-space-tests (Files): Likewise.
6319         * modules/unictype/property-xid-continue-tests (Files): Likewise.
6320         * modules/unictype/property-xid-start-tests (Files): Likewise.
6321         * modules/unictype/property-zero-width-tests (Files): Likewise.
6322         * modules/unictype/scripts-tests (Files): Likewise.
6323         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
6324         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
6325         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
6326         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
6327         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
6328         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
6329         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
6330         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
6331         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
6332         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
6333         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
6334         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
6335         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
6336         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
6337         * modules/uninorm/composition-tests (Files): Likewise.
6338         * modules/uninorm/decomposing-form-tests (Files): Likewise.
6339         * modules/uninorm/decomposition-tests (Files): Likewise.
6340         * modules/uninorm/filter-tests (Files): Likewise.
6341         * modules/uninorm/nfc-tests (Files): Likewise.
6342         * modules/uninorm/nfd-tests (Files): Likewise.
6343         * modules/uninorm/nfkc-tests (Files): Likewise.
6344         * modules/uninorm/nfkd-tests (Files): Likewise.
6345         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
6346         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
6347         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
6348         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
6349         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
6350         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
6351         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
6352         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
6353         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
6354         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
6355         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
6356         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
6357         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
6358         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
6359         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
6360         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
6361         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
6362         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
6363         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
6364         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
6365         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
6366         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
6367         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
6368         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
6369         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
6370         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
6371         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
6372         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
6373         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
6374         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
6375         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
6376         * modules/uniwidth/u8-width-tests (Files): Likewise.
6377         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
6378         * modules/uniwidth/u16-width-tests (Files): Likewise.
6379         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
6380         * modules/uniwidth/u32-width-tests (Files): Likewise.
6381         * modules/uniwidth/width-tests (Files): Likewise.
6382         * modules/unlink-tests (Files): Likewise.
6383         * modules/unsetenv-tests (Files): Likewise.
6384         * modules/usleep-tests (Files): Likewise.
6385         * modules/utimens-tests (Files): Likewise.
6386         * modules/utimensat-tests (Files): Likewise.
6387         * modules/vasnprintf-posix-tests (Files): Likewise.
6388         * modules/vasnprintf-tests (Files): Likewise.
6389         * modules/vasprintf-posix-tests (Files): Likewise.
6390         * modules/vasprintf-tests (Files): Likewise.
6391         * modules/vdprintf-posix-tests (Files): Likewise.
6392         * modules/vfprintf-posix-tests (Files): Likewise.
6393         * modules/vprintf-posix-tests (Files): Likewise.
6394         * modules/vsnprintf-posix-tests (Files): Likewise.
6395         * modules/vsnprintf-tests (Files): Likewise.
6396         * modules/vsprintf-posix-tests (Files): Likewise.
6397         * modules/wcrtomb-tests (Files): Likewise.
6398         * modules/wcsnrtombs-tests (Files): Likewise.
6399         * modules/wcsrtombs-tests (Files): Likewise.
6400         * modules/wctype-tests (Files): Likewise.
6401         * modules/wcwidth-tests (Files): Likewise.
6402         * modules/xmemdup0-tests (Files): Likewise.
6403         * modules/xprintf-posix-tests (Files): Likewise.
6404         * modules/xvasprintf-tests (Files): Likewise.
6405
6406 2009-12-24  Eric Blake  <ebb9@byu.net>
6407
6408         test-nanosleep: fix typo
6409         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
6410         patch.
6411         Reported by Bruno Haible.
6412
6413 2009-12-24  Bruno Haible  <bruno@clisp.org>
6414
6415         Reduce namespace pollution on glibc systems.
6416         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
6417         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
6418         systems.
6419         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
6420         <getopt.h> on glibc systems.
6421         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
6422         systems.
6423         * lib/fcntl.c: Include <unistd.h> here instead.
6424
6425 2009-12-24  Bruno Haible  <bruno@clisp.org>
6426
6427         * lib/stdlib.in.h (includes): Fix typo in today's commit.
6428
6429 2009-12-24  Eric Blake  <ebb9@byu.net>
6430
6431         tests: add signature checks
6432         * tests/signature.h (SIGNATURE_CHECK): New file.
6433         * modules/atexit-tests (Files): Use it.
6434         * modules/btowc-tests (Files): Likewise.
6435         * modules/canonicalize-lgpl-tests (Files): Likewise.
6436         * modules/ceilf-tests (Files): Likewise.
6437         * modules/ceill-tests (Files): Likewise.
6438         * modules/chown-tests (Files): Likewise.
6439         * modules/dprintf-posix-tests (Files): Likewise.
6440         * modules/dup2-tests (Files): Likewise.
6441         * modules/dup3-tests (Files): Likewise.
6442         * modules/duplocale-tests (Files): Likewise.
6443         * modules/fchdir-tests (Files): Likewise.
6444         * modules/fcntl-tests (Files): Likewise.
6445         * modules/fdopendir-tests (Files): Likewise.
6446         * modules/fflush-tests (Files): Likewise.
6447         * modules/flock-tests (Files): Likewise.
6448         * modules/floorf-tests (Files): Likewise.
6449         * modules/floorl-tests (Files): Likewise.
6450         * modules/fnmatch-tests (Files): Likewise.
6451         * modules/fopen-tests (Files): Likewise.
6452         * modules/fprintf-posix-tests (Files): Likewise.
6453         * modules/freopen-tests (Files): Likewise.
6454         * modules/frexp-nolibm-tests (Files): Likewise.
6455         * modules/frexp-tests (Files): Likewise.
6456         * modules/frexpl-nolibm-tests (Files): Likewise.
6457         * modules/frexpl-tests (Files): Likewise.
6458         * modules/fseek-tests (Files): Likewise.
6459         * modules/fseeko-tests (Files): Likewise.
6460         * modules/fsync-tests (Files): Likewise.
6461         * modules/ftell-tests (Files): Likewise.
6462         * modules/ftello-tests (Files): Likewise.
6463         * modules/futimens-tests (Files): Likewise.
6464         * modules/getaddrinfo-tests (Files): Likewise.
6465         * modules/getcwd-tests (Files): Likewise.
6466         * modules/getdelim-tests (Files): Likewise.
6467         * modules/getdtablesize-tests (Files): Likewise.
6468         * modules/getgroups-tests (Files): Likewise.
6469         * modules/gethostname-tests (Files): Likewise.
6470         * modules/getline-tests (Files): Likewise.
6471         * modules/getopt-posix-tests (Files): Likewise.
6472         * modules/gettimeofday-tests (Files): Likewise.
6473         * modules/glob-tests (Files): Likewise.
6474         * modules/iconv-tests (Files): Likewise.
6475         * modules/inet_ntop-tests (Files): Likewise.
6476         * modules/inet_pton-tests (Files): Likewise.
6477         * modules/isblank-tests (Files): Likewise.
6478         * modules/lchown-tests (Files): Likewise.
6479         * modules/ldexpl-tests (Files): Likewise.
6480         * modules/link-tests (Files): Likewise.
6481         * modules/linkat-tests (Files): Likewise.
6482         * modules/lseek-tests (Files): Likewise.
6483         * modules/lstat-tests (Files): Likewise.
6484         * modules/mbrtowc-tests (Files): Likewise.
6485         * modules/mbsinit-tests (Files): Likewise.
6486         * modules/mbsnrtowcs-tests (Files): Likewise.
6487         * modules/mbsrtowcs-tests (Files): Likewise.
6488         * modules/memchr-tests (Files): Likewise.
6489         * modules/memcmp-tests (Files): Likewise.
6490         * modules/memmem-tests (Files): Likewise.
6491         * modules/memrchr-tests (Files): Likewise.
6492         * modules/mkdir-tests (Files): Likewise.
6493         * modules/mkfifo-tests (Files): Likewise.
6494         * modules/mkfifoat-tests (Files): Likewise.
6495         * modules/mknod-tests (Files): Likewise.
6496         * modules/nanosleep-tests (Files): Likewise.
6497         * modules/nl_langinfo-tests (Files): Likewise.
6498         * modules/obstack-printf-tests (Files): Likewise.
6499         * modules/open-tests (Files): Likewise.
6500         * modules/openat-tests (Files): Likewise.
6501         * modules/perror-tests (Files): Likewise.
6502         * modules/pipe2-tests (Files): Likewise.
6503         * modules/poll-tests (Files): Likewise.
6504         * modules/popen-tests (Files): Likewise.
6505         * modules/posix_spawn-tests (Files): Likewise.
6506         * modules/posix_spawnp-tests (Files): Likewise.
6507         * modules/pread-tests (Files): Likewise.
6508         * modules/printf-posix-tests (Files): Likewise.
6509         * modules/pty-tests (Files): Likewise.
6510         * modules/random_r-tests (Files): Likewise.
6511         * modules/rawmemchr-tests (Files): Likewise.
6512         * modules/readlink-tests (Files): Likewise.
6513         * modules/remove-tests (Files): Likewise.
6514         * modules/rename-tests (Files): Likewise.
6515         * modules/renameat-tests (Files): Likewise.
6516         * modules/rmdir-tests (Files): Likewise.
6517         * modules/round-tests (Files): Likewise.
6518         * modules/roundf-tests (Files): Likewise.
6519         * modules/roundl-tests (Files): Likewise.
6520         * modules/select-tests (Files): Likewise.
6521         * modules/setenv-tests (Files): Likewise.
6522         * modules/sigaction-tests (Files): Likewise.
6523         * modules/sleep-tests (Files): Likewise.
6524         * modules/snprintf-posix-tests (Files): Likewise.
6525         * modules/snprintf-tests (Files): Likewise.
6526         * modules/sprintf-posix-tests (Files): Likewise.
6527         * modules/stat-tests (Files): Likewise.
6528         * modules/strcasestr-tests (Files): Likewise.
6529         * modules/strchrnul-tests (Files): Likewise.
6530         * modules/strerror-tests (Files): Likewise.
6531         * modules/strsignal-tests (Files): Likewise.
6532         * modules/strstr-tests (Files): Likewise.
6533         * modules/strtod-tests (Files): Likewise.
6534         * modules/strverscmp-tests (Files): Likewise.
6535         * modules/symlink-tests (Files): Likewise.
6536         * modules/symlinkat-tests (Files): Likewise.
6537         * modules/times-tests (Files): Likewise.
6538         * modules/trunc-tests (Files): Likewise.
6539         * modules/truncf-tests (Files): Likewise.
6540         * modules/truncl-tests (Files): Likewise.
6541         * modules/tsearch-tests (Files): Likewise.
6542         * modules/uname-tests (Files): Likewise.
6543         * modules/unlink-tests (Files): Likewise.
6544         * modules/unsetenv-tests (Files): Likewise.
6545         * modules/usleep-tests (Files): Likewise.
6546         * modules/utimensat-tests (Files): Likewise.
6547         * modules/vasprintf-tests (Files): Likewise.
6548         * modules/vdprintf-posix-tests (Files): Likewise.
6549         * modules/vfprintf-posix-tests (Files): Likewise.
6550         * modules/vprintf-posix-tests (Files): Likewise.
6551         * modules/vsnprintf-posix-tests (Files): Likewise.
6552         * modules/vsnprintf-tests (Files): Likewise.
6553         * modules/vsprintf-posix-tests (Files): Likewise.
6554         * modules/wcrtomb-tests (Files): Likewise.
6555         * modules/wcsnrtombs-tests (Files): Likewise.
6556         * modules/wcsrtombs-tests (Files): Likewise.
6557         * modules/wcwidth-tests (Files): Likewise.
6558         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
6559         * tests/test-isinf.c (isinf): Likewise.
6560         * tests/test-isnan.c (isnan): Likewise.
6561         * tests/test-signbit.c (signbit): Likewise.
6562         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
6563         declaration, either as macro or with correct signature.
6564         (select): Ensure function under test is declared with correct
6565         signature in correct header.
6566         * tests/test-atexit.c (atexit): Likewise.
6567         * tests/test-btowc.c (btowc): Likewise.
6568         * tests/test-canonicalize-lgpl.c (realpath)
6569         (canonicalize_file_name): Likewise.
6570         * tests/test-ceilf1.c (ceilf): Likewise.
6571         * tests/test-ceill.c (ceill): Likewise.
6572         * tests/test-chown.c (chown): Likewise.
6573         * tests/test-dprintf-posix.c (dprintf): Likewise.
6574         * tests/test-dup2.c (dup2): Likewise.
6575         * tests/test-dup3.c (dup3): Likewise.
6576         * tests/test-duplocale.c (duplocale): Likewise.
6577         * tests/test-fchdir.c (fchdir): Likewise.
6578         * tests/test-fchownat.c (fchownat): Likewise.
6579         * tests/test-fcntl.c (fcntl): Likewise.
6580         * tests/test-fdopendir.c (fdopendir): Likewise.
6581         * tests/test-fflush.c (fflush): Likewise.
6582         * tests/test-flock.c (flock): Likewise.
6583         * tests/test-floorf1.c (floorf): Likewise.
6584         * tests/test-floorl.c (floorl): Likewise.
6585         * tests/test-fnmatch.c (fnmatch): Likewise.
6586         * tests/test-fopen.c (fopen): Likewise.
6587         * tests/test-fprintf-posix.c (fprintf): Likewise.
6588         * tests/test-freopen.c (freopen): Likewise.
6589         * tests/test-frexp.c (frexp): Likewise.
6590         * tests/test-frexpl.c (frexpl): Likewise.
6591         * tests/test-fseek.c (fseek): Likewise.
6592         * tests/test-fseeko.c (fseeko): Likewise.
6593         * tests/test-fstatat.c (fstatat): Likewise.
6594         * tests/test-fsync.c (fsync): Likewise.
6595         * tests/test-ftell.c (ftell): Likewise.
6596         * tests/test-ftello.c (ftello): Likewise.
6597         * tests/test-futimens.c (futimens): Likewise.
6598         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
6599         (gai_strerror): Likewise.
6600         * tests/test-getcwd.c (getcwd): Likewise.
6601         * tests/test-getdelim.c (getdelim): Likewise.
6602         * tests/test-getdtablesize.c (getdtablesize): Likewise.
6603         * tests/test-getgroups.c (getgroups): Likewise.
6604         * tests/test-gethostname.c (gethostname): Likewise.
6605         * tests/test-getline.c (getline): Likewise.
6606         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
6607         Likewise.
6608         * tests/test-gettimeofday.c (gettimeofday): Likewise.
6609         * tests/test-glob.c (glob, globfree): Likewise.
6610         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
6611         * tests/test-inet_ntop.c (inet_ntop): Likewise.
6612         * tests/test-inet_pton.c (inet_pton): Likewise.
6613         * tests/test-isblank.c (isblank): Likewise.
6614         * tests/test-lchown.c (lchown): Likewise.
6615         * tests/test-ldexpl.c (ldexpl): Likewise.
6616         * tests/test-link.c (link): Likewise.
6617         * tests/test-linkat.c (linkat): Likewise.
6618         * tests/test-lseek.c (lseek): Likewise.
6619         * tests/test-lstat.c (lstat): Likewise.
6620         * tests/test-mbrtowc.c (mbrtowc): Likewise.
6621         * tests/test-mbsinit.c (mbsinit): Likewise.
6622         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
6623         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
6624         * tests/test-memchr.c (memchr): Likewise.
6625         * tests/test-memcmp.c (memcmp): Likewise.
6626         * tests/test-memmem.c (memmem): Likewise.
6627         * tests/test-memrchr.c (memrchr): Likewise.
6628         * tests/test-mkdir.c (mkdir): Likewise.
6629         * tests/test-mkdirat.c (mkdirat): Likewise.
6630         * tests/test-mkfifo.c (mkfifo): Likewise.
6631         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
6632         * tests/test-mknod.c (mknod): Likewise.
6633         * tests/test-nanosleep.c (nanosleep): Likewise.
6634         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
6635         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
6636         Likewise.
6637         * tests/test-open.c (open): Likewise.
6638         * tests/test-openat.c (openat): Likewise.
6639         * tests/test-perror.c (perror): Likewise.
6640         * tests/test-pipe2.c (pipe2): Likewise.
6641         * tests/test-poll.c (poll): Likewise.
6642         * tests/test-popen.c (popen, pclose): Likewise.
6643         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
6644         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
6645         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
6646         (posix_spawn_file_actions_destroy)
6647         (posix_spawn_file_actions_addclose)
6648         (posix_spawn_file_actions_addopen)
6649         (posix_spawn_file_actions_adddup2): Likewise.
6650         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
6651         * tests/test-pread.c (pread): Likewise.
6652         * tests/test-printf-posix.c (printf): Likewise.
6653         * tests/test-pty.c (openpty, forkpty): Likewise.
6654         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
6655         (random_r): Likewise.
6656         * tests/test-rawmemchr.c (rawmemchr): Likewise.
6657         * tests/test-readlink.c (readlink): Likewise.
6658         * tests/test-remove.c (remove): Likewise.
6659         * tests/test-rename.c (rename): Likewise.
6660         * tests/test-renameat.c (renameat): Likewise.
6661         * tests/test-rmdir.c (rmdir): Likewise.
6662         * tests/test-round1.c (round): Likewise.
6663         * tests/test-roundf1.c (roundf): Likewise.
6664         * tests/test-roundl.c (roundl): Likewise.
6665         * tests/test-setenv.c (setenv): Likewise.
6666         * tests/test-sigaction.c (sigaction): Likewise.
6667         * tests/test-sleep.c (sleep): Likewise.
6668         * tests/test-snprintf.c (snprintf): Likewise.
6669         * tests/test-sprintf-posix.c (sprintf): Likewise.
6670         * tests/test-stat.c (stat): Likewise.
6671         * tests/test-stpncpy.c (stpncpy): Likewise.
6672         * tests/test-strcasestr.c (strcasestr): Likewise.
6673         * tests/test-strchrnul.c (strchrnul): Likewise.
6674         * tests/test-strerror.c (strerror): Likewise.
6675         * tests/test-strsignal.c (strsignal): Likewise.
6676         * tests/test-strstr.c (strstr): Likewise.
6677         * tests/test-strtod.c (strtod): Likewise.
6678         * tests/test-strverscmp.c (strverscmp): Likewise.
6679         * tests/test-symlink.c (symlink): Likewise.
6680         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
6681         * tests/test-times.c (times): Likewise.
6682         * tests/test-trunc1.c (trunc): Likewise.
6683         * tests/test-truncf1.c (truncf): Likewise.
6684         * tests/test-truncl.c (truncl): Likewise.
6685         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
6686         Likewise.
6687         * tests/test-uname.c (uname): Likewise.
6688         * tests/test-unlink.c (unlink): Likewise.
6689         * tests/test-unlinkat.c (unlinkat): Likewise.
6690         * tests/test-unsetenv.c (unsetenv): Likewise.
6691         * tests/test-usleep.c (usleep): Likewise.
6692         * tests/test-utimensat.c (utimensat): Likewise.
6693         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
6694         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
6695         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
6696         * tests/test-vprintf-posix.c (vprintf): Likewise.
6697         * tests/test-vsnprintf.c (vsnprintf): Likewise.
6698         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
6699         * tests/test-wcrtomb.c (wcrtomb): Likewise.
6700         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
6701         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
6702         * tests/test-wcwidth.c (wcwidth): Likewise.
6703
6704         build: pull in conditional headers during GNULIB_POSIXCHECK
6705         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
6706         definitions from any conditionally-included headers.
6707         * lib/stdlib.in.h (includes): Likewise.
6708         * lib/unistd.in.h (includes): Likewise.
6709
6710 2009-12-24  Bruno Haible  <bruno@clisp.org>
6711
6712         * tests/test-argv-iter.c: Include header file being tested immediately
6713         after config.h.
6714         * tests/test-base64.c: Likewise.
6715         * tests/test-flock.c: Likewise.
6716         * tests/test-fsync.c: Likewise.
6717         * tests/test-getdate.c: Likewise.
6718         * tests/test-getndelim2.c: Likewise.
6719         * tests/test-isfinite.c: Likewise.
6720         * tests/test-isinf.c: Likewise.
6721         * tests/test-strerror.c: Likewise.
6722         * tests/test-strsignal.c: Likewise.
6723
6724 2009-12-23  Eric Blake  <ebb9@byu.net>
6725
6726         unistd: work around cygwin bug
6727         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
6728         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
6729         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
6730
6731 2009-12-23  Bruno Haible  <bruno@clisp.org>
6732
6733         localename: More tests.
6734         * tests/test-localename.c (SIZEOF): New macro.
6735         (categories): New variable.
6736         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
6737         test_locale_name_default): Add test w.r.t. thread locale.
6738         (test_locale_name_thread): New function.
6739         (main): Invoke it.
6740
6741         localename: Make aware of thread locale.
6742         * lib/localename.h (gl_locale_name_thread): New declaration.
6743         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
6744         behaviour with respect to thread locale.
6745         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
6746         <langinfo.h>, glthread/lock.h.
6747         (SIZE_BITS): New macro.
6748         (string_hash): New function.
6749         (struct hash_node): New type.
6750         (HASH_TABLE_SIZE): New macro.
6751         (struniq_hash_table, struniq_lock): New variables.
6752         (struniq): New function.
6753         (gl_locale_name_thread): New function.
6754         (gl_locale_name): Invoke it.
6755         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
6756         * modules/localename (Depends-on): Add lock.
6757         Reported by Mike Gran <spk121@yahoo.com>.
6758
6759 2009-12-23  Eric Blake  <ebb9@byu.net>
6760
6761         va-args: new module
6762         * modules/va-args: New file.
6763         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
6764         * MODULES.html.sh (Core language properties): Mention it.
6765
6766         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
6767         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
6768         named alias for __attribute__((__unused__)).
6769         * lib/chown.c: Update client.
6770         * lib/fchmodat.c: Likewise.
6771         * lib/fts.c: Likewise.
6772         * lib/getdate.y: Likewise.
6773         * lib/getgroups.c: Likewise.
6774         * lib/getopt.c: Likewise.
6775         * lib/getugroups.c: Likewise.
6776         * lib/mkdir.c: Likewise.
6777         * lib/mkfifo.c: Likewise.
6778         * lib/mkfifoat.c: Likewise.
6779         * lib/mknod.c: Likewise.
6780         * lib/mknodat.c: Likewise.
6781         * lib/readlink.c: Likewise.
6782         * lib/se-context.in.h: Likewise.
6783         * lib/se-selinux.in.h: Likewise.
6784         * lib/sockets.c: Likewise.
6785         * lib/symlink.c: Likewise.
6786         * lib/symlinkat.c: Likewise.
6787         * lib/unicodeio.c: Likewise.
6788         * lib/unistr.h: Likewise.
6789         * tests/test-areadlink.c: Likewise.
6790         * tests/test-areadlinkat.c: Likewise.
6791         * tests/test-filenamecat.c: Likewise.
6792         * tests/test-fseeko.c: Likewise.
6793         * tests/test-ftello.c: Likewise.
6794         * tests/test-getdate.c: Likewise.
6795         * tests/test-getgroups.c: Likewise.
6796         * tests/test-gethostname.c: Likewise.
6797         * tests/test-quotearg.c: Likewise.
6798         * tests/test-version-etc.c: Likewise.
6799         * tests/test-xalloc-die.c: Likewise.
6800         * tests/test-xfprintf-posix.c: Likewise.
6801         * tests/test-xprintf-posix.c: Likewise.
6802         * tests/test-xvasprintf.c: Likewise.
6803
6804         tests: avoid compiler warnings
6805         * tests/test-fcntl.c (main): Delete unused parameters.
6806         * tests/test-freopen-safer.c (main): Likewise.
6807         * tests/test-xalloc-die.c (main): Mark unused parameters.
6808         * tests/test-fseeko.c (main): Likewise.
6809         * tests/test-ftello.c (main): Likewise.
6810         * tests/test-nanosleep.c (main): Avoid declaration warning.
6811         * tests/test-sleep.c (main): Likewise.
6812         * tests/test-unsetenv.c (main): Silence warning about string
6813         literal.
6814         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
6815
6816 2009-12-23  Bruno Haible  <bruno@clisp.org>
6817
6818         * tests/test-localename.c (test_locale_name): New function, extracted
6819         from main. Also test mixed situations.
6820         (test_locale_name_posix, test_locale_name_environ,
6821         test_locale_name_default): New functions.
6822         (main): Invoke them all.
6823         * modules/localename-tests (configure.ac): Test for newlocale.
6824
6825 2009-12-23  Bruno Haible  <bruno@clisp.org>
6826
6827         unistd: Ensure getcwd gets declared before being overridden.
6828         * lib/unistd.in.h: Conditionally include <io.h>.
6829
6830 2009-12-22  Bruno Haible  <bruno@clisp.org>
6831
6832         wchar: Diagnose broken combination of glibc and gcc versions and flags.
6833         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
6834         (gl_WCHAR_H): Invoke it.
6835         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
6836         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
6837         Reported by Karl Berry <karl@freefriends.org>.
6838
6839 2009-12-22  Eric Blake  <ebb9@byu.net>
6840
6841         math, unistd: avoid redundant includes
6842         * lib/math.in.h (isnan): No need to re-include <math.h>.
6843         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
6844
6845         getsubopt: work around cygwin bug
6846         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
6847         avoid conflicting with system getsubopt.
6848         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
6849         bug.
6850
6851         getopt: synchronize from glibc
6852         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
6853         parameter order.  Adjust all callers.
6854         (_getopt_internal_r, main): Adjust quoting in error messages.
6855         Drop considerations for outdated POSIX 1003.2 error message.
6856         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
6857         callers.
6858         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
6859
6860         test-getopt: test stderr behavior
6861         * modules/getopt-posix-tests (Depends-on): Add dup2.
6862         * tests/test-getopt.c (ASSERT): Avoid stderr.
6863         (main): Move stderr to a temporary file.
6864         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
6865         Instead, add parameter to inform caller if output occurred.
6866         (test_getopt): Adjust all existing tests to expect silence, and
6867         add new tests of leading ":".
6868         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
6869         glibc shortcomings with leading "-:" or "+:" in optstring.
6870         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
6871         Likewise.
6872         * doc/posix-functions/getopt.texi (getopt): Likewise.
6873
6874         test-getopt: enhance test
6875         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
6876         supports optind=0.
6877         * tests/test-getopt.c (OPTIND_MIN): Move...
6878         * tests/test-getopt.h (OPTIND_MIN): ...here.
6879         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
6880         Require that optind=0 works, since modern BSD supports it in
6881         addition to optreset, and since coreutils expects it.
6882         (test_getopt_long_only): New test.
6883         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
6884         glibc shortcomings with 'W;', and enforcement of optind=0.
6885         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
6886         Likewise.
6887
6888 2009-12-21  Bruno Haible  <bruno@clisp.org>
6889
6890         localename: Improvements for MacOS X and Cygwin.
6891         * lib/localename.h (gl_locale_name_environ): New declaration.
6892         * lib/localename.c (gl_locale_name_environ): New function, extracted from
6893         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
6894         (gl_locale_name_posix): Invoke it.
6895         (gl_locale_name_default): Add comments. Use Windows native API also on
6896         Cygwin.
6897
6898 2009-12-21  Bruno Haible  <bruno@clisp.org>
6899
6900         Update list of Win32 locale ids.
6901         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
6902         (LANG_SAMI): Renamed from LANG_SAAMI.
6903         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
6904         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
6905         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
6906         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
6907         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
6908         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
6909         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
6910         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
6911         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
6912         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
6913         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
6914         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
6915         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
6916         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
6917         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
6918         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
6919         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
6920         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
6921         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
6922         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
6923         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
6924         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
6925         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
6926         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
6927         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
6928         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
6929         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
6930         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
6931         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
6932         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
6933         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
6934         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
6935         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
6936         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
6937         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
6938         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
6939         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
6940         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
6941         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
6942         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
6943         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
6944         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
6945         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
6946         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
6947         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
6948         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
6949         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
6950         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
6951         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
6952         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
6953         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
6954         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
6955         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
6956         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
6957         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
6958         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
6959         Add more languages and countries for Sami, Sorbian. Add more countries
6960         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
6961         for Pashto. Change country for Syriac, Tswana.
6962
6963 2009-12-21  Eric Blake  <ebb9@byu.net>
6964
6965         test-utimens: avoid spurious failure
6966         * tests/test-chown.h (nap): Factor...
6967         * tests/nap.h: ...into new file.
6968         * tests/test-lchown.h (nap): Avoid duplication.
6969         * tests/test-utimens-common.h (nap): Use shared implementation,
6970         necessary on file systems with 1-second resolution.
6971         * modules/chown-tests (Files): Include new file.
6972         * modules/fdutimensat-tests (Files): Likewise.
6973         * modules/futimens-tests (Files): Likewise.
6974         * modules/lchown-tests (Files): Likewise.
6975         * modules/openat-tests (Files): Likewise.
6976         * modules/utimens-tests (Files): Likewise.
6977         * modules/utimensat-tests (Files): Likewise.
6978
6979 2009-12-19  Eric Blake  <ebb9@byu.net>
6980
6981         futimens, utimensat: work around Linux bug
6982         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
6983         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
6984         * lib/utimensat.c (rpl_utimensat): Work around it.
6985         * lib/futimens.c (rpl_futimens): Adjust comment.
6986
6987         utimens: work around Linux ctime bug
6988         * lib/utimens.c (detect_ctime_bug): New helper function.
6989         (update_timespec): Differentiate between workaround needed for
6990         this bug vs. what is needed for systems that lack utimensat.
6991         (fdutimens, lutimens): Work around bug.
6992
6993         utimens: check for ctime update
6994         * tests/test-utimens-common.h (check_ctime): Define.
6995         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
6996         * tests/test-futimens.h (test_futimens): Likewise.
6997         * tests/test-lutimens.h (test_lutimens): Likewise.
6998         * doc/posix-functions/futimens.texi (futimens): Document the bug.
6999         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
7000
7001 2009-12-19  Bruno Haible  <bruno@clisp.org>
7002
7003         dprintf-posix: Check against memory leak fixed on 2009-12-15.
7004         * tests/test-dprintf-posix2.sh: New file.
7005         * tests/test-dprintf-posix2.c: New file.
7006         * modules/dprintf-posix-tests (Files): Add them.
7007         (configure.ac): Check for getrlimit and setrlimit.
7008         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
7009
7010 2009-12-19  Bruno Haible  <bruno@clisp.org>
7011
7012         fprintf-posix: Check against memory leak fixed on 2009-12-15.
7013         * tests/test-fprintf-posix3.sh: New file.
7014         * tests/test-fprintf-posix3.c: New file.
7015         * modules/fprintf-posix-tests (Files): Add them.
7016         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
7017
7018 2009-12-19  Eric Blake  <ebb9@byu.net>
7019
7020         dirfd: fix prototype
7021         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
7022         * lib/dirfd.c (dirfd): Likewise.
7023
7024         canonicalize: reduce memory usage
7025         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
7026         allocation to size.
7027         Reported by Solar Designer <solar@openwall.com>.
7028
7029 2009-12-19  Bruno Haible  <bruno@clisp.org>
7030
7031         New module attribute 'Applicability'.
7032         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
7033         * gnulib-tool: New option --extract-applicability.
7034         (func_usage): Document it.
7035         (sed_extract_prog): Recognize it.
7036         (func_get_applicability): New function.
7037         (func_import): Generalize handling of 'link-warning' module.
7038         * modules/link-warning (Applicability): New section.
7039         * modules/arg-nonnull (Applicability): New section.
7040         Repoted by Simon Josefsson <simon@josefsson.org>.
7041
7042 2009-12-19  Bruno Haible  <bruno@clisp.org>
7043
7044         fflush: tweak
7045         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
7046         * lib/fseeko.c (rpl_fseeko): Likewise.
7047
7048 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
7049
7050         * lib/gl_list.h: Fix typo in comment.
7051
7052 2009-12-16  Eric Blake  <ebb9@byu.net>
7053
7054         fcntl: use to simplify other modules
7055         * modules/cloexec (Depends-on): Add fcntl.
7056         * modules/fchdir (Depends-on): Likewise.
7057         * modules/fd-safer-flag (Depends-on): Likewise.
7058         * modules/unistd-safer (Depends-on): Likewise.
7059         * modules/dup3 (configure.ac): Set module indicator.
7060         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
7061         missing.
7062         * lib/fchdir.c (_gl_register_dup): Fix comment.
7063         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
7064         * lib/dup-safer.c (dup_safer): Likewise.
7065         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
7066         * lib/dup3.c (dup3): Likewise.
7067         * tests/test-fchdir.c (main): Enhance test.
7068         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
7069
7070         fcntl: port portions of fcntl to mingw
7071         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
7072         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
7073         replacement for mingw.
7074         * modules/fcntl (Description): Update.
7075         (Depends-on): Add dup2.
7076         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
7077         * modules/fcntl-h (Makefile.am): Substitute it.
7078         * lib/fcntl.in.h (fcntl): Update declaration.
7079         (F_DUPFD, F_GETFD): New macros, when needed.
7080         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
7081         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
7082         * tests/test-fcntl.c (check_flags, main): Enhance test for items
7083         we now guarantee.
7084
7085         fcntl: work around cygwin bug in F_DUPFD
7086         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
7087         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
7088         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
7089         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
7090         * doc/posix-functions/fcntl.texi (fcntl): Document it.
7091
7092         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
7093         * modules/fcntl (Files): List new files.
7094         (configure.ac): Run a test.
7095         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
7096         * lib/fcntl.c (rpl_fcntl): Likewise.
7097         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
7098         (gl_FCNTL_H): Always replace fcntl.h.
7099         * modules/fcntl-h (Makefile.am): Substitute witnesses.
7100         * lib/fcntl.in.h (fcntl): Declare replacement.
7101         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
7102         needed, plus a witness.
7103         * doc/posix-functions/fcntl.texi (fcntl): Document this.
7104         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
7105         * tests/test-fcntl.c: New file.
7106         * modules/fcntl-tests: Likewise.
7107
7108         binary-io: avoid potential compilation warning
7109         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
7110         directives.
7111
7112         fflush: avoid compilation error on NetBSD
7113         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
7114         between off_t and fpos_t, since the latter is sometimes a struct.
7115         * lib/fseeko.c (rpl_fseeko): Likewise.
7116         Reported by Alexander Nasonov <alnsn@yandex.ru>.
7117
7118 2009-12-15  Eric Blake  <ebb9@byu.net>
7119
7120         fcntl-h, stdio, sys_ioctl: fix declarations
7121         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
7122         function must not take arguments.
7123         * lib/sys_ioctl.in.h (ioctl): Likewise.
7124         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
7125         (open): Add a link warning.
7126
7127 2009-12-15  Jim Meyering  <meyering@redhat.com>
7128
7129         areadlink, areadlink-with-size: relax license to LGPLv2+
7130         * modules/areadlink (License): Relax to LGPLv2+.
7131         * modules/areadlink-with-size (License): Likewise.
7132
7133 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
7134             Bruno Haible  <bruno@clisp.org>
7135
7136         *printf: Fix memory leak.
7137         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
7138         * lib/vfprintf.c (vfprintf): Likewise.
7139         * lib/dprintf.c (dprintf): Likewise.
7140         * lib/vdprintf.c (vdprintf): Likewise.
7141
7142 2009-12-14  Eric Blake  <ebb9@byu.net>
7143
7144         accept4: adjust module dependencies
7145         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
7146
7147         utimens: one more try at avoiding compiler warning
7148         * lib/utimens.c (lutimens): Lower scope of result.
7149
7150 2009-12-13  Bruno Haible  <bruno@clisp.org>
7151
7152         Move the malloc checking from module 'list' to new module 'xlist'.
7153         * modules/xlist: New file.
7154         * lib/gl_xlist.h: New file.
7155         * lib/gl_xlist.c: New file.
7156         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
7157         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
7158         gl_list_add_last, gl_list_add_before, gl_list_add_after,
7159         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
7160         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
7161         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
7162         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
7163         gl_sortedlist_nx_add): New declarations.
7164         (struct gl_list_implementation): Rename and change methods accordingly.
7165         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
7166         (gl_list_nx_create): Renamed from gl_list_create.
7167         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
7168         (gl_list_nx_set_at): Renamed from gl_list_set_at.
7169         (gl_list_nx_add_first): Renamed from gl_list_add_first.
7170         (gl_list_nx_add_last): Renamed from gl_list_add_last.
7171         (gl_list_nx_add_before): Renamed from gl_list_add_before.
7172         (gl_list_nx_add_after): Renamed from gl_list_add_after.
7173         (gl_list_nx_add_at): Renamed from gl_list_add_at.
7174         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
7175         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
7176         gl_list_create_empty.
7177         (gl_list_nx_create): Renamed from gl_list_create.
7178         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
7179         (gl_list_nx_set_at): Renamed from gl_list_set_at.
7180         (gl_list_nx_add_first): Renamed from gl_list_add_first.
7181         (gl_list_nx_add_last): Renamed from gl_list_add_last.
7182         (gl_list_nx_add_before): Renamed from gl_list_add_before.
7183         (gl_list_nx_add_after): Renamed from gl_list_add_after.
7184         (gl_list_nx_add_at): Renamed from gl_list_add_at.
7185         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
7186         * lib/gl_array_list.c: Don't include xalloc.h.
7187         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
7188         NULL upon out-of-memory.
7189         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
7190         out-of-memory.
7191         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
7192         Change return type to 'int'.
7193         (gl_array_nx_set_at): Renamed from gl_array_set_at.
7194         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
7195         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
7196         upon out-of-memory.
7197         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
7198         upon out-of-memory.
7199         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
7200         upon out-of-memory.
7201         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
7202         upon out-of-memory.
7203         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
7204         out-of-memory.
7205         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
7206         Update.
7207         (gl_array_list_implementation): Update.
7208         * lib/gl_carray_list.c: Don't include xalloc.h.
7209         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
7210         Return NULL upon out-of-memory.
7211         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
7212         out-of-memory.
7213         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
7214         Change return type to 'int'.
7215         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
7216         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
7217         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
7218         upon out-of-memory.
7219         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
7220         upon out-of-memory.
7221         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
7222         out-of-memory.
7223         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
7224         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
7225         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
7226         Update.
7227         (gl_carray_list_implementation): Update.
7228         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
7229         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
7230         gl_linked_create_empty. Return NULL upon out-of-memory.
7231         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
7232         out-of-memory.
7233         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
7234         Change return type to 'int'. Return -1 upon out-of-memory.
7235         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
7236         out-of-memory.
7237         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
7238         upon out-of-memory.
7239         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
7240         upon out-of-memory.
7241         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
7242         NULL upon out-of-memory.
7243         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
7244         upon out-of-memory.
7245         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
7246         out-of-memory.
7247         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
7248         Update.
7249         * lib/gl_linked_list.c: Don't include xalloc.h.
7250         (gl_linked_list_implementation): Update.
7251         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
7252         (add_to_bucket): Change return type to 'int'.
7253         (gl_linkedhash_list_implementation): Update.
7254         * lib/gl_anytree_list1.h (free_subtree): New function.
7255         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
7256         gl_tree_create_empty. Return NULL upon out-of-memory.
7257         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
7258         Change return type to 'int'. Return -1 upon out-of-memory.
7259         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
7260         out-of-memory.
7261         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
7262         (gl_tree_remove_node): New function, moved here from
7263         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
7264         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
7265         Update.
7266         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
7267         malloc, not xmalloc. Return NULL upon out-of-memory.
7268         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
7269         out-of-memory.
7270         (gl_tree_remove_node_from_tree): New function, extracted from
7271         gl_tree_remove_node.
7272         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
7273         upon out-of-memory.
7274         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
7275         out-of-memory.
7276         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
7277         upon out-of-memory.
7278         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
7279         upon out-of-memory.
7280         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
7281         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
7282         not xmalloc. Return NULL upon out-of-memory.
7283         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
7284         out-of-memory.
7285         (gl_tree_remove_node_from_tree): New function, extracted from
7286         gl_tree_remove_node.
7287         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
7288         upon out-of-memory.
7289         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
7290         out-of-memory.
7291         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
7292         upon out-of-memory.
7293         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
7294         upon out-of-memory.
7295         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
7296         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
7297         gl_anytree_list1.h before gl_anyavltree_list2.h.
7298         (gl_avltree_list_implementation): Update.
7299         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
7300         gl_anytree_list1.h before gl_anyavltree_list2.h.
7301         (gl_rbtree_list_implementation): Update.
7302         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
7303         Change return type to 'int'. Return -1 upon out-of-memory. Use
7304         __builtin_expect.
7305         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
7306         (gl_avltreehash_list_implementation): Update.
7307         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
7308         (gl_rbtreehash_list_implementation): Update.
7309         * modules/array-list (Depends-on): Remove xalloc.
7310         * modules/carray-list (Depends-on): Likewise.
7311         * modules/linked-list (Depends-on): Likewise.
7312         * modules/linkedhash-list (Depends-on): Likewise.
7313         * modules/avltree-list (Depends-on): Likewise.
7314         * modules/rbtree-list (Depends-on): Likewise.
7315         * modules/avltreehash-list (Depends-on): Likewise.
7316         * modules/rbtreehash-list (Depends-on): Likewise.
7317
7318         * modules/xsublist: New file.
7319         * lib/gl_xsublist.h: New file.
7320         * lib/gl_xsublist.c: New file.
7321         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
7322         (gl_sublist_nx_create): New declaration.
7323         * lib/gl_sublist.c: Don't include xalloc.h.
7324         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
7325         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
7326         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
7327         Change return type to 'int'. Return -1 upon out-of-memory.
7328         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
7329         upon out-of-memory.
7330         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
7331         NULL upon out-of-memory.
7332         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
7333         upon out-of-memory.
7334         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
7335         NULL upon out-of-memory.
7336         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
7337         NULL upon out-of-memory.
7338         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
7339         upon out-of-memory.
7340         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
7341         (gl_sublist_list_implementation): Update.
7342         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
7343         upon out-of-memory.
7344         * modules/sublist (Depends-on): Remove xalloc.
7345
7346         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
7347         * tests/test-carray_list.c: Likewise.
7348         * tests/test-linked_list.c: Likewise.
7349         * tests/test-linkedhash_list.c: Likewise.
7350         * tests/test-avltree_list.c: Likewise.
7351         * tests/test-rbtree_list.c: Likewise.
7352         * tests/test-avltreehash_list.c: Likewise.
7353         * tests/test-rbtreehash_list.c: Likewise.
7354         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
7355         * modules/carray-list-tests (Makefile.am): Likewise.
7356         * modules/linked-list-tests (Makefile.am): Likewise.
7357         * modules/linkedhash-list-tests (Makefile.am): Likewise.
7358         * modules/avltree-list-tests (Makefile.am): Likewise.
7359         * modules/rbtree-list-tests (Makefile.am): Likewise.
7360         * modules/avltreehash-list-tests (Makefile.am): Likewise.
7361         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
7362
7363         * NEWS: Mention the changes.
7364
7365         * lib/clean-temp.c: Include gl_xlist.h.
7366         * modules/clean-temp (Depends-on): Add xlist.
7367
7368         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
7369         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
7370
7371         * tests/test-array_oset.c: Include gl_xlist.h.
7372         * modules/array-oset-tests (Depends-on): Add xlist.
7373
7374         Reported by José E. Marchesi <jemarch@gnu.org>.
7375
7376 2009-12-13  Bruno Haible  <bruno@clisp.org>
7377
7378         Move the malloc checking from module 'oset' to new module 'xoset'.
7379         * modules/xoset: New file.
7380         * lib/gl_xoset.h: New file.
7381         * lib/gl_xoset.c: New file.
7382         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
7383         declarations.
7384         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
7385         (struct gl_oset_implementation): Rename and change methods accordingly.
7386         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
7387         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
7388         'int'. Mark as __warn_unused_result__.
7389         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
7390         gl_oset_create_empty.
7391         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
7392         'int'.
7393         * lib/gl_array_oset.c: Don't include xalloc.h.
7394         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
7395         malloc, not xmalloc.
7396         (grow): Change return type to 'int'. Don't call xalloc_die.
7397         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
7398         to 'int'.
7399         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
7400         'int'.
7401         (gl_array_oset_implementation): Update.
7402         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
7403         gl_tree_create_empty.
7404         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
7405         'int'.
7406         * lib/gl_avltree_oset.c: Don't include xalloc.h.
7407         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
7408         xmalloc.
7409         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
7410         not xmalloc.
7411         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
7412         xmalloc.
7413         (gl_avltree_oset_implementation): Update.
7414         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
7415         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
7416         xmalloc.
7417         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
7418         not xmalloc.
7419         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
7420         xmalloc.
7421         (gl_rbtree_oset_implementation): Update.
7422         * modules/array-oset (Depends-on): Remove xalloc.
7423         * modules/avltree-oset (Depends-on): Likewise.
7424         * modules/rbtree-oset (Depends-on): Likewise.
7425         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
7426         * tests/test-avltree_oset.c: Likewise.
7427         * tests/test-rbtree_oset.c: Likewise.
7428         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
7429         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
7430         * modules/rbtree-oset-tests (Makefile.am): Likewise.
7431         * NEWS: Mention the change.
7432
7433 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
7434
7435         maint.mk: allow a project to override release-prep commands
7436         * top/maint.mk (alpha, beta, stable): Move release-preparatory
7437         commands into a new rule.
7438         (release-prep): New rule.
7439         (release-prep-hook): New overridable variable.
7440
7441 2009-12-13  Bruno Haible  <bruno@clisp.org>
7442
7443         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
7444
7445 2009-12-13  Jim Meyering  <meyering@redhat.com>
7446
7447         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
7448         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
7449
7450 2009-12-12  Bruno Haible  <bruno@clisp.org>
7451
7452         duplocale: Tweak.
7453         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
7454
7455 2009-12-12  Karl Berry  <karl@gnu.org>
7456
7457         * config/srclist.txt (strtoll.c): tab changes, no more sync.
7458
7459 2009-12-12  Bruno Haible  <bruno@clisp.org>
7460
7461         * m4/po.m4: Undo incorrect untabification.
7462
7463 2009-12-12  Bruno Haible  <bruno@clisp.org>
7464
7465         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
7466         * modules/c-strtod (Depends-on): Add locale.
7467         * modules/c-strtold (Depends-on): Likewise.
7468
7469 2009-12-12  Bruno Haible  <bruno@clisp.org>
7470
7471         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
7472
7473 2009-12-11  Eric Blake  <ebb9@byu.net>
7474
7475         setenv: relax requirement in light of POSIX ruling
7476         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
7477         not NULL.
7478         * tests/test-setenv.c (main): Relax test.
7479         * tests/test-unsetenv.c (main): Likewise.
7480         * doc/posix-functions/setenv.texi (setenv): Document this.
7481         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
7482
7483 2009-12-11  Bruno Haible  <bruno@clisp.org>
7484
7485         New module 'fd-safer-flag'.
7486         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
7487         * lib/dup-safer.c (dup_safer_flag): Remove function.
7488         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
7489         * lib/fd-safer.c (fd_safer_flag): Remove function.
7490         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
7491         * modules/cloexec (configure.ac): Drop indicator macro.
7492         * modules/fd-safer-flag: New file.
7493         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
7494         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
7495         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
7496
7497 2009-12-11  Bruno Haible  <bruno@clisp.org>
7498
7499         Tests for module 'nl_langinfo'.
7500         * modules/nl_langinfo-tests: New file.
7501         * tests/test-nl_langinfo.sh: New file.
7502         * tests/test-nl_langinfo.c: New file.
7503
7504         New module 'nl_langinfo'.
7505         * lib/nl_langinfo.c: New file.
7506         * m4/nl_langinfo.m4: New file.
7507         * modules/nl_langinfo: New file.
7508         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
7509
7510 2009-12-11  Bruno Haible  <bruno@clisp.org>
7511
7512         Tests for module 'langinfo'.
7513         * modules/langinfo-tests: New file.
7514         * tests/test-langinfo.c: New file.
7515
7516         New module 'langinfo'.
7517         * lib/langinfo.in.h: New file.
7518         * m4/langinfo_h.m4: New file.
7519         * modules/langinfo: New file.
7520         * doc/posix-headers/langinfo.texi: Mention the new module.
7521
7522 2009-12-11  Bruno Haible  <bruno@clisp.org>
7523
7524         * lib/config.charset: Untabify.
7525
7526 2009-12-11  Bruno Haible  <bruno@clisp.org>
7527
7528         * modules/unistd-safer (configure.ac): Drop indicator macro.
7529
7530 2009-12-11  Bruno Haible  <bruno@clisp.org>
7531
7532         Move pipe2-safer code to its own file.
7533         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
7534         * lib/pipe-safer.c (pipe2_safer): Remove function.
7535         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
7536         (Makefile.am): Add it to lib_SOURCES.
7537
7538 2009-12-10  Bruno Haible  <bruno@clisp.org>
7539
7540         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
7541
7542 2009-12-10  Bruno Haible  <bruno@clisp.org>
7543
7544         Declare which arguments expect non-NULL values, for GCC and clang.
7545         * build-aux/arg-nonnull.h: New file.
7546         * modules/arg-nonnull: New file.
7547         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
7548         (inet_ntop, inet_pton): Use it.
7549         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
7550         (closedir, dirfd, opendir, scandir, alphasort): Use it.
7551         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
7552         (open, openat): Use it.
7553         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
7554         (fnmatch): Use it.
7555         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
7556         (getopt, getopt_long, getopt_long_only): Use it.
7557         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
7558         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
7559         Use it.
7560         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
7561         (iconv_open): Use it.
7562         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
7563         (strtoimax, strtoumax): Use it.
7564         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
7565         (duplocale): Use it.
7566         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
7567         (frexp, frexpl): Use it.
7568         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
7569         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
7570         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
7571         (tsearch, tfind, tdelete, twalk): Use it.
7572         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
7573         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
7574         sigpending): Use it.
7575         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
7576         (posix_spawn, posix_spawnp, posix_spawnattr_init,
7577         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
7578         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
7579         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
7580         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
7581         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
7582         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
7583         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
7584         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
7585         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
7586         Use it.
7587         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
7588         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
7589         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
7590         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
7591         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
7592         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
7593         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
7594         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
7595         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
7596         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
7597         strtoull, unsetenv): Use it.
7598         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
7599         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
7600         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
7601         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
7602         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
7603         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
7604         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
7605         (strcasecmp, strncasecmp): Use it.
7606         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
7607         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
7608         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
7609         rpl_setsockopt): Use it.
7610         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
7611         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
7612         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
7613         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
7614         (gettimeofday): Use it.
7615         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
7616         (times): Use it.
7617         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
7618         (uname): Use it.
7619         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
7620         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
7621         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
7622         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
7623         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
7624         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
7625         unlinkat, write): Use it.
7626         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
7627         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
7628         * lib/argv-iter.h: Include arg-nonnull.h.
7629         (_ATTRIBUTE_NONNULL_): Remove macro.
7630         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
7631         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
7632         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
7633         optimization.
7634         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
7635         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
7636         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
7637         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
7638         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
7639         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
7640         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
7641         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
7642         * modules/arpa_inet (Depends-on): Add arg-nonnull.
7643         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
7644         * modules/dirent (Depends-on): Add arg-nonnull.
7645         (Makefile.am): Insert arg-nonnull.h into dirent.h.
7646         * modules/fcntl-h (Depends-on): Add arg-nonnull.
7647         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
7648         * modules/fnmatch (Depends-on): Add arg-nonnull.
7649         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
7650         * modules/getopt-posix (Depends-on): Add arg-nonnull.
7651         (Makefile.am): Insert arg-nonnull.h into getopt.h.
7652         * modules/glob (Depends-on): Add arg-nonnull.
7653         (Makefile.am): Insert arg-nonnull.h into glob.h.
7654         * modules/iconv_open (Depends-on): Add arg-nonnull.
7655         (Makefile.am): Insert arg-nonnull.h into iconv.h.
7656         * modules/inttypes (Depends-on): Add arg-nonnull.
7657         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
7658         * modules/locale (Depends-on): Add arg-nonnull.
7659         (Makefile.am): Insert arg-nonnull.h into locale.h.
7660         * modules/math (Depends-on): Add arg-nonnull.
7661         (Makefile.am): Insert arg-nonnull.h into math.h.
7662         * modules/netdb (Depends-on): Add arg-nonnull.
7663         (Makefile.am): Insert arg-nonnull.h into netdb.h.
7664         * modules/search (Depends-on): Add arg-nonnull.
7665         (Makefile.am): Insert arg-nonnull.h into search.h.
7666         * modules/signal (Depends-on): Add arg-nonnull.
7667         (Makefile.am): Insert arg-nonnull.h into signal.h.
7668         * modules/spawn (Depends-on): Add arg-nonnull.
7669         (Makefile.am): Insert arg-nonnull.h into spawn.h.
7670         * modules/stdio (Depends-on): Add arg-nonnull.
7671         (Makefile.am): Insert arg-nonnull.h into stdio.h.
7672         * modules/stdlib (Depends-on): Add arg-nonnull.
7673         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
7674         * modules/string (Depends-on): Add arg-nonnull.
7675         (Makefile.am): Insert arg-nonnull.h into string.h.
7676         * modules/strings (Depends-on): Add arg-nonnull.
7677         (Makefile.am): Insert arg-nonnull.h into strings.h.
7678         * modules/sys_socket (Depends-on): Add arg-nonnull.
7679         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
7680         * modules/sys_stat (Depends-on): Add arg-nonnull.
7681         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
7682         * modules/sys_time (Depends-on): Add arg-nonnull.
7683         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
7684         * modules/sys_times (Depends-on): Add arg-nonnull.
7685         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
7686         * modules/sys_utsname (Depends-on): Add arg-nonnull.
7687         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
7688         * modules/time (Depends-on): Add arg-nonnull.
7689         (Makefile.am): Insert arg-nonnull.h into time.h.
7690         * modules/unistd (Depends-on): Add arg-nonnull.
7691         (Makefile.am): Insert arg-nonnull.h into unistd.h.
7692         * modules/wchar (Depends-on): Add arg-nonnull.
7693         (Makefile.am): Insert arg-nonnull.h into wchar.h.
7694         * modules/argv-iter (Depends-on): Add arg-nonnull.
7695         * tests/test-canonicalize.c (null_ptr): New function.
7696         (main): Use it.
7697         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
7698         (main): Use it.
7699         * tests/test-memmem.c (null_ptr): New function.
7700         (main): Use it.
7701         Reported by Jim Meyering.
7702
7703 2009-12-10  Bruno Haible  <bruno@clisp.org>
7704
7705         Use spaces for indentation, not tabs.
7706         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
7707         * m4/*.m4: Untabify.
7708         * build-aux/*.h: Untabify.
7709         * tests/**/*.[hc]: Untabify.
7710         * README: New section "Indent with spaces, not TABs", based on
7711         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
7712         * NEWS: Mention the change.
7713
7714 2009-12-10  Bruno Haible  <bruno@clisp.org>
7715
7716         pty test: Fix link error.
7717         * modules/pty-tests (Makefile.am): Add the default LDADD value to
7718         test_pty_LDADD.
7719
7720 2009-12-07  Simon Josefsson  <simon@josefsson.org>
7721
7722         * modules/pty: New file.
7723         * modules/pty-tests: New file.
7724         * m4/pty.m4: New file.
7725         * tests/test-pty.c: New file.
7726         * doc/glibc-headers/pty.texi: Modified.
7727         * doc/glibc-functions/forkpty.texi: Modified.
7728         * doc/glibc-functions/openpty.texi: Modified.
7729
7730 2009-12-10  Bruno Haible  <bruno@clisp.org>
7731
7732         Avoid syntax error in C++ mode.
7733         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
7734
7735 2009-12-10  Bruno Haible  <bruno@clisp.org>
7736
7737         Use sed with option -e.
7738         * gnulib-tool (func_version, func_emit_copyright_notice,
7739         func_emit_initmacro_end, func_import, func_create_testdir): Pass
7740         option -e to sed.
7741         * modules/link-warning (Makefile.am): Likewise.
7742
7743 2009-12-10  Jim Meyering  <meyering@redhat.com>
7744
7745         mgetgroups: do not write bytes beyond end of malloc'd buffer
7746         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
7747         username, we call getgroups with a one-element-shorter buffer,
7748         but still told it the length was original, max_n_groups.
7749
7750 2009-12-09  Eric Blake  <ebb9@byu.net>
7751
7752         cloexec: relax license
7753         * modules/cloexec (Maintainer): Add myself.
7754         (License): Use LGPL, not GPL.
7755
7756         link-warning: optimize generation
7757         * modules/link-warning (Makefile.am): Reduce process usage.
7758
7759 2009-12-09  Bruno Haible  <bruno@clisp.org>
7760
7761         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
7762         workaround was added on 2009-11-17.
7763
7764 2009-12-09  Jim Meyering  <meyering@redhat.com>
7765             Bruno Haible  <bruno@clisp.org>
7766
7767         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
7768         * modules/link-warning (Makefile.am): Make the comment-removing sed
7769         command more robust in the face of bootstrap-prepended comment lines.
7770
7771 2009-12-09  Bruno Haible  <bruno@clisp.org>
7772
7773         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
7774         most one group.
7775
7776 2009-12-09  Simon Josefsson <simon@josefsson.org>
7777             Bruno Haible  <bruno@clisp.org>
7778
7779         * build-aux/link-warning.h: Add copyright notice.
7780         * modules/link-warning (Makefile.am): Generate link-warning.h from
7781         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
7782         * NEWS: Mention change in link-warning module.
7783         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
7784         * modules/dirent (Makefile.am): Add dependency to dirent.h.
7785         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
7786         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
7787         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
7788         * modules/math (Makefile.am): Add dependency to math.h.
7789         * modules/search (Makefile.am): Add dependency to search.h.
7790         * modules/signal (Makefile.am): Add dependency to signal.h.
7791         * modules/spawn (Makefile.am): Add dependency to spawn.h.
7792         * modules/stdio (Makefile.am): Add dependency to stdio.h.
7793         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
7794         * modules/string (Makefile.am): Add dependency to string.h.
7795         * modules/strings (Makefile.am): Add dependency to strings.h.
7796         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
7797         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
7798         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
7799         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
7800         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
7801         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
7802         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
7803         * modules/unistd (Makefile.am): Add dependency to unistd.h.
7804         * modules/wchar (Makefile.am): Add dependency to wchar.h.
7805
7806 2009-12-09  Bruno Haible  <bruno@clisp.org>
7807
7808         fchdir: Optimize away rpl_fstat when possible.
7809         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
7810         REPLACE_OPEN_DIRECTORY.
7811         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
7812
7813 2009-12-09  Bruno Haible  <bruno@clisp.org>
7814
7815         * lib/fchdir.c: Update comment.
7816
7817 2009-12-09  Bruno Haible  <bruno@clisp.org>
7818
7819         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
7820
7821 2009-12-08  Eric Blake  <ebb9@byu.net>
7822
7823         fchdir: avoid memory leak on re-registration.
7824         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
7825
7826 2009-12-08  Jim Meyering  <meyering@redhat.com>
7827
7828         init.sh: avoid Solaris 10 /bin/sh portability problem
7829         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
7830         sourced script:
7831           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
7832           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
7833           bar
7834         tests/init.sh relied on that, accepting a --set-path=DIR argument,
7835         and two tests used that idiom.
7836         * tests/init.sh: Update suggested usage comments.
7837         (path_prepend_): New function, to be used in place
7838         of the --src-path=DIR option.
7839         (setup_): Move PATH-prepending code into path_prepend_.
7840         * tests/test-pread.sh: Adapt to new usage.
7841         * tests/test-xalloc-die.sh: Likewise.
7842
7843 2009-12-08  Simon Josefsson  <simon@josefsson.org>
7844
7845         * doc/gnulib.texi (Glibc pty.h): Add.
7846         * doc/glibc-functions/forkpty.texi: Add.
7847         * doc/glibc-functions/openpty.texi: Add.
7848         Suggested by Bruno Haible.
7849
7850 2009-12-08  Eric Blake  <ebb9@byu.net>
7851
7852         fchdir: fix logic bugs
7853         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
7854         * tests/test-fchdir.c (main): Enhance test.
7855         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
7856         is in use.
7857
7858         dup2: fix logic bugs
7859         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
7860         REPLACE_DUP2 to decide when rpl_dup2 is needed.
7861         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
7862         exists.
7863         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
7864
7865 2009-12-07  Eric Blake  <ebb9@byu.net>
7866
7867         unlink: fix m4 detection
7868         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
7869
7870         unistd-safer: add unit test
7871         * modules/unistd-safer-tests: New file.
7872         * tests/test-dup-safer.c: Likewise.
7873         * tests/test-cloexec.c (setmode): Avoid compiler warning.
7874         * tests/test-dup2.c (setmode): Likewise.
7875         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
7876
7877         cloexec: preserve text vs. binary across dup_cloexec
7878         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
7879         mode.
7880         * modules/dup2-tests (Depends-on): Add binary-io.
7881         * modules/cloexec-tests (Depends-on): Likewise.
7882         * tests/test-dup2.c (setmode, is_mode): New helpers.
7883         (main): Add tests that translation mode is preserved.
7884         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
7885         Reported by Bruno Haible.
7886
7887         mgetgroups: reduce duplicate listings
7888         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
7889         resulting array.
7890         * tests/test-chown.h (test_chown): Simplify client.
7891         * tests/test-lchown.h (test_lchown): Likewise.
7892
7893 2009-12-06  Bruno Haible  <bruno@clisp.org>
7894
7895         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
7896         value.
7897
7898 2009-12-06  Bruno Haible  <bruno@clisp.org>
7899
7900         * lib/progname.c: Include stdio.h, stdlib.h.
7901         (set_program_name): Reject a NULL argument.
7902
7903 2009-12-05  Eric Blake  <ebb9@byu.net>
7904
7905         pipe2-safer: new module
7906         * modules/pipe2-safer: New file.
7907         * lib/unistd-safer.h (pipe2_safer): New prototype.
7908         * lib/unistd--.h (pipe2): New wrapper.
7909         * lib/pipe-safer.c (pipe2_safer): New function.
7910         * modules/pipe (Depends-on): Add pipe2-safer.
7911         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
7912
7913         stdlib-safer: preserve cloexec flag for mkostemp[s]
7914         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
7915         fd_safer_flag.
7916
7917         unistd-safer: allow preservation of cloexec status via flag
7918         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
7919         prototypes.
7920         * lib/dup-safer.c (dup_safer_flag): New function.
7921         * lib/fd-safer.c (fd_safer_flag): Likewise.
7922         * modules/cloexec (configure.ac): Set witness.
7923
7924         test-dup2: enhance test
7925         * modules/dup2-tests (Depends-on): Add cloexec.
7926         * tests/test-dup2.c (main): Enhance test.
7927
7928         cloexec: add dup_cloexec
7929         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
7930         header and comments.
7931         * lib/cloexec.c (set_cloexec_flag): Add comments.
7932         (dup_cloexec): New function, with mingw implementation borrowed
7933         from...
7934         * lib/w32spawn.h (dup_noinherit): ...here.
7935         * modules/execute (Depends-on): Add cloexec.
7936         * modules/pipe (Depends-on): Likewise.
7937         * modules/cloexec (Depends-on): Add dup2.
7938         * modules/cloexec-tests (Files): New file.
7939         * tests/test-cloexec.c: Likewise.
7940
7941         test-xalloc-die: fix test for mingw
7942         * modules/xalloc-die-tests (Files): Add tests/init.sh.
7943         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
7944         directory and .exe suffix off argv[0] output.
7945
7946         test-fseeko: fix test for mingw
7947         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
7948         than undefining fseek, so test will pass on mingw.
7949
7950 2009-12-05  Bruno Haible  <bruno@clisp.org>
7951
7952         * lib/progname.h (set_program_name): Clarify specification.
7953         * lib/progname.c (set_program_name): Likewise.
7954         Reported by Jim Meyering.
7955
7956 2009-12-05  Jim Meyering  <meyering@redhat.com>
7957
7958         maint.mk: backslash-escape parens in default regexp
7959         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
7960         backslash-escape the literal parentheses.
7961
7962         maint.mk: news-date-check: use grep -E
7963         * top/maint.mk (today): Define a Make variable, not a...
7964         (news-date-check): ...shell variable.
7965         (news-date-regexp): Use the Make variable.
7966         Use grep's -E option.  Change the failing diagnostic to mention
7967         the variable, $(news-date-regexp).
7968
7969 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
7970
7971         maintainer-makefile: allow customization of NEWS entry format
7972         * top/maint.mk (news-date-regexp): New overridable variable.
7973         (news-date-check): Use it.
7974
7975 2009-12-04  Eric Blake  <ebb9@byu.net>
7976
7977         mgetgroups: add xgetgroups, and avoid ENOSYS failures
7978         * lib/mgetgroups.h (xgetgroups): New prototype.
7979         * lib/mgetgroups.c (xgetgroups): New wrapper.
7980         (mgetgroups): Handle ENOSYS.
7981         * modules/mgetgroups (Depends-on): Add realloc.
7982         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
7983
7984         mgetgroups: avoid argument promotion issues with -1
7985         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
7986         for invalid gid_t.
7987         * tests/test-chown.h (getegid, test_chown): Likewise.
7988         * tests/test-lchown.h (getegid, test_lchown): Likewise.
7989
7990 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
7991
7992         exclude: Fix header file problems.
7993         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
7994
7995 2009-12-01  Jim Meyering  <meyering@redhat.com>
7996
7997         fts: fts_open: do not let an empty string cause immediate failure
7998         This is required in support of GNU rm, for which the command
7999         "rm A '' B" must process and remove both A and B, in spite of
8000         the empty string argument.
8001         * lib/fts.c (fts_open): Do not let the presence of an empty string
8002         cause fts_open to fail immediately.  Most fts-using tools must be
8003         able to process all arguments, in order, and can be expected to
8004         diagnose such arguments themselves.
8005
8006 2009-11-30  Eric Blake  <ebb9@byu.net>
8007
8008         utimens: fix compilation error
8009         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
8010         Declare variable at right scope.
8011
8012 2009-11-29  Jim Meyering  <meyering@redhat.com>
8013
8014         bootstrap: handle perl-5.11's changed --version output
8015         * build-aux/bootstrap (get_version): Handle perl separately,
8016         since perl-5.11's --version output is different.
8017
8018 2009-11-28  Jim Meyering  <meyering@redhat.com>
8019
8020         userspec: depend on the inttostr module, too
8021         * modules/userspec (Depends-on): Add inttostr.
8022
8023         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
8024         * lib/userspec.c (parse_with_separator): Do not accept a user ID
8025         number of MAXUID when it evaluates to (uid_t) -1.
8026         Likewise for group ID.  Reported by Matt McCutchen in
8027         <http://savannah.gnu.org/bugs/?28113>
8028
8029         userspec: reformat to use spaces, not TABs
8030         * lib/userspec.c: Expand TABs to spaces.
8031         Add Emacs' "indent-tabs-mode: nil" hint.
8032
8033 2009-11-27  Eric Blake  <ebb9@byu.net>
8034
8035         getopt-gnu: flush out another BSD bug
8036         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
8037         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
8038         flush out BSD bug.
8039         * tests/test-getopt.h (test_getopt): End lists with NULL.
8040         * tests/test-getopt_long.h (test_getopt_long): Likewise.
8041         (test_getopt_long_posix): Enhance test.
8042         * modules/getopt-posix-tests (Depends-on): Add stdbool.
8043         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
8044         getopt-gnu.
8045         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
8046         Likewise.
8047
8048 2009-11-27  Simon Josefsson  <simon@josefsson.org>
8049
8050         * modules/idpriv-droptemp-tests (Notice): Fix text.
8051
8052 2009-11-27  Jim Meyering  <meyering@redhat.com>
8053
8054         test-xalloc-die: avoid spurious failure due to libtool argv difference
8055         In a libtool-enabled project, this test would fail due to a difference
8056         in the emitted program name, e.g.,
8057         -test-xalloc-die: memory exhausted
8058         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
8059         Use program to avoid that.
8060         * modules/xalloc-die-tests (Depends-on): Add progname.
8061         * tests/test-xalloc-die.c: Include progname.h".
8062         (program_name): Remove decl.
8063         (main): Call set_program_name.
8064         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
8065
8066 2009-11-26  Richard Jones  <rjones@redhat.com>
8067
8068         w32sock: leave win32 error in place.
8069         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
8070
8071 2009-11-26  Eric Blake  <ebb9@byu.net>
8072
8073         init.sh: suggest to use skip_ and fail_ functions in comments
8074         * tests/init.sh: Add a sentence.
8075
8076 2009-11-25  Bruno Haible  <bruno@clisp.org>
8077
8078         init.sh: add documentation in comments
8079         * tests/init.sh: Add some developer and user documentation.
8080
8081 2009-11-26  Jim Meyering  <meyering@redhat.com>
8082
8083         init.sh: accommodate even those who specify bogus srcdir manually
8084         * tests/init.sh: Normally, srcdir is guaranteed by automake and
8085         configure-time tests to be sanitized, so that there is no need to
8086         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
8087         (with no double quotes) suffices.  However, since tests may be
8088         invoked manually, and since you may explicitly set srcdir to the
8089         name of a directory containing spaces, do quote its uses here.
8090         * tests/test-pread.sh: Likewise.
8091         Suggested by Bruno Haible.
8092
8093         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
8094         * tests/test-pread.sh: Write no data into the pipe, because
8095         test-pread actually reads none.  This avoids a diagnostic,
8096         "bash: echo: write error: Broken pipe", that arises in the unusual
8097         event something is ignoring SIGPIPE, and might be interpreted
8098         as some sort of failure.  Reported by Bruno Haible.
8099
8100 2009-11-25  Jim Meyering  <meyering@redhat.com>
8101
8102         test-pread: cover failure with ESPIPE and EINVAL
8103         * tests/test-pread.c (main): Test for failure, too.
8104         * tests/test-pread.sh: Invoke with stdin on a pipe.
8105         Suggested by Eric Blake.
8106
8107         pread: improvement and fix
8108         * modules/pread (Depends-on): Depend on lseek, for portability to
8109         e.g., mingw.  Suggested by Eric Blake.
8110         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
8111
8112         unistd.in.h: correct declaration of pread
8113         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
8114         Reported by Richard W.M. Jones.
8115
8116         test-pread.sh: distribute the test script
8117         * modules/pread-tests (Files): Include test-pread.sh.
8118
8119         test-pread.sh: clean up
8120         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
8121         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
8122         That is unnecessary, since it's always ".".
8123         Suggestion from Eric Blake.
8124
8125         test-pread.sh: make executable
8126         * tests/test-pread.sh: Set executable bit.
8127         Reported by Eric Blake.
8128
8129         correct typo in test-pread.sh
8130         * tests/test-pread.sh: Add #! line.
8131
8132         test pread
8133         * tests/test-pread.c: New file.
8134         * tests/test-pread.sh: Likewise.
8135         * modules/pread-tests: Likewise.
8136
8137         pread: new module
8138         * modules/pread: New file.
8139         * lib/unistd.in.h (pread): Define/declare.
8140         * lib/pread.c (pread): New file.
8141         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
8142         * modules/unistd (Makefile.am): Substitute witnesses.
8143         * doc/posix-functions/pread.texi (pread): Update.
8144         * MODULES.html.sh: Add pread.
8145
8146 2009-11-25  Jim Meyering  <meyering@redhat.com>
8147
8148         tests/init.sh: new file to be used via most *.sh tests
8149         * tests/init.sh: New file.
8150
8151 2009-11-25  Eric Blake  <ebb9@byu.net>
8152
8153         utimens: work around older Linux failure with symlinks
8154         * lib/utimens.c (lutimensat_works_really): New variable.
8155         (fdutimens, lutimens): Use it to manage kernels that support
8156         nanosecond times on files, but not on symlinks.
8157         Reported by OndÅ™ej Vašík.
8158
8159         utimes: fix configure grammar
8160         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
8161
8162 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
8163
8164         regex: Fix fastmap for multibyte character ranges.
8165         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
8166         characters when a multibyte character range is included.
8167
8168 2009-11-22  Andy Wingo  <wingo@pobox.com>
8169
8170         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
8171         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
8172
8173 2009-11-24  Bruno Haible  <bruno@clisp.org>
8174
8175         doc: Most *_l functions exist in MacOS X 10.5.
8176         * doc/posix-functions/duplocale.texi: Update platforms list.
8177         * doc/posix-functions/freelocale.texi: Likewise.
8178         * doc/posix-functions/newlocale.texi: Likewise.
8179         * doc/posix-functions/uselocale.texi: Likewise.
8180         * doc/posix-functions/isalnum_l.texi: Likewise.
8181         * doc/posix-functions/isalpha_l.texi: Likewise.
8182         * doc/posix-functions/isblank_l.texi: Likewise.
8183         * doc/posix-functions/iscntrl_l.texi: Likewise.
8184         * doc/posix-functions/isdigit_l.texi: Likewise.
8185         * doc/posix-functions/isgraph_l.texi: Likewise.
8186         * doc/posix-functions/islower_l.texi: Likewise.
8187         * doc/posix-functions/isprint_l.texi: Likewise.
8188         * doc/posix-functions/ispunct_l.texi: Likewise.
8189         * doc/posix-functions/isspace_l.texi: Likewise.
8190         * doc/posix-functions/isupper_l.texi: Likewise.
8191         * doc/posix-functions/iswalnum_l.texi: Likewise.
8192         * doc/posix-functions/iswalpha_l.texi: Likewise.
8193         * doc/posix-functions/iswblank_l.texi: Likewise.
8194         * doc/posix-functions/iswcntrl_l.texi: Likewise.
8195         * doc/posix-functions/iswctype_l.texi: Likewise.
8196         * doc/posix-functions/iswdigit_l.texi: Likewise.
8197         * doc/posix-functions/iswgraph_l.texi: Likewise.
8198         * doc/posix-functions/iswlower_l.texi: Likewise.
8199         * doc/posix-functions/iswprint_l.texi: Likewise.
8200         * doc/posix-functions/iswpunct_l.texi: Likewise.
8201         * doc/posix-functions/iswspace_l.texi: Likewise.
8202         * doc/posix-functions/iswupper_l.texi: Likewise.
8203         * doc/posix-functions/iswxdigit_l.texi: Likewise.
8204         * doc/posix-functions/isxdigit_l.texi: Likewise.
8205         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
8206         * doc/posix-functions/strcasecmp_l.texi: Likewise.
8207         * doc/posix-functions/strcoll_l.texi: Likewise.
8208         * doc/posix-functions/strfmon_l.texi: Likewise.
8209         * doc/posix-functions/strftime_l.texi: Likewise.
8210         * doc/posix-functions/strncasecmp_l.texi: Likewise.
8211         * doc/posix-functions/strxfrm_l.texi: Likewise.
8212         * doc/posix-functions/tolower_l.texi: Likewise.
8213         * doc/posix-functions/toupper_l.texi: Likewise.
8214         * doc/posix-functions/towctrans_l.texi: Likewise.
8215         * doc/posix-functions/towlower_l.texi: Likewise.
8216         * doc/posix-functions/towupper_l.texi: Likewise.
8217         * doc/posix-functions/wcscoll_l.texi: Likewise.
8218         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
8219         * doc/posix-functions/wctrans_l.texi: Likewise.
8220         * doc/posix-functions/wctype_l.texi: Likewise.
8221         * doc/glibc-functions/strptime_l.texi: Likewise.
8222         * doc/glibc-functions/strtod_l.texi: Likewise.
8223         * doc/glibc-functions/strtof_l.texi: Likewise.
8224         * doc/glibc-functions/strtol_l.texi: Likewise.
8225         * doc/glibc-functions/strtold_l.texi: Likewise.
8226         * doc/glibc-functions/strtoll_l.texi: Likewise.
8227         * doc/glibc-functions/strtoul_l.texi: Likewise.
8228         * doc/glibc-functions/strtoull_l.texi: Likewise.
8229         * doc/glibc-functions/wcsftime_l.texi: Likewise.
8230         * doc/glibc-functions/wcstod_l.texi: Likewise.
8231         * doc/glibc-functions/wcstof_l.texi: Likewise.
8232         * doc/glibc-functions/wcstol_l.texi: Likewise.
8233         * doc/glibc-functions/wcstold_l.texi: Likewise.
8234         * doc/glibc-functions/wcstoll_l.texi: Likewise.
8235         * doc/glibc-functions/wcstoul_l.texi: Likewise.
8236         * doc/glibc-functions/wcstoull_l.texi: Likewise.
8237
8238 2009-11-24  Bruno Haible  <bruno@clisp.org>
8239
8240         duplocale: Fix logic bug.
8241         * lib/duplocale.c: Don't include <langinfo.h>.
8242         (_NL_LOCALE_NAME): Remove macro.
8243         (rpl_duplocale): Use setlocale instead of nl_langinfo.
8244         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
8245
8246 2009-11-23  Jim Meyering  <meyering@redhat.com>
8247
8248         test-update-copyright: don't hard-code /usr/bin/perl
8249         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
8250         perl to print the current year.  Gilles Espinasse reported that
8251         the replaced use of perl was hard-coded as /usr/bin/perl.
8252
8253 2009-11-23  Bruno Haible  <bruno@clisp.org>
8254
8255         duplocale: Add support for glibc 2.3.x.
8256         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
8257
8258 2009-11-22  Bruno Haible  <bruno@clisp.org>
8259
8260         vasnprintf: Tiny optimization.
8261         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
8262         MacOS X.
8263
8264 2009-11-22  Bruno Haible  <bruno@clisp.org>
8265
8266         Tests for module 'duplocale'.
8267         * modules/duplocale-tests: New file.
8268         * tests/test-duplocale.c: New file.
8269
8270         New module 'duplocale'.
8271         * m4/duplocale.m4: New file.
8272         * lib/locale.in.h (duplocale): New declaration.
8273         * lib/duplocale.c: New file.
8274         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
8275         gl_LOCALE_H_DEFAULTS): New macros.
8276         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
8277         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
8278         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
8279         REPLACE_DUPLOCALE.
8280         * modules/duplocale: New file.
8281         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
8282
8283 2009-11-22  Bruno Haible  <bruno@clisp.org>
8284
8285         * modules/locale-tests (configure.ac): Test for newlocale function.
8286         * tests/test-locale.c: When the system has extended locale functions,
8287         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
8288
8289         locale: Make locale_t available when possible.
8290         * lib/locale.in.h: Include <xlocale.h> when it exists.
8291         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
8292         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
8293         * modules/locale (Depends-on): Add extensions.
8294         (Makefile.am): Also substitute HAVE_XLOCALE_H.
8295         * doc/posix-headers/locale.texi: Document the problem with locale_t.
8296
8297 2009-11-22  Bruno Haible  <bruno@clisp.org>
8298
8299         Add comments.
8300         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
8301         invocation.
8302         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
8303         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
8304         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
8305
8306 2009-11-22  Bruno Haible  <bruno@clisp.org>
8307
8308         error: account for the possibility of freopen (stdout).
8309         * lib/error.c: Include <unistd.h>.
8310         (flush_stdout): New function, extracted from error and error_at_line.
8311         Determine stdout's fd dynamically.
8312         (error, error_at_line): Invoke flush_stdout.
8313         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
8314         * modules/error (Depends-on): Add unistd.
8315
8316 2009-11-22  Bruno Haible  <bruno@clisp.org>
8317
8318         diffseq: Add comment.
8319         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
8320
8321 2009-11-22  Jim Meyering  <meyering@redhat.com>
8322
8323         c-stack: avoid defining an unused static function
8324         * lib/c-stack.c (find_stack_direction): Do not define this function
8325         when it will not be used.
8326
8327         diffseq: avoid spurious gcc warnings
8328         * lib/diffseq.h (IF_LINT2): Define.
8329         (compareseq): Use it to initialize two members of "part".
8330         This avoids two used-uninitialized warnings.
8331
8332 2009-11-21  Jim Meyering  <meyering@redhat.com>
8333
8334         c-stack: avoid "ignoring return value of `write'" warning
8335         * lib/c-stack.c: Include "ignore-value.h".
8336         (die): Explicitly ignore each write return value.
8337         * modules/c-stack (Depends-on): Add ignore-value.
8338
8339 2009-11-21  Bruno Haible  <bruno@clisp.org>
8340
8341         diffseq: reduce scope of variable 'best'.
8342         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
8343         variable, earlier used for two different purposes.
8344
8345 2009-11-21  Jim Meyering  <meyering@redhat.com>
8346
8347         diffseq: remove useless assignment to "best"
8348         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
8349         assignment.  At that point "best" is already guaranteed to be zero.
8350
8351 2009-11-20  Eric Blake  <ebb9@byu.net>
8352
8353         build: mention ftp redirector in release announcements
8354         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
8355         values that used to come from cfg.mk; mention FTP redirect URL.
8356         * build-aux/announce-gen: Mention the mirror list.
8357         Suggested by Karl Berry.
8358
8359         nanosleep: improve port to mingw
8360         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
8361         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
8362         LIB_NANOSLEEP, but only when needed.
8363         * modules/select (Link): Document LIBSOCKET.
8364         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
8365         enough.
8366
8367         nanosleep: work around cygwin bug
8368         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
8369         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
8370         bug.
8371         (getnow): Delete, not needed.
8372         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
8373         LIB_CLOCK_GETTIME.
8374         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
8375         clock-time, gettime.
8376         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
8377         bug.
8378         * modules/nanosleep-tests: New test.
8379         * tests/test-nanosleep.c: New file.
8380
8381         sleep: work around cygwin bug
8382         * lib/sleep.c (rpl_sleep): Work around the bug.
8383         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
8384         (gl_PREREQ_SLEEP): Delete unused macro.
8385         * modules/sleep (Depends-on): Add verify.
8386         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
8387         * modules/unistd (Makefile.am): Substitute witness.
8388         * lib/unistd.in.h (sleep): Update prototype.
8389         * doc/posix-functions/sleep.texi (sleep): Document the bug.
8390         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
8391         * modules/sleep-tests (Depends-on): Check for alarm.
8392
8393 2009-11-20  Jim Meyering  <meyering@redhat.com>
8394
8395         maint.mk: improve sc_prohibit_magic_number_exit
8396         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
8397         so it does not match uses like System.exit(1).
8398         Add comments showing how to correct all offenders.
8399
8400 2009-11-19  Eric Blake  <ebb9@byu.net>
8401
8402         xalloc-die-tests: add missing library
8403         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
8404
8405         test-xvasprintf: silence compiler warnings
8406         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
8407         empty string from gcc.
8408
8409 2009-11-19  Jim Meyering  <meyering@redhat.com>
8410
8411         xfreopen: new module, from coreutils
8412         * modules/xfreopen: New module.
8413         * lib/xfreopen.c: New file.
8414         * lib/xfreopen.h: New file.
8415         * MODULES.html.sh (File stream based Input/Output"): Add it.
8416
8417 2009-11-19  Eric Blake  <ebb9@byu.net>
8418
8419         manywarnings: depend on warnings
8420         * modules/manywarnings (Depends-on): Add warnings.
8421
8422         build: avoid compiler warnings
8423         * lib/select.c (rpl_select): Delete unused variable.
8424         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
8425
8426 2009-11-18  Eric Blake  <ebb9@byu.net>
8427
8428         tests: avoid false negative with --with-packager
8429         * tests/test-version-etc.sh: Discard packager information.
8430         * tests/test-argp-version-etc-1.sh: Likewise.
8431         Reported by Mike Frysinger.
8432
8433         utimens: fix regression on Solaris
8434         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
8435         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
8436         can only change fd timestamps via futimesat.  Instead, use an
8437         additional witness macro to avoid BSD bug.
8438         Reported by Jim Meyering.
8439
8440 2009-11-17  Eric Blake  <ebb9@byu.net>
8441
8442         usleep: use it to simplify tests
8443         * modules/stat-time-tests (Depends-on): Add usleep.
8444         (configure.ac): Drop usleep check.
8445         * modules/chown-tests (Depends-on, configure.ac): Likewise.
8446         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
8447         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
8448         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
8449         * modules/openat-tests (Depends-on, configure.ac): Likewise.
8450         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
8451         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
8452         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
8453         Likewise.
8454         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
8455         * tests/test-lchown.h (nap): Likewise.
8456         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
8457         * tests/test-stat-time.c (nap): Likewise.
8458         * tests/test-utimens-common.h (nap): Update comments.
8459
8460         usleep: new module
8461         * modules/usleep: New file.
8462         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
8463         * lib/usleep.c (usleep): Likewise.
8464         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
8465         * modules/unistd (Makefile.am): Substitute witnesses.
8466         * lib/unistd.in.h (usleep): Add declaration.
8467         * doc/pastposix-functions/usleep.texi (usleep): Document this.
8468         * MODULES.html.sh (Date and time): Likewise.
8469         * modules/usleep-tests (Depends-on): New test.
8470         * tests/test-usleep.c: New file.
8471
8472         chown: work around OpenBSD bug
8473         * lib/chown.c (rpl_chown): Work around the bug.
8474         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
8475         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
8476         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
8477         * modules/chown (Depends-on): Add stdbool.
8478         * modules/lchown (Depends-on): Likewise.
8479         * doc/posix-functions/chown.texi (chown): Document the bug.
8480         * doc/posix-functions/lchown.texi (lchown): Likewise.
8481         * tests/test-lchown.h (test_chown): Relax test.
8482
8483         mkstemp: avoid conflict with C++ keyword template
8484         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
8485         * lib/mkostemp.c (mkostemp): Likewise.
8486         * lib/mkostemps.c (mkostemps): Likewise.
8487         * lib/mkstemp.c (mkstemp): Likewise.
8488         * lib/mkstemps.c (mkstemps): Likewise.
8489
8490         xalloc-die-tests: optimize
8491         * tests/test-xalloc-die.sh: Reduce number of processes.
8492
8493 2009-11-17  Simon Josefsson  <simon@josefsson.org>
8494
8495         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
8496         patch from ludo@gnu.org (Ludovic Courtès).
8497
8498 2009-11-17  Jim Meyering  <meyering@redhat.com>
8499
8500         version-etc: use proper license string
8501         * modules/version-etc (License): Use LGPL, not LGPLv3+.
8502         * modules/version-etc-fsf: Likewise.
8503
8504 2009-11-17  Simon Josefsson  <simon@josefsson.org>
8505
8506         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
8507         printed to stdout.  Deal with EOL differences.
8508
8509 2009-11-17  Eric Blake  <ebb9@byu.net>
8510
8511         unsetenv: work around Solaris bug
8512         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
8513         * lib/unsetenv.c (rpl_unsetenv): Work around it.
8514         Reported by Jim Meyering.
8515
8516         vasnprintf: avoid compiler warnings
8517         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
8518         variables.
8519         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
8520
8521 2009-11-17  Simon Josefsson  <simon@josefsson.org>
8522
8523         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
8524         settings since xalloc-die is no longer the self test,
8525         xalloc-die.sh is.
8526
8527 2009-11-17  Jim Meyering  <meyering@redhat.com>
8528
8529         test-xalloc-die.sh: make the code agree with the commit log
8530         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
8531         at the end, just in case you happen to have a test-xalloc-die
8532         program in some other PATH directory.
8533
8534         test-xalloc-die.sh: fix a portability bug
8535         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
8536         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
8537         Otherwise, argv[0] (as often seen in diagnostics) would be too
8538         system-dependent, sometimes with, and sometimes without the leading "./".
8539
8540         version-etc-fsf: relax license to LGPLv3+
8541         * modules/version-etc-fsf (License): Relax license.
8542
8543 2009-11-16  Eric Blake  <ebb9@byu.net>
8544
8545         xalloc-die-tests: avoid printing null pointer
8546         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
8547         shell script.
8548         * tests/test-xalloc-die.c (program_name): Declare.
8549         * tests/test-xalloc-die.sh (tmpfiles): New file.
8550
8551         setenv, unsetenv: work around various bugs
8552         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
8553         (setenv) [HAVE_SETENV]: Work around bugs.
8554         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
8555         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
8556         for bugs.
8557         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
8558         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
8559         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
8560         * modules/stdlib (Makefile.am): Update substitutions.
8561         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
8562         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
8563         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
8564         * modules/setenv-tests: New test.
8565         * modules/unsetenv-tests: Likewise.
8566         * tests/test-setenv.c: New file.
8567         * tests/test-unsetenv.c: Likewise.
8568
8569 2009-11-16  Jim Meyering  <meyering@redhat.com>
8570
8571         version-etc: relax license to LGPLv3+
8572         * modules/version-etc (License): Relax license.
8573
8574         better AC_REQUIRE expanded-before-required-warning avoidance
8575         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
8576         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
8577         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
8578         which is no longer needed.
8579
8580 2009-11-16  Eric Blake  <ebb9@byu.net>
8581
8582         test-freading: clean up temporary file
8583         * tests/test-freading.c (main): Remove file on success, and use
8584         ASSERT more liberally.
8585         Reported by Jim Meyering.
8586
8587 2009-11-16  Jim Meyering  <meyering@redhat.com>
8588
8589         avoid new AC_REQUIRE expanded-before-required warnings
8590         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
8591         merely using it.
8592         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
8593         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
8594
8595 2009-11-15  Simon Josefsson  <simon@josefsson.org>
8596
8597         * tests/test-xalloc-die.c: New file.
8598         * modules/xalloc-die-tests: New file.
8599         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
8600         XFAIL_TESTS so it can be appended by modules.
8601
8602 2009-11-15  Simon Josefsson  <simon@josefsson.org>
8603
8604         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
8605         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
8606
8607 2009-11-14  Eric Blake  <ebb9@byu.net>
8608
8609         fnmatch: avoid compiler warning
8610         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
8611         to silence compiler warning about mismatch signedness in ?:.
8612         Reported by Robert Millan.
8613
8614         intprops: add double-inclusion guard
8615         * lib/intprops.h: Allow idempotent includes.
8616         Suggested by Bruce Korb.
8617
8618         openat: detect Solaris fchownat bug
8619         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
8620         penalizing glibc chownat when only lchownat is broken.
8621         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
8622         trailing slash bugs.
8623         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
8624         * modules/openat-tests (Files): Include more files.
8625         (Depends-on): Add mgetgroups, sleep, stat-time.
8626         (configure.ac): Add additional checks.
8627         (Makefile.am): Build new test.
8628         * tests/test-fchownat.c: New file.
8629
8630         lchown: detect Solaris and FreeBSD bug
8631         * lib/lchown.c (rpl_lchown): Work around bug.
8632         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
8633         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
8634         * modules/unistd (Makefile.am): Populate it.
8635         * lib/unistd.in.h (lchown): Update declaration.
8636         * doc/posix-functions/lchown.texi (lchown): Document the bug.
8637         * modules/lchown-tests: New file.
8638         * tests/test-lchown.h (test_lchown): Likewise.
8639         * tests/test-lchown.c (main): Likewise.
8640
8641         chown: detect Solaris and FreeBSD bug
8642         * lib/chown.c (rpl_chown): Work around bug.
8643         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
8644         (gl_PREREQ_CHOWN): Delete.
8645         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
8646         * modules/unistd (Makefile.am): Populate it.
8647         * lib/unistd.in.h (chown): Update declaration.
8648         * lib/lchown.c (chown): Update client.
8649         * modules/lchown (Depends-on): Add lstat.
8650         * doc/posix-functions/chown.texi (chown): Document the bug.
8651         * doc/posix-functions/getgroups.texi (getgroups): Document
8652         getgroups pitfall.
8653         * modules/chown-tests: New file.
8654         * tests/test-chown.h (test_chown): Likewise.
8655         * tests/test-chown.c (main): Likewise.
8656
8657 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
8658
8659         gnulib-tool: correctly detect absence of m4 directories
8660         * gnulib-tool: Avoid extra newline on data passed to wc -l.
8661
8662 2009-11-14  Jim Meyering  <meyering@redhat.com>
8663
8664         maint.mk: Prohibit inclusion of "xalloc.h" without use.
8665         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
8666
8667 2009-11-14  John W. Eaton  <jwe@gnu.org>
8668
8669         strftime.h: wrap funtion declaration in extern "C" block
8670         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
8671
8672 2009-11-13  Eric Blake  <ebb9@byu.net>
8673
8674         getgroups: avoid compiler warning
8675         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
8676
8677         getgroups: work around FreeBSD bug
8678         * lib/getgroups.c (rpl_getgroups): Work around the bug.
8679         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
8680         * doc/posix-functions/getgroups.texi (getgroups): Document it.
8681         * tests/test-getgroups.c (main): Fix buffer overrun.
8682
8683         getgroups: avoid compilation failure
8684         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
8685         * modules/getgroups (Depends-on): Add stdint.
8686
8687 2009-11-13  Jim Meyering  <meyering@redhat.com>
8688
8689         test-getgroups: avoid compilation failure
8690         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
8691
8692 2009-11-13  Eric Blake  <ebb9@byu.net>
8693
8694         mgetgroups: new module, taken from coreutils
8695         * modules/mgetgroups: New file.
8696         * lib/mgetgroups.h: Likewise.
8697         * lib/mgetgroups.c (mgetgroups): Likewise.
8698         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
8699         * MODULES.html.sh (Users and groups): Mention it.
8700
8701         getgroups: don't expose GETGROUPS_T to user
8702         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
8703         an element at a time if GETGROUPS_T is wrong size.
8704         * lib/getugroups.h (getugroups): Change signature.
8705         * lib/unistd.in.h (getgroups): Likewise.
8706         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
8707         signature needs fixing.
8708         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
8709         AC_TYPE_GETGROUPS.
8710         * modules/group-member (Depends-on): Add getgroups.
8711         * lib/group-member.c (group_info, get_group_info): Use gid_t.
8712         (group_member): Rely on getgroups replacement.
8713         * lib/getugroups.c (getugroups): Use gid_t.
8714         * tests/test-getgroups.c (main): Likewise.
8715         * NEWS: Mention the signature change.
8716         * doc/posix-functions/getgroups.texi (getgroups): Mention the
8717         problem with signature.
8718         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
8719         GETGROUPS_T is still useful for setgroups.
8720
8721         getgroups, getugroups: provide stubs for mingw
8722         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
8723         * lib/getugroups.c (getugroups): Likewise.
8724         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
8725         function.  Modernize replacement scheme.
8726         (gl_PREREQ_GETGROUPS): Delete.
8727         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
8728         * modules/getgroups (configure.ac): Declare witness.
8729         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
8730         * modules/unistd (Depends-on): Substitute witness.
8731         * lib/unistd.in.h (getgroups): Declare replacement.
8732
8733         getgroups: avoid calling exit
8734         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
8735         drop xalloc.
8736         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
8737         dependencies.
8738         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
8739         exiting, in the rare case of malloc failure.
8740
8741         getgroups: fix logic error
8742         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
8743         has more than 20 groups.
8744         * modules/getgroups-tests: New test.
8745         * tests/test-getgroups.c: New file.
8746
8747 2009-11-13  Simon Josefsson  <simon@josefsson.org>
8748
8749         * tests/test-base64.c: Improve.
8750
8751 2009-11-13  Simon Josefsson  <simon@josefsson.org>
8752
8753         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
8754         Blake <ebb9@byu.net>.
8755
8756 2009-11-13  Simon Josefsson  <simon@josefsson.org>
8757
8758         * tests/test-xvasprintf.c: Add %s%s related checks.
8759
8760 2009-11-12  Eric Blake  <ebb9@byu.net>
8761
8762         version-etc: match standards.texi style
8763         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
8764         and use <> only for URLs.
8765
8766 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
8767
8768         fts: do not fail on a submount during traversal
8769         * lib/fts.c (fts_build): Read the stat info again after opening
8770         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
8771         Original report at http://bugzilla.redhat.com/501848.
8772
8773 2009-11-12  Jim Meyering  <meyering@redhat.com>
8774
8775         bootstrap: sync from coreutils
8776         * build-aux/bootstrap (bootstrap_epilogue): New function.
8777         Use git_modules_config in one more place.  This make bootstrap's
8778         --gnulib-srcdir option more useful for testing.
8779
8780         bootstrap: generalize autoheader check
8781         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
8782         AC_CONFIG_HEADERS.
8783
8784 2009-11-11  Eric Blake  <ebb9@byu.net>
8785
8786         mkfifoat: use new modules for Solaris and BSD bugs
8787         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
8788         * lib/mkfifoat.c (mknodat): Split...
8789         * lib/mknodat.c (mknodat): ...into new file.
8790         * modules/mkfifoat (Files): Ship new file.
8791         (Depends-on): Add mkfifo, mknod.
8792         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
8793         (Depends-on): Add symlink.
8794         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
8795         redundant with test_mkfifo.h.
8796         (do_mkfifoat, do_mknodat): New helpers.
8797
8798         mknod: new module
8799         * modules/mknod: New file.
8800         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
8801         * lib/mknod.c (mknod): Likewise.
8802         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
8803         defaults.
8804         * modules/sys_stat (Makefile.am): Substitute them.
8805         * lib/sys_stat.in.h (mknod): Declare replacement.
8806         * MODULES.html.sh (Support for systems lacking POSIX:2008):
8807         Document it.
8808         * doc/posix-functions/mknod.texi (mknod): Likewise.
8809         * modules/mknod-tests: New test.
8810         * tests/test-mknod.c: Likewise.
8811
8812         mkfifo: new module
8813         * modules/mkfifo: New file.
8814         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
8815         * lib/mkfifo.c (mkfifo): Likewise.
8816         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
8817         defaults.
8818         * modules/sys_stat (Makefile.am): Substitute them.
8819         * lib/sys_stat.in.h (mkfifo): Declare replacement.
8820         * MODULES.html.sh (Support for systems lacking POSIX:2008):
8821         Document it.
8822         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
8823         * modules/mkfifo-tests: New test.
8824         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
8825         from test-mkfifoat.c.
8826         * tests/test-mkfifo.c: New file.
8827
8828         readlink: detect FreeBSD bug
8829         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
8830         slash on symlink.
8831         * doc/posix-functions/readlink.texi (readlink): Document the bug.
8832         * tests/test-readlink.h (test_readlink): Enhance test.
8833
8834         symlink: detect FreeBSD bug
8835         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
8836         slash on symlink.
8837         * doc/posix-functions/symlink.texi (symlink): Document the bug.
8838         * tests/test-symlink.h (test_symlink): Enhance test.
8839
8840 2009-11-10  Eric Blake  <ebb9@byu.net>
8841
8842         link: detect FreeBSD bug
8843         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
8844         symlink.
8845         * doc/posix-functions/link.texi (link): Document the bug.
8846         * tests/test-link.h (test_link): Enhance test.
8847         * tests/test-linkat.c (main): Update caller.
8848
8849         unlink, remove: detect FreeBSD bug
8850         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
8851         slash on symlink.
8852         * doc/posix-functions/unlink.texi (unlink): Document the bug.
8853         * doc/posix-functions/remove.texi (remove): Likewise.
8854         * tests/test-unlink.h (test_unlink): Enhance test.
8855         * tests/test-remove.c (main): Likewise.
8856
8857 2009-11-09  Eric Blake  <ebb9@byu.net>
8858
8859         rename: detect FreeBSD bug
8860         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
8861         slash on symlink.
8862         * modules/renameat-tests (Depends-on): Add filenamecat.
8863         * tests/test-rename.h (test_rename): Allow one more errno.
8864         * tests/test-renameat.c (main): Likewise.
8865         * doc/posix-functions/rename.texi (rename): Document the bug.
8866
8867         open: detect FreeBSD bug
8868         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
8869         symlink.
8870         * doc/posix-functions/open.texi (open): Document the bug.
8871         * doc/posix-functions/utimes.texi (utimes): Likewise.
8872         * tests/test-open.h (test_open): Add parameters, and test symlink
8873         handling.
8874         * tests/test-open.c (main): Adjust caller.
8875         * tests/test-fcntl-safer.c (main): Likewise.
8876         * modules/open-tests (Depends-on): Add stdbool, symlink.
8877         * modules/fcntl-safer-tests (Depends-on): Likewise.
8878         * tests/test-openat.c (main): Add test-open tests.
8879
8880         stat: detect FreeBSD bug
8881         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
8882         symlink.
8883         * doc/posix-functions/stat.texi (stat): Document the bug.
8884         * tests/test-stat.h (test_stat_func): Add argument.
8885         * tests/test-stat.c (main): Adjust caller.
8886         * tests/test-fstatat.c (main): Likewise.
8887         * modules/stat-tests (Depends-on): Add stdbool, symlink.
8888         Reported by Jim Meyering.
8889
8890 2009-11-09  James Youngman  <jay@gnu.org>
8891
8892         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
8893         * lib/strftime.c: Correct placement of #include "ignore-value.h".
8894
8895 2009-11-08  Jim Meyering  <meyering@redhat.com>
8896
8897         utimens: remove invalid futimesat call
8898         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
8899         It used the file descriptor of the target file as the DIR_FD
8900         parameter and NULL as the file name.  That caused failure with
8901         errno == EFAULT on FreeBSD-8.0-rc2
8902
8903 2009-11-07  Eric Blake  <ebb9@byu.net>
8904
8905         fflush, freadseek: use fseeko, not fseek
8906         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
8907         (clear_ungetc_buffer): Avoid potential problems on large files.
8908         * lib/freadseek.c (freadseek): Likewise.
8909         * modules/freadseek (Depends-on): Add fseeko.
8910         * modules/fseek (configure.ac): Set a witness.
8911         * tests/test-fflush.c (main): Use fseeko.
8912         * tests/test-fpurge.c (fseek): Disable link warning.
8913         * tests/test-freadable.c (fseek): Likewise.
8914         * tests/test-freading.c (fseek): Likewise.
8915         * tests/test-fseeko.c (fseek): Likewise.
8916         * tests/test-ftell.c (fseek): Likewise.
8917         * tests/test-ftello.c (fseek): Likewise.
8918         * tests/test-fwritable.c (fseek): Likewise.
8919         * tests/test-fwriting.c (fseek): Likewise.
8920
8921 2009-11-06  Simon Josefsson  <simon@josefsson.org>
8922
8923         * modules/memchr (Depends-on): Drop getpagesize dependency.
8924
8925 2009-11-06  Simon Josefsson  <simon@josefsson.org>
8926
8927         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
8928         Reported by Ludovic Courtès.
8929         * build-aux/pmccabe2html: Improve example usage.
8930         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
8931
8932 2009-11-06  Jim Meyering  <meyering@redhat.com>
8933
8934         do-release-commit-and-tag: New module.
8935         Automate the release-commit and tag process.
8936         * build-aux/do-release-commit-and-tag: New script, from coreutils.
8937         * modules/do-release-commit-and-tag: New file.
8938         * MODULES.html.sh (Support for maintaining and releasing): Add it.
8939
8940 2009-11-06  Simon Josefsson  <simon@josefsson.org>
8941
8942         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
8943         because test-select.c uses inet_pton.
8944
8945 2009-11-06  Simon Josefsson  <simon@josefsson.org>
8946
8947         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
8948         GETADDRINFO_LIB.  Bump serial number.
8949         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
8950         Suggested by Eric Blake <ebb9@byu.net>.
8951
8952 2009-11-05  Eric Blake  <ebb9@byu.net>
8953
8954         strtod: detect darwin bug
8955         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
8956         Reported by Leo Davis.
8957
8958         freopen-safer: new module
8959         * modules/freopen-safer: New module.
8960         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
8961         * lib/freopen-safer.c (freopen_safer): New file.
8962         * lib/stdio-safer.h (freopen_safer): New declaration.
8963         * lib/stdio--.h (freopen): New override.
8964         * MODULES.html.sh (File stream based Input/Output): Mention it.
8965         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
8966         freopen-safer module.
8967         * doc/posix-functions/stderr.texi (stderr): Likewise.
8968         * doc/posix-functions/stdin.texi (stdin): Likewise.
8969         * doc/posix-functions/stdout.texi (stdout): Likewise.
8970         * modules/freopen-safer-tests: New test.
8971         * tests/test-reopen-safer.c: New file.
8972
8973 2009-11-05  Jim Meyering  <meyering@redhat.com>
8974
8975         maint.mk: Prohibit inclusion of "close-stream.h" without use.
8976         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
8977
8978 2009-11-05  Simon Josefsson  <simon@josefsson.org>
8979
8980         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
8981
8982 2009-11-05  Simon Josefsson  <simon@josefsson.org>
8983
8984         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
8985
8986 2009-11-05  Simon Josefsson  <simon@josefsson.org>
8987
8988         Fix link error.
8989         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
8990         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
8991
8992 2009-11-05  Simon Josefsson  <simon@josefsson.org>
8993
8994         * tests/test-func.c: Also test value of __func__.
8995
8996 2009-11-05  Simon Josefsson  <simon@josefsson.org>
8997
8998         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
8999         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
9000
9001 2009-11-05  Bruno Haible  <bruno@clisp.org>
9002
9003         Fix link error.
9004         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
9005         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
9006         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
9007
9008 2009-11-05  Bruno Haible  <bruno@clisp.org>
9009
9010         Tests for module 'inet_pton'.
9011         * modules/inet_pton-tests: New file.
9012         * tests/test-inet_pton.c: New file.
9013
9014 2009-11-05  Bruno Haible  <bruno@clisp.org>
9015
9016         Tests for module 'inet_ntop'.
9017         * modules/inet_ntop-tests: New file.
9018         * tests/test-inet_ntop.c: New file.
9019
9020 2009-11-04  Eric Blake  <ebb9@byu.net>
9021
9022         stdlib-safer: wrap all mkstemp variants
9023         * modules/mkostemp (configure.ac): Set witness.
9024         * modules/mkostemps (configure.ac): Likewise.
9025         * modules/mkstemps (configure.ac): Likewise.
9026         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
9027         (mkstemps_safer): Wrap more functions.
9028         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
9029         wrapping.
9030         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
9031         (mkstemps_safer): Implement the wrappers.
9032
9033         mkstemps, mkostemps: new modules
9034         * modules/mkostemps: New module.
9035         * modules/mkstemps: Likewise.
9036         * lib/mkostemps.c (mkostemps): New file.
9037         * lib/mkstemps.c (mkstemps): Likewise.
9038         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
9039         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
9040         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
9041         * modules/stdlib (Makefile.am): Substitute them.
9042         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
9043         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
9044         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
9045         * doc/gnulib.texi (Glibc stdlib.h): Include them.
9046         * MODULES.html.sh (File system functions): Mention them.
9047
9048         tempname: resync from glibc
9049         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
9050         same values for __GT_FILE as glibc.  Abort even when assertions
9051         are disabled.
9052         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
9053         match its value otherwise.  Allow idempotent inclusion.
9054         * lib/mkdtemp.c (mkdtemp): Adjust caller.
9055         * lib/mkostemp.c (mkostemp): Likewise.
9056         * lib/mkstemp.c (mkstemp): Likewise.
9057         * lib/tmpfile.c (tmpfile): Likewise.
9058         * NEWS: Document this.
9059
9060         utimens: fix use of futimens on older Linux
9061         * lib/utimens.c (fdutimens): Use updated, rather than original,
9062         timespec to avoid bug in older Linux kernel.
9063         Reported by Simon Josefsson.
9064
9065 2009-11-04  Bruno Haible  <bruno@clisp.org>
9066
9067         Make num_processors more flexible and consistent.
9068         * lib/nproc.h (enum nproc_query): New type.
9069         (num_processors): Add a 'query' argument.
9070         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
9071         (num_processors): Add a 'query' argument. Test the value of the
9072         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
9073         mingw, count the number of CPUs available for the current process.
9074         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
9075         Check for sched_getaffinity and sched_getaffinity_np.
9076         * modules/nproc (Depends-on): Add c-ctype, extensions.
9077         * NEWS: Mention the change.
9078
9079 2009-11-03  Bruno Haible  <bruno@clisp.org>
9080
9081         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
9082
9083 2009-11-03  Jim Meyering  <meyering@redhat.com>
9084
9085         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
9086         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
9087         if it is defined.
9088
9089 2009-11-02  Eric Blake  <ebb9@byu.net>
9090
9091         mktime, timegm: share common declaration
9092         * lib/mktime-internal.h: New file.
9093         * lib/mktime.c: Use it rather than open-coding a declaration.
9094         * lib/timegm.c: Likewise.
9095         * modules/mktime (Files): Ship it.
9096         * modules/timegm (Files): Likewise.
9097         Suggested by Bruno Haible.
9098
9099         test-update-copyright: update test to match script changes
9100         * tests/test-update-copyright.sh: Avoid hard-coding perl
9101         location.  Don't update *.bak created by earlier runs.
9102
9103 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
9104             Simon Josefsson  <simon@josefsson.org>
9105             Bruno Haible  <bruno@clisp.org>
9106
9107         Fix link error on Solaris 8.
9108         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
9109         also in libnsl. Define also INET_PTON_LIB.
9110         * modules/inet_pton (Link): New section.
9111
9112 2009-11-02  Simon Josefsson  <simon@josefsson.org>
9113             Bruno Haible  <bruno@clisp.org>
9114
9115         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
9116         * modules/inet_ntop (Link): New section.
9117         Reported by Boyan Kasarov <bkasarov@gmail.com>.
9118
9119 2009-11-02  Eric Blake  <ebb9@byu.net>
9120
9121         maint: avoid compiler warnings in m4 macros
9122         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
9123         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
9124
9125 2009-11-02  Simon Josefsson  <simon@josefsson.org>
9126
9127         * m4/pmccabe2html.m4: Remove file.
9128         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
9129         function.  Change maintainer.
9130         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
9131         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
9132         Courtès).
9133
9134 2009-10-31  Eric Blake  <ebb9@byu.net>
9135
9136         fseeko: fix m4 regression
9137         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
9138         regression from 2009-10-27.
9139         Reported by Ralf Wildenhues.
9140
9141 2009-10-31  Jim Meyering  <meyering@redhat.com>
9142
9143         inttostr: aesthetics and improved (compile-time) safety
9144         Define inttype_is_signed rather than inttype_is_unsigned,
9145         since the sole use is via "#if inttype_is_signed".
9146         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
9147         inttype_is_unsigned.
9148         * lib/offtostr.c (inttype_is_signed): Likewise.
9149         * lib/uinttostr.c (inttype_is_signed): Likewise.
9150         * lib/umaxtostr.c (inttype_is_signed): Likewise.
9151         * lib/inttostr.c (inttostr): Use verify to cross-check the
9152         inttype_is_signed value and the signedness of the actual type.
9153         * modules/inttostr (Depends-on): Add verify.
9154
9155 2009-10-30  Eric Blake  <ebb9@byu.net>
9156
9157         build: avoid compiler warnings
9158         * lib/fchmodat.c (lchmod): Mark unused variables.
9159         * lib/getopt.c (_getopt_initialize): Likewise.
9160         * lib/mktime.c (__mktime_internal): Provide prototype.
9161         * lib/inttostr.c (inttostr): Avoid compiler warning even with
9162         older gcc that do not understand #pragma GCC diagnostic.
9163         * lib/uinttostr.c (inttype_is_unsigned): Define.
9164         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
9165
9166 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
9167
9168         stat: fix compilation on AIX
9169         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
9170         only see struct stat64.
9171
9172 2009-10-30  Eric Blake  <ebb9@byu.net>
9173
9174         exclude: make more robust
9175         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
9176         rather than masking a coding bug.
9177         Suggested by Bruno Haible.
9178
9179 2009-10-30  Jim Meyering  <meyering@redhat.com>
9180
9181         perl scripts: remove #!/usr/bin/perl in favor of more portable...
9182         Rather than putting #!/usr/bin/perl on the first line,
9183         start with a variant of what's recommended by "man perlrun" that
9184         invokes the first "perl" program from your shell's search path.
9185         * build-aux/gitlog-to-changelog: Replace #!... as above.
9186         Add a "Local Variables" perl mode setting.
9187         Prompted by a patch from Ludovic Courtès.
9188         Improved by Eric Blake.
9189         * build-aux/useless-if-before-free: Likewise.
9190         * build-aux/announce-gen: Likewise.
9191         * build-aux/update-copyright: Likewise.
9192
9193 2009-10-29  Eric Blake  <ebb9@byu.net>
9194
9195         filenamecat-lgpl: adjust clients
9196         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
9197         filenamecat.
9198         * modules/renameat (Depends-on): Likewise.
9199
9200         filenamecat: split into filenamecat-lgpl
9201         * modules/filenamecat-lgpl: New module.
9202         * modules/filenamecat (Files): Move library-safe files into
9203         filenamecat-lgpl.
9204         (Depends-on): Add filenamecat-lgpl.
9205         (configure.ac): Declare witness.
9206         * lib/filenamecat.h (file_name_concat): Only declare when using
9207         GPL module.
9208         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
9209         Move...
9210         * lib/filenamecat-lgpl.c: ...into new file.
9211         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
9212         (gl_FILE_NAME_CONCAT): Use it.
9213         * MODULES.html.sh (File system functions): Mention new module.
9214
9215         argp: avoid memory leak
9216         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
9217         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
9218         base_name, since the latter malloc()s and can call exit().
9219         Leak introduced 2006-07-03.
9220
9221         dirname-lgpl: adjust clients that don't need full dirname
9222         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
9223         * modules/filenamecat (Depends-on): Likewise.
9224         * modules/linkat (Depends-on): Likewise.
9225         * modules/mkancesdirs (Depends-on): Likewise.
9226         * modules/mkdir (Depends-on): Likewise.
9227         * modules/openat (Depends-on): Likewise.
9228         * modules/savewd (Depends-on): Likewise.
9229         * modules/rename (Depends-on): Likewise.
9230         (License): Relax license.
9231         * modules/mkdir-tests (Depends-on): Drop progname.
9232         (Makefile.am): Delete unneeded LDADD.
9233         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
9234
9235         dirname: split into dirname-lgpl
9236         * modules/dirname-lgpl: New module.
9237         * modules/dirname (Files): Move library-safe files into
9238         dirname-lgpl.
9239         (Depends-on): Add dirname-lgpl.
9240         (configure.ac): Declare witness.
9241         * modules/double-slash-root (License): Relax license.
9242         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
9243         module.
9244         * lib/dirname.c (dir_len, mdir_name): Move...
9245         * lib/dirname-lgpl.c: ...into new file.
9246         * lib/basename.c (last_component, base_len): Move...
9247         * lib/basename-lgpl.c: ...into new file.
9248         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
9249         (gl_DIRNAME): Use it.
9250         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
9251         Mention new module.
9252         * modules/dirname-tests (Depends-on): Add progname.
9253         * tests/test-dirname.c (program_name): Delete.
9254
9255         mkdir: make safe for libraries
9256         * modules/mkdir (Depends-on): Drop xalloc.
9257         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
9258         exit.
9259
9260         tests: avoid some compiler warnings
9261         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
9262         literals.
9263         * tests/test-memchr.c (main): Avoid type mismatch.
9264         * tests/test-arpa_inet.c (main): Avoid unused parameters.
9265         * tests/test-base64.c (main): Likewise.
9266         * tests/test-getdelim.c (main): Likewise.
9267         * tests/test-gethostname.c (main): Likewise.
9268         * tests/test-getline.c (main): Likewise.
9269         * tests/test-netinet_in.c (main): Likewise.
9270         * tests/test-select.c (open_server_socket, main): Likewise.
9271         * tests/test-select-stdin.c (main): Likewise.
9272         * tests/test-sockets.c (main): Likewise.
9273         * tests/test-strsignal.c (main): Likewise.
9274         * tests/test-sys_select.c (main): Likewise.
9275         * tests/test-sys_socket.c (main): Likewise.
9276         * tests/test-u64.c (main): Likewise.
9277         * tests/test-xfprintf-posix.c (main): Likewise.
9278         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
9279
9280         sockets: avoid compiler warning
9281         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
9282
9283         maint: detect usage(1) and other suspicious exits
9284         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
9285
9286 2009-10-29  Jim Meyering  <meyering@redhat.com>
9287
9288         timespec: long-to-int truncation could make timespec_cmp malfunction
9289         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
9290         a multiple of 2^32 nanoseconds as no difference.
9291
9292 2009-10-28  Jim Meyering  <meyering@redhat.com>
9293
9294         fprintftime: wrap macro code argument in "do {...} while(0)"
9295         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
9296         cpy macro must be a statement that can be followed by a semicolon.
9297         Now that the else clause contains a comment and is hence longer
9298         than one line, I require curly braces.  That in turn requires
9299         that we wrap this code block in the standard do...while(0).
9300
9301         fprintftime: remove stray semicolon from previous change
9302         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
9303
9304         fprintftime: avoid a warning about ignored fwrite return value
9305         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
9306         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
9307         that is unsafe.
9308         * modules/fprintftime (Depends-on): Add ignore-value.
9309
9310         exclude: avoid an unwarranted warning
9311         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
9312
9313 2009-10-27  Eric Blake  <ebb9@byu.net>
9314
9315         fseek: avoid compilation failure when fflush is replaced
9316         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
9317         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
9318         module is in use.
9319         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
9320         module is not in use; since REPLACE_FSEEK worked otherwise.
9321         (GNULIB_FTELLO): Likewise for ftell.
9322         Reported by Ian Beckwith and others.
9323
9324 2009-10-27  Bruno Haible  <bruno@clisp.org>
9325
9326         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
9327         Reported by Jim Meyering.
9328
9329 2009-10-27  Jim Meyering  <jim@meyering.net>
9330             Bruno Haible  <bruno@clisp.org>
9331
9332         Avoid warning despite dropping the return value of fwrite.
9333         * lib/unicodeio.c: Include ignore-value.h.
9334         (fwrite_success_callback): Explicitly ignore fwrite's return value.
9335         * modules/unicodeio (Depends-on): Add ignore-value.
9336
9337 2009-10-26  Eric Blake  <ebb9@byu.net>
9338
9339         areadlinkat: fix fallback path
9340         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
9341         pointer and zero.
9342
9343 2009-10-22  Pádraig Brady  <P@draigBrady.com>
9344
9345         Use a better IO block size for modern systems
9346         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
9347         * lib/md2.c: Likewise.
9348         * lib/md4.c: Likewise.
9349         * lib/md5.c: Likewise.
9350         * lib/sha1.c: Likewise.
9351         * lib/sha256.c: Likewise.
9352         * lib/sha512.c: Likewise.
9353
9354 2009-10-22  Eric Blake  <ebb9@byu.net>
9355
9356         tests: avoid several compiler warnings
9357         * tests/test-getcwd.c (main): Avoid buffer underflow.
9358         * tests/test-getdate.c (main): String literals are not safe with
9359         putenv, so use setenv.  Declare unused argument.
9360         * modules/getdate-tests (Depends-on): Add setenv.
9361         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
9362         problems with string literals in char *.
9363         * tests/test-hash.c (main): Avoid shadowing declaration.
9364         (insert_new): Treat string literals as char const *.
9365         * tests/test-getopt.h (test_getopt): Likewise.
9366         (getopt_loop): Alter types to minimize casting elsewhere.
9367         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
9368         (test_getopt_long_posix): Likewise.
9369         (do_getopt_long): Add wrapper to minimize casting.
9370         * tests/test-atexit.c (clear_temp_file): Use void.
9371         * tests/test-areadlink-with-size.c (main): Declare unused
9372         arguments.
9373         * tests/test-areadlink.c (main): Likewise.
9374         * tests/test-areadlinkat-with-size.c (main): Likewise.
9375         * tests/test-areadlinkat.c (main): Likewise.
9376         * tests/test-canonicalize-lgpl.c (main): Likewise.
9377         * tests/test-canonicalize.c (main): Likewise.
9378         * tests/test-dirent-safer.c (main): Likewise.
9379         * tests/test-dirname.c (main): Likewise.
9380         * tests/test-dup2.c (main): Likewise.
9381         * tests/test-fchdir.c (main): Likewise.
9382         * tests/test-fcntl-h.c (main): Likewise.
9383         * tests/test-fcntl-safer.c (main): Likewise.
9384         * tests/test-fdopendir.c (main): Likewise.
9385         * tests/test-fdutimensat.c (main): Likewise.
9386         * tests/test-fflush.c (main): Likewise.
9387         * tests/test-filenamecat.c (main): Likewise.
9388         * tests/test-filevercmp.c (main): Likewise.
9389         * tests/test-fopen-safer.c (main): Likewise.
9390         * tests/test-fopen.c (main): Likewise.
9391         * tests/test-fpending.c (main): Likewise.
9392         * tests/test-fpurge.c (main): Likewise.
9393         * tests/test-freading.c (main): Likewise.
9394         * tests/test-fstatat.c (main): Likewise.
9395         * tests/test-fsync.c (main): Likewise.
9396         * tests/test-futimens.c (main): Likewise.
9397         * tests/test-getndelim2.c (main): Likewise.
9398         * tests/test-gettimeofday.c (main): Likewise.
9399         * tests/test-getopt.c (main): Likewise.
9400         * tests/test-i-ring.c (main): Likewise.
9401         * tests/test-inttypes.c (main): Likewise.
9402         * tests/test-link.c (main): Likewise.
9403         * tests/test-lstat.c (main): Likewise.
9404         * tests/test-math.c (main): Likewise.
9405         * tests/test-md5.c (main): Likewise.
9406         * tests/test-memchr2.c (main): Likewise.
9407         * tests/test-memrchr.c (main): Likewise.
9408         * tests/test-mkdir.c (main): Likewise.
9409         * tests/test-mkdirat.c (main): Likewise.
9410         * tests/test-mkfifoat.c (main): Likewise.
9411         * tests/test-open.c (main): Likewise.
9412         * tests/test-openat-safer.c (main): Likewise.
9413         * tests/test-openat.c (main): Likewise.
9414         * tests/test-quotearg.c (main): Likewise.
9415         * tests/test-rawmemchr.c (main): Likewise.
9416         * tests/test-readlink.c (main): Likewise.
9417         * tests/test-remove.c (main): Likewise.
9418         * tests/test-rename.c (main): Likewise.
9419         * tests/test-renameat.c (main): Likewise.
9420         * tests/test-rmdir.c (main): Likewise.
9421         * tests/test-sha1.c (main): Likewise.
9422         * tests/test-signal.c (main): Likewise.
9423         * tests/test-sigaction.c (main): Likewise.
9424         * tests/test-stat.c (main): Likewise.
9425         * tests/test-stat-time.c (main): Likewise.
9426         * tests/test-stddef.c (main): Likewise.
9427         * tests/test-stdint.c (main): Likewise.
9428         * tests/test-stdio.c (main): Likewise.
9429         * tests/test-stdlib.c (main): Likewise.
9430         * tests/test-strchrnul.c (main): Likewise.
9431         * tests/test-strerror.c (main): Likewise.
9432         * tests/test-string.c (main): Likewise.
9433         * tests/test-strtod.c (main): Likewise.
9434         * tests/test-strverscmp.c (main): Likewise.
9435         * tests/test-symlink.c (main): Likewise.
9436         * tests/test-symlinkat.c (main): Likewise.
9437         * tests/test-sys_stat.c (main): Likewise.
9438         * tests/test-sys_time.c (main): Likewise.
9439         * tests/test-time.c (main): Likewise.
9440         * tests/test-unistd.c (main): Likewise.
9441         * tests/test-unlink.c (main): Likewise.
9442         * tests/test-unlinkat.c (main): Likewise.
9443         * tests/test-utimens.c (main): Likewise.
9444         * tests/test-utimensat.c (main): Likewise.
9445         * tests/test-version-etc.c (main): Likewise.
9446         * tests/test-wchar.c (main): Likewise.
9447         * tests/test-wctype.c (main): Likewise.
9448         * tests/test-xprintf-posix.c (main): Likewise.
9449         * tests/test-posixtm.c (main): Likewise.
9450         (STREQ): Delete unused macro.
9451         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
9452         shadowed variables.
9453         * tests/test-memchr.c (main): Likewise.
9454
9455 2009-10-21  Eric Blake  <ebb9@byu.net>
9456
9457         areadlinkat: avoid failure on older glibc
9458         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
9459         rather than mis-comparing 0 against FUNC_RESULT of char*.
9460
9461 2009-10-21  Bruno Haible  <bruno@clisp.org>
9462
9463         * modules/stpncpy (License): Relicense under LGPLv2+.
9464         Reported by David Lutterkort <lutter@redhat.com>.
9465
9466 2009-10-20  Eric Blake  <ebb9@byu.net>
9467
9468         utimensat: work around Solaris 9 bug
9469         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
9470         has trailing slash bugs.
9471         * tests/test-lutimens.h (test_lutimens): Enhance test.
9472         * tests/test-utimens.h (test_utimens): Likewise.
9473         * doc/posix-functions/utime.texi (utime): Enhance documentation.
9474         * doc/posix-functions/utimes.texi (utimes): Likewise.
9475         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
9476         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
9477         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
9478         * doc/posix-functions/futimens.texi (futimens): Likewise.
9479
9480         fdutimensat: new module
9481         * modules/fdutimensat: New file.
9482         * lib/fdutimensat.c (fdutimensat): Likewise.
9483         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
9484         * MODULES.html.sh (File system functions): Mention module.
9485         * modules/fdutimensat-tests: New test.
9486         * tests/test-fdutimensat.c: Likewise.
9487
9488         doc: regenerate INSTALL
9489         * doc/INSTALL: Reflect recent autoconf update.
9490         * doc/INSTALL.ISO: Likewise.
9491         * doc/INSTALL.UTF-8: Likewise.
9492
9493 2009-10-20  Pádraig Brady  <P@draigBrady.com>
9494
9495         acl: warn if ACL support is not detected
9496         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
9497
9498 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
9499
9500         * lib/nproc.h: Add extern "C" block for C++.
9501
9502 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
9503             Bruno Haible  <bruno@clisp.org>
9504
9505         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
9506         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
9507         * doc/posix-functions/isalpha.texi: Likewise.
9508         * doc/posix-functions/isblank.texi: Likewise.
9509         * doc/posix-functions/iscntrl.texi: Likewise.
9510         * doc/posix-functions/isdigit.texi: Likewise.
9511         * doc/posix-functions/isgraph.texi: Likewise.
9512         * doc/posix-functions/islower.texi: Likewise.
9513         * doc/posix-functions/isprint.texi: Likewise.
9514         * doc/posix-functions/ispunct.texi: Likewise.
9515         * doc/posix-functions/isspace.texi: Likewise.
9516         * doc/posix-functions/isupper.texi: Likewise.
9517         * doc/posix-functions/isxdigit.texi: Likewise.
9518
9519 2009-10-18  Bruno Haible  <bruno@clisp.org>
9520
9521         Tests for module 'isblank'.
9522         * modules/isblank-tests: New file.
9523         * tests/test-isblank.c: New file.
9524
9525         New module 'isblank'.
9526         * lib/isblank.c: New file.
9527         * m4/isblank.m4: New file.
9528         * modules/isblank: New file.
9529         * doc/posix-functions/isblank.texi: Mention the new module.
9530
9531 2009-10-18  Bruno Haible  <bruno@clisp.org>
9532
9533         New module 'ctype'.
9534         * lib/ctype.in.h: New file.
9535         * m4/ctype.m4: New file.
9536         * modules/ctype: New file.
9537         * doc/posix-headers/ctype.texi: Mention the new module.
9538
9539 2009-10-18  Jim Meyering  <meyering@redhat.com>
9540
9541         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
9542         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
9543         right after its initialization, rather than farther down.
9544         Keeping these in close proximity makes it easier to ensure
9545         that each such variable is initialized.  E.g.,
9546
9547             LIB_CLOCK_GETTIME=
9548             AC_SUBST([LIB_CLOCK_GETTIME])
9549
9550         This change also increments these serial numbers.
9551         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
9552         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
9553         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
9554
9555 2009-10-18  Bruno Haible  <bruno@clisp.org>
9556
9557         Don't let environment variables perturb build.
9558         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
9559         (gl_PREREQ_GETHRXTIME): ... not here.
9560
9561 2009-10-18  Bruno Haible  <bruno@clisp.org>
9562
9563         Avoid symlink attack in localcharset module.
9564         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
9565         (O_NOFOLLOW): Define fallback.
9566         (get_charset_aliases): Don't open the file if it is a symbolic link.
9567         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
9568         gl_FCNTL_H.
9569         (gl_FCNTL_H): Require it.
9570         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
9571         * modules/localcharset (Files): Add m4/fcntl_h.m4.
9572         Reported by Fergal Glynn <fglynn@veracode.com>.
9573
9574 2009-10-18  Bruno Haible  <bruno@clisp.org>
9575
9576         Implement nproc for mingw.
9577         * lib/nproc.c: Include <windows.h>
9578         (num_processors): On native Windows platforms, try GetSystemInfo.
9579
9580 2009-10-18  Bruno Haible  <bruno@clisp.org>
9581
9582         Implement nproc for IRIX.
9583         * lib/nproc.c: Include <sys/sysmp.h>.
9584         (num_processors): On IRIX systems, try sysmp.
9585         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
9586
9587 2009-10-18  Bruno Haible  <bruno@clisp.org>
9588
9589         Implement nproc for HP-UX.
9590         * lib/nproc.c: Include <sys/pstat.h>
9591         (num_processors): On HP-UX systems, try pstat_getdynamic.
9592         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
9593         pstat_getdynamic.
9594
9595 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
9596             Bruno Haible  <bruno@clisp.org>
9597
9598         Implement nproc for NetBSD, OpenBSD.
9599         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
9600         (ARRAY_SIZE): New macro.
9601         (num_processors): On BSD systems, try sysctl of HW_NCPU.
9602         * m4/nproc.m4: New file.
9603         * modules/nproc (Files): Add m4/nproc.m4.
9604         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
9605         (Makefile.am): Instead, augment lib_SOURCES.
9606
9607 2009-10-18  Bruno Haible  <bruno@clisp.org>
9608
9609         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
9610         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
9611         sys/param.h.
9612
9613 2009-10-16  Eric Blake  <ebb9@byu.net>
9614
9615         utimensat: new module
9616         * modules/utimensat: New file.
9617         * lib/utimensat.c (utimensat): Likewise.
9618         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
9619         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
9620         so we can work around Linux bugs.
9621         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
9622         * modules/sys_stat (Makefile.am): Substitute them.
9623         * lib/sys_stat.in.h (utimensat): Declare it.
9624         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9625         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
9626         * modules/utimensat-tests: New test.
9627         * tests/test-utimensat.c: Likewise.
9628
9629         utimens: let lutimens work on non-symlinks
9630         * lib/utimens.c (lutimens): Fall back to utimens rather than
9631         failing with ENOSYS, when file is not a symlink.
9632         (utimens): Reduce redirection.
9633         * tests/test-lutimens.h (test_lutimens): Update test to cover
9634         non-symlinks.
9635         * tests/test-utimens.h (test_utimens): Update test to cover
9636         symlinks.
9637         * tests/test-utimens.c (main): Update caller.
9638
9639         utimens: cache whether utimensat syscall works
9640         * lib/utimens.c (utimensat_works_really): New cache variable.
9641         (fdutimens, lutimens): Use it to avoid failing syscall.
9642
9643         test-stat-time, test-utimens: improve portability
9644         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
9645         ext4 on alpha, and for cygwin.
9646         * tests/test-utimens-common.h: New file.
9647         (nap): Factor delays into single function.
9648         * tests/test-lutimens.h (test_lutimens): Use new header.
9649         * tests/test-futimens.h (test_futimens): Likewise.
9650         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
9651         timestamps to occur from same machine, as was done previously for
9652         test_utimens.
9653         * modules/utimens-tests (Files): Ship new file.
9654         * modules/futimens-tests (Files): Likewise.
9655         Reported in part by Jim Meyering.
9656
9657         sys_stat: sort replacement declarations
9658         * lib/sys_stat.in.h: Sort declarations.
9659         * lib/futimens.c (futimens): Fix typo.
9660
9661 2009-10-15  Jim Meyering  <meyering@redhat.com>
9662
9663         don't let environment settings perturb build
9664         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
9665         could cause a configure-time and/or build-time malfunction.
9666         Typically, a configure-time function-in-library test is performed
9667         via code like this:
9668
9669           LIB_VAR=
9670           AC_SUBST([LIB_VAR])
9671           prefix_saved_LIBS=$LIBS
9672             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
9673                        [test "$ac_cv_search_FUNC" = "none required" ||
9674                         LIB_VAR=$ac_cv_search_FUNC])
9675           LIBS=$prefix_saved_LIBS
9676
9677         However, in each of the files affected by this change, the LIB_VAR=
9678         initialization was omitted.  Thus, when set in the environment, its
9679         value would propagate into generated Makefiles when FUNC is not found
9680         in LIB_NAME.
9681         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
9682         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
9683         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
9684
9685 2009-10-14  Eric Blake  <ebb9@byu.net>
9686
9687         fchdir: avoid infinite recursion in mingw
9688         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
9689         recursing.
9690
9691         test-stat-time: port to mingw
9692         * tests/test-stat-time.c (force_unlink): Return a value.
9693         (test_ctime) [W32]: Fix compilation error.
9694         (nap): Don't call usleep with too large an argument.  Use
9695         force_unlink.
9696         * doc/pastposix-functions/usleep.texi (usleep): Document the
9697         portability issue.
9698
9699 2009-10-13  Jim Meyering  <meyering@redhat.com>
9700
9701         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
9702         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
9703         * modules/pipe-filter-ii: Likewise.
9704         * modules/sys_socket-tests: Likewise.
9705         * modules/tsearch-tests: Likewise.
9706         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
9707         (check): Depend on it.
9708
9709 2009-10-12  Eric Blake  <ebb9@byu.net>
9710
9711         utimens-tests: port to NFS file systems
9712         * tests/test-utimens.h (test_utimens): Refactor utimecmp
9713         comparisons to avoid spurious failures from timestamp drift
9714         between NFS machines.
9715
9716 2009-10-12  Eric Blake  <ebb9@byu.net>
9717
9718         stat-time-tests: minor cleanups
9719         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
9720         * tests/test-stat-time.c (nap): Separate assignment from call.
9721         Suggested by Paolo Bonzini and Bruno Haible.
9722
9723         sys_stat: guarantee struct timespec
9724         * lib/sys_stat.in.h (includes): Always include <time.h>
9725         * modules/sys_stat (Depends-on): Add time.
9726         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
9727         mode_t permission values.
9728         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
9729         get at subsecond timestamps.
9730
9731 2009-10-10  Eric Blake  <ebb9@byu.net>
9732
9733         futimens: new module
9734         * modules/futimens: New file.
9735         * lib/futimens.c (futimens): Likewise.
9736         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
9737         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
9738         we can work around Linux bugs.
9739         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
9740         * modules/sys_stat (Makefile.am): Substitute them.
9741         * lib/sys_stat.in.h (futimens): Declare it.
9742         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9743         * doc/posix-functions/futimens.texi (futimens): Likewise.
9744         * modules/futimens-tests: New test.
9745         * tests/test-futimens.c: Likewise.
9746
9747         utimens: introduce fdutimens
9748         * lib/utimens.h (fdutimens): New prototype.
9749         * lib/utimens.c (gl_futimens): Move guts...
9750         (fdutimens): ...to new interface.
9751         * tests/test-utimens.c (do_fdutimens): Use it.
9752
9753         utimens: add UTIME_NOW and UTIME_OMIT support
9754         * lib/utimens.c (validate_timespec, update_timespec): New helper
9755         functions.
9756         (gl_futimens, lutimens): Use them.
9757         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
9758         stdbool, sys_stat.
9759         (Link): Mention resulting library dependency.
9760         * modules/utimecmp (Link): Likewise.
9761         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
9762         (Makefile.am): Pick up library dependency.
9763         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
9764         definition.
9765         * tests/test-sys_stat.c: Test the definitions.
9766         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
9767         * NEWS: Document library dependency.
9768
9769         utimecmp: support symlink timestamps
9770         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
9771         hashing when possible.  Use pathconf when available.
9772         (SYSCALL_RESOLUTION): Recognize tighter resolution.
9773         * modules/utimecmp (Depends-on): Add lstat.
9774
9775         utimens: add lutimens interface
9776         * lib/utimens.c (lutimens): New function.
9777         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
9778         * lib/utimens.h (lutimens): Declare new interface.
9779         * tests/test-utimens.c (main): Enhance test.
9780         * tests/test-lutimens.h (test_lutimens): New file.
9781         * modules/utimens-tests (Files): Distribute it.
9782         (Depends-on): Add symlink.
9783         (configure.ac): Check for usleep.
9784
9785         utimens: validate futimens usage
9786         * lib/utimens.c (gl_futimens): Require valid fd up front, using
9787         fewer syscalls on failure later on.  Avoid compiler warning on
9788         mingw.
9789         * modules/utimens (Depends-on): Add dup2.
9790
9791         utimens: add test
9792         * modules/utimens-tests: New test.
9793         * tests/test-utimens.h: New file.
9794         * tests/test-futimens.h: Likewise.
9795         * tests/test-utimens.c: Likewise.
9796
9797         doc: mention timestamp portability issues
9798         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
9799         instead.
9800         * doc/posix-functions/utime.texi (utime): Likewise.
9801         * doc/posix-functions/utimes.texi (utimes): Likewise.
9802         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
9803         instead.
9804         * doc/posix-functions/futimens.texi (futimens): Mention utimens
9805         module.
9806         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
9807         Mention weakness with symlink timestamps.
9808         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
9809         to utimensat/futimens instead.
9810         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
9811
9812         test-dup2: enhance test
9813         * tests/test-dup2.c (main): Also check AT_FDCWD.
9814
9815         test-stat-time: avoid more spurious failures
9816         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
9817         xfs; and avoid race if the two timestamps cross quantization edge.
9818
9819         relocatable: prefer 'file system' over 'filesystem'
9820         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
9821         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
9822         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
9823         * doc/relocatable.texi (Enabling Relocatability): Likewise.
9824         * lib/relocatable.c (compute_curr_prefix): Likewise.
9825
9826 2009-10-10  Jim Meyering  <meyering@redhat.com>
9827
9828         stat-time-tests: check for the usleep function
9829         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
9830
9831 2009-10-10  Bruno Haible  <bruno@clisp.org>
9832
9833         * modules/xnanosleep: Put the Link section after the Include section.
9834
9835 2009-10-09  Eric Blake  <ebb9@byu.net>
9836
9837         dup2: work around FreeBSD 6.1 bug
9838         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
9839         * doc/posix-functions/dup2.texi (dup2): Document it.
9840         Reported by Nelson H. F. Beebe and Jim Meyering.
9841
9842         test-stat-time: port to buggy NFS clients
9843         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
9844         (test_ctime): Also skip test if mtime and ctime are skewed.
9845
9846         maint: prefer 'file system' over 'filesystem'
9847         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
9848         * doc/posix-functions/lstat.texi (lstat): Likewise.
9849         * lib/file-has-acl.c (file_has_acl): Likewise.
9850         * lib/fwriteerror.c [TEST]: Likewise.
9851         * tests/test-areadlink.h (test_areadlink): Likewise.
9852         * tests/test-areadlinkat-with-size.c (main): Likewise.
9853         * tests/test-areadlinkat.c (main): Likewise.
9854         * tests/test-canonicalize-lgpl.c (main): Likewise.
9855         * tests/test-canonicalize.c (main): Likewise.
9856         * tests/test-fstatat.c (main): Likewise.
9857         * tests/test-linkat.c (main): Likewise.
9858         * tests/test-lstat.h (test_lstat_func): Likewise.
9859         * tests/test-mkdir.h (test_mkdir): Likewise.
9860         * tests/test-readlink.h (test_readlink): Likewise.
9861         * tests/test-remove.c (main): Likewise.
9862         * tests/test-rename.h (test_rename): Likewise.
9863         * tests/test-renameat.c (main): Likewise.
9864         * tests/test-rmdir.h (test_rmdir_func): Likewise.
9865         * tests/test-symlink.h (test_symlink): Likewise.
9866         * tests/test-symlinkat.c (main): Likewise.
9867         * tests/test-unlink.h (test_unlink_func): Likewise.
9868         * tests/test-unlinkat.c (main): Likewise.
9869
9870         maint: make realtime library usage explicit
9871         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
9872         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
9873         * modules/settime (Link): Likewise.
9874         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
9875
9876         test-stat-time: speed up execution
9877         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
9878         warning on mingw.
9879         (nap): New helper function.
9880         (prepare_test): Use it to reduce sleep time.
9881         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
9882         execution.
9883         * modules/stat-time-tests (configure.ac): Check for usleep.
9884
9885 2009-10-09  Jim Meyering  <meyering@redhat.com>
9886
9887         selinux-h: always use getfilecon wrappers
9888         * lib/getfilecon.c: New file.
9889         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
9890         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
9891         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
9892         (fgetfilecon): Provide a stub.
9893         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
9894         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
9895         file unconditionally.
9896         When <selinux/selinux.h> is found, arrange to use wrappers.
9897         * modules/selinux-h (Files): Add getfilecon.c.
9898         (Makefile.am): Substitute include-next-related bits
9899         into the now-always-generated selinux/selinux.h file.
9900         * doc/glibc-functions/lgetfilecon.texi: New file.
9901         * doc/glibc-functions/fgetfilecon.texi: New file.
9902         * doc/glibc-functions/getfilecon.texi: New file.
9903         * doc/glibc-functions/getfilecon-desc.texi: New file.
9904         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
9905         which to pull in the new files.
9906         * MODULES.html.sh (Misc): Add selinux-h.
9907
9908 2009-10-08  Jim Meyering  <meyering@redhat.com>
9909
9910         unistd: fix comment typo
9911         * lib/unistd.in.h (euidaccess): Fix a comment typo.
9912
9913 2009-10-08  Eric Blake  <ebb9@byu.net>
9914
9915         areadlink: use SIZE_MAX consistently
9916         * modules/areadlink (Depends-on): Add stdint.
9917         * modules/areadlink-with-size (Depends-on): Likewise.
9918         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
9919         gives NULL; drop sys/types, since unistd gives size_t; and add
9920         stdint for SIZE_MAX.
9921         (SIZE_MAX): Rely on headers.
9922         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
9923         and add stdint.
9924         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
9925         (SIZE_MAX): Likewise.
9926         (INITIAL_BUF_SIZE): Turn into enum.
9927         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
9928
9929 2009-10-08  Jim Meyering  <meyering@redhat.com>
9930
9931         areadlinkat: avoid compilation failure
9932         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
9933         Fix typo in comment.
9934
9935 2009-10-07  Eric Blake  <ebb9@byu.net>
9936
9937         areadlinkat-with-size: new module
9938         * modules/areadlinkat-with-size: New module.
9939         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
9940         * lib/areadlink.h (areadlinkat): Declare it.
9941         * MODULES.html.sh (File system functions): Mention it.
9942         * modules/areadlinkat-with-size-tests: New test.
9943         * tests/test-areadlinkat-with-size.c: New file.
9944
9945         xreadlinkat: new module
9946         * modules/xreadlinkat: New module.
9947         * lib/xreadlinkat.c (xreadlinkat): New file.
9948         * lib/xreadlink.h (xreadlinkat): Declare it.
9949         * MODULES.html.sh (File system functions): Mention it.
9950
9951         areadlinkat: new module
9952         * lib/at-func.c (FUNC_FAIL): New define.
9953         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
9954         * modules/areadlinkat: New module.
9955         * lib/linkat.c (areadlinkat): Move...
9956         * lib/areadlinkat.c (areadlinkat): ...to new file.
9957         * lib/areadlink.h (areadlinkat): Declare it.
9958         * modules/linkat (Depends-on): Add areadlinkat.
9959         * MODULES.html.sh (File system functions): Mention it.
9960         * modules/areadlinkat-tests: New test.
9961         * tests/test-areadlinkat.c: New file.
9962
9963         areadlink, areadlink-with-size: add tests
9964         * modules/areadlink-tests: New test.
9965         * modules/areadlink-with-size-tests: Likewise.
9966         * tests/test-areadlink.h: New file.
9967         * tests/test-areadlink.c: Likewise.
9968         * tests/test-areadlink-with-size.c: Likewise.
9969
9970         maint: minor cleanups
9971         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
9972         _UNUSED_PARAMETER_ instead.
9973         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
9974         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
9975         * modules/linkat-tests (Files): Distribute test-link.h.
9976
9977         openat, utimens: whitespace cleanup
9978         * lib/openat.c: Prefer space throughout, rather than mix of 8
9979         spaces vs. tabs.
9980         * lib/at-func.c: Likewise.
9981         * lib/utimens.c: Likewise.
9982
9983         openat: avoid using wrong fd
9984         * lib/openat.c (openat_permissive): Reject user's fd if saving the
9985         working directory chooses same fd.
9986         * lib/at-func.c (AT_FUNC_NAME): Likewise.
9987
9988         mkdir, mkdirat: fix cygwin 1.5.x bug
9989         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
9990         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
9991         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
9992         bug.
9993         (gl_PREREQ_MKDIR): Delete unused macro.
9994         * modules/mkdir (Files): Track file rename.
9995         (configure.ac): Update macro name.
9996         * modules/openat (Depends-on): Add mkdir.
9997         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
9998
9999         mkdir, mkdirat: add tests
10000         * modules/mkdir-tests: New test.
10001         * tests/test-mkdir.h: New file.
10002         * tests/test-mkdir.c: Likewise.
10003         * tests/test-mkdirat.c: Likewise.
10004         * modules/openat-tests (Files): Add new files.
10005         (Makefile.am): Run new test.
10006
10007 2009-10-06  Eric Blake  <ebb9@byu.net>
10008
10009         doc: tweak *at function documentation
10010         * doc/posix-functions/faccessat.texi (faccessat): Mention
10011         known issue with replacement.
10012         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
10013         * doc/posix-functions/linkat.texi (linkat): Likewise.
10014         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
10015         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
10016         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
10017         * doc/posix-functions/renameat.texi (renameat): Likewise.
10018         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
10019
10020         openat: fix GNU/Hurd bug in unlinkat
10021         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
10022         broken.
10023         * doc/posix-functions/unlink.texi (unlink): Document this.
10024         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
10025
10026         fdopendir: fix GNU/Hurd bug
10027         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
10028         allowing non-directory fds.
10029         * lib/fdopendir.c (rpl_fdopendir): Work around it.
10030         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
10031         * modules/dirent (Makefile.am): Substitute it.
10032         * lib/dirent.in.h (fdopendir): Declare replacement.
10033         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
10034         * tests/test-fdopendir.c (main): Test something other than
10035         /dev/null, since on Hurd that behaves like a directory.
10036
10037         test-symlink: port to GNU/Hurd
10038         * tests/test-symlink.h (test_symlink): Relax expected errno.
10039
10040         doc: tweak more cygwin information
10041         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
10042         now compatible with glibc.
10043         * doc/posix-functions/getopt.texi (getopt): Likewise.
10044
10045         getopt-gnu: add another test
10046         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
10047         guarantee behavior relied on by m4.
10048         * tests/test-getopt.c (main): Use it.
10049         * modules/getopt-posix-tests (Depends-on): Add setenv.
10050         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
10051
10052         getopt: fix compilation on darwin
10053         * lib/getopt.in.h (includes): Leave breadcrumbs during system
10054         include.
10055         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
10056         Reported by Ludovic Courtès.
10057
10058 2009-10-06  Bruno Haible  <bruno@clisp.org>
10059
10060         * modules/size_max (Description): Discourage its use.
10061         Reported by Simon Josefsson.
10062
10063 2009-10-06  Jim Meyering  <meyering@redhat.com>
10064
10065         linkat: avoid compilation failure
10066         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
10067
10068 2009-10-05  Eric Blake  <ebb9@byu.net>
10069
10070         linkat: support Linux 2.6.17
10071         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
10072         linkat on Linux, but allow cache variable override.
10073         * lib/linkat.c (rpl_linkat): Define override.
10074         * modules/linkat (Depends-on): Add symlinkat.
10075         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
10076         * modules/unistd (Makefile.am): Substitute it.
10077         * lib/unistd.in.h (linkat): Declare replacement.
10078         Reported by Pádraig Brady.
10079
10080         quotearg: port test to systems with C.UTF-8 locale
10081         * tests/test-quotearg.c (struct result_strings): Add another
10082         member, differentiating between C.ASCII and C.UTF-8 handling.
10083         (compare_strings): Add parameter.
10084         (main): Adjust all callers.
10085
10086         getopt: avoid clash with FreeBSD _getopt_internal
10087         * lib/getopt.in.h (_getopt_internal): Override the name.
10088         * lib/getopt_int.h (includes): Pick up any overrides.
10089         Reported by Reuben Thomas.
10090
10091         hash: allow C89 compilation
10092         * lib/hash.c (check_tuning): Move declaration before statement.
10093         Reported by Reuben Thomas.
10094
10095 2009-10-05  Karl Berry  <karl@gnu.org>
10096
10097         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
10098
10099 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
10100             Bruno Haible  <bruno@clisp.org>
10101
10102         * lib/uname.c (uname): Use a table-driven algorithm to compute
10103         Windows NT versions.
10104
10105 2009-10-04  Bruno Haible  <bruno@clisp.org>
10106
10107         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
10108         program_invocation_short_name.
10109         * modules/progname (configure.ac): Test for presence of
10110         program_invocation_short_name.
10111         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
10112
10113 2009-10-04  Bruno Haible  <bruno@clisp.org>
10114
10115         * lib/progname.c (set_program_name): Fix comment.
10116         Reported by Jim Meyering.
10117
10118 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
10119             Bruno Haible  <bruno@clisp.org>
10120
10121         * lib/uname.c: Include <string.h>.
10122         (uname): Do only one call to GetVersionEx in the common case.
10123
10124 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
10125             Bruno Haible  <bruno@clisp.org>
10126
10127         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
10128         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
10129         (uname): Add support for Windows CE and various non-x86 CPU types.
10130
10131 2009-10-03  Bruno Haible  <bruno@clisp.org>
10132
10133         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
10134         invocation to tests/configure.ac.
10135         Reported by Ian Beckwith <ianb@erislabs.net>.
10136
10137 2009-10-02  Eric Blake  <ebb9@byu.net>
10138
10139         fchdir: avoid compiler warning
10140         * lib/fchdir.c (canonicalize_file_name)
10141         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
10142
10143         test-open: support mingw errno values
10144         * tests/test-open.h (test_open): Relax test.
10145         * tests/test-fopen.h (test_fopen): Likewise.
10146         * tests/test-openat-safer.c (main): Likewise.
10147
10148         open: fix opening directory on mingw
10149         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
10150
10151         test-open: on GNU/Hurd, /dev/null is a directory
10152         * tests/test-fopen.h (main): Rename...
10153         (test_fopen): ...to this.  Use a guaranteed non-directory when
10154         confirming open behavior on trailing slash.
10155         * tests/test-openat-safer.c (main): Likewise.
10156         * tests/test-open.h (main): Likewise....
10157         (test_open): ...to this.
10158         * tests/test-fopen.c (main): Adjust caller.
10159         * tests/test-fopen-safer.c (main): Likewise.
10160         * tests/test-open.c (main): Likewise.
10161         * tests/test-fcntl-safer.c (main): Likewise.
10162         Reported by Samuel Thibault.
10163
10164         rename, fchdir: don't ignore chdir failure
10165         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
10166         * lib/rename.c (rpl_rename) [W32]: Likewise.
10167         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
10168         an empty destination directory if source cannot be renamed,
10169         although there is still possibility for failure.
10170         * doc/posix-functions/rename.texi (rename): Document the race.
10171         Reported by Jim Meyering.
10172
10173         maint: cleanup whitespace in recent commits
10174         * lib/rename.c (rpl_rename): Remove tabs.
10175         * tests/test-link.h (test_link): Likewise.
10176         * lib/fchdir.c (get_name): Likewise.
10177         Reported by Jim Meyering.
10178
10179 2009-10-02  Ben Pfaff  <blp@gnu.org>
10180
10181         relocatable-prog-wrapper: Add missing dependency on
10182         double-slash-root.
10183         * modules/relocatable-prog-wrapper: Add dependency.
10184         Reported by Ian Beckwith <ianb@erislabs.net>.
10185
10186 2009-10-02  Eric Blake  <ebb9@byu.net>
10187
10188         renameat: fix Solaris bugs
10189         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
10190         needed fixing.
10191         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
10192         * modules/stdio (Makefile.am): Substitute it.
10193         * lib/stdio.in.h (renameat): Declare replacement.
10194         * lib/renameat.c (rpl_renameat): Implement fix.
10195
10196         renameat: new module
10197         * modules/renameat: New file.
10198         * lib/renameat.c (renameat): Likewise.
10199         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
10200         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
10201         * modules/stdio (Makefile.am): Substitute them.
10202         * lib/stdio.in.h (renameat): Declare it.
10203         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
10204         * doc/posix-functions/renameat.texi (renameat): Likewise.
10205         * modules/renameat-tests: New test.
10206         * tests/test-renameat.c: Likewise.
10207
10208         rename: fix mingw bugs
10209         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
10210         directory overwrite bugs.
10211
10212         rename: fix another cygwin 1.5 bug
10213         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
10214         checks.
10215         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
10216         unnecessary cygwin workarounds.  Also work around bug with moving
10217         full directory onto an empty one.
10218         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
10219
10220         rename-dest-slash: merge into rename module
10221         * modules/rename-dest-slash (Status): Mark obsolete.
10222         (Depends-on): Add rename.
10223         (Files): Let rename do it all.
10224         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
10225         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
10226         * m4/rename-dest-slash.m4: ...so this file can be deleted.
10227         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
10228         * lib/rename.c (rpl_rename): Update comments.
10229
10230         rename: fix cygwin 1.5.x bugs
10231         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
10232         * lib/rename.c (rpl_rename): Work around them.
10233         * modules/rename (Depends-on): Add same-inode.
10234
10235         rename: fix Solaris 10 bug
10236         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
10237         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
10238         was the only bug.
10239
10240         rename: fix Solaris 9 bug
10241         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
10242         on non-directory.  Avoid calling exit.
10243         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
10244         strdup.
10245         * modules/rename-tests (Depends-on): Drop lstat.
10246         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
10247         (gl_PREREQ_RENAME): Delete unused macro.
10248
10249         rename-dest-slash: fix NetBSD bug
10250         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
10251         links.
10252         * modules/rename-dest-slash (Depends-on): Add same-inode.
10253
10254         rename-tests: new test, exposes several platform bugs
10255         * modules/rename-tests: New file.
10256         * tests/test-rename.h: Likewise.
10257         * tests/test-rename.c: Likewise.
10258         * doc/posix-functions/rename.texi (rename): Improve documentation,
10259         including bugs that will eventually be fixed in gnulib.
10260
10261 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
10262
10263         * lib/uname.c: Include <stdlib.h>
10264         (uname): Assume version info is available.
10265
10266 2009-10-02  Jim Meyering  <meyering@redhat.com>
10267
10268         gnu-web-doc-update: correct --help output
10269         * build-aux/gnu-web-doc-update: Make --help output relevant.
10270
10271         gnu-web-doc-update: add standard options
10272         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
10273
10274         gnu-web-doc-update: New module.
10275         Use this script to automatically update the on-line web documentation
10276         for your GNU project at http://www.gnu.org/software/$pkg/manual/
10277         * modules/gnu-web-doc-update: New file, from coreutils.
10278         * build-aux/gnu-web-doc-update: New script.
10279
10280 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
10281
10282         link: LoadLibrary is not needed.
10283         * lib/link.c: Use GetModuleHandle.
10284
10285 2009-10-01  Eric Blake  <ebb9@byu.net>
10286
10287         getopt: bump serial number
10288         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
10289         change.
10290
10291         tests: tighten link, rmdir, and remove tests
10292         * tests/test-link.h (includes): No need to use <config.h> here.
10293         Clean up if directory hard link was created, otherwise test for
10294         trailing '.'.
10295         * tests/test-linkat.c (main): Simplify.
10296         * tests/test-remove.c (main): Enhance test for trailing '.'.
10297         * tests/test-rmdir.h (test_rmdir_func): Likewise.
10298
10299 2009-10-01  Jim Meyering  <meyering@redhat.com>
10300
10301         maint.mk: requiring "make major" was annoying, for a "minor" release.
10302         What is intended is "stable", to contrast with alpha and beta,
10303         so require "make stable", not "make major".
10304         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
10305         (get_tool_versions): Likewise.
10306         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
10307
10308 2009-09-30  Ben Pfaff  <blp@gnu.org>
10309
10310         Fix broken build of replacement for Windows tmpfile().
10311         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
10312         flags argument added along with the 'mkostemp' module.
10313
10314 2009-09-28  Bruno Haible  <bruno@clisp.org>
10315
10316         Avoid identifier clash with POSIX function 'remove' defined as a macro.
10317         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
10318         to 'remove_elt'.
10319         (gl_list_remove): Update.
10320         * lib/gl_list.c (gl_list_remove): Update.
10321         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
10322         to 'remove_elt'.
10323         (gl_oset_remove): Update.
10324         * lib/gl_list.c (gl_oset_remove): Update.
10325         Reported by Eric Blake.
10326
10327 2009-09-28  Eric Blake  <ebb9@byu.net>
10328
10329         doc: mention yet more cygwin 1.7 status
10330         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
10331         cygwin.
10332         * doc/glibc-functions/execvpe.texi (execvpe): New file.
10333         * doc/gnulib.texi (Glibc unistd.h): Mention it.
10334
10335         argp: fix test failure
10336         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
10337         that are not upper-case.  Pass correct range to tolower.
10338
10339 2009-09-27  Jim Meyering  <meyering@redhat.com>
10340
10341         test-yesno: work around sparc-dash here-document infelicity
10342         Without this change, the literal \177 byte in a here document
10343         would make dash 0.5.5.1-3 access uninitialized memory.
10344         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
10345         Instead, use a marker, "@", and filter through tr to create the desired
10346         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
10347
10348 2009-09-27  Bruno Haible  <bruno@clisp.org>
10349
10350         Disable untested support for new flavours of ACLs on AIX.
10351         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
10352         progress.
10353         * lib/set-mode-acl.c (qset_acl): Likewise.
10354
10355 2008-12-07  Bruno Haible  <bruno@clisp.org>
10356
10357         Add support for new flavours of ACLs on AIX. (Untested.)
10358         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
10359         (file_has_acl): Add support for newer AIX.
10360         * lib/set-mode-acl.c (qset_acl): Likewise.
10361         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
10362         Rainer Tammer <tammer@tammer.net>.
10363
10364 2009-09-26  Eric Blake  <ebb9@byu.net>
10365
10366         argp: fix compilation of getopt
10367         * lib/getopt.in.h (includes): Use different guard than glibc.
10368         Reported by Sergey Poznyakoff.
10369
10370         doc: mention more cygwin 1.7 status
10371         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
10372         bug.
10373         * doc/posix-functions/execl.texi (execl): Likewise.
10374         * doc/posix-functions/execle.texi (execle): Likewise.
10375         * doc/posix-functions/execlp.texi (execlp): Likewise.
10376         * doc/posix-functions/execv.texi (execv): Likewise.
10377         * doc/posix-functions/execve.texi (execve): Likewise.
10378         * doc/posix-functions/execvp.texi (execvp): Likewise.
10379         * doc/glibc-functions/canonicalize_file_name.texi
10380         (canonicalize_file_name): Cygwin 1.7 now provides this.
10381         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
10382         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
10383         on AT_SYMLINK_NOFOLLOW.
10384
10385 2009-09-24  Eric Blake  <ebb9@byu.net>
10386
10387         test-linkat: make test more robust
10388         * tests/test-linkat.c (main): Avoid collision with EEXIST.
10389
10390         getopt: fix inclusion guards for cygwin
10391         * modules/getopt-posix (Depends-on): Add include-next.
10392         (Makefile.am): Substitute more items in replacement header.
10393         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
10394         <getopt.h>.
10395         * lib/getopt.in.h (includes): Use split inclusion guard, and
10396         prefer <getopt.h> over include <unistd.h> when one is present.
10397         (option): Also override name of 'struct option'.
10398
10399         same-inode: revert prior change; it is not yet ready
10400         * NEWS: Undo mention of this change.
10401         * lib/same-inode.h (same-inode.h): Undo tri-state change.
10402         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
10403         * lib/cycle-check.c (cycle_check): Likewise.
10404         * lib/same.c (same_name): Likewise.
10405         * lib/at-func2.c (at_func2): Likewise.
10406
10407 2009-09-23  Eric Blake  <ebb9@byu.net>
10408
10409         linkat: new module
10410         * modules/linkat: New file.
10411         * lib/at-func2.c (at_func2): Likewise.
10412         * lib/linkat.c (linkat): Likewise.
10413         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
10414         * lib/openat-priv.h (at_func2): Add declaration.
10415         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
10416         * modules/unistd (Makefile.am): Substitute them.
10417         * lib/unistd.in.h (linkat): Declare it.
10418         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
10419         * doc/posix-functions/linkat.texi (linkat): Likewise.
10420         * doc/posix-functions/link.texi (link): Tweak wording.
10421         * tests/test-link.c (main): Move guts...
10422         * tests/test-link.h (test_link): ...into new file.
10423         * modules/linkat-tests: New test.
10424         * tests/test-linkat.c: Likewise.
10425         * modules/link-tests (Files): Ship new file.
10426         (Depends-on): Add stdbool.
10427
10428         dirname: add library-safe mdir_name
10429         * lib/dirname.h (mdir_name): New prototype.
10430         * lib/dirname.c (dir_name): Move guts...
10431         (mdir_name): ...to new function that avoids xalloc_die.
10432
10433         fchdir: another mingw fix
10434         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
10435         * lib/fchdir.c (get_name): New helper method; skips canonicalize
10436         on mingw (where it has not yet been ported), and make it optional
10437         elsewhere.
10438         (_gl_register_fd): Use it.
10439
10440         same-inode: make SAME_INODE tri-state, to port to mingw
10441         * NEWS: Mention this change.
10442         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
10443         st_ino always being 0.
10444         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
10445         * lib/cycle-check.c (cycle_check): Likewise.
10446         * lib/same.c (same_name): Likewise.
10447
10448         lstat: avoid mingw compilation error
10449         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
10450         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
10451         lstat ourselves.
10452         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
10453         was adequate.
10454         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
10455         the checks for lstat.
10456         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
10457
10458         link: fix test failure on Solaris 9
10459         * lib/link.c (rpl_link): Don't assume link will catch bogus
10460         trailing slash on source.
10461
10462         test-symlinkat: enhance test
10463         * tests/test-readlink.c (main): Move guts...
10464         * tests/test-readlink.h (test_readlink): ...into new file.
10465         * tests/test-symlink.c (main): Move guts...
10466         * tests/test-symlink.h (test_symlink): ...into new file.
10467         * tests/test-symlinkat.c (main): Use new files for further
10468         coverage.
10469         (do_symlink, do_readlink): New helper functions.
10470         * modules/symlink-tests (Files): Ship new file.
10471         (Depends-on): Add stdbool.
10472         * modules/readlink-tests (Files): Ship new file.
10473         (Depends-on): Add stdbool.
10474         * modules/symlinkat-tests (Files): Use new files.
10475
10476 2009-09-23  Eric Blake  <ebb9@byu.net>
10477
10478         readlink: document portability issue with symlink length
10479         * doc/posix-functions/lstat.texi (lstat): Mention that some file
10480         systems have bogus st_size on symlinks, and mention the
10481         areadlink-with-size module.
10482         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
10483         * doc/posix-functions/readlink.texi (readlink): Mention the
10484         areadlink module, and ERANGE failure.
10485         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
10486         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
10487
10488         readlink: fix Solaris 9 bug with trailing slash
10489         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
10490         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
10491         * doc/posix-functions/readlink.texi (readlink): Document this.
10492         * modules/readlink-tests: New test.
10493         * tests/test-readlink.c: Likewise.
10494
10495         readlink: fix cygwin 1.5.x bug with return type
10496         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
10497         * lib/unistd.in.h (readlink): Use ssize_t.
10498         * lib/readlink.c (readlink): Likewise.
10499         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
10500         * modules/unistd (Makefile.am): Substitute it.
10501         * lib/unistd.in.h (readlink): Declare replacement.
10502         * doc/posix-functions/readlink.texi (readlink): Document this.
10503
10504         symlink: use throughout gnulib
10505         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
10506         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
10507         symlink is not used.
10508         * modules/symlinkat (Depends-on): Add symlink.
10509         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
10510         * modules/canonicalize-tests (Depends-on): Likewise.
10511         * modules/lstat-tests (Depends-on): Likewise.
10512         * modules/openat-tests (Depends-on): Likewise.
10513         * modules/remove-tests (Depends-on): Likewise.
10514         * modules/rmdir-tests (Depends-on): Likewise.
10515         * modules/unlink-tests (Depends-on): Likewise.
10516         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
10517         * tests/test-canonicalize.c (symlink): Likewise.
10518         * tests/test-fstatat.c (symlink): Likewise.
10519         * tests/test-lstat.c (symlink): Likewise.
10520         * tests/test-remove.c (symlink): Likewise.
10521         * tests/test-rmdir.c (symlink): Likewise.
10522         * tests/test-unlink.c (symlink): Likewise.
10523         * tests/test-unlinkat.c (symlink): Likewise.
10524
10525         symlink: new module, for Solaris 9 bug
10526         * modules/symlink: New file.
10527         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
10528         * lib/symlink.c: Likewise.
10529         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
10530         * modules/unistd (Makefile.am): Substitute them.
10531         * lib/unistd.in.h (symlink): Declare replacement.
10532         * MODULES.html.sh (File system functions): Mention it.
10533         * doc/posix-functions/symlink.texi (symlink): Likewise.
10534         * modules/symlink-tests: New test.
10535         * tests/test-symlink.c: Likewise.
10536
10537 2009-09-23  Bruno Haible  <bruno@clisp.org>
10538
10539         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
10540         when needed.
10541         Test case: gnulib-tool --import --with-tests atexit inttypes.
10542         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
10543
10544 2009-09-23  Bruno Haible  <bruno@clisp.org>
10545
10546         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
10547         subcommand, not in a subshell.
10548
10549 2009-09-22  Eric Blake  <ebb9@byu.net>
10550
10551         unistd: sort replacement declarations
10552         * lib/unistd.in.h: Sort declarations.
10553
10554         open, openat: minor optimization
10555         * lib/open.c (open): If open succeeded, len is non-zero.
10556         * lib/openat.c (rpl_openat): Likewise.
10557
10558         link-follow: ensure correct result
10559         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
10560         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
10561         distinguish between possible failures.
10562
10563 2009-09-21  Eric Blake  <ebb9@byu.net>
10564
10565         fts: avoid compiler warning
10566         * lib/fts.c (dirent_inode_sort_may_be_useful)
10567         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
10568
10569 2009-09-19  Bruno Haible  <bruno@clisp.org>
10570
10571         * lib/progreloc.c (canonicalize_file_name): New declaration.
10572
10573 2009-09-19  Eric Blake  <ebb9@byu.net>
10574
10575         link: fix quoting
10576         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
10577
10578         openat: fix openat bugs on Solaris 9
10579         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
10580         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
10581         * modules/openat (Depends-on): Add open.
10582         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
10583         * modules/fcntl-h (Makefile.am): Substitute it.
10584         * lib/fcntl.in.h (openat): Declare replacement.
10585         * doc/posix-functions/openat.texi (openat): Document this.
10586
10587         openat: move fstatat and unlinkat into correct files
10588         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
10589         compiled.
10590         * lib/openat.c (fstatat, unlinkat): Move...
10591         * lib/fstatat.c (fstatat): ...into correct files.
10592         * lib/unlinkat.c (unlinkat): Likewise.
10593
10594         openat: fix unlinkat bugs on Solaris 9
10595         * lib/unlinkat.c (unlinkat): New file.
10596         * modules/openat (Depends-on): Add unlink.
10597         (Files): Distribute it.
10598         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
10599         trailing slash behavior is broken.
10600         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
10601         * modules/unistd (Makefile.am): Substitute it.
10602         * lib/unistd.in.h (unlinkat): Declare replacement.
10603         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
10604
10605         openat: fix fstatat bugs on Solaris 9
10606         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
10607         stat.
10608         * doc/posix-functions/fstatat.texi (fstatat): Document this.
10609
10610         test-unlinkat: enhance test, to expose Solaris 9 bug
10611         * tests/test-unlink.c (main): Factor guts...
10612         * tests/test-unlink.h (test_rmdir_func): ...into new file.
10613         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
10614         * tests/test-rmdir.c (main): Adjust caller.
10615         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
10616         (unlinker): New helper function.
10617         (rmdirat): Enhance check.
10618         * modules/rmdir-tests (Depends-on): Add stdbool.
10619         * modules/unlink-tests (Depends-on): Likewise.
10620         (Files): Add test-unlink.h.
10621         * modules/openat-tests (Files): Likewise.
10622         (Depends-on): Add unlinkdir.
10623
10624         test-fstatat: new test, to expose Solaris 9 bugs
10625         * tests/test-stat.c (main): Factor guts...
10626         * tests/test-stat.h (test_stat_func): ...into new file.
10627         * tests/test-lstat.c (main): Factor guts...
10628         * tests/test-lstat.h (test_lstat_func): ...into new file.
10629         * tests/test-fstatat.c: New file.
10630         * modules/stat-tests (Files): Add test-stat.h.
10631         * modules/lstat-tests (Files): Add test-lstat.h.
10632         (Depends-on): Add stdbool.
10633         * modules/openat-tests (Depends-on): Add pathmax.
10634         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
10635         (Makefile.am): Run new test.
10636
10637         remove: new module, for mingw and Solaris 9 bugs
10638         * modules/remove: New file.
10639         * lib/remove.c: Likewise.
10640         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
10641         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
10642         * modules/stdio (Makefile.am): Use them.
10643         * lib/stdio.in.h (remove): Declare replacement.
10644         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
10645         * doc/posix-functions/remove.texi (remove): Likewise.
10646         * modules/remove-tests: New test.
10647         * tests/test-remove.c: Likewise.
10648
10649         unlink: new module, for Solaris 9 bug
10650         * modules/unlink: New file.
10651         * lib/unlink.c: Likewise.
10652         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
10653         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
10654         * modules/unistd (Makefile.am): Use them.
10655         * lib/unistd.in.h (stat): Declare replacement.
10656         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
10657         * doc/posix-functions/unlink.texi (unlink): Likewise.
10658         * modules/unlink-tests: New test.
10659         * tests/test-unlink.c: Likewise.
10660
10661         lstat: fix Solaris 9 bug
10662         * lib/lstat.c (lstat): Also check for trailing slash on
10663         non-symlink, non-directories.  Use stat module to simplify logic.
10664         * doc/posix-functions/lstat.texi (lstat): Document it.
10665         * modules/lstat-tests (Depends-on): Add errno, same-inode.
10666         (configure.ac): Check for symlink.
10667         * tests/test-lstat.c (main): Add more tests.
10668
10669         stat: add as dependency to other modules
10670         * modules/chown (Depends-on): Add stat.
10671         * modules/euidaccess (Depends-on): Likewise.
10672         * modules/fchdir (Depends-on): Likewise.
10673         * modules/isdir (Depends-on): Likewise.
10674         * modules/link (Depends-on): Likewise.
10675         * modules/lstat (Depends-on): Likewise.
10676         * modules/mkdir-p (Depends-on): Likewise.
10677         * modules/modechange (Depends-on): Likewise.
10678         * modules/open (Depends-on): Likewise.
10679         * modules/readlink (Depends-on): Likewise.
10680         * modules/same (Depends-on): Likewise.
10681
10682         stat: fix Solaris 9 bug
10683         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
10684         slash.
10685         * lib/stat.c (rpl_stat): Work around it.
10686         * doc/posix-functions/stat.texi (stat): Update documentation.
10687
10688         stat: new module, for mingw bug
10689         * modules/stat: New file.
10690         * lib/stat.c: Likewise.
10691         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
10692         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
10693         * modules/sys_stat (Makefile.am): Use them.
10694         * lib/sys_stat.in.h (stat): Declare replacement.
10695         * lib/openat.c (fstatat): Deal with lstat and stat being function
10696         macros.
10697         * modules/openat (Depends-on): Add inline.
10698         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
10699         * doc/posix-functions/stat.texi (stat): Likewise.
10700         * modules/stat-tests: New test.
10701         * tests/test-stat.c: Likewise.
10702
10703 2009-09-19  Jim Meyering  <meyering@redhat.com>
10704
10705         syntax-check: detect unnecessary inclusion of canonicalize.h
10706         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
10707
10708 2009-09-19  Eric Blake  <ebb9@byu.net>
10709
10710         canonicalize-lgpl: adjust clients to use correct header
10711         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
10712         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
10713         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
10714         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
10715         * lib/progreloc.c (includes): Likewise.
10716
10717 2009-09-19  Jim Meyering  <meyering@redhat.com>
10718
10719         test-posixtm.c: correct a comment
10720         * tests/test-posixtm.c: Correct first-line comment.
10721         Spotted by Eric Blake.
10722
10723 2009-09-16  Jim Meyering  <meyering@redhat.com>
10724
10725         posixtm-tests: make T const-correct; add a test case
10726         * tests/test-posixtm.c (T): Declare const.
10727         Add a test for -(2^31+1).
10728         Remove useless can-succeed-only-in-2002 test.
10729
10730         posixtm-tests: adjust the sole failing test
10731         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
10732         expected output matches what mktime now produces.  Cross-checked via
10733         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
10734
10735         posixtm: move #ifdef'd tests into a new module
10736         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
10737         * tests/test-posixtm.c: ... this new file.
10738         * modules/posixtm-tests: New module.
10739
10740 2009-09-19  Eric Blake  <ebb9@byu.net>
10741
10742         openat: simplify use of at-func.c
10743         * lib/at-func.c (includes): Include prerequisites here, to
10744         simplify requirements on client files.
10745         * lib/openat-priv.h: Add double-inclusion guard.
10746         * lib/faccessat.c (includes): Simplify.
10747         * lib/fchmodat.c (includes): Likewise.
10748         * lib/fchownat.c (includes): Likewise.
10749         * lib/mkdirat.c (includes): Likewise.
10750         * lib/mkfifoat.c (includes): Likewise.
10751         * lib/symlinkat.c (includes): Likewise.
10752
10753         openat: allow return of fd 0
10754         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
10755         * modules/save-cwd (Depends-on): Replace fcntl-safer with
10756         unistd-safer.
10757         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
10758         <fcntl.h>; this module does not leak fds.
10759         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
10760         must be allowed to return 0, leaving openat_safer to add the
10761         safety.
10762         (openat_permissive): Avoid writing to just-opened fd 2 if
10763         restoring the current directory fails.
10764         * lib/openat-die.c (openat_restore_fail): Add comment.
10765         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
10766         (save_cwd): Guarantee safe fd, but without use of open_safer.
10767         * tests/test-openat.c: New test.
10768         * modules/openat-tests (Files, Makefile.am): Distribute and build
10769         new file.
10770
10771         relocatable-prog-wrapper: fix build
10772         * modules/relocatable-prog-wrapper (Files): Update name of
10773         canonicalize m4 file, broken on 2009-09-17.
10774         Reported by emad hajjar <aleppos@hotmail.com>.
10775
10776 2009-09-19  Bruno Haible  <bruno@clisp.org>
10777
10778         * lib/safe-alloc.h: Use the standard header with GPL copyright.
10779         * lib/safe-alloc.c: Likewise.
10780         Reported by Ian Beckwith <ianb@erislabs.net>.
10781
10782 2009-09-18  Bruno Haible  <bruno@clisp.org>
10783
10784         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
10785         Reported by <erobles@sensacd.com.mx>.
10786
10787 2009-09-17  Eric Blake  <ebb9@byu.net>
10788
10789         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
10790         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
10791         slashes when checking if last component is missing.
10792         * tests/test-canonicalize.c (main): Test this.
10793
10794         canonicalize, canonicalize-lgpl: honor // if distinct from /
10795         * modules/canonicalize (Files): Add double-slash-root.m4.
10796         * modules/canonicalize-lgpl (Files): Likewise.
10797         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
10798         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
10799         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
10800         fallback definition.
10801         (canonicalize_filename_mode): Use it to protect //.
10802         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
10803         (__realpath): Likewise.
10804         * tests/test-canonicalize.c (main): Test this.
10805         * tests/test-canonicalize-lgpl.c (main): Likewise.
10806         * modules/canonicalize-tests (Depends-on): Add same-inode.
10807         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
10808
10809         canonicalize-lgpl: fix glibc bug with trailing slash
10810         * m4/canonicalize-lgpl.m4: Move contents...
10811         * m4/canonicalize.m4: ...here.
10812         (gl_CANONICALIZE_LGPL): Factor realpath check...
10813         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
10814         glibc 2.3.5 bug, fixed 2005-04-27.
10815         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
10816         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
10817         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
10818         * modules/canonicalize-lgpl (Files): Manage file rename.
10819         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
10820         * modules/stdlib (Makefile.am): Substitute witness.
10821         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
10822         is needed.
10823         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
10824         replacement is required.
10825         * lib/canonicalize.c (canonicalize_file_name): Likewise.
10826         * doc/glibc-functions/canonicalize_file_name.texi
10827         (canonicalize_file_name): Document this.
10828         * doc/posix-functions/realpath.texi (realpath): Likewise.
10829
10830         canonicalize-lgpl: reject non-directory with trailing slash
10831         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
10832         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
10833         catches failures in glibc 2.3.5.
10834         * tests/test-canonicalize.c (main): Likewise.
10835
10836         canonicalize-lgpl: use native realpath if it works
10837         * lib/canonicalize-lgpl.c (realpath): Guard with
10838         FUNC_REALPATH_WORKS.
10839         * lib/stdlib.in.h (realpath): Make declaration optional based on
10840         HAVE_REALPATH.
10841         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
10842         native realpath works.
10843         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
10844         * modules/stdlib (Makefile.am): Substitute witness.
10845
10846         canonicalize, canonicalize-lgpl: use <stdlib.h>
10847         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
10848         (Include): Mention <stdlib.h>.
10849         (configure.ac): Mention functions we provide.
10850         * modules/canonicalize (configure.ac): Likewise.
10851         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
10852         realpath if canonicalize_file_name is missing.
10853         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
10854         * modules/stdlib (Makefile.am): Substitute witnesses.
10855         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
10856         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
10857         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
10858         * NEWS: Document this.
10859         * doc/glibc-functions/canonicalize_file_name.texi
10860         (canonicalize_file_name): Likewise.
10861         * doc/posix-functions/realpath.texi (realpath): Likewise.
10862         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
10863
10864         test-canonicalize: consolidate into single C program
10865         * tests/test-canonicalize.sh: Delete; move setup into...
10866         * tests/test-canonicalize.c (main): ...the program, making it
10867         easier to run in debugger.  Add some tests.
10868         * modules/canonicalize-tests (Files): Remove unused file.
10869         (Depends-on): Add progname.
10870         (configure.ac, Makefile.am): Simplify.
10871
10872         test-canonicalize-lgpl: consolidate into single C program
10873         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
10874         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
10875         easier to run in debugger.  Add some tests.
10876         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
10877         (configure.ac, Makefile.am): Simplify.
10878
10879         canonicalize: avoid resolvepath
10880         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
10881         unnecessary checks.
10882         * lib/canonicalize.c (includes): Simplify.
10883         (canonicalize_file_name): Drop resolvepath implementation.
10884         * modules/canonicalize (Depends-on): Drop filenamecat.
10885
10886         canonicalize: don't lose errno
10887         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
10888         over calls to free.
10889
10890         canonicalize: simplify errno handling
10891         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
10892         assignment.
10893
10894         canonicalize, canonicalize-lgpl: update module dependencies
10895         * modules/canonicalize (Depends-on): Add extensions, lstat,
10896         pathmax, stdlib.
10897         (Files): Drop pathmax.h.
10898         (configure.ac): Adjust macro name.
10899         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
10900         lstat, stdlib, sys_stat.
10901         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
10902         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
10903         extensions.
10904         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
10905         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
10906         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
10907         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
10908         declaration, if available.
10909         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
10910         we can rely on the readlink module.
10911         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
10912         (includes): Use <unistd.h> unconditionally.
10913
10914 2009-09-17  Eric Blake  <ebb9@byu.net>
10915
10916         maint: make Include sections of modules consistent
10917         * modules/alloca: Use only header name; no need to list #include.
10918         * modules/alloca-opt: Likewise.
10919         * modules/arpa_inet: Likewise.
10920         * modules/canon-host: Likewise.
10921         * modules/configmake: Likewise.
10922         * modules/dirent: Likewise.
10923         * modules/eealloc: Likewise.
10924         * modules/environ: Likewise.
10925         * modules/fchdir: Likewise.
10926         * modules/fcntl: Likewise.
10927         * modules/fcntl-h: Likewise.
10928         * modules/gethrxtime: Likewise.
10929         * modules/gettime: Likewise.
10930         * modules/ignore-value: Likewise.
10931         * modules/inet_ntop: Likewise.
10932         * modules/inet_pton: Likewise.
10933         * modules/inttypes: Likewise.
10934         * modules/isnand-nolibm: Likewise.
10935         * modules/isnanf-nolibm: Likewise.
10936         * modules/mbchar: Likewise.
10937         * modules/mbfile: Likewise.
10938         * modules/mbiter: Likewise.
10939         * modules/mbuiter: Likewise.
10940         * modules/netdb: Likewise.
10941         * modules/netinet_in: Likewise.
10942         * modules/nproc: Likewise.
10943         * modules/pagealign_alloc: Likewise.
10944         * modules/poll: Likewise.
10945         * modules/printf-frexp: Likewise.
10946         * modules/pthread: Likewise.
10947         * modules/putenv: Likewise.
10948         * modules/random_r: Likewise.
10949         * modules/relocatable-prog: Likewise.
10950         * modules/search: Likewise.
10951         * modules/select: Likewise.
10952         * modules/selinux-h: Likewise.
10953         * modules/settime: Likewise.
10954         * modules/signal: Likewise.
10955         * modules/size_max: Likewise.
10956         * modules/socklen: Likewise.
10957         * modules/ssize_t: Likewise.
10958         * modules/stdarg: Likewise.
10959         * modules/stdbool: Likewise.
10960         * modules/stddef: Likewise.
10961         * modules/stdint: Likewise.
10962         * modules/stdio: Likewise.
10963         * modules/stdlib: Likewise.
10964         * modules/string: Likewise.
10965         * modules/strings: Likewise.
10966         * modules/sys_file: Likewise.
10967         * modules/sys_ioctl: Likewise.
10968         * modules/sys_select: Likewise.
10969         * modules/sys_socket: Likewise.
10970         * modules/sys_stat: Likewise.
10971         * modules/sys_time: Likewise.
10972         * modules/sys_times: Likewise.
10973         * modules/sys_utsname: Likewise.
10974         * modules/sys_wait: Likewise.
10975         * modules/sysexits: Likewise.
10976         * modules/time: Likewise.
10977         * modules/times: Likewise.
10978         * modules/tmpfile: Likewise.
10979         * modules/trim: Likewise.
10980         * modules/unistd: Likewise.
10981         * modules/wchar: Likewise.
10982         * modules/wctype: Likewise.
10983
10984 2009-09-17  Bruno Haible  <bruno@clisp.org>
10985
10986         Make getdate.y compile on QNX and NetBSD 5 / i386.
10987         * m4/getdate.m4 (gl_GETDATE): Conditionally define
10988         TIME_T_FITS_IN_LONG_INT.
10989         * lib/getdate.y (long_time_t): New type.
10990         (relative_time): Change type of 'seconds' field to long_time_t.
10991         (get_date): Update types of local variables. Check against overflow
10992         during conversion from long_time_t to time_t.
10993         Reported by Matt Kraai <kraai@ftbfs.org>
10994         and Hasso Tepper <hasso@netbsd.org>.
10995
10996 2009-09-17  Bruno Haible  <bruno@clisp.org>
10997
10998         * modules/COPYING: Update copyright years.
10999         * modules/README: Likeiwse.
11000         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
11001         Reported by Ian Beckwith <ianb@erislabs.net>.
11002
11003 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
11004
11005         * users.txt: Update references for gnuit package.
11006
11007 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
11008
11009         * m4/getdelim.m4: Fix typo in copyright line.
11010
11011 2009-09-17  Bruno Haible  <bruno@clisp.org>
11012
11013         * lib/atoll.c: Use the standard header with GPL copyright.
11014         * lib/argz.in.h: Likewise.
11015         * lib/glob.c: Likewise.
11016         * lib/glob-libc.h: Likewise.
11017         * lib/random_r.c: Likewise.
11018         * lib/siglist.h: Likewise.
11019         * lib/strsignal.c: Likewise.
11020         Reported by Ian Beckwith <ianb@erislabs.net>.
11021
11022 2009-09-17  Eric Blake  <ebb9@byu.net>
11023
11024         rmdir: ensure correct dependency order
11025         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
11026
11027 2009-09-17  Bruno Haible  <bruno@clisp.org>
11028
11029         Disable assertion that fails on NetBSD 5 / i386.
11030         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
11031         Reported by Sam Steingold <sds@gnu.org>
11032         and Hasso Tepper <hasso@netbsd.org>.
11033
11034 2009-09-16  Eric Blake  <ebb9@byu.net>
11035
11036         unlinkdir: port to mingw
11037         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
11038         on which no one can unlink a directory.
11039
11040         stdlib: sort witness names
11041         * modules/stdlib (Makefile.am): Sort replacements.
11042         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
11043         * lib/stdlib.in.h: Likewise.
11044
11045         parse-duration-tests: avoid link failure
11046         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
11047         LIBINTL.
11048         Reported by Tom G. Christensen.
11049
11050         openat-tests: ensure unlinkat behaves like rmdir
11051         * tests/test-rmdir.c (main): Factor guts...
11052         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
11053         * modules/rmdir-tests (Files): Ship new file.
11054         * modules/openat-tests: New test.
11055         * tests/test-unlinkat.c: Likewise.
11056
11057         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
11058         * modules/rmdir-errno (Status, Notice): Now obsolete.
11059
11060         rmdir: work around cygwin 1.5.x and mingw bugs
11061         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
11062         * lib/rmdir.c (rmdir): Work around it.
11063         * modules/rmdir (Status, Notice): No longer obsolete.
11064         (Files): Add dos.m4.
11065         (Depends-on): Add unistd.
11066         (configure.ac): Set witnesses.
11067         (License): Relax to LGPLv2+.
11068         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
11069         * modules/unistd (Makefile.am): Substitute witnesses.
11070         * lib/unistd.in.h (rmdir): Declare replacement.
11071         * doc/posix-functions/rmdir.texi (rmdir): Document this.
11072         * modules/rmdir-tests: New tests.
11073         * tests/test-rmdir.c: Likewise.
11074
11075 2009-09-15  Eric Blake  <ebb9@byu.net>
11076
11077         fchdir: improve use of replacement functions
11078         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
11079         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
11080         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
11081         REPLACE_CLOSEDIR.
11082         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
11083         * modules/sys_stat (Makefile.am): Substitute correct witness.
11084         * modules/dirent (Makefile.am): Likewise.
11085         * modules/unistd (Makefile.am): Likewise.
11086         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
11087         * lib/unistd.in.h (dup): Likewise.
11088         * lib/sys_stat.in.h (fstat): Likewise.
11089
11090         maint: ignore gnulib-tool temp files
11091         * .gitignore: Ignore files created during gnulib-tool --test.
11092
11093 2009-09-13  Jim Meyering  <meyering@redhat.com>
11094
11095         posixtm: don't reject a time that specify "60" as the number of seconds
11096         * lib/posixtm.c (posixtime): The code to reject invalid dates
11097         would also reject a time specified with the .60 suffix.
11098         But POSIX allows that, in order to accommodate leap seconds.
11099         So don't reject it.
11100         (main): Adjust tests accordingly.
11101         * modules/posixtm (Depends-on): Add stpcpy.
11102
11103 2009-09-11  Jim Meyering  <meyering@redhat.com>
11104
11105         announce-gen: include [$release_type] in emitted Subject:
11106         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
11107         e.g., [stable] in the emitted Subject: line.
11108
11109 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11110
11111         Remove obsolete macros from several modules.
11112         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
11113         obsolete Autoconf macros with their modern counterparts.
11114         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
11115         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
11116         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
11117         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
11118         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
11119         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
11120         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
11121         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
11122         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
11123         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
11124         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
11125         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
11126         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
11127         * m4/sockets.m4 (gl_SOCKETS): Likewise.
11128         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
11129         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
11130         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
11131         * m4/time_r.m4 (gl_TIME_R): Likewise.
11132         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
11133         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
11134         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
11135
11136         Fix copyright header in build-aux scripts.
11137         * build-aux/git-version-gen: Fix copyright header to match GPLv3
11138         recommendation.
11139         * build-aux/ncftpput-ftp: Likewise.
11140         * build-aux/update-copyright: Likewise.
11141
11142 2009-09-09  Eric Blake  <ebb9@byu.net>
11143
11144         test-link: allow Linux choice of errno
11145         * tests/test-link.c (main): Relax test for alternate error.
11146
11147         strndup: fix improper m4 caching
11148         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
11149         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
11150         (gl_PREREQ_STRNDUP): Delete.
11151         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
11152         * modules/string (Makefile.am): Substitute it.
11153         * lib/string.in.h (strndup): Modernize prototype.
11154
11155         getcwd: port to mingw
11156         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
11157         different from the POSIX assumptions made throughout the getcwd
11158         module; fortunately, the mingw getcwd does not need replacement.
11159         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
11160         * modules/getcwd-tests: New test.
11161         * tests/test-getcwd.c: Likewise.
11162
11163         link: fix platform bugs
11164         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
11165         * lib/link.c (link): Work around them.  Fix related mingw bug.
11166         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
11167         * modules/unistd (Makefile.am): Substitute it.
11168         * lib/unistd.in.h (link): Declare replacement.
11169         * doc/posix-functions/link.texi (link): Document this.
11170         * modules/link (Depends-on): Add strdup-posix, sys_stat.
11171
11172         test-link: consolidate into single C program, test more cases
11173         * tests/test-link.sh: Delete.
11174         * tests/test-link.c: Test more error conditions.  Exposes bugs on
11175         at least Cygwin and Solaris.
11176         * modules/link-tests (Files): Remove unused file.
11177         (Depends-on): Add errno, sys_stat.
11178         (Makefile.am): Simplify.
11179
11180 2009-09-08  Bruno Haible  <bruno@clisp.org>
11181
11182         Work around towlower, towupper bug on mingw.
11183         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
11184         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
11185         * doc/posix-functions/towlower.texi: Mention the mingw bug.
11186         * doc/posix-functions/towupper.texi: Likewise.
11187         Reported by Eric Blake.
11188
11189 2009-09-08  Jim Meyering  <meyering@redhat.com>
11190
11191         build: don't try to run autoheader if we don't use it
11192         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
11193         is not used in configure.ac.
11194
11195 2009-09-08  Eric Blake  <ebb9@byu.net>
11196
11197         euidaccess: fix compilation error
11198         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
11199
11200         rawmemchr: relax license
11201         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
11202         okay.
11203         Reported by Jim Meyering.
11204
11205         mkfifoat: new module
11206         * modules/mkfifoat: New file.
11207         * lib/mkfifoat.c: Likewise.
11208         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
11209         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
11210         * modules/sys_stat (Makefile.am): Use them.
11211         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
11212         * MODULES.html.sh (File system functions): Mention module.
11213         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
11214         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
11215         * modules/mkfifoat-tests: New test.
11216         * tests/test-mkfifoat.c: Likewise.
11217
11218         strchrnul: relax license
11219         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
11220         okay.
11221         Reported by Jim Meyering.
11222
11223 2009-09-08  Eric Blake  <ebb9@byu.net>
11224
11225         fstatat: fix compilation on Solaris
11226         * lib/fstatat.c (includes): Add fcntl.h.
11227         Reported by Pádraig Brady.
11228
11229 2009-09-07  Eric Blake  <ebb9@byu.net>
11230
11231         rename: modernize replacement
11232         * modules/rename (Depends-on): Add stdio.
11233         (configure.ac): Declare witness.
11234         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
11235         stdio take care of replacement.
11236         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
11237         * modules/stdio (Makefile.am): Substitute them.
11238         * lib/stdio.in.h (rename): Declare replacement.
11239         * lib/rename.c (includes): Allow cross-compilation to non-windows
11240         machines.
11241         * doc/posix-functions/rename.texi (rename): Improve
11242         documentation.
11243
11244         stdio: sort witness names
11245         * modules/stdio (Makefile.am): Sort replacements.
11246         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
11247         * lib/stdio.in.h: Likewise.
11248
11249         getcwd: minor cleanups
11250         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
11251         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
11252
11253         openat: provide more convenience names
11254         * modules/faccessat (configure.ac): Add C witness.
11255         * lib/unistd.in.h (readlinkat): Fix typo.
11256         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
11257         convenience wrappers.
11258         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
11259         wrappers in syntax checks.
11260
11261 2009-09-06  Eric Blake  <ebb9@byu.net>
11262
11263         doc: fix comments in recent patches
11264         * lib/faccessat.c: Mention correct function.
11265         * lib/fchmodat.c: Likewise.
11266         * lib/fchownat.c: Likewise.
11267         * lib/symlinkat.c: Likewise.
11268         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
11269         constants.
11270
11271         faccessat, symlinkat: continue cleanup of previous patch
11272         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
11273         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
11274         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
11275         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
11276         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
11277         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
11278         set.
11279
11280 2009-09-06  Bruno Haible  <bruno@clisp.org>
11281
11282         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
11283         (fstatat): Declare if GNULIB_FSTATAT is set.
11284         (mkdirat): Declare if GNULIB_MKDIRAT is set.
11285         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
11286         (unlinkat): Declare if GNULIB_UNLINKAT is set.
11287         * modules/fcntl-h (Files): Remove m4/openat.m4.
11288         * modules/sys_stat (Files): Remove m4/openat.m4.
11289         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
11290         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
11291         * modules/unistd (Files): Remove m4/openat.m4.
11292         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
11293         GNULIB_OPENAT.
11294         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
11295         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
11296         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
11297         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
11298         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
11299         gl_OPENAT_DEFAULTS.
11300         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
11301         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
11302         Don't require gl_OPENAT_DEFAULTS.
11303         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
11304         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
11305         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
11306         (gl_OPENAT_DEFAULTS): Remove macro.
11307
11308 2009-09-06  Bruno Haible  <bruno@clisp.org>
11309
11310         * modules/openat (configure.ac): Remove unneeded witness.
11311
11312 2009-09-06  Bruno Haible  <bruno@clisp.org>
11313
11314         Set errno to ENOSYS when a function is entirely unsupported.
11315         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
11316         EOPNOTSUPP.
11317         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
11318         * modules/chown (Depends-on): Remove errno.
11319
11320 2009-09-06  Bruno Haible  <bruno@clisp.org>
11321
11322         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
11323
11324 2009-09-06  Bruno Haible  <bruno@clisp.org>
11325
11326         * lib/sys_stat.in.h: Fix preprocessor command indentation.
11327
11328 2009-09-06  Ben Pfaff  <blp@gnu.org>
11329             Bruno Haible  <bruno@clisp.org>
11330
11331         Work around a glibc bug in strtok_r.
11332         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
11333         Undefine if UNDEFINE_STRTOK_R is set.
11334         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
11335         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
11336         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
11337         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
11338         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
11339         UNDEFINE_STRTOK_R.
11340         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
11341
11342 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
11343
11344         exclude: minor fix
11345         * lib/exclude.c: Include wctype.h
11346
11347 2009-09-06  Akim Demaille  <demaille@gostai.com>
11348
11349         bootstrap: improve error message
11350         * build-aux/bootstrap (find_tool): Upon failure, report the list
11351         of candidates.
11352         Honor the initial value of the envvar.
11353
11354 2009-09-05  Eric Blake  <ebb9@byu.net>
11355
11356         symlinkat: new module
11357         * modules/symlinkat: New file.
11358         * lib/symlinkat.c: Likewise.
11359         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
11360         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
11361         * modules/unistd (Makefile.am): Use them.
11362         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
11363         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
11364         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
11365         * MODULES.html.sh (File system functions): Mention module.
11366         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
11367         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
11368         * modules/symlinkat-tests: New test.
11369         * tests/test-symlinkat.c: Likewise.
11370
11371         test-openat-safer: add more checks
11372         * tests/test-openat-safer.c (main): Check more code paths.
11373
11374 2009-09-05  Jim Meyering  <meyering@redhat.com>
11375
11376         syntax-check: detect unnecessary inclusion of openat.h
11377         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
11378
11379 2009-09-05  Bruno Haible  <bruno@clisp.org>
11380
11381         Support towlower, towupper.
11382         * doc/posix-functions/towlower.texi: Mention module wctype.
11383         * doc/posix-functions/towupper.texi: Likewise.
11384         * lib/wctype.in.h (towlower, towupper): New functions.
11385         * tests/test-wctype.c: Include stdio.h, stdlib.h.
11386         (ASSERT): New macro.
11387         (e): New variable.
11388         (main): Test also towlower, towupper. Test WEOF argument.
11389         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
11390
11391 2009-09-05  Bruno Haible  <bruno@clisp.org>
11392
11393         Fix conversion behaviour when the input is invalid.
11394         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
11395         mark occurring in first pass of indirect conversion.
11396         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
11397         input.
11398         Found by clang's static analyzer.
11399
11400 2009-09-05  Bruno Haible  <bruno@clisp.org>
11401
11402         * tests/test-striconveh.c (main): Test indirect conversion on platforms
11403         where direct conversion is possible.
11404
11405 2009-09-04  Eric Blake  <ebb9@byu.net>
11406
11407         openat: fail with ENOENT on empty name
11408         * lib/openat-proc.c (openat_proc_name): Special-case the empty
11409         buffer.
11410
11411         link-follow: fix logic bug in prior patch
11412         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
11413         reversed sense of yes and no in prior patch.  Avoid confusing
11414         compilation failure with desired semantics.
11415
11416         link-follow: accomodate mingw and cross-compilation
11417         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
11418         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
11419         cross-compilation results to -1, to make linkat easier to
11420         implement when cross-compiling.  Trivially support mingw.
11421         * modules/link-follow (configure.ac): Call new name.
11422         * NEWS: Mention this.
11423
11424 2009-09-03  Eric Blake  <ebb9@byu.net>
11425
11426         faccessat: compile replacement
11427         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
11428         needed.
11429
11430         fts: fix compilation error
11431         * lib/fts.c (includes): Re-add "openat.h", for
11432         openat_needs_fchdir.
11433
11434         faccessat: new module
11435         * modules/faccessat: New file.
11436         * lib/faccessat.c: Likewise.
11437         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
11438         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
11439         * modules/unistd (Makefile.am): Use it.
11440         * lib/unistd.in.h (faccessat): Declare it.
11441         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
11442         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
11443         * MODULES.html.sh (File system functions): Mention it.
11444         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
11445         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
11446
11447         euidaccess: prefer POSIX over non-standard implementation
11448         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
11449         * lib/euidaccess.c (euidaccess): Use it if available.
11450
11451         openat: make template easier to use
11452         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
11453         AT_FUNC_F2 to be undefined.
11454         (VALIDATE_FLAG): New macro; use it to reject bad flags.
11455         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
11456         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
11457         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
11458         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
11459         Likewise.
11460         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
11461         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
11462         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
11463         Likewise.
11464
11465         openat: declare in POSIX headers
11466         * NEWS: Mention this.
11467         * modules/openat (configure.ac): Declare witnesses.
11468         (Depends-on): Add fcntl-h, sys_stat, unistd.
11469         (Include): Mention correct headers.
11470         * modules/fcntl-h (Depends-on): Add link-warning.
11471         (Files): Add openat.m4.
11472         (Makefile.am): Substitute witnesses.
11473         * modules/sys_stat (Files, Makefile.am): Likewise.
11474         * modules/unistd (Files, Makefile.am): Likewise.
11475         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
11476         (gl_OPENAT_DEFAULTS): New macro.
11477         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
11478         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
11479         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
11480         (SYS_STAT_H): Remove unused variable.
11481         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
11482         * lib/fcntl--.h (includes): Remove unneeded header.
11483         * lib/openat-safer.c (includes): Likewise.
11484         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
11485         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
11486         appropriate headers.
11487         (__OPENAT_PREFIX): Delete.
11488         * lib/fcntl.in.h (openat): Provide declaration.
11489         (AT_FDCWD): Fix Solaris bug.
11490         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
11491         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
11492         * lib/fchmodat.c (includes):  Adjust to find declaration.
11493         * lib/fchownat.c (includes): Likewise.
11494         * lib/mkdirat.c (includes): Likewise.
11495         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
11496         still visible.
11497
11498 2009-09-02  Eric Blake  <ebb9@byu.net>
11499
11500         errno: use consistently
11501         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
11502         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
11503         * lib/canonicalize.c (ELOOP): Likewise.
11504         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
11505         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
11506         * lib/lchown.c (EOPNOTSUPP): Likewise.
11507         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
11508         * lib/savewd.c (ESTALE): Likewise.
11509         * lib/settime.c (ENOSYS): Likewise.
11510         * lib/utimens.c (ENOSYS): Likewise.
11511         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
11512         * lib/chdir-safer.c (ELOOP): Likewise.
11513         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
11514         * modules/c-stack (Depends-on): Add errno.
11515         * modules/canonicalize (Depends-on): Likewise.
11516         * modules/chdir-safer (Depends-on): Likewise.
11517         * modules/fdopendir (Depends-on): Likewise.
11518         * modules/inet_ntop (Depends-on): Likewise.
11519         * modules/inet_pton (Depends-on): Likewise.
11520         * modules/lchown (Depends-on): Likewise.
11521         * modules/openat (Depends-on): Likewise.
11522         * modules/savewd (Depends-on): Likewise.
11523         * modules/settime (Depends-on): Likewise.
11524         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
11525
11526         fts: avoid leaking fds
11527         * modules/fts (Depends-on): Add cloexec.
11528         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
11529         flag.
11530
11531         fts: make directory fds more robust
11532         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
11533         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
11534
11535         backupfile, chdir-long, fts, savedir: make safer
11536         * lib/backupfile.c (includes): Use "dirent--.h", since
11537         numbered_backup can write to stderr during readdir.
11538         * lib/savedir.c (includes): Likewise.
11539         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
11540         emulation can write to stderr on failure.
11541         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
11542         * lib/getcwd.c: Document why opendir_safer is unused.
11543         * lib/glob.c: Likewise.
11544         * lib/scandir.c: Likewise.
11545         * lib/openat-proc.c: Likewise, for open_safer.
11546         * modules/backupfile (Depends-on): Add dirent-safer.
11547         * modules/savedir (Depends-on): Likewise.
11548         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
11549         * modules/chdir-long (Depends-on): Add openat-safer.
11550
11551         openat-safer: new module
11552         * modules/openat-safer: New file.
11553         * lib/openat-safer.c: Likewise.
11554         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
11555         * lib/fcntl-safer.h (openat_safer): Declare.
11556         * lib/fcntl--.h (openat): Override.
11557         * MODULES.html.sh (File descriptor based I/O): Mention it.
11558         * lib/openat.h: Add double-inclusion guards.
11559         * lib/openat.c (includes): Only include "fcntl-safer.h", not
11560         "fcntl--.h", so we can implement openat.
11561         * modules/openat-safer-tests: New test.
11562         * tests/test-openat-safer.c: New file.
11563
11564         dirent-safer: new module
11565         * modules/dirent-safer: New file.
11566         * lib/dirent--.h: Likewise.
11567         * lib/dirent-safer.h: Likewise.
11568         * lib/opendir-safer.c: Likewise.
11569         * m4/dirent-safer.m4: Likewise.
11570         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
11571         * modules/dirent-safer-tests: New test.
11572         * tests/test-dirent-safer.c: New file.
11573         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
11574
11575         fdopendir: optimize on mingw
11576         * lib/unistd.in.h (_gl_directory_name): New prototype.
11577         * lib/fchdir.c (_gl_directory_name): Implement it.
11578         (fchdir): Use it to simplify implementation.
11579         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
11580         fchdir, when available, to avoid calling [f]chdir().
11581
11582         fdopendir: split into its own module
11583         * lib/openat.c (fdopendir): Move...
11584         * lib/fdopendir.c: ...into new file.
11585         * modules/fdopendir: New module.
11586         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
11587         * modules/openat (Depends-on): Add fdopendir.
11588         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
11589         fdopendir here.
11590         * modules/savedir (Depends-on): Only need fdopendir, not full
11591         openat.
11592         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
11593         * lib/openat.h (fdopendir): Drop prototype.
11594         * lib/dirent.in.h (fdopendir): Provide prototype.
11595         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
11596         * modules/dirent (Makefile.am): Substitute them.
11597         * MODULES.html.sh (File system functions): Mention it.
11598         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
11599         * modules/fdopendir-tests: New file.
11600         * tests/test-fdopendir.c: Likewise.
11601
11602         fchdir: use more consistent macro convention
11603         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
11604         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
11605         REPLACE_FCHDIR, rather than relying on config.h macros.
11606         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
11607         inside a single make-time REPLACE_FCHDIR block, rather than using
11608         the config.h FCHDIR_REPLACEMENT.
11609         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
11610         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
11611         Manage fstat replacement.
11612         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
11613         REPLACE_FCHDIR.
11614         * modules/sys_stat (Files): Add m4/unistd_h.m4.
11615         (Makefile.am): Substitute REPLACE_FCHDIR.
11616         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
11617         FCHDIR_REPLACEMENT.
11618         * lib/dup-safer.c (dup_safer): Likewise.
11619         * lib/dup2.c (rpl_dup2): Likewise.
11620         * lib/dup3.c (rpl_dup3): Likewise.
11621         * lib/open.c (rpl_open): Likewise.
11622
11623         fchdir: simplify error handling, and support dup3
11624         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
11625         stdbool, malloc-posix, realloc-posix.
11626         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
11627         (ensure_dirs_slot): Return false on allocation failure.
11628         (rpl_dup2): Delete.
11629         (_gl_register_dup): New function.
11630         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
11631         (_gl_register_fd): Close fd on allocation failure.
11632         * lib/fcntl.in.h (_gl_register_fd): Update signature.
11633         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
11634         prototype.
11635         (rpl_dup2_fchdir): Delete prototype.
11636         * lib/open.c (open): Update caller.
11637         * lib/dup2.c (dup2): Track fchdir metadata.
11638         * lib/dup3.c (dup3): Likewise.
11639         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
11640         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
11641
11642 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11643
11644         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
11645         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
11646         don't pass arguments to AC_OUTPUT.
11647
11648 2009-09-02  Bruno Haible  <bruno@clisp.org>
11649
11650         * modules/mkdtemp (License): Relicense under LGPLv2+.
11651         Reported by Paolo Bonzini.
11652
11653 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11654
11655         Replace uses of obsolete autoconf macros in Jim's modules.
11656         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
11657         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
11658         can evoke a warning from autoconf when run with -Wobsolete
11659         enabled.  They were declared obsolete for good reasons (see
11660         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
11661         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
11662         should not continue using the deprecated macros.
11663         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
11664         obsolete Autoconf macros with modern counterparts.
11665         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
11666         * m4/dos.m4 (gl_AC_DOS): Likewise.
11667         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
11668         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
11669         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
11670         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
11671         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
11672         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
11673         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
11674         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
11675         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
11676         Likewise.
11677         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
11678         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
11679         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
11680         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
11681         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
11682         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
11683
11684 2009-09-01  Eric Blake  <ebb9@byu.net>
11685
11686         fchdir: fix off-by-one bug in previous patch
11687         * lib/fchdir.c (rpl_fstat): Use correct bounds.
11688         (_gl_unregister_fd): Delete useless if.
11689
11690 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
11691
11692         maint.mk: sort the list of syntax-check rules
11693         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
11694         easier to get a sense of progress when the rules are run sequentially
11695         and take a long time.
11696
11697 2009-09-01  Simon Josefsson  <simon@josefsson.org>
11698
11699         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
11700         * modules/netinet_in: Likewise.
11701         * modules/sys_file: Likewise.
11702         * modules/sys_ioctl: Likewise.
11703         * modules/sys_select: Likewise.
11704         * modules/sys_socket: Likewise.
11705         * modules/sys_stat: Likewise.
11706         * modules/sys_time: Likewise.
11707         * modules/sys_times: Likewise.
11708         * modules/sys_utsname: Likewise.
11709         * modules/sys_wait: Likewise.
11710
11711 2009-09-01  Jim Meyering  <meyering@redhat.com>
11712
11713         fts: help ensure that return values are not ignored
11714         * lib/fts_.h (__GNUC_PREREQ): Define.
11715         (__attribute_warn_unused_result__): Define.
11716         (fts_children, fts_close, fts_open, fts_read): Declare with
11717         __attribute_warn_unused_result__.
11718
11719         fts: fts_close now fails also when closing a dir file descriptor fails
11720         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
11721         and propagate to caller, along with errno.
11722
11723         announce-gen: correct formatting in --help output
11724         * build-aux/announce-gen (usage): Move the one-line description in
11725         --help output "up", to where it belongs, just after Usage:.
11726
11727 2009-08-31  Eric Blake  <ebb9@byu.net>
11728
11729         fchdir: port to mingw
11730         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
11731         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
11732         opened, then use a substitute.
11733         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
11734         replacement.
11735         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
11736         (_gl_register_fd): No need to check stat if open already filters
11737         all directories.
11738         (fchdir): Fix error condition to match POSIX.
11739         * modules/fchdir (Depends-on): Add sys_stat.
11740         * doc/posix-functions/open.texi (open): Document the limitation.
11741         * modules/fchdir-tests: New file.
11742         * tests/test-fchdir.c: Likewise.
11743
11744         canonicalize: allow cross-testing from cygwin to mingw
11745         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
11746         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
11747         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
11748         Likewise.
11749         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
11750         target does not support symlinks.
11751         * tests/test-canonicalize-lgpl.sh: Likewise.
11752
11753         chown: avoid compilation warning on mingw
11754         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
11755         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
11756         mingw.
11757         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
11758         * modules/chown (Depends-on): Add errno.
11759
11760 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
11761
11762         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
11763         command.
11764
11765 2009-08-31  Jim Meyering  <meyering@redhat.com>
11766
11767         canonicalize: remove useless initialization
11768         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
11769         initialization of local, "end".
11770
11771 2009-08-30  Bruno Haible  <bruno@clisp.org>
11772
11773         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
11774         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
11775         ENOSYS.
11776
11777 2009-08-30  Bruno Haible  <bruno@clisp.org>
11778
11779         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
11780         /usr/xpg4/bin/tr when it exists.
11781         * tests/test-pipe-filter-gi1.sh: Likewise.
11782
11783 2009-08-30  Bruno Haible  <bruno@clisp.org>
11784
11785         Work around deficient /usr/bin/id program on Solaris.
11786         * tests/test-file-has-acl.sh (ID): New variable.
11787         * tests/test-set-mode-acl.sh (ID): Likewise.
11788         * tests/test-copy-acl.sh (ID): Likewise.
11789         * tests/test-copy-file.sh (ID): Likewise.
11790
11791 2009-08-30  Bruno Haible  <bruno@clisp.org>
11792
11793         New module 'xstriconveh'.
11794         * lib/xstriconveh.h: New file.
11795         * lib/xstriconveh.c: New file.
11796         * modules/xstriconveh: New file.
11797
11798 2009-08-30  Bruno Haible  <bruno@clisp.org>
11799
11800         Make it easier to use mem_cd_iconveh.
11801         * lib/striconveh.h (iconveh_t): New type.
11802         (iconveh_open, iconveh_close): New declarations.
11803         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
11804         with a single 'const iconveh_t *' argument.
11805         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
11806         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
11807         with a single 'const iconveh_t *' argument.
11808         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
11809         * tests/test-striconveh.c (main): Update.
11810         * NEWS: Mention the change.
11811
11812 2009-08-30  Bruno Haible  <bruno@clisp.org>
11813
11814         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
11815         problem.
11816
11817 2009-08-30  Bruno Haible  <bruno@clisp.org>
11818
11819         Work around iconv_open problem on Solaris.
11820         * lib/iconv_open-solaris.gperf: New file.
11821         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
11822         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
11823         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
11824         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
11825         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
11826         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
11827
11828 2009-08-29  Jim Meyering  <meyering@redhat.com>
11829
11830         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
11831         * top/maint.mk (cvs-check): Remove target; it was just an alias
11832         to the better-named vc-diff-check.
11833         (maintainer-distcheck): Remove rule.  It was used only from
11834         the (alpha/beta/major) target, and all of its commands but one
11835         were coreutils-specific.
11836         (vc-dist): Remove rule.
11837         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
11838         Run vc-diff-check, not vc-dist.
11839         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
11840
11841 2009-08-27  Bruno Haible  <bruno@clisp.org>
11842
11843         * tests/test-bitrotate.c (main): Remove test that uses a shift count
11844         of 0.
11845
11846 2009-08-27  Bruno Haible  <bruno@clisp.org>
11847
11848         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
11849         compilers.
11850         * doc/func.texi: Document the SunPRO C bug.
11851
11852 2009-08-27  Bruno Haible  <bruno@clisp.org>
11853
11854         Fix link error on Solaris.
11855         * tests/test-parse-duration.c (xstrdup): Remove function.
11856
11857 2009-08-26  Pádraig Brady  <P@draigbrady.com>
11858
11859         ignore-value: handle pointer types, too
11860         * lib/ignore-value.h (__attribute__): Remove definition.
11861         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
11862         of a more concise and more-often effective "(void) i" statement.
11863         (ignore_ptr): New function to suppress warnings from functions that
11864         return pointers, and to make it explicit that one function doesn't
11865         handle all cases.
11866
11867 2009-08-25  Bruno Haible  <bruno@clisp.org>
11868
11869         dup2: work around a Linux bug.
11870         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
11871         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
11872         * doc/posix-functions/dup2.texi: Mention the Linux bug.
11873         Reported by Simon Josefsson.
11874
11875 2009-08-25  Jim Meyering  <meyering@redhat.com>
11876
11877         libguestfs uses gnulib
11878         * users.txt: Add libguestfs.
11879
11880 2009-08-24  Eric Blake  <ebb9@byu.net>
11881
11882         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
11883         * lib/pipe2.c (includes): Add binary-io.h.
11884         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
11885
11886 2009-08-24  Bruno Haible  <bruno@clisp.org>
11887
11888         Tolerate declared but missing accept4 syscall.
11889         * lib/accept4.c (accept4): Invoke original accept4 function first, if
11890         available.
11891         * lib/sys_socket.in.h (accept4): If the function is already present,
11892         override it.
11893         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
11894         * modules/accept4 (Makefile.am): Compile accept4.c always.
11895         Reported by Paolo Bonzini and Eric Blake.
11896
11897 2009-08-23  Bruno Haible  <bruno@clisp.org>
11898
11899         New module 'accept4'.
11900         * lib/sys_socket.in.h (accept4): New declaration.
11901         * lib/accept4.c: New file.
11902         * m4/accept4.m4: New file.
11903         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
11904         GNULIB_ACCEPT4, HAVE_ACCEPT4.
11905         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
11906         HAVE_ACCEPT4.
11907         * modules/accept4: New file.
11908         * doc/glibc-functions/accept4.texi: Mention the new module.
11909
11910 2009-08-24  Jim Meyering  <meyering@redhat.com>
11911
11912         progname: also set global program_invocation_name, when possible
11913         Before this change, a libtool-enabled program that calls glibc's
11914         error function would report the program name as
11915         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
11916         * modules/progname (configure.ac): Check for a declaration of
11917         program_invocation_name.
11918         * lib/progname.c:  Include <errno.h>.
11919         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
11920         Set program_invocation_name.
11921
11922 2009-08-23  Bruno Haible  <bruno@clisp.org>
11923
11924         * lib/dup3.c: Include <string.h>.
11925
11926 2009-08-23  Bruno Haible  <bruno@clisp.org>
11927
11928         * lib/dup3.c (dup3): Test only once whether the system actually exists.
11929         * lib/pipe2.c (pipe2): Likewise.
11930         Suggested by Eric Blake.
11931
11932 2009-08-23  Bruno Haible  <bruno@clisp.org>
11933
11934         Tolerate declared but missing dup3 syscall.
11935         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
11936         * lib/unistd.in.h (dup3): If the function is already present,
11937         override it.
11938         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
11939         * modules/dup3 (Makefile.am): Compile dup3.c always.
11940         Reported by Paolo Bonzini.
11941
11942 2009-08-23  Bruno Haible  <bruno@clisp.org>
11943
11944         Tolerate declared but missing pipe2 syscall.
11945         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
11946         available.
11947         * lib/unistd.in.h (pipe2): If the function is already present,
11948         override it.
11949         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
11950         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
11951         Reported by Paolo Bonzini.
11952
11953 2009-08-23  Bruno Haible  <bruno@clisp.org>
11954
11955         * lib/pipe2.c (pipe2): Move #ifs inside function.
11956
11957 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
11958
11959         quotearg: document limitations of quote_these_too
11960         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
11961         those limitations are created.
11962         * lib/quotearg.h (set_char_quoting): Document that digits and
11963         letters that are special after backslash are not permitted.
11964         (quotearg_char): Cross-reference set_char_quoting documentation.
11965
11966 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
11967
11968         quotearg: implement custom_quoting_style
11969         * lib/quotearg.c: (struct quoting_options): Add left_quote and
11970         right_quote fields.
11971         (set_custom_quoting): New public function.
11972         (quotearg_buffer_restyled): Add left_quote and right_quote
11973         arguments, handle them very much like locale quoting, and update
11974         all uses.
11975         (quotearg_n_custom): New public function.
11976         (quotearg_n_custom_mem): New public function.
11977         (quotearg_custom): New public function.
11978         (quotearg_custom_mem): New public function.
11979         * lib/quotearg.h: Prototype and document new public functions.
11980         (enum quoting_style): For escape_quoting_style and
11981         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
11982         ignored even though they're otherwise like c_quoting_style.
11983         Add custom_quoting_style member and document with comparison to
11984         clocale_quoting_style.
11985         * tests/test-quotearg.c (custom_quotes): New array.
11986         (custom_results): New array.
11987         (main): Extend to test custom quoting.
11988
11989 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
11990
11991         quotearg: fix right quote escaping when it's in quote_these_too
11992         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
11993         quote, be sure to prepend only one backslash.
11994         * tests/test-quotearg.c (use_quote_double_quotes): New function.
11995         (main): Test it.
11996
11997 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
11998
11999         quotearg-tests: test escaping of embedded locale quotes
12000         * tests/test-quotearg.c (struct result_strings): Add member for
12001         new input.
12002         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
12003         (inputs): Add new input.
12004         (results_g): Add expected results.
12005         (flag_results): Likewise.
12006         (locale_results): Likewise.
12007         (compare_strings): Check those.
12008
12009 2009-08-23  Bruno Haible  <bruno@clisp.org>
12010
12011         Tests for module 'dup3'.
12012         * modules/dup3-tests: New file.
12013         * tests/test-dup3.c: New file.
12014
12015         New module 'dup3'.
12016         * lib/unistd.in.h (dup3): New declaration.
12017         * lib/dup3.c: New file.
12018         * m4/dup3.m4: New file.
12019         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
12020         HAVE_DUP3.
12021         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
12022         * modules/dup3: New file.
12023         * doc/glibc-functions/dup3.texi: Mention the new module.
12024
12025 2009-08-23  Bruno Haible  <bruno@clisp.org>
12026
12027         Tweak the dup2 test.
12028         * tests/test-dup2.c (main): Create the test file empty. Verify that an
12029         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
12030         the test file is still empty. Fix argument order of lseek.
12031
12032 2009-08-23  Bruno Haible  <bruno@clisp.org>
12033
12034         Avoid test link errors when the modules getopt-gnu, gettext are used.
12035         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
12036         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12037
12038 2009-08-23  Bruno Haible  <bruno@clisp.org>
12039
12040         Fix getdtablesize() on mingw.
12041         * lib/getdtablesize.c (getdtablesize): Implement differently.
12042         * lib/unistd.in.h (getdtablesize): Improve comment.
12043
12044 2009-08-23  Bruno Haible  <bruno@clisp.org>
12045
12046         New module 'mkostemp'.
12047         Based on Ulrich Drepper's 2007-08-10 change in glibc.
12048         * lib/stdlib.in.h (mksotemp): New declaration.
12049         * lib/mkostemp.c: New file, from glibc with modifications.
12050         * lib/tempname.h (GT_FILE): Remove outdated comment.
12051         (gen_tempname): Add flags argument.
12052         * lib/tempname.c (__GT_BIGFILE): Remove macro.
12053         (__GT_FILE): Map to 1.
12054         (small_open, large_open): Remove macros.
12055         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
12056         * lib/mkstemp.c (mkstemp): Update.
12057         * lib/mkdtemp.c (mkdtemp): Likewise.
12058         * m4/mkostemp.m4: New file.
12059         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
12060         HAVE_MKOSTEMP.
12061         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
12062         HAVE_MKOSTEMP.
12063         * modules/mkostemp: New file, based on modules/mkstemp.
12064         * doc/glibc-functions/mkostemp.texi: Mention the new module.
12065         * NEWS: Mention the change.
12066
12067 2009-08-23  Bruno Haible  <bruno@clisp.org>
12068
12069         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
12070         Reported by Eric Blake.
12071
12072 2009-08-23  Bruno Haible  <bruno@clisp.org>
12073
12074         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
12075         Reported by Eric Blake.
12076
12077 2009-08-23  Bruno Haible  <bruno@clisp.org>
12078
12079         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
12080         * modules/pipe2 (Depends-on): Likewise.
12081
12082 2009-08-23  Eric Blake  <ebb9@byu.net>
12083
12084         fcntl-h: add O_TTY_INIT support
12085         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
12086         * tests/test-fcntl-h.c (o): Test it.
12087         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
12088
12089         fcntl-h: rename from fcntl, in preparation for fcntl(2)
12090         * modules/fcntl: Move <fcntl.h> header replacement...
12091         * modules/fcntl-h: ...to new name, so as not to collide with
12092         like-named function.
12093         * tests/test-fcntl.c: Rename...
12094         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
12095         * modules/fcntl-tests: Rename...
12096         * modules/fcntl-h-tests: ...to this.  Update test file name.
12097         * modules/chdir-long (Depends-on): Update clients.
12098         * modules/chdir-safer (Depends-on): Likewise.
12099         * modules/fcntl-safer (Depends-on): Likewise.
12100         * modules/fts (Depends-on): Likewise.
12101         * modules/mkancesdirs (Depends-on): Likewise.
12102         * modules/mkdir-p (Depends-on): Likewise.
12103         * modules/open (Depends-on): Likewise.
12104         * modules/savewd (Depends-on): Likewise.
12105         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
12106         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
12107
12108 2009-08-22  Bruno Haible  <bruno@clisp.org>
12109
12110         * modules/binary-io (License): Relicense under LGPL.
12111         * modules/pipe2 (License): Likewise.
12112
12113 2009-08-22  Bruno Haible  <bruno@clisp.org>
12114
12115         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
12116         return value.
12117         * lib/pipe-filter-gi.c (filter_init): Likewise.
12118         Reported by Eric Blake.
12119
12120 2009-08-22  Bruno Haible  <bruno@clisp.org>
12121
12122         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
12123         * modules/pipe (Depends-on): Add pipe2.
12124
12125 2009-08-22  Bruno Haible  <bruno@clisp.org>
12126
12127         Tests for module 'pipe2'.
12128         * modules/pipe2-tests: New file.
12129         * tests/test-pipe2.c: New file.
12130
12131         New module 'pipe2'.
12132         * lib/unistd.in.h (pipe2): New declaration.
12133         * lib/pipe2.c: New file.
12134         * m4/pipe2.m4: New file.
12135         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
12136         HAVE_PIPE2.
12137         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
12138         * modules/pipe2: New file.
12139         * doc/glibc-functions/pipe2.texi: Mention the new module.
12140
12141 2009-08-22  Bruno Haible  <bruno@clisp.org>
12142
12143         Reference some new glibc functions.
12144         * doc/glibc-functions/accept4.texi: New file.
12145         * doc/glibc-functions/dup3.texi: New file.
12146         * doc/glibc-functions/mkostemp.texi: New file.
12147         * doc/glibc-functions/pipe2.texi: New file.
12148         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
12149         (Glibc sys/socket.h): Refer to accept4.
12150         (Glibc unistd.h): Refer to dup3, pipe2.
12151         Reported by Eric Blake.
12152
12153 2009-08-22  Jim Meyering  <meyering@redhat.com>
12154             Bruno Haible  <bruno@clisp.org>
12155
12156         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
12157         This makes it so packages using automake-1.11's silent-rules option
12158         can print e.g., a single "GEN    configmake.h" line, rather than
12159         the 30+ statements that perform the job.  If you want to see the
12160         actual commands, you can still run "make V=1".
12161         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
12162         so that make output is abbreviated when those variables are defined
12163         appropriately.
12164         * modules/argz: Likewise.
12165         * modules/arpa_inet: Likewise.
12166         * modules/byteswap: Likewise.
12167         * modules/configmake: Likewise.
12168         * modules/dirent: Likewise.
12169         * modules/errno: Likewise.
12170         * modules/fcntl: Likewise.
12171         * modules/float: Likewise.
12172         * modules/fnmatch: Likewise.
12173         * modules/getopt-posix: Likewise.
12174         * modules/glob: Likewise.
12175         * modules/iconv_open: Likewise.
12176         * modules/inttypes: Likewise.
12177         * modules/localcharset: Likewise.
12178         * modules/locale: Likewise.
12179         * modules/math: Likewise.
12180         * modules/netdb: Likewise.
12181         * modules/netinet_in: Likewise.
12182         * modules/poll: Likewise.
12183         * modules/posix_spawnp-tests: Likewise.
12184         * modules/sched: Likewise.
12185         * modules/search: Likewise.
12186         * modules/selinux-h: Likewise.
12187         * modules/signal: Likewise.
12188         * modules/spawn: Likewise.
12189         * modules/stdarg: Likewise.
12190         * modules/stdbool: Likewise.
12191         * modules/stddef: Likewise.
12192         * modules/stdint: Likewise.
12193         * modules/stdio: Likewise.
12194         * modules/stdlib: Likewise.
12195         * modules/string: Likewise.
12196         * modules/strings: Likewise.
12197         * modules/sys_file: Likewise.
12198         * modules/sys_ioctl: Likewise.
12199         * modules/sys_select: Likewise.
12200         * modules/sys_socket: Likewise.
12201         * modules/sys_stat: Likewise.
12202         * modules/sys_time: Likewise.
12203         * modules/sys_times: Likewise.
12204         * modules/sys_utsname: Likewise.
12205         * modules/sys_wait: Likewise.
12206         * modules/sysexits: Likewise.
12207         * modules/time: Likewise.
12208         * modules/unistd: Likewise.
12209         * modules/wchar: Likewise.
12210         * modules/wctype: Likewise.
12211
12212 2009-08-22  Jim Meyering  <meyering@redhat.com>
12213
12214         announce-gen: detect write failure
12215         * build-aux/announce-gen: Add Coda at end.
12216         Remove equivalent-but-more-verbose block at top.
12217
12218 2009-08-19  Akim Demaille  <demaille@gostai.com>
12219
12220         bootstrap: --help to stdout.
12221         * bootstrap (usage): Don't send --help to stderr.
12222         Use a here doc instead of a long string.
12223
12224 2009-08-21  Eric Blake  <ebb9@byu.net>
12225
12226         test-popen-safer: split from test-popen
12227         * tests/test-popen.c (main): Move...
12228         * tests/test-popen.h: ...into new file.
12229         * tests/test-popen-safer2.c: New file.
12230         * modules/popen-tests (Files): Add test-popen.h.
12231         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
12232         Suggested by Bruno Haible.
12233
12234         test-fcntl-safer: split from test-open
12235         * tests/test-open.c (main): Move...
12236         * tests/test-open.h: ...into new file.
12237         * tests/test-fcntl-safer.c: New file.
12238         * modules/open-tests (Files): Add test-open.h.
12239         * modules/fcntl-safer-tests: New file.
12240         Suggested by Bruno Haible.
12241
12242         test-fopen-safer: split from test-fopen
12243         * tests/test-fopen.c (main): Move...
12244         * tests/test-fopen.h: ...into new file.
12245         * tests/test-fopen-safer.c: New file.
12246         * modules/fopen-tests (Files): Add test-fopen.h.
12247         * modules/fopen-safer-tests: New file.
12248         Suggested by Bruno Haible.
12249
12250 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
12251
12252         popen-safer: test O_CLOEXEC at run-time.
12253         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
12254
12255 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
12256
12257         fcntl: move more flags to the header
12258         * lib/cloexec.c: Do not define FD_CLOEXEC here.
12259         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
12260         * lib/fcntl.in.h: Do both things here.
12261
12262 2009-08-21  Jim Meyering  <meyering@redhat.com>
12263
12264         consistently remove $@-t before redirecting to it
12265         * modules/argz: Remove $@-t and $@ before redirecting to the former.
12266         * modules/alloca-opt: Likewise.
12267         * modules/byteswap: Likewise.
12268         * modules/fnmatch: Likewise.
12269         * modules/getopt-posix: Likewise.
12270         * modules/glob: Likewise.
12271         * modules/poll: Likewise.
12272         * modules/posix_spawnp-tests: Likewise.
12273         * modules/sys_socket: Likewise.
12274         * modules/sysexits: Likewise.
12275
12276 2009-08-21  Eric Blake  <ebb9@byu.net>
12277
12278         popen: simplify access to original popen
12279         * lib/popen.c (rpl_popen): No need to worry about popen being a
12280         macro.
12281         Reported by Bruno Haible.
12282
12283 2009-08-20  Eric Blake  <ebb9@byu.net>
12284
12285         build: avoid some compiler warnings
12286         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
12287         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
12288         type.
12289         (new_exclude_segment, excluded_file_pattern_p)
12290         (excluded_file_name_p): Reduce scope.
12291         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
12292         old-style declaration.
12293
12294 2009-08-20  Simon Josefsson  <simon@josefsson.org>
12295
12296         * tests/test-exclude1.sh: Handle Windows EOL.
12297         * tests/test-exclude2.sh: Likewise.
12298         * tests/test-exclude3.sh: Likewise.
12299         * tests/test-exclude4.sh: Likewise.
12300         * tests/test-exclude5.sh: Likewise.
12301         * tests/test-exclude6.sh: Likewise.
12302         * tests/test-exclude7.sh: Likewise.
12303
12304 2009-08-19  Akim Demaille  <demaille@gostai.com>
12305
12306         bootstrap: find sha1sum when named gsha1sum.
12307         * bootstrap (find_tool): New.
12308         ($SHA1SUM): New.
12309         Use it.
12310
12311 2009-08-20  Jim Meyering  <meyering@redhat.com>
12312
12313         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
12314         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
12315         expression that converts "." in a file name to "\." in the resulting
12316         regexp.  Start with a dummy statement, so that prior shell variable
12317         definitions are expanded portably.  Reported by Simon Josefsson.
12318
12319 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
12320
12321         Fix polling for writeability of a screen buffer.
12322         * lib/poll.c: Distinguish input and screen buffers for the
12323         Win32 implementation.
12324         * lib/select.c: Likewise.
12325
12326 2009-08-19  Eric Blake  <ebb9@byu.net>
12327
12328         popen-safer: prevent popen from clobbering std descriptors
12329         * modules/popen-safer: New file.
12330         * lib/popen-safer.c: Likewise.
12331         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
12332         * lib/stdio--.h (popen): Provide override.
12333         * lib/stdio-safer.h (popen_safer): Provide declaration.
12334         * tests/test-popen.c (includes): Partially test this.
12335         * modules/popen-safer-tests: New file, for more tests.
12336         * tests/test-popen-safer.c: Likewise.
12337         * MODULES.html.sh (file stream based Input/Output): Mention it.
12338
12339         tests: test some of the *-safer modules
12340         * modules/fopen-safer (Depends-on): Add fopen.
12341         * modules/fcntl-safer (Depends-on): Add fcntl.
12342         * modules/stdlib-safer (Depends-on): Add stdlib.
12343         (configure.ac): Set indicator.
12344         * modules/unistd-safer (configure.ac): Likewise.
12345         * modules/tmpfile-safer (configure.ac): Likewise.
12346         (Depends-on): Add tmpfile.
12347         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
12348         active.
12349         * tests/test-fopen.c (includes): Test safer versions when they are
12350         in use.
12351         * tests/test-open.c (includes): Likewise.
12352
12353         popen: fix cygwin 1.5 bug when stdin closed
12354         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
12355         * modules/popen: New file.
12356         * modules/popen-tests: Likewise.
12357         * tests/test-popen.c: Likewise.
12358         * m4/popen.m4: Likewise.
12359         * lib/popen.c: Likewise.
12360         * lib/stdio.in.h (popen): New declaration.
12361         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
12362         * modules/stdio (Makefile.am): Likewise.
12363         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
12364
12365 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
12366
12367         maint.mk: give full control over update-copyright exclusions
12368         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
12369         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
12370         (update-copyright): Don't force inclusion of top-level
12371         ChangeLog.  Don't force exclusion of all COPYING files, but make
12372         them the default exclusion instead.
12373
12374 2009-08-16  Bruno Haible  <bruno@clisp.org>
12375
12376         Fix test failures on Solaris 10.
12377         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
12378         tests when Solaris iconv() is used.
12379         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
12380         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
12381         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
12382         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
12383         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
12384
12385 2009-08-16  Bruno Haible  <bruno@clisp.org>
12386
12387         Fix test failures on Solaris 10.
12388         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
12389         'tr' program and pass it as first argument.
12390         * tests/test-pipe-filter-gi1.sh: Likewise.
12391         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
12392         program as first argument.
12393         * tests/test-pipe-filter-gi1.c (main): Likewise.
12394
12395 2009-08-16  Eric Blake  <ebb9@byu.net>
12396
12397         fpurge: fix previous commits
12398         * modules/fpurge (Makefile.am): Make replacement conditional,
12399         partially reverting 2007-04-29 change; missed in previous
12400         attempt.
12401         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
12402         is missing.
12403
12404 2009-08-16  Bruno Haible  <bruno@clisp.org>
12405
12406         Clarify fpurge's effect on the file position.
12407         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
12408         * tests/test-fpurge.c (main): Make a second pass for checking the file
12409         position.
12410
12411 2009-08-16  Bruno Haible  <bruno@clisp.org>
12412
12413         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
12414         declaration of fpurge is missing.
12415         * tests/test-fpurge.c (main): Check that the file has not more contents
12416         than expected. Close the file before removing it.
12417
12418 2009-08-15  Eric Blake  <ebb9@byu.net>
12419
12420         fpurge: don't wrap working cygwin implementation
12421         * lib/fpurge.c (fpurge): Fix comment typo.
12422         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
12423         1.7 to avoid replacement.
12424         * tests/test-fpurge.c (main): Enhance test.
12425
12426 2009-08-15  Eric Blake  <ebb9@byu.net>
12427         and Jim Meyering  <meyering@redhat.com>
12428
12429         test-update-copyright: skip if perl is insufficient
12430         * tests/test-update-copyright.sh: Failure to run maintainer tool
12431         should not cause testsuite failure on cygwin 1.5.
12432
12433 2009-08-14  Eric Blake  <ebb9@byu.net>
12434
12435         doc: mention more functions added in cygwin 1.7.0
12436         * doc/posix-headers/limits.texi (limits.h): Update for recent
12437         cygwin additions.
12438         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
12439         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
12440         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
12441         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
12442         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
12443
12444 2009-08-14  Eric Blake  <ebb9@byu.net>
12445
12446         maint.mk: simplify update-copyright rule
12447         * top/maint.mk (update-copyright-local): Delete, and document how
12448         to do it in cfg.mk instead.
12449         (update-copyright-exclude-regexp): Delete, and document how to do
12450         it in .x-update-copyright instead.
12451         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
12452         exclude ChangeLog.
12453
12454 2009-08-14  Bruno Haible  <bruno@clisp.org>
12455
12456         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
12457
12458 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
12459
12460         maint.mk: support update-copyright-env
12461         * top/maint.mk (update-copyright-env): Define place-holder.
12462         (update-copyright): Expand $(update-copyright-env) before
12463         invoking update-copyright.
12464
12465 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
12466
12467         update-copyright: implement forced reformatting
12468         * build-aux/update-copyright: Implement and document
12469         UPDATE_COPYRIGHT_FORCE.
12470         * tests/test-update-copyright.sh: Test it.
12471
12472 2009-08-14  Eric Blake  <ebb9@byu.net>
12473         and Bruno Haible  <bruno@clisp.org>
12474
12475         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
12476         * tests/test-locale.c: Revert previous patch related to NULL.
12477         * tests/test-stdio.c: Likewise.
12478         * tests/test-stdlib.c: Likewise.
12479         * tests/test-string.c: Likewise.
12480         * tests/test-unistd.c: Likewise.
12481         * modules/time-tests (Depends-on): Add verify.
12482         * modules/wchar-tests (Depends-on): Likewise.
12483         * tests/test-time.c: Test for NULL compliance.
12484         * tests/test-wchar.c: Likewise.
12485         * modules/locale (Depends-on): Add stddef.
12486         * modules/stdio (Depends-on): Likewise.
12487         * modules/stdlib (Depends-on): Likewise.
12488         * modules/string (Depends-on): Likewise.
12489         * modules/time (Depends-on): Likewise.
12490         * modules/unistd (Depends-on): Likewise.
12491         * modules/wchar (Depends-on): Likewise.
12492         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
12493         * lib/stdlib.in.h (includes): Likewise.
12494         * lib/string.in.h (includes): Likewise.
12495         * lib/time.in.h (includes): Likewise.
12496         * lib/unistd.in.h (includes): Likewise.
12497         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
12498         replaced.
12499         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
12500         * m4/stddef_h.m4: New file.
12501         * modules/stddef: Likewise.
12502         * lib/stddef.in.h: Likewise.
12503         * modules/stddef-tests: Likewise.
12504         * tests/test-stddef.c: Likewise.
12505         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
12506         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
12507         * doc/posix-headers/locale.texi (locale.h): Likewise.
12508         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
12509         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
12510         * doc/posix-headers/string.texi (string.h): Likewise.
12511         * doc/posix-headers/time.texi (time.h): Likewise.
12512         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
12513         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
12514
12515 2009-08-14  Eric Blake  <ebb9@byu.net>
12516
12517         doc: improve git diff of texinfo files
12518         * .gitattributes: Add rule for *.texi files, with hint on how to
12519         use it.
12520         Copied from m4, and based on a report by Bruno Haible.
12521
12522 2009-08-14  Bruno Haible  <bruno@clisp.org>
12523
12524         Disable multithread support by default on Cygwin 1.5.x for real.
12525         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
12526
12527 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
12528
12529         update-copyright: much ado about intervals
12530         * build-aux/update-copyright: Implement and document
12531         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
12532         of copyright year intervals.
12533         Also, document UPDATE_COPYRIGHT_YEAR.
12534         * tests/test-update-copyright.sh: Test it.
12535
12536         update-copyright: convert 2-digit to 4-digit years
12537         * build-aux/update-copyright: Implement and document.
12538         * tests/test-update-copyright.sh: Update.
12539
12540 2009-08-14  Jim Meyering  <meyering@redhat.com>
12541
12542         test-exclude: avoid coreutils "make check" failure
12543         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
12544         just as in test-argmatch.c.
12545
12546 2009-08-13  Eric Blake  <ebb9@byu.net>
12547
12548         test-dup2: fix bad assumption
12549         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
12550         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
12551
12552         test-version-etc: fix CRLF portability issue
12553         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
12554         recognize \r.
12555         * tests/test-argp-version-etc-1.sh: Likewise.
12556
12557         getopt: update client modules
12558         * modules/argp (Depends-on): Use getopt-gnu.
12559         * modules/git-merge-changelog (Depends-on): Likewise.
12560         * modules/long-options (Depends-on): Likewise.
12561         * modules/xstrtol (Depends-on): Likewise.
12562
12563 2009-08-13  Simon Josefsson  <simon@josefsson.org>
12564
12565         * tests/test-version-etc.sh: Don't fail on different
12566         project/version.  Don't fail on CRLF differences.  Rewrite to use
12567         multiple -e instead of multiple sed forks, suggested by Eric Blake
12568         <ebb9@byu.net>.
12569         * tests/test-argp-version-etc-1.sh: Likewise.
12570
12571 2009-08-13  Simon Josefsson  <simon@josefsson.org>
12572
12573         * tests/test-version-etc.sh: Don't fail on different
12574         project/version.
12575
12576 2009-08-12  Bruno Haible  <bruno@clisp.org>
12577
12578         Tests for modules 'getopt-posix', 'getopt-gnu'.
12579         * modules/getopt-posix-tests: New file.
12580         * tests/test-getopt.c: New file.
12581         * tests/test-getopt.h: New file.
12582         * tests/test-getopt_long.h: New file.
12583
12584         New modules 'getopt-posix', 'getopt-gnu'.
12585         * modules/getopt-gnu: New file, renamed from modules/getopt.
12586         * modules/getopt-posix: New file.
12587         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
12588         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
12589         (gl_GETOPT): Remove macro.
12590         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
12591         Disable the test against BSD systems that declare optreset. Test
12592         against mingw bug. Test against lack of support of optional arguments
12593         on many platforms.
12594         * doc/glibc-headers/getopt.texi: Update module name and list of
12595         relevant platforms.
12596         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
12597         'getopt-gnu' and more portability problems.
12598         * NEWS: Mention the changes.
12599
12600 2009-08-12  Bruno Haible  <bruno@clisp.org>
12601
12602         Ensure that optarg etc. get declared by <unistd.h>.
12603         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
12604         AC_USE_SYSTEM_EXTENSIONS.
12605         * modules/getopt (Depends-on): Add 'extensions'.
12606
12607 2009-08-12  Bruno Haible  <bruno@clisp.org>
12608
12609         Avoid test link errors.
12610         * modules/pipe-filter-ii-tests (Makefile.am): Define
12611         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
12612         * modules/pipe-filter-gi-tests (Makefile.am): Define
12613         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
12614         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12615
12616 2009-08-12  Bruno Haible  <bruno@clisp.org>
12617
12618         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
12619         gl_GETOPT_SUBSTITUTE before.
12620         (gl_GETOPT): Use it.
12621         * m4/argp.m4 (gl_ARGP): Update.
12622         Reported by Sergey Poznyakoff.
12623
12624         * m4/getopt.m4: Reorder macros.
12625         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
12626         (gl_GETOPT_SUBSTITUTE): Remove macro.
12627
12628 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
12629
12630         Minor improvement in gitlog-to-changelog
12631
12632         * build-aux/gitlog-to-changelog: New option `--format' makes
12633         output format string configurable.
12634
12635 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
12636
12637         Optimize exclude: use hash tables for non-wildcard patterns.
12638
12639         * lib/exclude.c: Include hash.h and mbuiter.h
12640         (struct exclude_pattern, exclude_segment): New data types.
12641         (struct exclude): Rewrite.
12642         (fnmatch_pattern_has_wildcards): New function.
12643         (new_exclude_segment, free_exclude_segment): New functions.
12644         (excluded_file_pattern_p, excluded_file_name_p): New functions.
12645         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
12646         * lib/exclude.h (is_fnmatch_pattern): New prototype.
12647         * modules/exclude: Depend on hash and mbuiter.
12648
12649         * modules/exclude-tests: New file.
12650         * tests/test-exclude.c: New file.
12651         * tests/test-exclude1.sh: New file.
12652         * tests/test-exclude2.sh: New file.
12653         * tests/test-exclude3.sh: New file.
12654         * tests/test-exclude4.sh: New file.
12655         * tests/test-exclude5.sh: New file.
12656         * tests/test-exclude6.sh: New file.
12657         * tests/test-exclude7.sh: New file.
12658
12659 2009-08-12  Bruno Haible  <bruno@clisp.org>
12660
12661         Ensure that getopt() gets declared by <unistd.h>.
12662         * lib/unistd.in.h: Conditionally include getopt.h.
12663         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
12664         Set GNULIB_UNISTD_H_GETOPT.
12665         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12666         GNULIB_UNISTD_H_GETOPT.
12667         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
12668
12669 2009-08-12  Bruno Haible  <bruno@clisp.org>
12670
12671         Clarify logic.
12672         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
12673         gl_replace_getopt instead of GETOPT_H.
12674
12675 2009-08-12  Bruno Haible  <bruno@clisp.org>
12676
12677         * m4/getopt.m4: Add comments.
12678
12679 2009-08-12  Bruno Haible  <bruno@clisp.org>
12680
12681         Disable multithread support by default on Cygwin 1.5.x.
12682         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
12683         set gl_use_threads=no if not specified otherwise.
12684
12685 2009-08-11  Bruno Haible  <bruno@clisp.org>
12686
12687         Avoid compilation error on NetBSD 5.0.
12688         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
12689         * tests/test-stdio.c: Likewise.
12690         * tests/test-stdlib.c: Likewise.
12691         * tests/test-string.c: Likewise.
12692         * tests/test-unistd.c: Likewise.
12693         Reported by Greg Troxel <gdt@ir.bbn.com>
12694         at <https://savannah.gnu.org/support/?106973>.
12695
12696 2009-08-11  Bruno Haible  <bruno@clisp.org>
12697
12698         * modules/dup2-tests (Depends-on): Remove close.
12699
12700         Undo 2009-07-19 commit.
12701         * modules/acl-tests (Depends-on): Remove close.
12702         * modules/binary-io-tests (Depends-on): Likewise.
12703         * modules/closein-tests (Depends-on): Likewise.
12704         * modules/flock-tests (Depends-on): Likewise.
12705         * modules/fsync-tests (Depends-on): Likewise.
12706         * modules/lseek-tests (Depends-on): Likewise.
12707         * modules/pipe-tests (Depends-on): Likewise.
12708         * modules/posix_spawn-tests (Depends-on): Likewise.
12709         * modules/posix_spawnp-tests (Depends-on): Likewise.
12710         * modules/stat-time-tests (Depends-on): Likewise.
12711         * modules/yesno-tests (Depends-on): Likewise.
12712
12713 2009-08-10  Bruno Haible  <bruno@clisp.org>
12714
12715         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
12716
12717 2009-08-10  Bruno Haible  <bruno@clisp.org>
12718
12719         Fix a gcc warning.
12720         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
12721
12722 2009-08-10  Bruno Haible  <bruno@clisp.org>
12723
12724         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
12725         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
12726         not only the first time.
12727         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
12728         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
12729         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
12730         is 1, not only the the first time.
12731
12732 2009-08-10  Bruno Haible  <bruno@clisp.org>
12733
12734         Make it possible to use module 'gethostname' without module 'close'.
12735         * lib/unistd.in.h (close): Evoke a link error only if
12736         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
12737         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12738         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
12739         * modules/unistd (Makefile.am): Substitute
12740         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
12741         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
12742         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
12743         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
12744         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
12745         * modules/sys_ioctl (Makefile.am): Substitute
12746         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
12747         * modules/socket (configure.ac): On native Windows, set
12748         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
12749         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
12750         Reported by Sam Steingold <sds@gnu.org>.
12751
12752 2009-08-10  Bruno Haible  <bruno@clisp.org>
12753
12754         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
12755         * modules/ioctl (configure.ac): Likewise.
12756
12757 2009-08-10  Bruno Haible  <bruno@clisp.org>
12758
12759         Avoid collision between gnulib wrapper and libintl wrapper.
12760         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
12761         already defined in intl/printf.c.
12762         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
12763         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
12764
12765 2009-08-09  Bruno Haible  <bruno@clisp.org>
12766
12767         Make <sys/select.h> really self-contained, also on Solaris 10.
12768         * lib/sys_select.in.h: Include <string.h>.
12769         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
12770         Solaris 10 problem.
12771         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
12772         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
12773         Reported by Jim Meyering.
12774
12775 2009-08-09  Bruno Haible  <bruno@clisp.org>
12776
12777         Avoid warnings from 'aclocal' that are due to a use of macro name
12778         AM_XGETTEXT_OPTION that is not defined in automake.
12779         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
12780         automake.
12781         * modules/error (configure.ac): Likewise.
12782         * modules/propername (configure.ac): Likewise.
12783         * modules/vasprintf (configure.ac): Likewise.
12784         * modules/verror (configure.ac): Likewise.
12785         * modules/xprintf (configure.ac): Likewise.
12786         * modules/xvasprintf (configure.ac): Likewise.
12787
12788 2009-08-08  Bruno Haible  <bruno@clisp.org>
12789
12790         Avoid compilation error in C++ mode.
12791         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
12792         Reported by Sam Steingold <sds@gnu.org>.
12793
12794 2009-08-08  Bruno Haible  <bruno@clisp.org>
12795
12796         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
12797         for the various Unix platforms.
12798         * doc/posix-headers/limits.texi: Update platforms list regarding
12799         HOST_NAME_MAX.
12800         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12801
12802 2009-08-07  Jim Meyering  <meyering@redhat.com>
12803
12804         selinux-at: fix typo in a comment
12805         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
12806         Spotted by Paolo Bonzini.
12807
12808         selinux-at: remove redundant m4 code, add documentation
12809         * modules/selinux-at (configure.ac): Remove redundant code.
12810         LIB_SELINUX is already set via the dependent module, selinux-h.
12811         (Include): Add quotes around selinux-at.h.
12812         * lib/selinux-at.h: Add documentation.
12813         Reported by Bruno Haible in
12814         http://marc.info/?l=gnulib-bug&m=124958988300749
12815
12816 2009-08-07  Bruno Haible  <bruno@clisp.org>
12817
12818         Avoid link error on MacOS X 10.3 and 10.4.
12819         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
12820         on non-ELF systems.
12821         * lib/argp-pv.c (argp_program_version): Likewise.
12822         Reported by Simon Josefsson.
12823
12824 2009-08-07  Simon Josefsson  <simon@josefsson.org>
12825
12826         * tests/test-version-etc.sh: Use $EXEEXT.
12827
12828 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
12829
12830         update-copyright: update documentation to point to maint.mk
12831         * build-aux/update-copyright: Here.
12832
12833 2009-08-06  Jim Meyering  <meyering@redhat.com>
12834
12835         maint.mk: support update-copyright-local
12836         * top/maint.mk (update-copyright-local): Define place-holder.
12837         (update-copyright): Depend on $(update-copyright-local).
12838
12839 2009-08-06  Jim Meyering  <meyering@redhat.com>
12840
12841         selinux-at: new module
12842         Initially written for coreutils, this module will soon be
12843         used by findutils, too.
12844         * MODULES.html.sh [Misc]: Add selinux-at.
12845         * lib/selinux-at.h: New file, from coreutils.
12846         * lib/selinux-at.c: Likewise.
12847         * modules/selinux-at: Likewise.
12848         (License): Change from LGPL to GPL, since it depends
12849         on the GPL'd openat module.
12850
12851         doc: update README
12852         * README: Remove references to cogito.
12853         Remove cvs-repo-updating instructions from 2007.
12854         Don't imply that CVS is better if you have limited disk space.
12855
12856 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
12857
12858         update-copyright: support C-style comments
12859         * build-aux/update-copyright: Implement and document.
12860         * tests/test-update-copyright.sh: Test.
12861
12862 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
12863
12864         update-copyright: support omitted "(C)"
12865         * build-aux/update-copyright: Implement and document.  Also,
12866         allow variable whitespace before "(C)".
12867         * tests/test-update-copyright.sh: Test.
12868
12869 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
12870
12871         update-copyright: don't trip on non-FSF copyright statements
12872         * build-aux/update-copyright: Fix so that the first correctly
12873         formatted FSF copyright statement is recognized no matter what
12874         appears before it.  Update documentation.
12875         * tests/test-update-copyright.sh: Test that.
12876
12877 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
12878
12879         update-copyright: clean up code a little
12880         * build-aux/update-copyright: Append "_re" to the name of any
12881         variable holding a regular expression.
12882         Replace "old" and "new" with "stmt" in variable names.
12883         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
12884         handled correctly.
12885         Format code more consistently.
12886
12887 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
12888
12889         update-copyright-tests: improve portability
12890         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
12891         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
12892
12893 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
12894
12895         update-copyright: support @copyright{} and &copy;
12896         * build-aux/update-copyright: Implement and document.
12897         * tests/test-update-copyright.sh: Test.
12898
12899 2009-08-04  Jim Meyering  <meyering@redhat.com>
12900
12901         update-copyright-tests: correctly test EOL=\r\n handling
12902         * tests/test-update-copyright.sh: Put \r at the end of some lines
12903         for the dos-eol tests.  Based on a patch by Joel E. Denny.
12904
12905         maint.mk: make update-copyright exclusion list more configurable
12906         * top/maint.mk (update-copyright): Default to excluding COPYING,
12907         but allow an override, in case someone does want to update that file.
12908
12909         maint.mk: don't update copyright date in COPYING
12910         * top/maint.mk (update-copyright): Exclude COPYING.
12911
12912         maint.mk: add a copyright-updating rule
12913         * top/maint.mk (update-copyright): New rule.
12914         Derived from coreutils/Makefile.am.
12915
12916         update-copyright: rename some variables
12917         * build-aux/update-copyright: Rename a few variables for clarity.
12918         Tweak syntax.  List Joel E. Denny as coauthor.
12919
12920 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
12921
12922         update-copyright: fix bug for 2-digit last year and add tests
12923         * build-aux/update-copyright: Fix bug.
12924         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
12925         specified.
12926         * modules/update-copyright-tests: New
12927         * tests/test-update-copyright.sh: New.
12928
12929 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
12930
12931         update-copyright: handle leading tabs in line prefix
12932         * build-aux/update-copyright: Count leading tabs as 8 spaces
12933         when computing margin.  This helps with the formatting of
12934         ChangeLogs, for example.
12935         Fix documentation a little.
12936
12937 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
12938
12939         update-copyright: support EOL=\r\n
12940         * build-aux/update-copyright: Implement that.
12941
12942 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
12943
12944         update-copyright: automatically format copyright statements
12945         * build-aux/update-copyright: Implement that.
12946         Also, be a little more predictable and safer by always failing
12947         when the full copyright format is not perfectly recognized as an
12948         unbroken whole.  Discussed at
12949         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
12950         Rewrite documentation.
12951
12952 2009-08-03  Bruno Haible  <bruno@clisp.org>
12953
12954         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
12955
12956 2009-08-02  Bruno Haible  <bruno@clisp.org>
12957
12958         Tests for module 'uname'.
12959         * modules/uname-tests: New file.
12960         * tests/test-uname.c: New file.
12961
12962         New module 'uname'.
12963         * lib/uname.c: New file.
12964         * m4/uname.m4: New file.
12965         * modules/uname: New file.
12966         * doc/posix-functions/uname.texi: Mention the new module.
12967
12968 2009-08-02  Bruno Haible  <bruno@clisp.org>
12969
12970         Tests for module 'sys_utsname'.
12971         * modules/sys_utsname-tests: New file.
12972         * tests/test-sys_utsname.c: New file.
12973
12974         New module 'sys_utsname'.
12975         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
12976         * m4/sys_utsname_h.m4: New file.
12977         * modules/sys_utsname: New file.
12978         * doc/posix-headers/sys_utsname.texi: Mention the new module.
12979
12980 2009-08-02  Bruno Haible  <bruno@clisp.org>
12981
12982         Implicitly initialize the sockets library.
12983         * lib/gethostname.c: Include sockets.h.
12984         (rpl_gethostname): Invoke gl_sockets_startup.
12985         * lib/socket.c: Include sockets.h.
12986         (rpl_socket): Invoke gl_sockets_startup.
12987         * modules/gethostname (Depends-on): Add sockets.
12988         * modules/socket (Depends-on): Likewise.
12989         * tests/test-poll.c: Don't include sockets.h.
12990         (main): Don't invoke gl_sockets_startup.
12991         * tests/test-select.c: Don't include sockets.h.
12992         (main): Don't invoke gl_sockets_startup.
12993
12994 2009-08-02  Bruno Haible  <bruno@clisp.org>
12995
12996         Allow multiple calls to gl_sockets_startup.
12997         * lib/sockets.c (initialized_sockets_version): New variable.
12998         (gl_sockets_startup): Do nothing if already called for this or a higher
12999         version.
13000         (gl_sockets_cleanup): Reset initialized_sockets_version.
13001
13002 2009-08-03  Simon Josefsson  <simon@josefsson.org>
13003
13004         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
13005         different project/version.
13006
13007 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
13008             Bruno Haible  <bruno@clisp.org>
13009
13010         Tests for module 'pipe-filter-gi'.
13011         * modules/pipe-filter-gi-tests: New file.
13012         * tests/test-pipe-filter-gi1.sh: New file.
13013         * tests/test-pipe-filter-gi1.c: New file.
13014         * tests/test-pipe-filter-gi2.sh: New file.
13015         * tests/test-pipe-filter-gi2-main.c: New file.
13016         * tests/test-pipe-filter-gi2-child.c: New file.
13017
13018         New module 'pipe-filter-gi'.
13019         * lib/pipe-filter-gi.c: New file.
13020         * modules/pipe-filter-gi: New file.
13021
13022 2009-08-02  Bruno Haible  <bruno@clisp.org>
13023             Paolo Bonzini  <bonzini@gnu.org>
13024
13025         Tests for module 'pipe-filter-ii'.
13026         * modules/pipe-filter-ii-tests: New file.
13027         * tests/test-pipe-filter-ii1.sh: New file.
13028         * tests/test-pipe-filter-ii1.c: New file.
13029         * tests/test-pipe-filter-ii2.sh: New file.
13030         * tests/test-pipe-filter-ii2-main.c: New file.
13031         * tests/test-pipe-filter-ii2-child.c: New file.
13032
13033         New module 'pipe-filter-ii'.
13034         * lib/pipe-filter.h: New file.
13035         * lib/pipe-filter-ii.c: New file.
13036         * lib/pipe-filter-aux.h: New file.
13037         * modules/pipe-filter-ii: New file.
13038
13039 2009-08-02  Simon Josefsson  <simon@josefsson.org>
13040
13041         * lib/gc-libgcrypt.c: Change copyright to FSF.
13042         * lib/gc-gnulib.c: Likewise.
13043
13044 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
13045
13046         * lib/gethostname.c: Include limits.h.
13047
13048 2009-08-02  Simon Josefsson  <simon@josefsson.org>
13049             Bruno Haible  <bruno@clisp.org>
13050
13051         Ensure HOST_NAME_MAX as part of the gethostname module.
13052         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
13053         define also HOST_NAME_MAX.
13054         * tests/test-gethostname.c: Include <limits.h>.
13055         (main): Check also HOST_NAME_MAX.
13056         * doc/posix-headers/limits.texi: Document the mingw problem.
13057
13058 2009-08-02  Bruno Haible  <bruno@clisp.org>
13059
13060         * lib/gethostname.c (gethostname): Fix handling of large len argument.
13061         Add comments.
13062
13063 2009-03-31  Simon Josefsson  <simon@josefsson.org>
13064
13065         * lib/gethostname.c: Add Windows wrapper.
13066         * m4/gethostname.m4: Look for gethostname in -lws2_32.
13067         * modules/gethostname: Depend on sys_socket & errno, for also
13068         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
13069         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
13070
13071 2009-07-31  Jim Meyering  <meyering@redhat.com>
13072
13073         getloadavg: fix symbol name in comment
13074         * lib/getloadavg.c: Correct a typo I introduced when adding
13075         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
13076         Matt Kraai spotted the problem.
13077
13078 2009-07-29  Matt Kraai  <mkraai@beckman.com>
13079
13080         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
13081         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
13082         code also if ! defined N_NAME_POINTER.
13083         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
13084         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
13085         but the n_name member is a 12-byte array.
13086
13087 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
13088
13089         update-copyright: generalize comment handling
13090         * build-aux/update-copyright: Handle copyright statements
13091         within more comment styles.
13092         Document usage.
13093         Report any file with an external copyright holder or parse failure.
13094
13095 2009-07-29  Jim Meyering  <meyering@redhat.com>
13096
13097         mktime: correct setting of REPLACE_MKTIME
13098         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
13099
13100         update-copyright: new module
13101         * modules/update-copyright: New file.
13102         * build-aux/update-copyright: New file.
13103         * MODULES.html.sh (maint+release support): Add update-copyright.
13104
13105 2009-07-27  Bruno Haible  <bruno@clisp.org>
13106
13107         Fix compilation error when <ctime> is used and mktime is replaced.
13108         * lib/time.in.h (mktime): New declaration.
13109         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
13110         REPLACE_MKTIME instead of defining mktime in config.h.
13111         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
13112         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
13113         Reported by Ross McFarland <rwmcfa1@neces.com>.
13114
13115 2009-07-27  Bruno Haible  <bruno@clisp.org>
13116
13117         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
13118         Reported by Matt Kraai <mkraai@beckman.com>.
13119
13120 2009-07-25  Jim Meyering  <meyering@redhat.com>
13121
13122         maint.mk: avoid warnings about missing files
13123         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
13124         diagnostic when .prev-version does not exist.
13125         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
13126         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
13127         nonexistent cfg.mk.
13128         Suggestions from Simon Josefsson.
13129
13130 2009-07-25  Bruno Haible  <bruno@clisp.org>
13131
13132         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
13133         defined as macros. Needed on QNX 6.4.1.
13134         Reported by Matt Kraai <mkraai@beckman.com>.
13135
13136 2009-07-23  Jim Meyering  <meyering@redhat.com>
13137
13138         maint.mk: invoke "make dist" with a working value of XZ_OPT
13139         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
13140
13141 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
13142
13143         Make fseeko.c compile on QNX.
13144         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
13145
13146 2009-07-22  Peter Simons  <simons@cryp.to>
13147
13148         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
13149         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
13150         * lib/md4.h: Likewise.
13151         * lib/md5.h: Likewise.
13152         * lib/sha1.h: Likewise.
13153         * lib/sha256.h: Likewise.
13154         * lib/sha512.h: Likewise.
13155
13156         tests-sha1: don't assign literal string to 'char *' variable
13157         * tests/test-sha1.c (main): Declare locals with "const" to match
13158         attributes of the right hand side.
13159
13160 2009-07-21  Eric Blake  <ebb9@byu.net>
13161
13162         dup2: fix more mingw problems
13163         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
13164         fd to itself.
13165         * doc/posix-functions/dup2.texi (dup2): Document the bug.
13166         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
13167         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
13168         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
13169         care of mingw bugs.
13170
13171 2009-07-21  Jim Meyering  <meyering@redhat.com>
13172
13173         vc-list-files: avoid failure when /bin/sh is dash
13174         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
13175         On some Debian based systems, /bin/sh is a symlink to dash, and running
13176         this command would omit the "/" following each 'tests' prefix:
13177           dash -x build-aux/vc-list-files -C . tests
13178         That is because bash and dash work differently:
13179           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
13180           bash ok
13181           dash odd
13182
13183 2009-07-21  Eric Blake  <ebb9@byu.net>
13184
13185         dup2-tests: test previous patch
13186         * modules/dup2-tests: New file.
13187         * tests/test-dup2.c: Likewise.
13188         * tests/test-open.c (main): Avoid unspecified behavior.
13189         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
13190         test.
13191
13192         dup2: work around mingw and cygwin 1.5 bug
13193         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
13194         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
13195         * modules/unistd (Makefile.am): Substitute it.
13196         * lib/unistd.in.h (dup2): Declare the replacement.
13197         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
13198         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
13199         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
13200         * modules/execute (Depends-on): Add dup2.
13201         * modules/fseterr (Depends-on): Likewise.
13202         * modules/pipe (Depends-on): Likewise.
13203         * modules/posix_spawn-internal (Depends-on): Likewise.
13204
13205 2009-07-21  Bruno Haible  <bruno@clisp.org>
13206
13207         * modules/.gitattributes: New file.
13208
13209 2009-07-20  Bruno Haible  <bruno@clisp.org>
13210
13211         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
13212         (main): Use it.
13213
13214 2009-07-20  Eric Blake  <ebb9@byu.net>
13215
13216         test-pipe: make a bit more robust.
13217         * tests/test-pipe.c (myerr): Allow error messages regardless of
13218         what we do to stderr.
13219         (test_pipe): Rearrange to avoid deadlock.
13220         (child_main): Try a larger read, to ensure we avoided deadlock.
13221         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
13222         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
13223         if misused.
13224
13225 2009-07-19  Jim Meyering  <meyering@redhat.com>
13226
13227         fts: avoid false-positive cycle-detection
13228         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
13229         for each new command line argument.
13230
13231 2009-07-19  Bruno Haible  <bruno@clisp.org>
13232
13233         Fix build error on mingw with the modules sys_select and unistd.
13234         * modules/acl-tests (Depends-on): Add close.
13235         * modules/binary-io-tests (Depends-on): Likewise.
13236         * modules/closein-tests (Depends-on): Likewise.
13237         * modules/flock-tests (Depends-on): Likewise.
13238         * modules/fsync-tests (Depends-on): Likewise.
13239         * modules/lseek-tests (Depends-on): Likewise.
13240         * modules/pipe-tests (Depends-on): Likewise.
13241         * modules/posix_spawn-tests (Depends-on): Likewise.
13242         * modules/posix_spawnp-tests (Depends-on): Likewise.
13243         * modules/stat-time-tests (Depends-on): Likewise.
13244         * modules/yesno-tests (Depends-on): Likewise.
13245
13246 2009-07-19  Bruno Haible  <bruno@clisp.org>
13247
13248         Unify conditionals.
13249         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
13250         macros, not at the compiler macros.
13251         * lib/pipe.c: Likewise.
13252         * lib/execute.c: Likewise.
13253         * lib/spawni.c: Likewise.
13254
13255 2009-07-19  Bruno Haible  <bruno@clisp.org>
13256
13257         Fix handling of closed stdin/stdout/stderr on mingw.
13258         * lib/w32spawn.h: Include unistd.h.
13259         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
13260         file descriptor with O_NOINHERIT flag.
13261         (fd_safer_noinherit): New function, based on fd-safer.c.
13262         (dup_safer_noinherit): New function, based on dup-safer.c.
13263         (undup_safer_noinherit): New function.
13264         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
13265         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
13266         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
13267         instead of fd_safer.
13268         * tests/test-pipe.c: Include <windows.h>.
13269         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
13270
13271         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
13272         from main.
13273         (test_pipe): Pass an extra argument for disambiguation.
13274         (main): Invoke parent_main or child_main.
13275
13276         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
13277         consistently.
13278
13279 2009-07-18  Eric Blake  <ebb9@byu.net>
13280
13281         test-pipe: fix mingw build
13282         * tests/test-pipe.c (main): Avoid fcntl on mingw.
13283
13284 2009-07-18  Bruno Haible  <bruno@clisp.org>
13285
13286         * modules/pipe-tests (Makefile.am): Fix typo.
13287
13288 2009-07-18  Eric Blake  <ebb9@byu.net>
13289
13290         error: fix mingw build
13291         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
13292         Reported by Bruno Haible.
13293
13294         error: avoid undefined use of stdout
13295         * lib/error.c (error, error_at_line): Check that fd 1 is open
13296         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
13297         is handling faults and the close_stdout module wants to report the
13298         detection of closed stdout as an error.
13299
13300 2009-07-17  Eric Blake  <ebb9@byu.net>
13301
13302         pipe: be robust in face of closed fds
13303         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
13304         should cause child to misbehave.
13305         * modules/pipe-tests: New module.
13306         * tests/test-pipe.c: New file.
13307         * tests/test-pipe.sh: New file.
13308         Reported by Akim Demaille.
13309
13310 2009-07-14  Bruno Haible  <bruno@clisp.org>
13311
13312         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
13313         Reported by anonymous kc.
13314
13315 2009-07-07  Jim Meyering  <meyering@redhat.com>
13316
13317         maint.mk: don't look for translatable strings in *.m4 or *.mk
13318         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
13319         when searching for translatable strings.
13320
13321 2009-07-05  Jim Meyering  <meyering@redhat.com>
13322
13323         remove superfluous parentheses in STREQ definition
13324         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
13325         * lib/getugroups.c (STREQ): Likewise.
13326         * lib/fnmatch.c (STREQ): Likewise.
13327         Spotted by Bruno Haible.
13328
13329 2009-07-04  Jim Meyering  <meyering@redhat.com>
13330
13331         argv-iter: new module
13332         * MODULES.html.sh: Add argv-iter.
13333         * lib/argv-iter.c, lib/argv-iter.h: New files.
13334         * modules/argv-iter: New file.
13335         * modules/argv-iter-tests: New file.
13336         * tests/test-argv-iter.c: Test it.
13337
13338 2009-07-04  Bruno Haible  <bruno@clisp.org>
13339
13340         Fix assertion.
13341         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
13342         contains more exact copies of a given entry than file2, leave the extra
13343         copies unpaired rather than aborting.
13344         Reported by Eric Blake.
13345
13346 2009-07-02  Bruno Haible  <bruno@clisp.org>
13347
13348         Speedup git-merge-changelog for git cherry-pick.
13349         * lib/git-merge-changelog.c (struct entries_mapping): New type.
13350         (entries_mapping_get): New function, extracted from compute_mapping.
13351         (entries_mapping_reverse_get): New function.
13352         (compute_mapping): Add a 'full' argument. Return the result in a
13353         'struct entries_mapping'.
13354         (main): Update. Access the mappings through entries_mapping_get.
13355         Reported by Eric Blake.
13356
13357 2009-07-02  Bruno Haible  <bruno@clisp.org>
13358
13359         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
13360         best_i.
13361
13362 2009-07-02  Bruno Haible  <bruno@clisp.org>
13363
13364         Speed up approximate search for matching ChangeLog entries.
13365         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
13366         argument. Call fstrcmp_bounded instead of fstrcmp.
13367         (compute_mapping, try_split_merged_entry, main): Update callers.
13368
13369 2009-07-02  Bruno Haible  <bruno@clisp.org>
13370
13371         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
13372
13373 2009-06-30  Bruno Haible  <bruno@clisp.org>
13374
13375         Reduce the number of uc_is_cased calls.
13376         * lib/unicase.h (casing_suffix_context_t): Add
13377         'first_char_except_ignorable' field.
13378         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
13379         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
13380         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
13381         Update initializer.
13382         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
13383         case-ignorable characters.
13384         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
13385         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
13386         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
13387         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
13388         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
13389
13390 2009-06-30  Bruno Haible  <bruno@clisp.org>
13391
13392         Tests for module 'unicase/ignorable'.
13393         * modules/unicase/ignorable-tests: New file.
13394         * tests/unicase/test-ignorable.c: New file, generated by
13395         gen-uni-tables.
13396
13397         Tests for module 'unicase/cased'.
13398         * modules/unicase/cased-tests: New file.
13399         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
13400         * tests/unicase/test-predicate-part1.h: New file, derived from
13401         tests/unictype/test-predicate-part1.h.
13402         * tests/unicase/test-predicate-part2.h: New file, same as
13403         tests/unictype/test-predicate-part2.h.
13404
13405         Fix evaluation of "Before C" condition of FINAL_SIGMA.
13406         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
13407         (output_casing_properties): New function.
13408         (main): Call it.
13409         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
13410         * lib/unicase/cased.c: Include unictype/bitmap.h.
13411         (uc_is_cased): Define through a bitmap lookup.
13412         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
13413         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
13414         (uc_is_case_ignorable): Define through a bitmap lookup.
13415         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
13416         lib/unictype/bitmap.h.
13417         (Depends-on): Add inline. Clean up.
13418         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
13419         lib/unictype/bitmap.h.
13420         (Depends-on): Add inline. Clean up.
13421         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
13422         recognition.
13423         * tests/unicase/test-u16-tolower.c (main): Likewise.
13424         * tests/unicase/test-u32-tolower.c (main): Likewise.
13425
13426 2009-06-30  Bruno Haible  <bruno@clisp.org>
13427
13428         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
13429         * lib/unicase/u16-casemap.c: Likewise.
13430         * lib/unicase/u32-casemap.c: Likewise.
13431
13432 2009-06-29  Bruno Haible  <bruno@clisp.org>
13433
13434         Define u32_casefold as a wrapper around u32_ct_casefold.
13435         * lib/unicase/u32-casefold.c: Update.
13436         * modules/unicase/u32-casefold (Depends-on): Add
13437         unicase/u32-ct-casefold, unicase/empty-prefix-context,
13438         unicase/empty-suffix-context. Clean up.
13439
13440         Define u16_casefold as a wrapper around u16_ct_casefold.
13441         * lib/unicase/u16-casefold.c: Update.
13442         * modules/unicase/u16-casefold (Depends-on): Add
13443         unicase/u16-ct-casefold, unicase/empty-prefix-context,
13444         unicase/empty-suffix-context. Clean up.
13445
13446         Define u8_casefold as a wrapper around u8_ct_casefold.
13447         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
13448         * lib/unicase/u8-casefold.c: Update.
13449         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
13450         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
13451
13452         Define u32_totitle as a wrapper around u32_ct_totitle.
13453         * lib/unicase/u32-totitle.c: Update.
13454         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
13455         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
13456
13457         Define u16_totitle as a wrapper around u16_ct_totitle.
13458         * lib/unicase/u16-totitle.c: Update.
13459         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
13460         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
13461
13462         Define u8_totitle as a wrapper around u8_ct_totitle.
13463         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
13464         functions.
13465         (FUNC): Delegate to U_CT_TOTITLE.
13466         * lib/unicase/u8-totitle.c: Update.
13467         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
13468         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
13469
13470         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
13471         invocation.
13472         * modules/unicase/u32-tolower (Depends-on): Add
13473         unicase/empty-prefix-context, unicase/empty-suffix-context.
13474
13475         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
13476         invocation.
13477         * modules/unicase/u16-tolower (Depends-on): Add
13478         unicase/empty-prefix-context, unicase/empty-suffix-context.
13479
13480         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
13481         * modules/unicase/u8-tolower (Depends-on): Add
13482         unicase/empty-prefix-context, unicase/empty-suffix-context.
13483
13484         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
13485         invocation.
13486         * modules/unicase/u32-toupper (Depends-on): Add
13487         unicase/empty-prefix-context, unicase/empty-suffix-context.
13488
13489         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
13490         invocation.
13491         * modules/unicase/u16-toupper (Depends-on): Add
13492         unicase/empty-prefix-context, unicase/empty-suffix-context.
13493
13494         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
13495         * modules/unicase/u8-toupper (Depends-on): Add
13496         unicase/empty-prefix-context, unicase/empty-suffix-context.
13497
13498         New module 'unicase/u32-ct-casefold'.
13499         * lib/unicase/u32-ct-casefold.c: New file.
13500         * modules/unicase/u32-ct-casefold: New file.
13501
13502         New module 'unicase/u16-ct-casefold'.
13503         * lib/unicase/u16-ct-casefold.c: New file.
13504         * modules/unicase/u16-ct-casefold: New file.
13505
13506         New module 'unicase/u8-ct-casefold'.
13507         * lib/unicase/u8-ct-casefold.c: New file.
13508         * lib/unicase/u-ct-casefold.h: New file, derived from
13509         lib/unicase/u-casefold.h.
13510         * modules/unicase/u8-ct-casefold: New file.
13511
13512         New module 'unicase/u32-ct-totitle'.
13513         * lib/unicase/u32-ct-totitle.c: New file.
13514         * modules/unicase/u32-ct-totitle: New file.
13515
13516         New module 'unicase/u16-ct-totitle'.
13517         * lib/unicase/u16-ct-totitle.c: New file.
13518         * modules/unicase/u16-ct-totitle: New file.
13519
13520         New module 'unicase/u8-ct-totitle'.
13521         * lib/unicase/u8-ct-totitle.c: New file.
13522         * lib/unicase/u-ct-totitle.h: New file, derived from
13523         lib/unicase/u-totitle.h.
13524         * modules/unicase/u8-ct-totitle: New file.
13525
13526         New module 'unicase/u32-ct-tolower'.
13527         * lib/unicase/u32-ct-tolower.c: New file.
13528         * modules/unicase/u32-ct-tolower: New file.
13529
13530         New module 'unicase/u16-ct-tolower'.
13531         * lib/unicase/u16-ct-tolower.c: New file.
13532         * modules/unicase/u16-ct-tolower: New file.
13533
13534         New module 'unicase/u8-ct-tolower'.
13535         * lib/unicase/u8-ct-tolower.c: New file.
13536         * modules/unicase/u8-ct-tolower: New file.
13537
13538         New module 'unicase/u32-ct-toupper'.
13539         * lib/unicase/u32-ct-toupper.c: New file.
13540         * modules/unicase/u32-ct-toupper: New file.
13541
13542         New module 'unicase/u16-ct-toupper'.
13543         * lib/unicase/u16-ct-toupper.c: New file.
13544         * modules/unicase/u16-ct-toupper: New file.
13545
13546         New module 'unicase/u8-ct-toupper'.
13547         * lib/unicase/u8-ct-toupper.c: New file.
13548         * modules/unicase/u8-ct-toupper: New file.
13549
13550         Add context arguments to u*_casemap functions.
13551         * lib/unicase/unicasemap.h: Include unicase.h.
13552         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
13553         suffix_context arguments.
13554         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
13555         functions.
13556         (FUNC): Add prefix_context and suffix_context arguments. Use
13557         uc_is_cased and uc_is_case_ignorable.
13558         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
13559         * lib/unicase/u16-casemap.c: Likewise.
13560         * lib/unicase/u32-casemap.c: Likewise.
13561         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
13562         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
13563         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
13564         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
13565         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
13566         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
13567
13568         New module 'unicase/u32-suffix-context'.
13569         * lib/unicase/u32-suffix-context.c: New file.
13570         * modules/unicase/u32-suffix-context: New file.
13571
13572         New module 'unicase/u16-suffix-context'.
13573         * lib/unicase/u16-suffix-context.c: New file.
13574         * modules/unicase/u16-suffix-context: New file.
13575
13576         New module 'unicase/u8-suffix-context'.
13577         * lib/unicase/u8-suffix-context.c: New file.
13578         * lib/unicase/u-suffix-context.h: New file.
13579         * modules/unicase/u8-suffix-context: New file.
13580
13581         New module 'unicase/empty-suffix-context'.
13582         * lib/unicase/empty-suffix-context.c: New file.
13583         * modules/unicase/empty-suffix-context: New file.
13584
13585         New module 'unicase/u32-prefix-context'.
13586         * lib/unicase/u32-prefix-context.c: New file.
13587         * modules/unicase/u32-prefix-context: New file.
13588
13589         New module 'unicase/u16-prefix-context'.
13590         * lib/unicase/u16-prefix-context.c: New file.
13591         * modules/unicase/u16-prefix-context: New file.
13592
13593         New module 'unicase/u8-prefix-context'.
13594         * lib/unicase/u8-prefix-context.c: New file.
13595         * lib/unicase/u-prefix-context.h: New file.
13596         * lib/unicase/context.h: New file.
13597         * modules/unicase/u8-prefix-context: New file.
13598
13599         New module 'unicase/empty-prefix-context'.
13600         * lib/unicase/empty-prefix-context.c: New file.
13601         * modules/unicase/empty-prefix-context: New file.
13602
13603         New module 'unicase/ignorable'.
13604         * lib/unicase/ignorable.c: New file.
13605         * modules/unicase/ignorable: New file.
13606
13607         New module 'unicase/cased'.
13608         * lib/unicase/caseprop.h: New file.
13609         * lib/unicase/cased.c: New file.
13610         * modules/unicase/cased: New file.
13611
13612         New functions for case mapping of substrings.
13613         * lib/unicase.h (casing_prefix_context_t): New type.
13614         (unicase_empty_prefix_context): New variable.
13615         (u8_casing_prefix_context, u16_casing_prefix_context,
13616         u32_casing_prefix_context, u8_casing_prefixes_context,
13617         u16_casing_prefixes_context, u32_casing_prefixes_context): New
13618         declarations.
13619         (casing_suffix_context_t): New type.
13620         (unicase_empty_suffix_context): New variable.
13621         (u8_casing_suffix_context, u16_casing_suffix_context,
13622         u32_casing_suffix_context, u8_casing_suffixes_context,
13623         u16_casing_suffixes_context, u32_casing_suffixes_context,
13624         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
13625         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
13626         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
13627         declarations.
13628
13629 2009-06-28  Jim Meyering  <meyering@redhat.com>
13630
13631         boostrap: indent only with spaces
13632         * build-aux/bootstrap: Indent only with spaces, never TABs.
13633
13634         bootstrap: split long lines
13635         * build-aux/bootstrap: Keep line length < 80.
13636
13637         bootstrap: sync from coreutils
13638         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
13639         just as autoreconf does.  Verify a list of prerequisite
13640         package-name,version-number pairs if defined in bootstrap.conf.
13641         Refer to README-prereq, if prerequisites are not satisfied.
13642
13643 2009-06-27  Eric Blake  <ebb9@byu.net>
13644
13645         tests: add test for bogus NULL definition
13646         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
13647         * tests/test-stdlib.c: Likewise.
13648         * tests/test-string.c: Likewise.
13649         * tests/test-locale.c: Likewise.
13650         * tests/test-unistd.c: Likewise.
13651         * modules/stdio-tests (Depends-on): Add verify.
13652         * modules/stdlib-tests (Depends-on): Likewise.
13653         * modules/string-tests (Depends-on): Likewise.
13654         * modules/locale-tests (Depends-on): Likewise.
13655         * modules/unistd-tests (Depends-on): Likewise.
13656
13657 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
13658
13659         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
13660         self-explaining comment.
13661         * m4/selinux-selinux-h: Update serial.
13662         (gl_LIBSELINUX): New macro, adding a warning for missing development
13663         packages to code extracted from...
13664         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
13665         Add warning for missing development packages here, too.
13666
13667 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
13668
13669         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
13670
13671 2009-06-25  Eric Blake  <ebb9@byu.net>
13672
13673         version-etc: fix regression
13674         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
13675         gcc.
13676         (version_etc): Use it, to catch bugs with trailing NULL.
13677         * lib/version-etc.c (version_etc_arn): Delete unused argument.
13678         (version_etc_va): Fix logic bug.
13679         * modules/version-etc-tests: Add test.
13680         * tests/test-version-etc.c: New file.
13681         * tests/test-version-etc.sh: Likewise.
13682
13683 2009-06-25  Sam Steingold  <sds@gnu.org>
13684
13685         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
13686         mbtowc declaration.
13687
13688 2009-06-25  Eric Blake  <ebb9@byu.net>
13689
13690         fpurge: migrate into <stdio.h>
13691         * lib/fpurge.h: Delete...
13692         * lib/stdio.in.h (fpurge): ...and declare here, instead.
13693         * lib/fpurge.c (fpurge): Change declaring header.
13694         * modules/fpurge (Files): Drop deleted file.
13695         (Depends-on): Add stdio.
13696         (configure.ac): Set witness.
13697         * modules/stdio (Makefile.am): Support fpurge macros.
13698         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
13699         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
13700         * lib/fflush.c: Update client.
13701         * tests/test-fpurge.c: Likewise.
13702         * NEWS: Mention the change.
13703
13704 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
13705
13706         * lib/argp-version-etc.c (program_authors): Add const
13707         qualifier.
13708         * lib/version-etc.c: Fix typos in the comments.
13709         * modules/argp-version-etc: Depends on version-etc.
13710
13711 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
13712
13713         argp-version-etc: new module.
13714
13715         * lib/argp-version-etc.c: New file.
13716         * lib/argp-version-etc.h: New file.
13717         * modules/argp-version-etc: New file.
13718         * modules/argp-version-etc-tests: New file.
13719         * tests/test-argp-version-etc.c: New test.
13720         * tests/test-argp-version-etc-1.sh: New test.
13721
13722 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
13723
13724         Provide additional interfaces and documentation for version-etc
13725         module.
13726
13727         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
13728         interfaces.
13729         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
13730         prototypes.
13731
13732 2009-06-24  Bruno Haible  <bruno@clisp.org>
13733
13734         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
13735         HAVE_LIB${NAME} macro.
13736         Reported by Sam Steingold <sds@gnu.org>.
13737
13738 2009-06-23  Simon Josefsson  <simon@josefsson.org>
13739
13740         * modules/hash-tests (test_hash_LDADD): Link to libintl when
13741         needed.
13742
13743 2009-06-21  Bruno Haible  <bruno@clisp.org>
13744
13745         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
13746         work.
13747         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
13748         together with LIB${NAME}, LTLIB${NAME}.
13749         Reported by Sam Steingold <sds@gnu.org>.
13750
13751 2009-06-20  Jim Meyering  <meyering@redhat.com>
13752
13753         tests: make sc_require_test_exit_idiom more generic
13754         * top/maint.mk (Exit_witness_file): New overridable variable.
13755         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
13756         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
13757
13758 2009-06-19  Jim Meyering  <meyering@redhat.com>
13759
13760         hash: reverse order of src/dst parameters in an internal interface
13761         * lib/hash.c (transfer_entries): Reverse order of parameters to
13762         put DST before SRC.  Adjust callers.
13763
13764         tests: test-hash: avoid wholesale duplication
13765         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
13766         Instead, use a loop and add a single conditional.
13767
13768         tests: test-hash: allow seed selection via a command line argument
13769         * tests/test-hash.c (get_seed): New function.
13770         (main): Use it.
13771
13772 2009-06-19  Eric Blake  <ebb9@byu.net>
13773
13774         hash: avoid memory leak on allocation failure
13775         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
13776         failure.  Factor repeated algorithm...
13777         (transfer_entries): ...into new helper routine.
13778         (hash_delete): React to hash_rehash return value.
13779
13780         hash: reduce memory pressure in hash_rehash no-op case
13781         * lib/hash.c (next_prime): Avoid overflow.
13782         (hash_initialize): Factor bucket size computation...
13783         (compute_bucket_size): ...into new helper function.
13784         (hash_rehash): Use new function and open coding to reduce memory
13785         pressure, and avoid a memory leak in USE_OBSTACK code.
13786         Reported by Jim Meyering.
13787
13788 2009-06-18  Eric Blake  <ebb9@byu.net>
13789
13790         hash: make rotation more obvious
13791         * modules/hash (Depends-on): Add bitrotate and stdint.
13792         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
13793         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
13794         (SIZE_MAX): Rely on headers for definition.
13795         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
13796         (raw_hasher): Use rotr_sz.
13797         Suggested by Jim Meyering.
13798
13799         hash: fix memory leak in last patch
13800         * lib/hash.c (hash_rehash): Avoid memory leak.
13801
13802         hash: avoid no-op rehashing
13803         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
13804
13805         hash: provide default callback functions
13806         * lib/hash.c (raw_hasher, raw_comparator): New functions.
13807         (hash_initialize): Use them as defaults.
13808         * tests/test-hash.c (main): Test this.
13809
13810         hash: minor optimization
13811         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
13812         when possible.
13813         (hash_initialize): Document this promise.
13814         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
13815         * tests/test-hash.c (hash_compare_strings): Test this.
13816
13817 2009-06-18  Bruno Haible  <bruno@clisp.org>
13818
13819         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
13820         going to be replaced anyway.
13821
13822 2009-06-18  Bruno Haible  <bruno@clisp.org>
13823
13824         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
13825         in one place.
13826         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
13827         be replaced anyway.
13828
13829 2009-06-18  Eric Blake  <ebb9@byu.net>
13830
13831         hash: check for resize before insertion
13832         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
13833         threshold before insertion, so that a pathological hash_rehash
13834         that fills every bucket can still trigger another rehash.
13835
13836 2009-06-18  Jim Meyering  <meyering@redhat.com>
13837
13838         hash-tests: add a loop around the small tests
13839         * tests/test-hash.c (main): Repeat small tests with selected
13840         small initial table sizes.
13841
13842 2009-06-17  Eric Blake  <ebb9@byu.net>
13843
13844         hash: minor cleanups
13845         * lib/hash.h (hash_entry): Make opaque, by moving...
13846         * lib/hash.c (hash_entry): ...here.
13847         (hash_insert): Clarify restrictions on what can be inserted.
13848         (hash_get_next): Clarify when it is safe to remove an element
13849         during traversal.
13850         (check_tuning): Skip verification when tuning is known safe.
13851         (hash_initialize): Clarify restrictions on tuning.
13852
13853 2009-06-17  Jim Meyering  <jim@meyering.net>
13854         and Eric Blake  <ebb9@byu.net>
13855
13856         hash-tests: new module
13857         * modules/hash-tests: New file.
13858         * tests/test-hash.c: New file.
13859
13860 2009-06-17  Eric Blake  <ebb9@byu.net>
13861
13862         strstr-simple: document new module
13863         * MODULES.html.sh: Document new module.
13864
13865         strstr, strcasestr: replace on platforms with broken memchr
13866         * modules/strstr: Split into...
13867         * modules/strstr-simple: ...new module that does not care about
13868         performance, but does care about glibc bug.
13869         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
13870         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
13871         if platform memchr is broken, per Debian bug 521737.
13872         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
13873         memchr.
13874         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
13875         * doc/posix-functions/strstr.texi (strstr): Document the fix.
13876         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
13877         * modules/mountlist (Depends-on): Add strstr-simple.
13878         * modules/gen-uni-tables (Depends-on): Likewise.
13879         * modules/argz (Depends-on): Add strstr.
13880
13881 2009-06-17  Bruno Haible  <bruno@clisp.org>
13882
13883         * modules/posix_spawn-internal (Depends-on): Add errno.
13884
13885 2009-06-17  Bruno Haible  <bruno@clisp.org>
13886
13887         Define missing ESTALE on Interix 3.5.
13888         * lib/errno.in.h (ESTALE): Assign a value if missing.
13889         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
13890         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
13891         missing.
13892         * doc/posix-headers/errno.texi: Mention the Interix bug.
13893         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
13894
13895 2009-06-15  Eric Blake  <ebb9@byu.net>
13896
13897         memchr, memchr2: add valgrind exception
13898         * lib/memchr.valgrind: New file.
13899         * lib/memchr2.valgrind: New file.
13900         * modules/memchr (Files): Distribute valgrind file.
13901         * modules/memchr2 (Files): Likewise.
13902
13903         docs: memchr is no longer obsolete
13904         * MODULES.html.sh: Move memchr from obsolete to string.h section.
13905         * lib/string.in.h (memchr): Simplify logic.
13906
13907 2009-06-14  Jim Meyering  <meyering@redhat.com>
13908
13909         link-follow: fix the "checking..." message to not mention trailing slash
13910         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
13911         never considered trailing slashes.
13912
13913 2009-06-14  Bruno Haible  <bruno@clisp.org>
13914
13915         * m4/memchr.m4: Mention also the bug on IA-64.
13916         * doc/posix-functions/memchr.texi: Likewise.
13917
13918 2009-06-12  Eric Blake  <ebb9@byu.net>
13919
13920         memchr: detect broken x86_64 and alpha implementations
13921         * modules/memchr-tests (Depends-on): Move mmap detection...
13922         * modules/memchr (Depends-on): ...here.
13923         (configure.ac): Set indicator.
13924         * lib/string.in.h (memchr): Declare replacement.
13925         * modules/string (Makefile.am): Trigger replacement.
13926         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
13927         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
13928         bugs.
13929         * doc/posix-functions/memchr.texi (memchr): Document the bug.
13930         * modules/getpagesize (License): Relax license.
13931
13932 2009-06-11  Bruno Haible  <bruno@clisp.org>
13933
13934         * lib/idpriv.h: Add more references.
13935
13936 2009-06-08  Bruno Haible  <bruno@clisp.org>
13937
13938         Tests for module 'idpriv-droptemp'.
13939         * modules/idpriv-droptemp-tests: New file.
13940         * tests/test-idpriv-droptemp.sh: New file.
13941         * tests/test-idpriv-droptemp.su.sh: New file.
13942         * tests/test-idpriv-droptemp.c: New file.
13943
13944         New module 'idpriv-droptemp'.
13945         * lib/idpriv-droptemp.c: New file.
13946         * modules/idpriv-droptemp: New file.
13947
13948 2009-06-08  Bruno Haible  <bruno@clisp.org>
13949
13950         Tests for module 'idpriv-drop'.
13951         * modules/idpriv-drop-tests: New file.
13952         * tests/test-idpriv-drop.sh: New file.
13953         * tests/test-idpriv-drop.su.sh: New file.
13954         * tests/test-idpriv-drop.c: New file.
13955
13956         New module 'idpriv-drop'.
13957         * lib/idpriv.h: New file.
13958         * lib-idpriv-drop.c: New file.
13959         * m4/idpriv.m4: New file.
13960         * modules/idpriv-drop: New file.
13961
13962 2009-06-08  Bruno Haible  <bruno@clisp.org>
13963
13964         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
13965         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
13966         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
13967         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
13968         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
13969         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
13970         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
13971
13972 2009-06-08  Eric Blake  <ebb9@byu.net>
13973
13974         test-strstr: use memory fence, when possible
13975         * tests/test-strstr.c (main): Use memory fence, in order to be
13976         more likely to trigger Debian bug 521737.
13977         * modules/strstr-tests (Files): Pull in additional files.
13978
13979         memchr: no longer obsolete, for wider field testing
13980         * modules/memchr (Status, Notice): Delete, this module is no
13981         longer obsolete.
13982         * modules/vasnprintf (Depends-on): Add memchr.
13983
13984 2009-06-07  Jim Meyering  <meyering@redhat.com>
13985
13986         hash: declare some functions with the warn_unused_result attribute
13987         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
13988
13989 2009-06-07  Bruno Haible  <bruno@clisp.org>
13990
13991         * tests/test-alignof.c: Don't test int64_t if it does not exist.
13992         Reported by Eric Blake.
13993
13994 2009-06-06  Eric Blake  <ebb9@byu.net>
13995
13996         test-alignof: fix typo with long double
13997         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
13998         compiler error.
13999
14000 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
14001
14002         Escape non-texinfo { and }s.
14003         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
14004         markup error.
14005
14006 2009-06-04  Jim Meyering  <meyering@redhat.com>
14007
14008         gitlog-to-changelog: don't infloop on an empty commit log
14009         * build-aux/gitlog-to-changelog: Warn about an empty log message.
14010         Reported by Boris Petersen <transacid@centerim.org>.
14011
14012 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
14013
14014         version-etc: extend for packagers
14015         Add three new configure options, intended for packagers:
14016           --with-packager="packager name"
14017           --with-packager-version="packager-specific version"
14018           --with-packager-bug-reports="packager bug reporting"
14019         An example with coreutils:
14020           $ ./configure \
14021             --with-packager=Gentoo \
14022             --with-packager-bug-report=http://bugs.gentoo.org/ \
14023             --with-packager-version="patchset 1.6"
14024           $ ./src/ls --version | head -n2
14025           ls (GNU coreutils) 7.1-dirty
14026           Packaged by Gentoo (patchset 1.6)
14027         Note that the bug reporting info via --help doesn't show up because
14028         coreutils uses its own custom emit_bug_reporting_address() implementation
14029         in src/system.h.  If it didn't, it'd look like:
14030           $ ./src/ls --help | tail -n4
14031           Report bugs to <bug-coreutils@gnu.org>.
14032           Report Gentoo bugs to <http://bugs.gentoo.org/>.
14033           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
14034           General help using GNU software: <http://www.gnu.org/gethelp/>.
14035         * lib/version-etc.c: Print new information, if provided.
14036         * m4/version-etc.m4: New file.
14037         * modules/version-etc (Files): Add m4/version-etc.m4.
14038         (configure.ac): Add gl_VERSION_ETC.
14039
14040 2009-05-31  Bruno Haible  <bruno@clisp.org>
14041
14042         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
14043         and 'int64_t'.
14044         * modules/alignof-tests (Dependencies): Add stdint.
14045         Reported by Eric Blake.
14046
14047 2009-05-31  Bruno Haible  <bruno@clisp.org>
14048
14049         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
14050         restriction due to compiler bugs.
14051         Reported by Eric Blake.
14052
14053 2009-05-31  Simon Josefsson  <simon@josefsson.org>
14054             Bruno Haible  <bruno@clisp.org>
14055
14056         Fix test-alignof failure.
14057         * lib/alignof.h (alignof_slot): New macro.
14058         (alignof_type): New macro, with the same semantics as the previous
14059         'alignof'.
14060         (alignof): Alias to alignof_slot.
14061         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
14062         check that the results are usable as constant expressions.
14063
14064 2009-05-31  Bruno Haible  <bruno@clisp.org>
14065
14066         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
14067         * tests/test-memchr.c (main): Check that memchr does not read past the
14068         first occurrence of the byte.
14069         * tests/test-strstr.c (main): Update comment.
14070         Suggested by Eric Blake.
14071
14072 2009-05-30  Bruno Haible  <bruno@clisp.org>
14073
14074         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
14075         detail how to use dumpbin.
14076         Reported by David Byron <dbyron@dbyron.com>.
14077
14078 2009-06-02  Simon Josefsson  <simon@josefsson.org>
14079
14080         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
14081
14082 2009-06-02  Simon Josefsson  <simon@josefsson.org>
14083
14084         * m4/manywarnings.m4: Add GCC 4.4 warnings.
14085
14086 2009-05-28  Bruno Haible  <bruno@clisp.org>
14087
14088         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
14089         build-aux/ files.
14090
14091 2009-05-28  Simon Josefsson  <simon@josefsson.org>
14092
14093         * gnulib-tool (func_import): Transform license on build-aux/ files too.
14094
14095 2009-05-27  Simon Josefsson  <simon@josefsson.org>
14096
14097         * gnulib-tool (sed_transform_main_lib_file)
14098         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
14099         regexps.
14100
14101 2009-05-26  Simon Josefsson  <simon@josefsson.org>
14102
14103         * tests/test-strstr.c: Add another self-test.
14104         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
14105         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
14106
14107 2009-05-23  Bruno Haible  <bruno@clisp.org>
14108
14109         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
14110         change.
14111
14112 2009-05-21  Bruno Haible  <bruno@clisp.org>
14113
14114         Simplify use of mode_t varargs.
14115         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
14116         uses 'mode_t' or 'int'.
14117         * lib/openat.c (openat): Likewise.
14118         * lib/open-safer.c (open_safer): Likewise.
14119         * m4/mode_t.m4: New file.
14120         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
14121         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
14122         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
14123         * modules/open (Files): Add m4/mode_t.m4.
14124         * modules/openat (Files): Likewise.
14125         * modules/fcntl-safer (Files): Likewise.
14126         Suggested by Eric Blake.
14127
14128 2009-05-21  Pádraig Brady  <P@draigbrady.com>
14129
14130         * doc/glibc-functions/fallocate.texi: New file.
14131         * doc/gnulib.texi: Include it.
14132
14133 2009-05-21  Eric Blake  <ebb9@byu.net>
14134             Bruno Haible  <bruno@clisp.org>
14135
14136         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
14137         invocations.
14138         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
14139
14140 2009-05-21  Eric Blake  <ebb9@byu.net>
14141             Bruno Haible  <bruno@clisp.org>
14142
14143         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
14144         include_next. Fix of 2008-11-20 commit.
14145         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
14146         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
14147         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
14148         NEXT_MATH_H.
14149         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
14150         instead of NEXT_MATH_H.
14151
14152 2009-05-21  Bruno Haible  <bruno@clisp.org>
14153
14154         Avoid redefinition warnings for SIZE_MAX.
14155         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
14156         Reported by Simon Josefsson.
14157
14158 2009-05-21  Bruno Haible  <bruno@clisp.org>
14159
14160         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
14161         AC_CACHE_VAL.
14162
14163 2009-05-20  Bruno Haible  <bruno@clisp.org>
14164
14165         Make zeroptr.h work on mingw.
14166         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
14167         mprotect.
14168         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
14169         * modules/memchr2-tests (configure.ac): Likewise.
14170         * modules/memcmp-tests (configure.ac): Likewise.
14171         * modules/memmem-tests (configure.ac): Likewise.
14172         * modules/memrchr-tests (configure.ac): Likewise.
14173         Reported by Simon Josefsson.
14174
14175 2009-05-20  Simon Josefsson  <simon@josefsson.org>
14176
14177         * tests/test-glob.c: Include string.h for strcmp prototype.
14178
14179 2009-05-20  Simon Josefsson  <simon@josefsson.org>
14180
14181         * modules/getdelim (Depends-on): Add explicit stdint, although it
14182         was implicitly already pulled in via realloc-posix.
14183         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
14184
14185 2009-05-20  Simon Josefsson  <simon@josefsson.org>
14186
14187         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
14188         G. Christensen" <tgc@jupiterrise.com>.
14189         * m4/sys_socket_h.m4: Check for sa_family_t.
14190         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
14191         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
14192         * tests/test-sys_socket.c: Check that sa_family_t works.
14193
14194 2009-05-18  Eric Blake  <ebb9@byu.net>
14195
14196         maint.mk: allow gnulib_dir in VPATH build
14197         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
14198
14199 2009-05-15  Jim Meyering  <meyering@redhat.com>
14200
14201         maint.mk: Give gnulib_dir a default definition.
14202         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
14203         Thus, most packages no longer need to specify this variable in cfg.mk
14204
14205 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
14206
14207         rename.m4: fix typos that would make non-mingw cross-configure fail
14208         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
14209
14210 2009-05-13  Eric Blake  <ebb9@byu.net>
14211
14212         mmap-anon: avoid out-of-order autoconf expansion
14213         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
14214         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
14215         * modules/memchr-tests (Depends-on): Add extensions.
14216         * modules/memchr2-tests (Depends-on): Add extensions.
14217         * modules/memcmp-tests (Depends-on): Add extensions.
14218         * modules/memmem-tests (Depends-on): Add extensions.
14219         * modules/memrchr-tests (Depends-on): Add extensions.
14220
14221 2009-05-13  Bruno Haible  <bruno@clisp.org>
14222
14223         Make some tests ISO C 99 compliant.
14224         * tests/zerosize-ptr.h: New file.
14225         * tests/test-memchr.c: Include zerosize-ptr.h.
14226         (main): Use a zero-size object pointer instead of NULL.
14227         * tests/test-memchr2.c: Include zerosize-ptr.h.
14228         (main): Use a zero-size object pointer instead of NULL.
14229         * tests/test-memcmp.c: Include zerosize-ptr.h.
14230         (main): Use a zero-size object pointer instead of NULL.
14231         * tests/test-memmem.c: Include zerosize-ptr.h.
14232         (main): Use a zero-size object pointer instead of NULL.
14233         * tests/test-memrchr.c: Include zerosize-ptr.h.
14234         (main): Use a zero-size object pointer instead of NULL.
14235         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
14236         m4/mmap-anon.m4.
14237         (Depends-on): Add getpagesize.
14238         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
14239         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
14240         m4/mmap-anon.m4.
14241         (Depends-on): Add getpagesize.
14242         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
14243         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
14244         m4/mmap-anon.m4.
14245         (Depends-on): Add getpagesize.
14246         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
14247         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
14248         m4/mmap-anon.m4.
14249         (Depends-on): Add getpagesize.
14250         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
14251         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
14252         m4/mmap-anon.m4.
14253         (Depends-on): Add getpagesize.
14254         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
14255
14256 2009-05-12  Bruno Haible  <bruno@clisp.org>
14257
14258         Tests for module 'alignof'.
14259         * modules/alignof-tests: New file.
14260         * tests/test-alignof.c: New file.
14261
14262 2009-05-12  Bruno Haible  <bruno@clisp.org>
14263
14264         Fix alignof macro.
14265         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
14266         vendor compilers that are always correct.
14267
14268 2009-05-12  Bruno Haible  <bruno@clisp.org>
14269
14270         Make the MAP_ANONYMOUS detection work on HP-UX 11.
14271         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
14272         not whether its fully works.
14273
14274 2009-05-12  Bruno Haible  <bruno@clisp.org>
14275
14276         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
14277
14278 2009-05-12  Jim Meyering  <meyering@redhat.com>
14279
14280         * top/maint.mk: Adjust backslash alignment.
14281
14282 2009-05-11  Simon Josefsson  <simon@josefsson.org>
14283
14284         * top/maint.mk: Make $(srcdir)/build-aux configurable.
14285
14286 2009-05-11  Eric Blake  <ebb9@byu.net>
14287
14288         argp: avoid undefined behavior
14289         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
14290         macros.
14291
14292 2009-05-08  Simon Josefsson  <simon@josefsson.org>
14293
14294         * tests/test-vc-list-files-git.sh: Do git config of user.email and
14295         user.name to prevent git commit from complaining.
14296
14297 2009-05-10  Bruno Haible  <bruno@clisp.org>
14298
14299         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
14300         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
14301         it rewrites every file name only once.
14302         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
14303
14304 2009-05-08  Bruno Haible  <bruno@clisp.org>
14305
14306         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
14307         instead of 'max'.
14308
14309 2009-05-08  Simon Josefsson  <simon@josefsson.org>
14310
14311         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
14312         sockaddr_storage test.
14313
14314 2009-05-07  Simon Josefsson  <simon@josefsson.org>
14315
14316         * modules/sys_socket (Makefile.am): Substitute
14317         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
14318         * m4/sys_socket_h.m4: Check for sockaddr_storage.
14319         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
14320         * tests/test-sys_socket.c: Check sockaddr_storage.
14321
14322 2009-05-08  Bruno Haible  <bruno@clisp.org>
14323
14324         New module 'alignof'.
14325         * lib/alignof.h: New file.
14326         * modules/alignof: New file.
14327
14328 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
14329             Bruno Haible  <bruno@clisp.org>
14330
14331         Fix test-file-has-acl on FreeBSD.
14332         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
14333         mask is implicitly added.
14334         * tests/test-file-has-acl.c: Include <signal.h>.
14335         (main): Terminate the test after 5 seconds.
14336         * modules/acl-tests (configure.ac): Check for alarm function.
14337
14338 2009-05-04  Bruno Haible  <bruno@clisp.org>
14339
14340         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
14341         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
14342         * modules/errno (configure.ac): Drop AC_REQUIRE.
14343         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
14344         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
14345
14346 2009-05-04  Simon Josefsson  <simon@josefsson.org>
14347
14348         * modules/glob-tests: New module.
14349         * tests/test-glob.c: Add.
14350
14351 2009-05-04  Simon Josefsson  <simon@josefsson.org>
14352
14353         * modules/fnmatch-tests: New module.
14354         * tests/test-fnmatch.c: Add.
14355
14356 2009-05-04  Eric Blake  <ebb9@byu.net>
14357
14358         maint: make the new no-submodule-changes rule VPATH-safe
14359         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
14360
14361 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
14362             Bruno Haible  <bruno@clisp.org>
14363
14364         acl: Fix infinite loop on FreeBSD.
14365         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
14366         of return value from acl_get_entry.
14367         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
14368         Likewise.
14369
14370 2009-05-03  Bruno Haible  <bruno@clisp.org>
14371
14372         * lib/acl-internal.h (acl_entries): Clarify return value.
14373         * lib/acl_entries.c (acl_entries): Likewise.
14374
14375 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
14376
14377         Bug fix in acl module.
14378         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
14379
14380 2009-05-03  Bruno Haible  <bruno@clisp.org>
14381
14382         Create gperf-generated file in the source dir, not in the build dir.
14383         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
14384         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
14385         * modules/unicase/locale-language (unicase/locale-languages.h):
14386         Likewise.
14387         * modules/unicase/special-casing (unicase/special-casing-table.h):
14388         Likewise.
14389         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
14390         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
14391         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
14392         Reported by Ralf Wildenhues.
14393
14394 2009-05-03  Bruno Haible  <bruno@clisp.org>
14395
14396         * modules/fnmatch (Description, configure.ac): Taken from
14397         fnmatch-posix.
14398         * modules/fnmatch-posix: Turn into a symbolic reference to the
14399         'fnmatch' module, and deprecate.
14400         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
14401
14402 2009-05-03  Bruno Haible  <bruno@clisp.org>
14403
14404         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
14405         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
14406         Reported by Ralf Wildenhues.
14407
14408 2009-05-04  Simon Josefsson  <simon@josefsson.org>
14409
14410         * m4/fnmatch.m4: Fix fnmatch re-define.
14411
14412 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
14413
14414         priv-set: new module and tests; adapt write-any-file
14415         * lib/priv-set.c: New file.
14416         * lib/priv-set.h: New file.
14417         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
14418         * lib/write-any-file.c: Simplify by using priv-set module.
14419         * m4/priv-set.m4: New file.
14420         * modules/priv-set: New file.
14421         * modules/unlinkdir: Add dependency on priv-set module.
14422         * modules/write-any-file: Likewise.
14423
14424         Tests for module 'priv-set'.
14425         * modules/priv-set-tests: New file.
14426         * tests/test-priv-set.c: New file.
14427
14428 2009-05-03  Jim Meyering  <meyering@redhat.com>
14429             Bruno Haible  <bruno@clisp.org>
14430
14431         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
14432         use the converted UTF-8 variant of the name instead.
14433
14434 2009-05-03  Jim Meyering  <meyering@redhat.com>
14435
14436         tests: tighten some getdate tests
14437         * tests/test-getdate.c (main): Tighten tests: require equality,
14438         not just greater than.  Set TZ envvar to UTC0.
14439
14440 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
14441
14442         getdate: correctly interpret "next monday" when run on a Monday
14443         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
14444         that e.g., "next tues" (when run on a tuesday) results in a date
14445         that is one week in the future, and not today's date.
14446         I.e., add a week when the wday is the same as the current one.
14447         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
14448         and earlier by Martin Bernreuther and Jan Minář.
14449         * tests/test-getdate.c (main): Check that "next DAY" is always in
14450         the future and that "last DAY" is always in the past.
14451
14452 2009-05-02  Jim Meyering  <meyering@redhat.com>
14453
14454         build: ensure that a release build fails when a submodule is unclean
14455         * top/maint.mk (no-submodule-changes): New rule.
14456         (alpha beta major): Depend on it.
14457
14458 2009-05-02  Bruno Haible  <bruno@clisp.org>
14459
14460         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
14461         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
14462         shell variable gl_fnmatch_required to detect which variant is
14463         requested.
14464         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
14465         gl_FUNC_FNMATCH_POSIX.
14466         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
14467         exclude fnmatch-posix.
14468
14469 2009-05-02  Bruno Haible  <bruno@clisp.org>
14470
14471         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
14472         * modules/mbsrtowcs (License): Change to LGPLv2+.
14473         * modules/strnlen1 (License): Likewise.
14474         Reported by Simon Josefsson.
14475
14476 2009-05-02  Bruno Haible  <bruno@clisp.org>
14477
14478         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
14479         "cross".
14480         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
14481         gnulib-tool was called with option --source-base=lib.
14482
14483 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14484
14485         Use automake *-local hooks without commands, for extensibility.
14486         * modules/localcharset (Makefile.am): Rename install-exec-local
14487         rule to install-exec-localcharset, and make it a prerequisite of
14488         install-exec-local.  Likewise, rename the uninstall-local rule to
14489         uninstall-localcharset, and make it a prerequisite of the former.
14490
14491 2009-05-01  Bruno Haible  <bruno@clisp.org>
14492
14493         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
14494         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
14495         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
14496         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
14497         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
14498         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
14499         m4/locale-zh.m4, m4/codeset.m4.
14500
14501         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
14502         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
14503         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
14504         m4/locale-zh.m4.
14505
14506         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
14507         REPLACE_WCRTOMB if mbstate_t must be replaced.
14508         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
14509         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
14510
14511 2009-05-01  Bruno Haible  <bruno@clisp.org>
14512
14513         Avoid compiler warnings when redefining macros defined by <libintl.h>.
14514         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
14515         dngettext, dcngettext, textdomain, bindtextdomain,
14516         bind_textdomain_codeset): Undefine before redefining.
14517
14518 2009-04-30  Bruno Haible  <bruno@clisp.org>
14519
14520         Fix bug introduced on 2009-04-25.
14521         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
14522         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
14523         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
14524         is defined.
14525         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
14526         is defined.
14527         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
14528         is defined.
14529         Reported by Elbert_Pol <elbert.pol@gmail.com>.
14530
14531 2009-04-28  Bruno Haible  <bruno@clisp.org>
14532
14533         Comment tweaks.
14534         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
14535         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
14536         * lib/unicase.h (u*_casexfrm): Likewise.
14537         Reported by Paolo Bonzini.
14538
14539 2009-04-28  Bruno Haible  <bruno@clisp.org>
14540
14541         Fix a compilation error.
14542         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
14543         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
14544         Reported by Jim Meyering.
14545
14546 2009-04-27  Bruno Haible  <bruno@clisp.org>
14547
14548         New module 'libunistring'.
14549         * modules/libunistring: New file.
14550         * m4/libunistring.m4: New file.
14551         * MODULES.html.sh (Unicode string functions): Add it.
14552
14553 2009-04-27  Eric Blake  <ebb9@byu.net>
14554
14555         maint.mk: allow package-specific header to provide <config.h>
14556         * top/maint.mk (sc_require_config_h): New variable.
14557         (sc_require_config_h, sc_require_config_h_first): Use it.
14558
14559 2009-04-27  Simon Josefsson  <simon@josefsson.org>
14560
14561         * top/maint.mk (sc_avoid_if_before_free): Except
14562         useless-if-before-free script.
14563
14564 2009-04-27  Eric Blake  <ebb9@byu.net>
14565
14566         maintainer-makefile: depend on all required helper scripts
14567         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
14568         useless-if-before-free.
14569         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
14570         version, rather than assuming gnulib checkout is available.
14571         Reported by Simen Josefsson.
14572
14573 2009-04-26  Bruno Haible  <bruno@clisp.org>
14574
14575         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
14576         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
14577         "../" or "..".
14578
14579 2009-04-26  Bruno Haible  <bruno@clisp.org>
14580
14581         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
14582         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
14583         AC_LIB_HAVE_LINKFLAGS.
14584
14585 2009-04-26  Bruno Haible  <bruno@clisp.org>
14586
14587         Simplify calling convention of u*_conv_from_encoding.
14588         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
14589         u32_conv_from_encoding): Expect a resultbuf argument and return the
14590         result directly as a pointer.
14591         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
14592         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
14593         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
14594         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
14595         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
14596         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
14597         Update.
14598         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
14599         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
14600         * lib/vasnprintf.c (VASNPRINTF): Update.
14601         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
14602         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
14603         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
14604         * NEWS: Mention the change.
14605
14606 2009-04-26  Bruno Haible  <bruno@clisp.org>
14607
14608         Simplify calling convention of u*_conv_to_encoding.
14609         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
14610         u32_conv_to_encoding): Expect a resultbuf argument and return the
14611         result directly as a pointer.
14612         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
14613         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
14614         freeing scaled_offsets if mem_iconveha failed.
14615         * lib/unicase/u-casexfrm.h (FUNC): Update.
14616         * lib/uninorm/u-normxfrm.h (FUNC): Update.
14617         * lib/vasnprintf.c (VASNPRINTF): Update.
14618         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
14619         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
14620         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
14621         * NEWS: Mention the change.
14622
14623 2009-04-26  Bruno Haible  <bruno@clisp.org>
14624
14625         Avoid test failures on AIX and OSF/1.
14626         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
14627         malloc(0).
14628         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
14629         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
14630         Likewise.
14631         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
14632         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
14633         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
14634         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
14635         * doc/posix-functions/malloc.texi: Document the portability problem
14636         related to malloc(0).
14637
14638 2009-04-26  Bruno Haible  <bruno@clisp.org>
14639
14640         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
14641         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
14642         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
14643
14644 2009-04-25  Bruno Haible  <bruno@clisp.org>
14645
14646         Avoid link error when creating a namespace clean library.
14647         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
14648         as macro with arguments if already defined as an alias.
14649         * lib/signbitf.c (gl_signbitf): Don't undefine.
14650         * lib/signbitd.c (gl_signbitd): Don't undefine.
14651         * lib/signbitl.c (gl_signbitl): Don't undefine.
14652
14653 2009-04-25  Jim Meyering  <meyering@redhat.com>
14654
14655         vc-list-files: fix another quoting bug
14656         * build-aux/vc-list-files: Avoid sed backslash expansion
14657         of pathological directory names.
14658
14659 2009-04-25  Eric Blake  <ebb9@byu.net>
14660
14661         vc-list-files: fix shell quoting error
14662         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
14663         timestamp.
14664
14665 2009-04-25  Jim Meyering  <meyering@redhat.com>
14666
14667         vc-list-files: restore lost functionality with subdir argument
14668         * build-aux/vc-list-files: When given a non-"." sub-directory
14669         argument, substitute the $dir/ prefix back onto each resulting name.
14670         Otherwise, coreutils' root_tests check would fail.
14671
14672 2009-04-24  Eric Blake  <ebb9@byu.net>
14673
14674         vc-list-files: ignore git symlinks
14675         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
14676         than ls-files, to ignore git symlinks.
14677
14678         maint.mk: import improvements from m4
14679         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
14680         (move_if_change): Delete unused macro.
14681         (news-date-check, vc-diff-check): Support VPATH builds.
14682         (announcement): Likewise.  Split --bootstrap-tools list...
14683         (boostrap-tools): ...into separate list, which can be overridden
14684         in cfg.mk.
14685         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
14686         requiring dependency on useless-if-before-free module.
14687         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
14688         Support VPATH builds.
14689
14690 2009-04-24  Jim Meyering  <meyering@redhat.com>
14691
14692         maint.mk: remove coreutils-specific rules and variables
14693         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
14694         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
14695         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
14696
14697         maint.mk: remove obsolete rule
14698         * top/maint.mk (rel-check): Remove rule.
14699         (WGET, WGETFLAGS): Remove now-unused variables.
14700
14701 2009-04-24  Simon Josefsson  <simon@josefsson.org>
14702
14703         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
14704         consistency.
14705
14706         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
14707         '$(PATH_SEPARATOR)' instead of ':'.
14708
14709 2009-04-24  Simon Josefsson  <simon@josefsson.org>
14710
14711         * lib/getopt1.c (main): Use 'const' for static array.
14712
14713 2009-04-24  Simon Josefsson  <simon@josefsson.org>
14714
14715         * top/maint.mk: Sync with coreutils.
14716         * NEWS: Explain incompatibilities.
14717
14718 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
14719             Bruno Haible  <bruno@clisp.org>
14720
14721         Fix cross-compilation results.
14722         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
14723         statement, as third argument of AC_TRY_RUN.
14724         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
14725         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
14726         Likewise.
14727         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
14728         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
14729         Likewise.
14730         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
14731         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
14732         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
14733
14734 2009-04-20  Bruno Haible  <bruno@clisp.org>
14735
14736         Avoid test failure on mingw.
14737         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
14738
14739 2009-04-20  Bruno Haible  <bruno@clisp.org>
14740
14741         Avoid compilation error on mingw.
14742         * modules/localename-tests (Depends-on): Add locale.
14743
14744 2009-04-19  Bruno Haible  <bruno@clisp.org>
14745
14746         Support for building a shared library on Windows platforms.
14747         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
14748         (main): Test the presence of UNINORM_NFC here.
14749         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
14750         (main): Test the presence of UNINORM_NFD here.
14751         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
14752         (main): Test the presence of UNINORM_NFKC here.
14753         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
14754         (main): Test the presence of UNINORM_NFKD here.
14755
14756 2009-04-19  Bruno Haible  <bruno@clisp.org>
14757
14758         Avoid a compiler warning.
14759         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
14760         Change type of variable 'sequence'.
14761
14762 2009-04-19  Bruno Haible  <bruno@clisp.org>
14763
14764         * modules/configmake (Makefile.am): When the contents of configmake.h
14765         does not change, arrange to preserve its modification time.
14766
14767 2009-04-17  Simon Josefsson  <simon@josefsson.org>
14768
14769         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
14770         gettext domain.
14771
14772 2009-04-16  Jim Meyering  <meyering@redhat.com>
14773
14774         useless-if-before-free: improve conversion code
14775         * build-aux/useless-if-before-free: Adjust code-in-comment to match
14776         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
14777
14778 2009-04-14  Bruno Haible  <bruno@clisp.org>
14779
14780         * modules/fcntl (Depends-on): Add extensions.
14781         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
14782
14783 2009-04-12  Ben Pfaff  <blp@gnu.org>
14784
14785         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
14786         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
14787
14788 2009-03-20  Ben Pfaff  <blp@gnu.org>
14789
14790         Make rename replace existing destinations on Windows.
14791         * m4/rename.m4: Add test for Mingw.
14792         * lib/rename.c: Add rename replacement that uses MoveFileEx with
14793         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
14794         * doc/posix-functions/rename.texi: Document.
14795
14796 2009-04-10  Bruno Haible  <bruno@clisp.org>
14797
14798         New include file "iconveh.h".
14799         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
14800         * lib/striconveh.h: Include it.
14801         (enum iconv_ilseq_handler): Remove definition.
14802         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
14803         striconveh.h.
14804         * lib/striconveha.c: Include striconveh.h.
14805         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
14806         * modules/striconveh (Files): Add lib/iconveh.h.
14807         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
14808         lib/striconveh.h.
14809
14810 2009-04-10  Bruno Haible  <bruno@clisp.org>
14811
14812         * lib/uniconv.h: Update comment.
14813
14814 2009-04-10  Bruno Haible  <bruno@clisp.org>
14815
14816         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
14817         always.
14818         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
14819         * lib/unistr/u16-mbtouc-aux.c: Likewise.
14820         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
14821         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
14822         "unistring-notinline.h", so that the function gets defined always.
14823         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
14824         * lib/unistr/u8-uctomb.c: Likewise.
14825         * lib/unistr/u16-mbtouc.c: Likewise.
14826         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
14827         * lib/unistr/u16-uctomb.c: Likewise.
14828         * lib/unistr/u32-mbtouc.c: Likewise.
14829         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
14830         * lib/unistr/u32-uctomb.c: Likewise.
14831
14832 2009-04-10  Bruno Haible  <bruno@clisp.org>
14833
14834         Mark 'utime' obsolete.
14835         * modules/utime (Status, Notice): New sections.
14836         Suggested by Jim Meyering.
14837
14838         Fix cross-compile guess for utime test.
14839         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
14840         autoconf.
14841         * doc/posix-functions/utime.texi: Give more precisions.
14842         Reported by Jan <ipif@ymail.com>.
14843
14844 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
14845
14846         filevercmp: correct today's change
14847         * lib/filevercmp.c: Also handle coreutils' test inputs.
14848         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
14849
14850         Fix regression in 'filevercmp' module. Thanks Sven Joachim
14851         for reporting it.
14852         * lib/filevercmp.c: Special handle for "", "." and "..".
14853         * tests/test-filevercmp.c: Enlarge the set suite.
14854
14855 2009-04-07  Jim Meyering  <meyering@redhat.com>
14856
14857         useless-if-before-free: show how to remove braced useless free, too
14858         * build-aux/useless-if-before-free: still only in a comment, though.
14859
14860 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
14861
14862         maint.mk: import changes to syntax-check macros from coreutils
14863         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
14864         Use them in the relevant macros.
14865
14866 2009-04-06  Bruno Haible  <bruno@clisp.org>
14867
14868         Fix unportable use of bit-fields.
14869         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
14870         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
14871         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
14872
14873 2009-04-06  Bruno Haible  <bruno@clisp.org>
14874
14875         Avoid test failures on AIX and OSF/1.
14876         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
14877         that malloc(0) = NULL.
14878         * tests/unicase/test-u8-tolower.c (check): Likewise.
14879         * tests/unicase/test-u8-totitle.c (check): Likewise.
14880         * tests/unicase/test-u8-toupper.c (check): Likewise.
14881         * tests/unicase/test-u16-casefold.c (check): Likewise.
14882         * tests/unicase/test-u16-tolower.c (check): Likewise.
14883         * tests/unicase/test-u16-totitle.c (check): Likewise.
14884         * tests/unicase/test-u16-toupper.c (check): Likewise.
14885         * tests/unicase/test-u32-casefold.c (check): Likewise.
14886         * tests/unicase/test-u32-tolower.c (check): Likewise.
14887         * tests/unicase/test-u32-totitle.c (check): Likewise.
14888         * tests/unicase/test-u32-toupper.c (check): Likewise.
14889         * tests/uninorm/test-u8-nfc.c (check): Likewise.
14890         * tests/uninorm/test-u8-nfd.c (check): Likewise.
14891         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
14892         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
14893         * tests/uninorm/test-u16-nfc.c (check): Likewise.
14894         * tests/uninorm/test-u16-nfd.c (check): Likewise.
14895         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
14896         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
14897         * tests/uninorm/test-u32-nfc.c (check): Likewise.
14898         * tests/uninorm/test-u32-nfd.c (check): Likewise.
14899         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
14900         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
14901
14902 2009-04-05  Bruno Haible  <bruno@clisp.org>
14903
14904         Work around an autoconf limitation.
14905         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
14906         comment line if it would be longer than 3 KB.
14907
14908 2009-04-05  Bruno Haible  <bruno@clisp.org>
14909
14910         Avoid test failure with libiconv-1.13.
14911         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
14912         of the expected test results.
14913
14914 2009-04-05  Bruno Haible  <bruno@clisp.org>
14915
14916         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
14917         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
14918         that it should be installed.
14919
14920 2009-04-05  Bruno Haible  <bruno@clisp.org>
14921
14922         * gnulib-tool: New option --copy-file.
14923         (func_usage): Document it.
14924         (func_dest_tmpfilename): Moved out of func_import.
14925         (func_add_file, func_update_file): New functions, extracted from
14926         func_import.
14927         (func_import): Update.
14928
14929 2009-04-05  Karl Berry  <karl@gnu.org>
14930
14931         * README: prominently mention gnulib-tool.
14932         Rearrange sections so getting the code is near the top.
14933
14934 2009-04-05  Bruno Haible  <bruno@clisp.org>
14935
14936         * lib/unicase.h: Mention u*_cmp2.
14937         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
14938         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
14939         * lib/unicase/ulc-casecmp.c: Likewise.
14940         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
14941         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
14942         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
14943         unistr/u8-cmp.
14944         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
14945         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
14946         unistr/u16-cmp.
14947         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
14948         unistr/u32-cmp.
14949
14950         * lib/uninorm.h: Mention u*_cmp2.
14951         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
14952         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
14953         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
14954         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
14955         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
14956         unistr/u8-cmp.
14957         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
14958         unistr/u16-cmp.
14959         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
14960         unistr/u32-cmp.
14961
14962         New module 'unistr/u32-cmp2'.
14963         * lib/unistr/u32-cmp2.c: New file.
14964         * modules/unistr/u32-cmp2: New file.
14965
14966         New module 'unistr/u16-cmp2'.
14967         * lib/unistr/u16-cmp2.c: New file.
14968         * modules/unistr/u16-cmp2: New file.
14969
14970         New module 'unistr/u8-cmp2'.
14971         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
14972         * lib/unistr/u8-cmp2.c: New file.
14973         * lib/unistr/u-cmp2.h: New file.
14974         * modules/unistr/u8-cmp2: New file.
14975
14976 2009-04-05  Bruno Haible  <bruno@clisp.org>
14977
14978         * lib/unictype.h (uc_property_is_valid): New macro.
14979         * tests/unictype/test-pr_byname.c (main): Use it.
14980
14981         * lib/unistr.h: Doc fixes.
14982         * lib/uniconv.h: Doc fixes.
14983         * lib/unictype.h: Doc fixes.
14984
14985 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
14986
14987         Port coreutils 7.2 to Solaris 8.
14988
14989         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
14990         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
14991         for Solaris 8.  This is a bit of a hack, as it means it's the
14992         caller's responsibility to add -lnsl if needed, but most likely it
14993         won't be needed since only getaddrinfo uses this and getaddrinfo
14994         isn't needed on Solaris 8.
14995
14996         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
14997         problem to Solaris 8 encountered with coreutils 7.2, which
14998         resulted in a message "fnmatch.c:292: warning: passing argument 4
14999         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
15000         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
15001
15002 2009-04-03  Simon Josefsson  <simon@josefsson.org>
15003
15004         * m4/ld-version-script.m4: Add FIXME comment.
15005
15006 2009-04-02  Simon Josefsson  <simon@josefsson.org>
15007
15008         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
15009         SOVERSION variable.
15010
15011 2009-04-02  Bruno Haible  <bruno@clisp.org>
15012
15013         * Makefile (info, html, dvi, pdf): Combine the rules.
15014         Suggested by Jim Meyering.
15015
15016 2009-04-01  Bruno Haible  <bruno@clisp.org>
15017
15018         * Makefile (info, html, dvi, pdf): New targets.
15019         Reported by Reuben Thomas <rrt@sc3d.org>.
15020
15021 2009-04-01  Bruno Haible  <bruno@clisp.org>
15022
15023         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
15024         can be put into PATH.
15025         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
15026
15027 2009-04-01  Bruno Haible  <bruno@clisp.org>
15028
15029         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
15030
15031 2009-04-01  Bruno Haible  <bruno@clisp.org>
15032
15033         Rename module 'visibility'.
15034         * modules/lib-symbol-visibility: Renamed from modules/visibility.
15035         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
15036         * doc/gnulib.texi: Update.
15037         * MODULES.html.sh (Misc): Update.
15038         * NEWS: Mention the change.
15039
15040 2009-04-01  Simon Josefsson  <simon@josefsson.org>
15041
15042         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
15043         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
15044         Eric Blake <ebb9@byu.net> for review.
15045         * MODULES.html.sh: Add lib-msvc-compat.
15046         * doc/gnulib.texi: Link to new section.
15047         * m4/ld-output-def.m4: New file.
15048         * doc/ld-output-def.texi: New file.
15049
15050 2009-04-01  Simon Josefsson  <simon@josefsson.org>
15051
15052         Rename ld-version-script to lib-symbol-versions.  Suggested by
15053         Bruno Haible <bruno@clisp.org>.
15054         * modules/ld-version-script: Renamed to lib-symbol-versions.
15055         * doc/ld-version-script.texi: Fix module name.
15056         * MODULES.html.sh: Add lib-symbol-versions.
15057
15058 2009-03-31  Simon Josefsson  <simon@josefsson.org>
15059
15060         * modules/u64-tests: New file.
15061         * tests/test-u64.c: New file.
15062
15063 2009-03-04  Simon Josefsson  <simon@josefsson.org>
15064
15065         * MODULES.html.sh: Mention u64.
15066         * modules/u64: New module.
15067         * modules/crypto/sha512: Depend on u64 module instead of providing
15068         u64.h.
15069
15070 2009-03-27  Eric Blake  <ebb9@byu.net>
15071
15072         test-strerror: make debugging EAI_SYSTEM easier
15073         * modules/getaddrinfo-tests (Depends-on): Add strerror.
15074         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
15075         failure was EAI_SYSTEM.
15076
15077 2009-03-25  Bruno Haible  <bruno@clisp.org>
15078
15079         Fix a problem with --enable-relocatable on Solaris 7.
15080         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
15081         since 2008-02-24.
15082
15083 2009-03-25  Eric Blake  <ebb9@byu.net>
15084
15085         test-sockets: avoid gcc warning
15086         * tests/test-sockets.c (main): Silence compiler warning.
15087
15088 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
15089
15090         New modules nproc, pthread, contributed by Glen Lenker.
15091
15092         * MODULES.html.sh: Add pthread, nproc.
15093         * lib/nproc.c: New file.
15094         * lib/nproc.h: New file.
15095         * lib/pthread.in.h: New file.
15096         * m4/pthread.m4: New file.
15097         * modules/nproc: New file.
15098         * modules/pthread: New file.
15099
15100 2009-03-24  Simon Josefsson  <simon@josefsson.org>
15101
15102         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
15103         New variable.
15104
15105 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
15106
15107         filevercmp: handle simple~ and numbered.~3~ backup suffixes
15108         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
15109         * tests/test-filevercmp.c: Add tests for backup suffixes.
15110
15111 2009-03-24  Simon Josefsson  <simon@josefsson.org>
15112
15113         * modules/stdlib (Depends-on): Add stdint, needed when defining
15114         struct random_data on, for example, HP-UX 10.20.  Reported by
15115         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
15116
15117 2009-03-24  Simon Josefsson  <simon@josefsson.org>
15118
15119         * lib/readline.c (readline): Call fflush on stdout after printing
15120         prompt.
15121
15122 2009-03-20  Bruno Haible  <bruno@clisp.org>
15123
15124         Remove dependency from 'close' module to -lws2_32 on native Windows.
15125         * lib/close-hook.h: New file.
15126         * lib/close-hook.c: New file.
15127         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
15128         w32sock.h.
15129         (_gl_close_fd_maybe_socket): Remove function.
15130         (rpl_close): Invoke execute_all_close_hooks instead of
15131         _gl_close_fd_maybe_socket.
15132         * lib/sockets.c: Include close-hook.h, w32sock.h.
15133         (close_fd_maybe_socket): New function, essentially from lib/close.c.
15134         (close_sockets_hook): New variable.
15135         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
15136         (gl_sockets_cleanup): Unregister it.
15137         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
15138         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
15139         * modules/close-hook: New file.
15140         * modules/close (Files): Remove lib/w32sock.h.
15141         (Depends-on): Add close-hook.
15142         (Link): Remove section.
15143         * modules/sockets (Files): Add lib/w32sock.h.
15144         (Depends-on): Add close-hook.
15145         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
15146         invocation.
15147         * NEWS: Mention that LIB_CLOSE is gone.
15148
15149 2009-03-23  Eric Blake  <ebb9@byu.net>
15150
15151         signal-tests: test previous patch
15152         * tests/test-signal.c: New file.
15153         * modules/signal-tests: Likewise.
15154
15155         signal.h: always support 'volatile sig_atomic_t'
15156         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
15157         (gl_SIGNAL_H_DEFAULTS): Add a default.
15158         * modules/signal (Makefile.am): Substitute if needed.
15159         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
15160         users can blindly add volatile.
15161         * doc/posix-headers/signal.texi (signal.h): Document it.
15162         Reported by Matthew Woehlke.
15163
15164 2009-03-23  Jim Meyering  <meyering@redhat.com>
15165
15166         pathmax: PATH_MAX: use pathconf only when available
15167         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
15168         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
15169         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
15170         This avoids a link failure in a PSP cross-compilation environment
15171         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
15172
15173         * lib/vasnprintf.c (divide): Fix typo in comment.
15174
15175 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15176
15177         * gnulib-tool (func_filter_filelist): Fix comment.
15178
15179 2009-03-20  Bruno Haible  <bruno@clisp.org>
15180
15181         Make sockets.h self-contained.
15182         * lib/sockets.c: Include sockets.h first.
15183         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
15184
15185 2009-03-19  Eric Blake  <ebb9@byu.net>
15186
15187         doc: mention more functions added in cygwin 1.7.0
15188         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
15189         addition.
15190         * doc/posix-functions/log2f.texi: Likewise.
15191
15192 2009-03-19  Jim Meyering  <meyering@redhat.com>
15193
15194         fsusage: avoid syntax error due to statement-before-declaration
15195         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
15196         after all declarations.  Reported by Matthew Woehlke in
15197         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
15198
15199 2009-03-18  Eric Blake  <ebb9@byu.net>
15200
15201         build-aux/compile: sync from automake
15202         * build-aux/compile: New file, from automake.
15203         * config/srclist.txt: Mention build-aux/compile.
15204
15205 2009-03-17  Bruno Haible  <bruno@clisp.org>
15206
15207         * lib/git-merge-changelog.c: Fix typo in comment.
15208         Reported by Reuben Thomas <rrt@sc3d.org>.
15209
15210 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
15211
15212         * m4/regex.m4: update and improve help for
15213         --without-included-regex.
15214
15215 2009-03-17  Simon Josefsson  <simon@josefsson.org>
15216
15217         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
15218         failure on missing include files.
15219
15220 2009-03-17  Eric Blake  <ebb9@byu.net>
15221
15222         doc: mention more functions added in cygwin 1.7.0
15223         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
15224         addition.
15225         * doc/posix-functions/fwscanf.texi: Likewise.
15226         * doc/posix-functions/swprintf.texi: Likewise.
15227         * doc/posix-functions/swscanf.texi: Likewise.
15228         * doc/posix-functions/vfwprintf.texi: Likewise.
15229         * doc/posix-functions/vfwscanf.texi: Likewise.
15230         * doc/posix-functions/vswprintf.texi: Likewise.
15231         * doc/posix-functions/vswscanf.texi: Likewise.
15232         * doc/posix-functions/vwprintf.texi: Likewise.
15233         * doc/posix-functions/vwscanf.texi: Likewise.
15234         * doc/posix-functions/wcscasecmp.texi: Likewise.
15235         * doc/posix-functions/wcsdup.texi: Likewise.
15236         * doc/posix-functions/wcsftime.texi: Likewise.
15237         * doc/posix-functions/wcsncasecmp.texi: Likewise.
15238         * doc/posix-functions/wprintf.texi: Likewise.
15239         * doc/posix-functions/wscanf.texi: Likewise.
15240         * doc/glibc-functions/gethostbyname2.texi: Likewise.
15241
15242 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15243
15244         maint.mk: really add $(AM_MAKEFLAGS)
15245         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
15246         was inadvertently omitted in the last commit.
15247         Spotted by Bruno Haible.
15248
15249         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
15250         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
15251         $(AM_MAKEFLAGS)' rather than plain `make'.
15252
15253         gnulib-tool: execute $MAKE not make
15254         * gnulib-tool: Default $MAKE to 'make'.
15255         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
15256         than make.  Initialize $MAKE in the do-autobuild script.
15257
15258         gnulib-tool: use $MAKE not make in generated files
15259         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
15260         make, in generated files.  Initialize $MAKE in the do-autobuild
15261         script.
15262
15263         * top/GNUmakefile (_have-git-version-gen): Fix typo.
15264
15265         GNUmakefile: disable parallelism only for multiple, recursive targets
15266         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
15267         additions in the Makefile.
15268         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
15269         by Automake.
15270         (.NOTPARALLEL): Only disable parallel builds if multiple targets
15271         are listed on the command line and at least one of them is
15272         listed in $(ALL_RECURSIVE_TARGETS).
15273
15274 2009-03-14  Bruno Haible  <bruno@clisp.org>
15275
15276         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
15277         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
15278         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
15279         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
15280         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
15281         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
15282         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
15283         unistr/u8-uctomb.
15284         * modules/unistr/u8-strchr (Depends-on): Likewise.
15285         * modules/unistr/u8-strrchr (Depends-on): Likewise.
15286         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
15287         unistr/u16-uctomb.
15288         * modules/unistr/u16-strchr (Depends-on): Likewise.
15289         * modules/unistr/u16-strrchr (Depends-on): Likewise.
15290
15291 2009-03-12  Bruno Haible  <bruno@clisp.org>
15292
15293         Work around select() bug on Interix 3.5.
15294         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
15295         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
15296         * m4/select.m4: New file.
15297         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
15298         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
15299         * modules/select (Files): Add m4/select.m4.
15300         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
15301         * modules/nanosleep (Depends-on): Add select.
15302         * modules/poll (Depends-on): Likewise.
15303         * doc/posix-functions/select.texi: Mention the Interix bug.
15304         Reported by Markus Duft <mduft@gentoo.org>.
15305
15306         * lib/select.c: Renamed from lib/winsock-select.c.
15307         * modules/select (Files): Add lib/select.c, remove
15308         lib/winsock-select.c.
15309         (configure.ac): Update.
15310
15311 2009-03-12  Jim Meyering  <meyering@redhat.com>
15312
15313         avoid gcc warnings about unused macro definitions
15314         * lib/readtokens.c (STREQ): Remove unused definition.
15315         * lib/xmalloc.c (SIZE_MAX): Likewise.
15316         * lib/openat-die.c (N_): Likewise.
15317         * lib/mountlist.c (SIZE_MAX): Remove definition.
15318         Instead, include <stdint.h>.
15319         * lib/readutmp.c: Likewise.
15320         * modules/readutmp (Depends-on): Add stdint.
15321         * modules/mountlist (Depends-on): Add stdint.
15322         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
15323
15324 2009-03-10  Bruno Haible  <bruno@clisp.org>
15325
15326         Tests for module 'mbmemcasecoll'.
15327         * modules/mbmemcasecoll-tests: New file.
15328         * tests/test-mbmemcasecoll1.sh: New file.
15329         * tests/test-mbmemcasecoll2.sh: New file.
15330         * tests/test-mbmemcasecoll3.sh: New file.
15331         * tests/test-mbmemcasecoll.c: New file.
15332
15333         New module 'mbmemcasecoll'.
15334         * lib/mbmemcasecoll.h: New file.
15335         * lib/mbmemcasecoll.c: New file.
15336         * modules/mbmemcasecoll: New file.
15337
15338         * tests/test-mbmemcasecmp.h: New file, extracted from
15339         tests/test-mbmemcasecmp.c.
15340         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
15341         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
15342         (main): Update.
15343         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
15344
15345 2009-03-09  Bruno Haible  <bruno@clisp.org>
15346
15347         Tests for module 'mbmemcasecmp'.
15348         * modules/mbmemcasecmp-tests: New file.
15349         * tests/test-mbmemcasecmp1.sh: New file.
15350         * tests/test-mbmemcasecmp2.sh: New file.
15351         * tests/test-mbmemcasecmp3.sh: New file.
15352         * tests/test-mbmemcasecmp.c: New file.
15353
15354         New module 'mbmemcasecmp'.
15355         * lib/mbmemcasecmp.h: New file.
15356         * lib/mbmemcasecmp.c: New file.
15357         * modules/mbmemcasecmp: New file.
15358
15359 2009-03-09  Bruno Haible  <bruno@clisp.org>
15360
15361         Tests for module 'unicase/ulc-casecoll'.
15362         * modules/unicase/ulc-casecoll-tests: New file.
15363         * tests/unicase/test-ulc-casecoll1.sh: New file.
15364         * tests/unicase/test-ulc-casecoll2.sh: New file.
15365         * tests/unicase/test-ulc-casecoll.c: New file.
15366
15367         New module 'unicase/ulc-casecoll'.
15368         * lib/unicase.h (ulc_casecoll): New declaration.
15369         * lib/unicase/ulc-casecoll.c: New file.
15370         * modules/unicase/ulc-casecoll: New file.
15371
15372         New module 'unicase/ulc-casexfrm'.
15373         * lib/unicase.h (ulc_casexfrm): New declaration.
15374         * lib/unicase/ulc-casexfrm.c: New file.
15375         * modules/unicase/ulc-casexfrm: New file.
15376
15377 2009-03-09  Bruno Haible  <bruno@clisp.org>
15378
15379         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
15380         invocations.
15381
15382         * m4/mbscasecmp.m4: Remove file.
15383         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
15384         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
15385
15386         * m4/mbscasestr.m4: Remove file.
15387         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
15388         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
15389
15390         * m4/mbschr.m4: Remove file.
15391         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
15392         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
15393
15394         * m4/mbscspn.m4: Remove file.
15395         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
15396         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
15397
15398         * m4/mbslen.m4: Remove file.
15399         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
15400         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
15401
15402         * m4/mbsncasecmp.m4: Remove file.
15403         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
15404         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
15405
15406         * m4/mbsnlen.m4: Remove file.
15407         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
15408         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
15409
15410         * m4/mbspbrk.m4: Remove file.
15411         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
15412         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
15413
15414         * m4/mbspcasecmp.m4: Remove file.
15415         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
15416         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
15417
15418         * m4/mbsrchr.m4: Remove file.
15419         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
15420         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
15421
15422         * m4/mbssep.m4: Remove file.
15423         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
15424         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
15425
15426         * m4/mbsspn.m4: Remove file.
15427         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
15428         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
15429
15430         * m4/mbsstr.m4: Remove file.
15431         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
15432         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
15433
15434         * m4/mbstok_r.m4: Remove file.
15435         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
15436         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
15437
15438         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
15439
15440         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
15441         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
15442
15443         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
15444
15445 2009-03-08  Bruno Haible  <bruno@clisp.org>
15446
15447         Tests for module 'unicase/ulc-casecmp'.
15448         * modules/unicase/ulc-casecmp-tests: New file.
15449         * tests/unicase/test-ulc-casecmp1.sh: New file.
15450         * tests/unicase/test-ulc-casecmp2.sh: New file.
15451         * tests/unicase/test-ulc-casecmp.c: New file.
15452
15453         New module 'unicase/ulc-casecmp'.
15454         * lib/unicase.h (ulc_casecmp): New declaration.
15455         * lib/unicase/ulc-casecmp.c: New file.
15456         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
15457         'const SRC_UNIT *'.
15458         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
15459         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
15460         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
15461         * modules/unicase/ulc-casecmp: New file.
15462
15463         Tests for module 'unicase/u32-is-cased'.
15464         * modules/unicase/u32-is-cased-tests: New file.
15465         * tests/unicase/test-u32-is-cased.c: New file.
15466
15467         Tests for module 'unicase/u16-is-cased'.
15468         * modules/unicase/u16-is-cased-tests: New file.
15469         * tests/unicase/test-u16-is-cased.c: New file.
15470
15471         Tests for module 'unicase/u8-is-cased'.
15472         * modules/unicase/u8-is-cased-tests: New file.
15473         * tests/unicase/test-u8-is-cased.c: New file.
15474         * tests/unicase/test-is-cased.h: New file.
15475
15476         New module 'unicase/u32-is-cased'.
15477         * lib/unicase/u32-is-cased.c: New file.
15478         * modules/unicase/u32-is-cased: New file.
15479
15480         New module 'unicase/u16-is-cased'.
15481         * lib/unicase/u16-is-cased.c: New file.
15482         * modules/unicase/u16-is-cased: New file.
15483
15484         New module 'unicase/u8-is-cased'.
15485         * lib/unicase/u8-is-cased.c: New file.
15486         * lib/unicase/u-is-cased.h: New file.
15487         * modules/unicase/u8-is-cased: New file.
15488
15489         Tests for module 'unicase/u32-is-casefolded'.
15490         * modules/unicase/u32-is-casefolded-tests: New file.
15491         * tests/unicase/test-u32-is-casefolded.c: New file.
15492
15493         Tests for module 'unicase/u16-is-casefolded'.
15494         * modules/unicase/u16-is-casefolded-tests: New file.
15495         * tests/unicase/test-u16-is-casefolded.c: New file.
15496
15497         Tests for module 'unicase/u8-is-casefolded'.
15498         * modules/unicase/u8-is-casefolded-tests: New file.
15499         * tests/unicase/test-u8-is-casefolded.c: New file.
15500         * tests/unicase/test-is-casefolded.h: New file.
15501
15502         New module 'unicase/u32-is-casefolded'.
15503         * lib/unicase/u32-is-casefolded.c: New file.
15504         * modules/unicase/u32-is-casefolded: New file.
15505
15506         New module 'unicase/u16-is-casefolded'.
15507         * lib/unicase/u16-is-casefolded.c: New file.
15508         * modules/unicase/u16-is-casefolded: New file.
15509
15510         New module 'unicase/u8-is-casefolded'.
15511         * lib/unicase/u8-is-casefolded.c: New file.
15512         * modules/unicase/u8-is-casefolded: New file.
15513
15514         Tests for module 'unicase/u32-is-titlecase'.
15515         * modules/unicase/u32-is-titlecase-tests: New file.
15516         * tests/unicase/test-u32-is-titlecase.c: New file.
15517
15518         Tests for module 'unicase/u16-is-titlecase'.
15519         * modules/unicase/u16-is-titlecase-tests: New file.
15520         * tests/unicase/test-u16-is-titlecase.c: New file.
15521
15522         Tests for module 'unicase/u8-is-titlecase'.
15523         * modules/unicase/u8-is-titlecase-tests: New file.
15524         * tests/unicase/test-u8-is-titlecase.c: New file.
15525         * tests/unicase/test-is-titlecase.h: New file.
15526
15527         New module 'unicase/u32-is-titlecase'.
15528         * lib/unicase/u32-is-titlecase.c: New file.
15529         * modules/unicase/u32-is-titlecase: New file.
15530
15531         New module 'unicase/u16-is-titlecase'.
15532         * lib/unicase/u16-is-titlecase.c: New file.
15533         * modules/unicase/u16-is-titlecase: New file.
15534
15535         New module 'unicase/u8-is-titlecase'.
15536         * lib/unicase/u8-is-titlecase.c: New file.
15537         * modules/unicase/u8-is-titlecase: New file.
15538
15539         Tests for module 'unicase/u32-is-lowercase'.
15540         * modules/unicase/u32-is-lowercase-tests: New file.
15541         * tests/unicase/test-u32-is-lowercase.c: New file.
15542
15543         Tests for module 'unicase/u16-is-lowercase'.
15544         * modules/unicase/u16-is-lowercase-tests: New file.
15545         * tests/unicase/test-u16-is-lowercase.c: New file.
15546
15547         Tests for module 'unicase/u8-is-lowercase'.
15548         * modules/unicase/u8-is-lowercase-tests: New file.
15549         * tests/unicase/test-u8-is-lowercase.c: New file.
15550         * tests/unicase/test-is-lowercase.h: New file.
15551
15552         New module 'unicase/u32-is-lowercase'.
15553         * lib/unicase/u32-is-lowercase.c: New file.
15554         * modules/unicase/u32-is-lowercase: New file.
15555
15556         New module 'unicase/u16-is-lowercase'.
15557         * lib/unicase/u16-is-lowercase.c: New file.
15558         * modules/unicase/u16-is-lowercase: New file.
15559
15560         New module 'unicase/u8-is-lowercase'.
15561         * lib/unicase/u8-is-lowercase.c: New file.
15562         * modules/unicase/u8-is-lowercase: New file.
15563
15564         Tests for module 'unicase/u32-is-uppercase'.
15565         * modules/unicase/u32-is-uppercase-tests: New file.
15566         * tests/unicase/test-u32-is-uppercase.c: New file.
15567
15568         Tests for module 'unicase/u16-is-uppercase'.
15569         * modules/unicase/u16-is-uppercase-tests: New file.
15570         * tests/unicase/test-u16-is-uppercase.c: New file.
15571
15572         Tests for module 'unicase/u8-is-uppercase'.
15573         * modules/unicase/u8-is-uppercase-tests: New file.
15574         * tests/unicase/test-u8-is-uppercase.c: New file.
15575         * tests/unicase/test-is-uppercase.h: New file.
15576
15577         New module 'unicase/u32-is-uppercase'.
15578         * lib/unicase/u32-is-uppercase.c: New file.
15579         * modules/unicase/u32-is-uppercase: New file.
15580
15581         New module 'unicase/u16-is-uppercase'.
15582         * lib/unicase/u16-is-uppercase.c: New file.
15583         * modules/unicase/u16-is-uppercase: New file.
15584
15585         New module 'unicase/u8-is-uppercase'.
15586         * lib/unicase/u8-is-uppercase.c: New file.
15587         * modules/unicase/u8-is-uppercase: New file.
15588
15589         New module 'unicase/u32-is-invariant'.
15590         * lib/unicase/u32-is-invariant.c: New file.
15591         * modules/unicase/u32-is-invariant: New file.
15592
15593         New module 'unicase/u16-is-invariant'.
15594         * lib/unicase/u16-is-invariant.c: New file.
15595         * modules/unicase/u16-is-invariant: New file.
15596
15597         New module 'unicase/u8-is-invariant'.
15598         * lib/unicase/u8-is-invariant.c: New file.
15599         * lib/unicase/invariant.h: New file.
15600         * lib/unicase/u-is-invariant.h: New file.
15601         * modules/unicase/u8-is-invariant: New file.
15602
15603         Tests for module 'unicase/u32-casecoll'.
15604         * modules/unicase/u32-casecoll-tests: New file.
15605         * tests/unicase/test-u32-casecoll.c: New file.
15606
15607         Tests for module 'unicase/u16-casecoll'.
15608         * modules/unicase/u16-casecoll-tests: New file.
15609         * tests/unicase/test-u16-casecoll.c: New file.
15610
15611         Tests for module 'unicase/u8-casecoll'.
15612         * modules/unicase/u8-casecoll-tests: New file.
15613         * tests/unicase/test-u8-casecoll.c: New file.
15614
15615         New module 'unicase/u32-casecoll'.
15616         * lib/unicase/u32-casecoll.c: New file.
15617         * modules/unicase/u32-casecoll: New file.
15618
15619         New module 'unicase/u16-casecoll'.
15620         * lib/unicase/u16-casecoll.c: New file.
15621         * modules/unicase/u16-casecoll: New file.
15622
15623         New module 'unicase/u8-casecoll'.
15624         * lib/unicase/u8-casecoll.c: New file.
15625         * lib/unicase/u-casecoll.h: New file.
15626         * modules/unicase/u8-casecoll: New file.
15627
15628         New module 'unicase/u32-casexfrm'.
15629         * lib/unicase/u32-casexfrm.c: New file.
15630         * modules/unicase/u32-casexfrm: New file.
15631
15632         New module 'unicase/u16-casexfrm'.
15633         * lib/unicase/u16-casexfrm.c: New file.
15634         * modules/unicase/u16-casexfrm: New file.
15635
15636         New module 'unicase/u8-casexfrm'.
15637         * lib/unicase/u8-casexfrm.c: New file.
15638         * lib/unicase/u-casexfrm.h: New file.
15639         * modules/unicase/u8-casexfrm: New file.
15640
15641         Tests for module 'unicase/u32-casecmp'.
15642         * modules/unicase/u32-casecmp-tests: New file.
15643         * tests/unicase/test-u32-casecmp.c: New file.
15644
15645         Tests for module 'unicase/u16-casecmp'.
15646         * modules/unicase/u16-casecmp-tests: New file.
15647         * tests/unicase/test-u16-casecmp.c: New file.
15648
15649         Tests for module 'unicase/u8-casecmp'.
15650         * modules/unicase/u8-casecmp-tests: New file.
15651         * tests/unicase/test-u8-casecmp.c: New file.
15652         * tests/unicase/test-casecmp.h: New file.
15653
15654         New module 'unicase/u32-casecmp'.
15655         * lib/unicase/u32-casecmp.c: New file.
15656         * modules/unicase/u32-casecmp: New file.
15657
15658         New module 'unicase/u16-casecmp'.
15659         * lib/unicase/u16-casecmp.c: New file.
15660         * modules/unicase/u16-casecmp: New file.
15661
15662         New module 'unicase/u8-casecmp'.
15663         * lib/unicase/u8-casecmp.c: New file.
15664         * lib/unicase/u-casecmp.h: New file.
15665         * modules/unicase/u8-casecmp: New file.
15666
15667         Tests for module 'unicase/u32-casefold'.
15668         * modules/unicase/u32-casefold-tests: New file.
15669         * tests/unicase/test-u32-casefold.c: New file.
15670
15671         Tests for module 'unicase/u16-casefold'.
15672         * modules/unicase/u16-casefold-tests: New file.
15673         * tests/unicase/test-u16-casefold.c: New file.
15674
15675         Tests for module 'unicase/u8-casefold'.
15676         * modules/unicase/u8-casefold-tests: New file.
15677         * tests/unicase/test-u8-casefold.c: New file.
15678
15679         New module 'unicase/u32-casefold'.
15680         * lib/unicase/u32-casefold.c: New file.
15681         * modules/unicase/u32-casefold: New file.
15682
15683         New module 'unicase/u16-casefold'.
15684         * lib/unicase/u16-casefold.c: New file.
15685         * modules/unicase/u16-casefold: New file.
15686
15687         New module 'unicase/u8-casefold'.
15688         * lib/unicase/u8-casefold.c: New file.
15689         * lib/unicase/u-casefold.h: New file.
15690         * modules/unicase/u8-casefold: New file.
15691
15692         New module 'unicase/tocasefold'.
15693         * lib/unicase/casefold.h: New file.
15694         * lib/unicase/tocasefold.c: New file.
15695         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
15696         * modules/unicase/tocasefold: New file.
15697
15698         Tests for module 'unicase/u32-totitle'.
15699         * modules/unicase/u32-totitle-tests: New file.
15700         * tests/unicase/test-u32-totitle.c: New file.
15701
15702         Tests for module 'unicase/u16-totitle'.
15703         * modules/unicase/u16-totitle-tests: New file.
15704         * tests/unicase/test-u16-totitle.c: New file.
15705
15706         Tests for module 'unicase/u8-totitle'.
15707         * modules/unicase/u8-totitle-tests: New file.
15708         * tests/unicase/test-u8-totitle.c: New file.
15709
15710         New module 'unicase/u32-totitle'.
15711         * lib/unicase/u32-totitle.c: New file.
15712         * modules/unicase/u32-totitle: New file.
15713
15714         New module 'unicase/u16-totitle'.
15715         * lib/unicase/u16-totitle.c: New file.
15716         * modules/unicase/u16-totitle: New file.
15717
15718         New module 'unicase/u8-totitle'.
15719         * lib/unicase/u8-totitle.c: New file.
15720         * lib/unicase/u-totitle.h: New file.
15721         * modules/unicase/u8-totitle: New file.
15722
15723         Tests for module 'unicase/u32-tolower'.
15724         * modules/unicase/u32-tolower-tests: New file.
15725         * tests/unicase/test-u32-tolower.c: New file.
15726
15727         Tests for module 'unicase/u16-tolower'.
15728         * modules/unicase/u16-tolower-tests: New file.
15729         * tests/unicase/test-u16-tolower.c: New file.
15730
15731         Tests for module 'unicase/u8-tolower'.
15732         * modules/unicase/u8-tolower-tests: New file.
15733         * tests/unicase/test-u8-tolower.c: New file.
15734
15735         New module 'unicase/u32-tolower'.
15736         * lib/unicase/u32-tolower.c: New file.
15737         * modules/unicase/u32-tolower: New file.
15738
15739         New module 'unicase/u16-tolower'.
15740         * lib/unicase/u16-tolower.c: New file.
15741         * modules/unicase/u16-tolower: New file.
15742
15743         New module 'unicase/u8-tolower'.
15744         * lib/unicase/u8-tolower.c: New file.
15745         * modules/unicase/u8-tolower: New file.
15746
15747         Tests for module 'unicase/u32-toupper'.
15748         * modules/unicase/u32-toupper-tests: New file.
15749         * tests/unicase/test-u32-toupper.c: New file.
15750
15751         Tests for module 'unicase/u16-toupper'.
15752         * modules/unicase/u16-toupper-tests: New file.
15753         * tests/unicase/test-u16-toupper.c: New file.
15754
15755         Tests for module 'unicase/u8-toupper'.
15756         * modules/unicase/u8-toupper-tests: New file.
15757         * tests/unicase/test-u8-toupper.c: New file.
15758
15759         New module 'unicase/u32-toupper'.
15760         * lib/unicase/u32-toupper.c: New file.
15761         * modules/unicase/u32-toupper: New file.
15762
15763         New module 'unicase/u16-toupper'.
15764         * lib/unicase/u16-toupper.c: New file.
15765         * modules/unicase/u16-toupper: New file.
15766
15767         New module 'unicase/u8-toupper'.
15768         * lib/unicase/u8-toupper.c: New file.
15769         * modules/unicase/u8-toupper: New file.
15770
15771         New module 'unicase/u32-casemap'.
15772         * lib/unicase/u32-casemap.c: New file.
15773         * modules/unicase/u32-casemap: New file.
15774
15775         New module 'unicase/u16-casemap'.
15776         * lib/unicase/u16-casemap.c: New file.
15777         * modules/unicase/u16-casemap: New file.
15778
15779         New module 'unicase/u8-casemap'.
15780         * lib/unicase/unicasemap.h: New file.
15781         * lib/unicase/u8-casemap.c: New file.
15782         * lib/unicase/u-casemap.h: New file.
15783         * modules/unicase/u8-casemap: New file.
15784
15785         New module 'unicase/special-casing'.
15786         * lib/unicase/special-casing.h: New file.
15787         * lib/unicase/special-casing.c: New file.
15788         * lib/unicase/special-casing-table.gperf: New file, generated by
15789         gen-uni-tables.c.
15790         * modules/unicase/special-casing: New file.
15791
15792         Tests for module 'unicase/locale-language'.
15793         * modules/unicase/locale-language-tests: New file.
15794         * tests/unicase/test-locale-language.sh: New file.
15795         * tests/unicase/test-locale-language.c: New file.
15796
15797         New module 'unicase/locale-language'.
15798         * lib/unicase/locale-language.c: New file.
15799         * lib/unicase/locale-languages.gperf: New file.
15800         * modules/unicase/locale-language: New file.
15801
15802         Generate more tables for case conversion and case folding.
15803         * lib/gen-uni-tables.c (SCC_*): New enum items.
15804         (struct special_casing_rule): New type.
15805         (casing_rules, num_casing_rules, allocated_casing_rules): New
15806         variables.
15807         (add_casing_rule, fill_casing_rules): New functions.
15808         (struct casefold_rule): New type.
15809         (casefolding_rules, num_casefolding_rules,
15810         allocated_casefolding_rules): New variables.
15811         (fill_casefolding_rules): New function.
15812         (unicode_casefold): New variable.
15813         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
15814         sort_casing_rules, output_casing_rules): New functions.
15815         (main): Accept to more arguments: SpecialCasing.txt and
15816         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
15817         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
15818         Output mapping for casefolding.
15819
15820         * lib/unicase.h: Include stdbool.h, uninorm.h.
15821         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
15822         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
15823         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
15824         arguments.
15825         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
15826         resultp arguments.
15827         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
15828         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
15829         resultp arguments.
15830         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
15831         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
15832         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
15833         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
15834         declarations.
15835         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
15836
15837 2009-03-08  Bruno Haible  <bruno@clisp.org>
15838
15839         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
15840         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
15841         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
15842         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
15843
15844 2009-03-07  Bruno Haible  <bruno@clisp.org>
15845
15846         Adjust u*_normcmp, u*_normcoll API.
15847         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
15848         u16_normcoll, u32_normcoll): Change failure conventions.
15849         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
15850         errno and return -1.
15851         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
15852
15853 2009-03-07  Bruno Haible  <bruno@clisp.org>
15854
15855         Tests for module 'uninorm/u32-normcoll'.
15856         * modules/uninorm/u32-normcoll-tests: New file.
15857         * tests/uninorm/test-u32-normcoll.c: New file.
15858
15859         Tests for module 'uninorm/u16-normcoll'.
15860         * modules/uninorm/u16-normcoll-tests: New file.
15861         * tests/uninorm/test-u16-normcoll.c: New file.
15862
15863         Tests for module 'uninorm/u8-normcoll'.
15864         * modules/uninorm/u8-normcoll-tests: New file.
15865         * tests/uninorm/test-u8-normcoll.c: New file.
15866
15867 2009-03-07  Bruno Haible  <bruno@clisp.org>
15868
15869         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
15870         tests/uninorm/test-u32-normcmp.c.
15871         * tests/uninorm/test-u32-normcmp.c: Include it.
15872         (test_nonascii): New function, extracted from main. Add some more
15873         tests.
15874         (main): Invoke test_ascii and test_nonascii.
15875         * modules/uninorm/u32-normcmp-tests (Files): Add
15876         tests/uninorm/test-u32-normcmp.h.
15877         (Depends-on): Remove uninorm/u32-normcmp.
15878
15879         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
15880         tests/uninorm/test-u16-normcmp.c.
15881         * tests/uninorm/test-u16-normcmp.c: Include it.
15882         (test_nonascii): New function, extracted from main. Add some more
15883         tests.
15884         (main): Invoke test_ascii and test_nonascii.
15885         * modules/uninorm/u16-normcmp-tests (Files): Add
15886         tests/uninorm/test-u16-normcmp.h.
15887         (Depends-on): Remove uninorm/u16-normcmp.
15888
15889         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
15890         tests/uninorm/test-u8-normcmp.c.
15891         * tests/uninorm/test-u8-normcmp.c: Include it.
15892         (test_nonascii): New function, extracted from main. Add some more
15893         tests.
15894         (main): Invoke test_ascii and test_nonascii.
15895         * modules/uninorm/u8-normcmp-tests (Files): Add
15896         tests/uninorm/test-u8-normcmp.h.
15897         (Depends-on): Remove uninorm/u8-normcmp.
15898
15899 2009-03-07  Bruno Haible  <bruno@clisp.org>
15900
15901         New module 'uninorm/u32-normcoll'.
15902         * lib/uninorm/u32-normcoll.c: New file.
15903         * modules/uninorm/u32-normcoll: New file.
15904
15905         New module 'uninorm/u16-normcoll'.
15906         * lib/uninorm/u16-normcoll.c: New file.
15907         * modules/uninorm/u16-normcoll: New file.
15908
15909         New module 'uninorm/u8-normcoll'.
15910         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
15911         declarations.
15912         * lib/uninorm/u8-normcoll.c: New file.
15913         * lib/uninorm/u-normcoll.h: New file.
15914         * modules/uninorm/u8-normcoll: New file.
15915
15916         New module 'uninorm/u32-normxfrm'.
15917         * lib/uninorm/u32-normxfrm.c: New file.
15918         * modules/uninorm/u32-normxfrm: New file.
15919
15920         New module 'uninorm/u16-normxfrm'.
15921         * lib/uninorm/u16-normxfrm.c: New file.
15922         * modules/uninorm/u16-normxfrm: New file.
15923
15924         New module 'uninorm/u8-normxfrm'.
15925         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
15926         declarations.
15927         * lib/uninorm/u8-normxfrm.c: New file.
15928         * lib/uninorm/u-normxfrm.h: New file.
15929         * modules/uninorm/u8-normxfrm: New file.
15930
15931 2009-03-07  Bruno Haible  <bruno@clisp.org>
15932
15933         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
15934         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
15935         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
15936
15937 2009-03-07  Bruno Haible  <bruno@clisp.org>
15938
15939         New module 'memxfrm'.
15940         * lib/memxfrm.h: New file.
15941         * lib/memxfrm.c: New file.
15942         * modules/memxfrm: New file.
15943
15944 2009-03-07  Bruno Haible  <bruno@clisp.org>
15945
15946         New module 'memcmp2'.
15947         * lib/memcmp2.h: New file.
15948         * lib/memcmp2.c: New file.
15949         * modules/memcmp2: New file.
15950
15951 2009-03-07  Bruno Haible  <bruno@clisp.org>
15952
15953         Tests for module 'uninorm/decomposing-form'.
15954         * modules/uninorm/decomposing-form-tests: New file.
15955         * tests/uninorm/test-decomposing-form.c: New file.
15956
15957         New module 'uninorm/decomposing-form'.
15958         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
15959         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
15960         Add 'decomposing_variant' field.
15961         * lib/uninorm/decomposing-form.c: New file.
15962         * lib/uninorm/nfc.c (uninorm_nfc): Update.
15963         * lib/uninorm/nfd.c (uninorm_nfd): Update.
15964         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
15965         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
15966         * modules/uninorm/decomposing-form: New file.
15967         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
15968         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
15969
15970 2009-03-07  Bruno Haible  <bruno@clisp.org>
15971
15972         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
15973         strings.
15974
15975 2009-03-06  Bruno Haible  <bruno@clisp.org>
15976
15977         Tests for module 'uninorm/u32-normcmp'.
15978         * tests/uninorm/test-u32-normcmp.c: New file.
15979         * modules/uninorm/u32-normcmp-tests: New file.
15980
15981         Tests for module 'uninorm/u16-normcmp'.
15982         * tests/uninorm/test-u16-normcmp.c: New file.
15983         * modules/uninorm/u16-normcmp-tests: New file.
15984
15985         Tests for module 'uninorm/u8-normcmp'.
15986         * tests/uninorm/test-u8-normcmp.c: New file.
15987         * modules/uninorm/u8-normcmp-tests: New file.
15988
15989         New module 'uninorm/u32-normcmp'.
15990         * lib/uninorm/u32-normcmp.c: New file.
15991         * modules/uninorm/u32-normcmp: New file.
15992
15993         New module 'uninorm/u16-normcmp'.
15994         * lib/uninorm/u16-normcmp.c: New file.
15995         * modules/uninorm/u16-normcmp: New file.
15996
15997         New module 'uninorm/u8-normcmp'.
15998         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
15999         declarations.
16000         * lib/uninorm/u8-normcmp.c: New file.
16001         * lib/uninorm/u-normcmp.h: New file.
16002         * modules/uninorm/u8-normcmp: New file.
16003
16004 2009-03-06  Bruno Haible  <bruno@clisp.org>
16005
16006         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
16007         Reported by Eric Blake.
16008
16009 2009-03-06  Eric Blake  <ebb9@byu.net>
16010             Bruno Haible  <bruno@clisp.org>
16011
16012         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
16013         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
16014         condition.
16015         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
16016         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
16017         condition.
16018         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
16019
16020 2009-03-06  Eric Blake  <ebb9@byu.net>
16021
16022         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
16023         to avoid compiler warnings.
16024         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
16025
16026 2009-03-05  Bruno Haible  <bruno@clisp.org>
16027
16028         * tests/test-ftell.c (main): Disable test beyond end of file on
16029         FreeMiNT.
16030         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
16031
16032 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
16033
16034         * lib/filevercmp.c: Move hidden files up in ordering.
16035         * tests/test-filevercmp.c: Add tests for hidden files.
16036
16037 2009-03-04  Bruno Haible  <bruno@clisp.org>
16038
16039         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
16040         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
16041         AM_CFLAGS.
16042         Reported by Simon Josefsson.
16043
16044 2009-03-03  Bruno Haible  <bruno@clisp.org>
16045
16046         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
16047         Reported by Simon Josefsson.
16048
16049         * doc/ld-version-script.texi: Update node reference.
16050
16051 2009-03-03  Bruno Haible  <bruno@clisp.org>
16052
16053         * modules/visibility (License): Change to 'unlimited'.
16054         Suggested by Simon Josefsson.
16055
16056 2009-03-03  Jim Meyering  <meyering@redhat.com>
16057
16058         unlinkdir: cannot_unlink_dir may modify process state
16059         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
16060         it's neither thread-safe nor appropriate for use in a library.
16061
16062 2009-03-03  Eric Blake  <ebb9@byu.net>
16063
16064         test-closein: silence test under Darwin
16065         * tests/test-closein.sh: Ignore stderr from cat, since we don't
16066         care if it dies from EPIPE or EBADF.
16067
16068 2009-03-03  Bruno Haible  <bruno@clisp.org>
16069
16070         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
16071         earlier.
16072         * doc/visibility.texi: Fix @node and @section.
16073
16074 2009-03-03  Simon Josefsson  <simon@josefsson.org>
16075
16076         * doc/gnulib.texi: Link to sections for ld version script and
16077         visibility.
16078         * doc/visibility.texi: Add @node and @section.
16079         * modules/ld-version-script: New module.
16080         * m4/ld-version-script.m4: New file.
16081         * doc/ld-version-script.texi: New file.
16082
16083 2009-03-02  David Lutterkort  <lutter@redhat.com>
16084
16085         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
16086         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16087
16088 2009-03-02  Bruno Haible  <bruno@clisp.org>
16089
16090         * doc/visibility.texi: Mention libtool's -export-symbols option.
16091
16092 2009-03-02  Jim Meyering  <meyering@redhat.com>
16093
16094         announce-gen: new option: --no-print-checksums
16095         * build-aux/announce-gen (usage): Describe it.
16096         (print_checksums): Print a newline here, not in the [*] footnote.
16097         (main): Honor it.
16098
16099 2009-03-01  Bruno Haible  <bruno@clisp.org>
16100
16101         Use socklen_t in the native Windows replacements prototypes.
16102         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
16103         instead of 'int'.
16104         * lib/getsockopt.c (rpl_getsockopt): Likewise.
16105         * lib/setsockopt.c (rpl_setsockopt): Likewise.
16106         * modules/getsockopt (Depends-on): Add socklen.
16107         * modules/setsockopt (Depends-on): Add socklen.
16108
16109 2009-03-01  Bruno Haible  <bruno@clisp.org>
16110
16111         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
16112         least 4.2.
16113
16114 2009-03-01  Eric Blake  <ebb9@byu.net>
16115             Bruno Haible  <bruno@clisp.org>
16116
16117         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
16118         error messages.
16119         * lib/wait-process.c (wait_subprocess): Omit error message about
16120         deadly signal sent to the child of termsigp != NULL.
16121
16122 2009-03-01  Eric Blake  <ebb9@byu.net>
16123
16124         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
16125
16126 2009-03-01  Bruno Haible  <bruno@clisp.org>
16127
16128         Avoid a gcc warning.
16129         * tests/test-sched.c (b): Make global.
16130         Reported by Eric Blake.
16131
16132 2009-01-19  Martin Lambers  <marlam@marlam.de>
16133
16134         Provide POSIX semantics for socket timeout options on W32.
16135         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
16136         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
16137         * modules/setsockopt: Depend on sys_time module for struct timeval.
16138         * modules/getsockopt: Depend on sys_time module for struct timeval.
16139
16140 2009-03-01  Simon Josefsson  <simon@josefsson.org>
16141
16142         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
16143         __USE_GNU, for consistency with netdb.in.h.
16144         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
16145
16146 2009-03-01  Bruno Haible  <bruno@clisp.org>
16147
16148         More support for FreeMiNT.
16149         * lib/fseeko.c (rpl_fseeko): Complete last commit.
16150         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
16151
16152 2009-03-01  Bruno Haible  <bruno@clisp.org>
16153
16154         More support for FreeMiNT.
16155         * lib/fpurge.c (fpurge): Correct last commit.
16156         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
16157
16158 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16159
16160         Fix unportable awk script in vc-list-files.
16161         * build-aux/vc-list-files: In the replacement awk script, use
16162         substr with a second argument of 1, not zero.
16163         Report by Simon Josefsson.
16164
16165 2009-02-28  Bruno Haible  <bruno@clisp.org>
16166
16167         More support for FreeMiNT.
16168         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
16169         to FreeMiNT today.
16170         * lib/fwriting.c (fwriting): Likewise.
16171         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
16172
16173 2009-02-28  Bruno Haible  <bruno@clisp.org>
16174
16175         * tests/test-freadseek.c (main): Disable test beyond end of file on
16176         FreeMiNT.
16177         * tests/test-ftello.c (main): Likewise.
16178         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
16179
16180 2009-02-28  Bruno Haible  <bruno@clisp.org>
16181
16182         Add tentative support for FreeMiNT.
16183         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
16184         * lib/fpurge.c (fpurge): Likewise.
16185         * lib/freadable.c (freadable): Likewise.
16186         * lib/freading.c (freading): Likewise.
16187         * lib/freadptr.c (freadptr): Likewise.
16188         * lib/freadseek.c (freadptrinc): Likewise.
16189         * lib/fseeko.c (rpl_fseeko): Likewise.
16190         * lib/fseterr.c (fseterr): Likewise.
16191         * lib/fwritable.c (fwritable): Likewise.
16192         * lib/fwriting.c (fwriting): Likewise.
16193         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
16194         Hourihane.
16195         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
16196
16197 2009-02-28  Bruno Haible  <bruno@clisp.org>
16198
16199         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
16200         SIGCHLD.
16201         Reported by Jim Meyering.
16202
16203 2009-02-28  Bruno Haible  <bruno@clisp.org>
16204
16205         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
16206         Mention the results of these tests on various platforms.
16207         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
16208         order.
16209         * doc/posix-functions/printf.texi: Likewise.
16210         * doc/posix-functions/snprintf.texi: Likewise.
16211         * doc/posix-functions/sprintf.texi: Likewise.
16212         * doc/posix-functions/vfprintf.texi: Likewise.
16213         * doc/posix-functions/vprintf.texi: Likewise.
16214         * doc/posix-functions/vsnprintf.texi: Likewise.
16215         * doc/posix-functions/vsprintf.texi: Likewise.
16216         * doc/glibc-functions/obstack_printf.texi: Likewise.
16217         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
16218
16219 2009-02-28  Bruno Haible  <bruno@clisp.org>
16220
16221         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
16222         Reported by Loïc Minier <lool@dooz.org>.
16223
16224 2009-02-27  Bruno Haible  <bruno@clisp.org>
16225
16226         * gnulib-tool (func_import): Make the sed expression used to create the
16227         sed script for updating the .gitignore file POSIX compliant.
16228         Reported by Eric Blake.
16229
16230 2009-02-27  Bruno Haible  <bruno@clisp.org>
16231
16232         * gnulib-tool (sed): Don't alias as "sed --posix".
16233         Reported by Eric Blake.
16234
16235 2009-02-27  Bruno Haible  <bruno@clisp.org>
16236
16237         Avoid test link errors.
16238         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
16239         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
16240         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
16241         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
16242         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16243
16244 2009-02-27  Bruno Haible  <bruno@clisp.org>
16245
16246         Avoid spurious "(cached)" in configure output.
16247         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
16248         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
16249         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
16250         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
16251         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
16252         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
16253         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
16254         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
16255         Reported by Eric Blake.
16256
16257 2009-02-27  Eric Blake  <ebb9@byu.net>
16258
16259         printf: fix regression in previous patch
16260         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
16261
16262 2009-02-27  Bruno Haible  <bruno@clisp.org>
16263
16264         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
16265         value.
16266         * lib/stdint.in.h: Likewise.
16267         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
16268
16269 2009-02-27  Eric Blake  <ebb9@byu.net>
16270
16271         doc: mention more functions added in cygwin 1.7.0
16272         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
16273         addition.
16274         * doc/posix-functions/open_wmemstream.texi: Likewise.
16275         * doc/posix-functions/wcsnlen.texi: Likewise.
16276         * doc/posix-functions/wcsnrtombs.texi: Likewise.
16277         * doc/posix-functions/wcstod.texi: Likewise.
16278         * doc/posix-functions/wcstof.texi: Likewise.
16279         * doc/posix-functions/wcstoimax.texi: Likewise.
16280         * doc/posix-functions/wcstok.texi: Likewise.
16281         * doc/posix-functions/wcstoumax.texi: Likewise.
16282
16283         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
16284         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
16285         * doc/posix-functions/fprintf.texi: Update.
16286         * doc/posix-functions/printf.texi: Update.
16287         * doc/posix-functions/snprintf.texi: Update.
16288         * doc/posix-functions/sprintf.texi: Update.
16289         * doc/posix-functions/vfprintf.texi: Update.
16290         * doc/posix-functions/vprintf.texi: Update.
16291         * doc/posix-functions/vsnprintf.texi: Update.
16292         * doc/posix-functions/vsprintf.texi: Update.
16293         * doc/glibc-functions/obstack_printf.texi: Update.
16294         * doc/glibc-functions/obstack_vprintf.texi: Update.
16295
16296 2009-02-26  Eric Blake  <ebb9@byu.net>
16297
16298         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
16299         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
16300         compilation bug by using runtime conversion.
16301         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
16302         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
16303         * modules/ceill-tests (Files): Use nan.h.
16304         * modules/floorl-tests (Files): Likewise.
16305         * modules/frexpl-tests (Files): Likewise.
16306         * modules/isnanl-tests (Files): Likewise.
16307         * modules/ldexpl-tests (Files): Likewise.
16308         * modules/roundl-tests (Files): Likewise.
16309         * modules/truncl-tests (Files): Likewise.
16310         * tests/test-ceill.c (main): Use a working NaN.
16311         * tests/test-floorl.c (main): Likewise.
16312         * tests/test-frexpl.c (main): Likewise.
16313         * tests/test-isnan.c (test_long_double): Likewise.
16314         * tests/test-isnanl.h (main): Likewise.
16315         * tests/test-ldexpl.h (main): Likewise.
16316         * tests/test-roundl.h (main): Likewise.
16317         * tests/test-truncl.h (main): Likewise.
16318         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
16319
16320 2009-02-26  Eric Blake  <ebb9@byu.net>
16321             Bruno Haible  <bruno@clisp.org>
16322
16323         Work around a *printf bug with %ls on Solaris.
16324         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
16325         precision is specified, sprintf stops converting the wide string
16326         argument when the number of bytes that have been produced by this
16327         conversion equals or exceeds the precision.
16328         * doc/posix-functions/fprintf.texi: Update.
16329         * doc/posix-functions/printf.texi: Update.
16330         * doc/posix-functions/snprintf.texi: Update.
16331         * doc/posix-functions/sprintf.texi: Update.
16332         * doc/posix-functions/vfprintf.texi: Update.
16333         * doc/posix-functions/vprintf.texi: Update.
16334         * doc/posix-functions/vsnprintf.texi: Update.
16335         * doc/posix-functions/vsprintf.texi: Update.
16336         * doc/glibc-functions/obstack_printf.texi: Update.
16337         * doc/glibc-functions/obstack_vprintf.texi: Update.
16338
16339 2009-02-26  Eric Blake  <ebb9@byu.net>
16340
16341         stdlib: favor compiler check of random.h
16342         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
16343         to avoid an ObjC random.h installed by Swarm.
16344
16345 2009-02-26  Bruno Haible  <bruno@clisp.org>
16346
16347         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
16348         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
16349         Reported by Gary V. Vaughan <gary@gnu.org>.
16350
16351 2009-02-26  Bruno Haible  <bruno@clisp.org>
16352
16353         Fix *printf behaviour regarding the %ls directive.
16354         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
16355         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
16356         NEED_PRINTF_DIRECTIVE_LS.
16357         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
16358         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
16359         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
16360         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
16361         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
16362         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
16363         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
16364         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
16365         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
16366         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
16367         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
16368         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
16369         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
16370         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
16371         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
16372         * doc/posix-functions/fprintf.texi: Update.
16373         * doc/posix-functions/printf.texi: Update.
16374         * doc/posix-functions/snprintf.texi: Update.
16375         * doc/posix-functions/sprintf.texi: Update.
16376         * doc/posix-functions/vfprintf.texi: Update.
16377         * doc/posix-functions/vprintf.texi: Update.
16378         * doc/posix-functions/vsnprintf.texi: Update.
16379         * doc/posix-functions/vsprintf.texi: Update.
16380         * doc/glibc-functions/obstack_printf.texi: Update.
16381         * doc/glibc-functions/obstack_vprintf.texi: Update.
16382         Reported by Eric Blake.
16383
16384 2009-02-25  Bruno Haible  <bruno@clisp.org>
16385
16386         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
16387         with known value.
16388         Reported by Gary V. Vaughan <gary@gnu.org>.
16389
16390 2009-02-25  Bruno Haible  <bruno@clisp.org>
16391
16392         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
16393         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
16394         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
16395         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
16396         Reported by Gary V. Vaughan <gary@gnu.org>.
16397
16398 2009-02-25  Bruno Haible  <bruno@clisp.org>
16399
16400         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
16401         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
16402         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
16403         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
16404         Reported by Gary V. Vaughan <gary@gnu.org>.
16405
16406 2009-02-25  Eric Blake  <ebb9@byu.net>
16407
16408         tests: skip fseek/ftell tests if ungetc is broken
16409         * m4/ungetc.m4: New file.
16410         * modules/fseek-tests: Split test, so ungetc dependency is
16411         separate from rest of test.
16412         * modules/fseeko-tests: Likewise.
16413         * modules/ftell-tests: Likewise.
16414         * modules/ftello-tests: Likewise.
16415         * tests/test-fseek.c (main): Isolate ungetc dependency.
16416         * tests/test-fseeko.c (main): Likewise.
16417         * tests/test-ftell.c (main): Likewise.
16418         * tests/test-ftello.c (main): Likewise.
16419         * tests/test-fseek2.sh: New file.
16420         * tests/test-fseeko2.sh: Likewise.
16421         * tests/test-ftell2.sh: Likewise.
16422         * tests/test-ftello2.sh: Likewise.
16423
16424 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
16425
16426         test-getaddrinfo: fix usage of skip return code 77
16427         * tests/test-gettaddrinfo.c: Return skip code 77 only
16428         for first occurance of skip (4x77 is not 77)
16429
16430 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
16431
16432         strtod: avoid C99 decl-after-statement
16433         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
16434
16435 2009-02-24  Eric Blake  <ebb9@byu.net>
16436
16437         strtod: detect HP-UX 11.31 bug
16438         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
16439         Reported by Gary V. Vaughan.
16440
16441 2009-02-23  Bruno Haible  <bruno@clisp.org>
16442
16443         Fix invalid read past end of memory block.
16444         * lib/vasnprintf.c (DCHAR_SET): Define.
16445         (local_wcslen): Define only when needed.
16446         (local_strnlen, local_wcsnlen): New functions.
16447         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
16448         directives that involve a conversion ourselves.
16449         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
16450         wcsnlen, mbrtowc, wcrtomb.
16451         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
16452         * tests/test-vasprintf-posix.c (test_function): Likewise.
16453         * tests/test-snprintf-posix.h (test_function): Likewise.
16454         * tests/test-sprintf-posix.h (test_function): Likewise.
16455         Reported by Ben Pfaff <blp@cs.stanford.edu>.
16456
16457 2009-02-22  Bruno Haible  <bruno@clisp.org>
16458
16459         Implement new clarified decomposition of Hangul syllables.
16460         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
16461         of type LTV, return only a pairwise decomposition.
16462         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
16463         Likewise.
16464         * tests/uninorm/test-decomposition.c (main): Updated expected result.
16465         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
16466         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
16467
16468 2009-02-22  Bruno Haible  <bruno@clisp.org>
16469
16470         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
16471         zero-length results and shrink excess allocated memory.
16472         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
16473         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
16474         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
16475         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
16476         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
16477         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
16478         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
16479         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
16480         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
16481         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
16482         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
16483         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
16484
16485 2009-02-21  Bruno Haible  <bruno@clisp.org>
16486
16487         * doc/gnulib.texi: Include safe-alloc.texi earlier.
16488         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
16489         spaces after a period. Put a space between a macro name and its
16490         argument list. Trivial rewordings.
16491         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
16492         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
16493         (main): Return 0 explicitly.
16494
16495 2009-02-21  Bruno Haible  <bruno@clisp.org>
16496
16497         Tests for module 'uninorm/filter'.
16498         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
16499         * modules/uninorm/filter-tests: New file.
16500
16501         New module 'uninorm/filter'.
16502         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
16503         uninorm_filter_flush, uninorm_filter_free): New declarations.
16504         * lib/uninorm/uninorm-filter.c: New file.
16505         * modules/uninorm/filter: New file.
16506
16507 2009-02-21  Bruno Haible  <bruno@clisp.org>
16508
16509         Tests for module 'uninorm/nfkc'.
16510         * tests/uninorm/test-nfkc.c: New file.
16511         * tests/uninorm/test-u8-nfkc.c: New file.
16512         * tests/uninorm/test-u16-nfkc.c: New file.
16513         * tests/uninorm/test-u32-nfkc.c: New file.
16514         * tests/uninorm/test-u32-nfkc-big.sh: New file.
16515         * tests/uninorm/test-u32-nfkc-big.c: New file.
16516         * modules/uninorm/nfkc-tests: New file.
16517
16518         New module 'uninorm/nfkc'.
16519         * lib/uninorm/nfkc.c: New file.
16520         * modules/uninorm/nfkc: New file.
16521
16522         Tests for module 'uninorm/nfkd'.
16523         * tests/uninorm/test-nfkd.c: New file.
16524         * tests/uninorm/test-u8-nfkd.c: New file.
16525         * tests/uninorm/test-u16-nfkd.c: New file.
16526         * tests/uninorm/test-u32-nfkd.c: New file.
16527         * tests/uninorm/test-u32-nfkd-big.sh: New file.
16528         * tests/uninorm/test-u32-nfkd-big.c: New file.
16529         * modules/uninorm/nfkd-tests: New file.
16530
16531         New module 'uninorm/nfkd'.
16532         * lib/uninorm/nfkd.c: New file.
16533         * modules/uninorm/nfkd: New file.
16534
16535         Tests for module 'uninorm/nfc'.
16536         * tests/uninorm/test-nfc.c: New file.
16537         * tests/uninorm/test-u8-nfc.c: New file.
16538         * tests/uninorm/test-u16-nfc.c: New file.
16539         * tests/uninorm/test-u32-nfc.c: New file.
16540         * tests/uninorm/test-u32-nfc-big.sh: New file.
16541         * tests/uninorm/test-u32-nfc-big.c: New file.
16542         * modules/uninorm/nfc-tests: New file.
16543
16544         New module 'uninorm/nfc'.
16545         * lib/uninorm/nfc.c: New file.
16546         * modules/uninorm/nfc: New file.
16547
16548         Tests for module 'uninorm/nfd'.
16549         * tests/uninorm/test-nfd.c: New file.
16550         * tests/uninorm/test-u8-nfd.c: New file.
16551         * tests/uninorm/test-u16-nfd.c: New file.
16552         * tests/uninorm/test-u32-nfd.c: New file.
16553         * tests/uninorm/test-u32-nfd-big.sh: New file.
16554         * tests/uninorm/test-u32-nfd-big.c: New file.
16555         * tests/uninorm/test-u32-normalize-big.h: New file.
16556         * tests/uninorm/test-u32-normalize-big.c: New file.
16557         * tests/uninorm/NormalizationTest.txt: New file, created from
16558         Unicode 5.1.0 NormalizationTest.txt.
16559         * modules/uninorm/nfd-tests: New file.
16560
16561         New module 'uninorm/nfd'.
16562         * lib/uninorm/nfd.c: New file.
16563         * modules/uninorm/nfd: New file.
16564
16565         New module 'uninorm/u32-normalize'.
16566         * lib/uninorm/u32-normalize.c: New file.
16567         * modules/uninorm/u32-normalize: New file.
16568
16569         New module 'uninorm/u16-normalize'.
16570         * lib/uninorm/u16-normalize.c: New file.
16571         * modules/uninorm/u16-normalize: New file.
16572
16573         New module 'uninorm/u8-normalize'.
16574         * lib/uninorm/u8-normalize.c: New file.
16575         * lib/uninorm/normalize-internal.h: New file.
16576         * lib/uninorm/u-normalize-internal.h: New file.
16577         * modules/uninorm/u8-normalize: New file.
16578
16579         New module 'uninorm/decompose-internal'.
16580         * lib/uninorm/decompose-internal.c: New file.
16581         * modules/uninorm/decompose-internal: New file.
16582
16583         Tests for module 'uninorm/composition'.
16584         * tests/uninorm/test-composition.c: New file.
16585         * modules/uninorm/composition-tests: New file.
16586
16587         New module 'uninorm/composition'.
16588         * lib/uninorm/composition.c: New file.
16589         * lib/uninorm/composition-table.gperf: New file, generated by
16590         gen-uni-tables.
16591         * modules/uninorm/composition: New file.
16592
16593         Tests for module 'uninorm/compat-decomposition'.
16594         * tests/uninorm/test-compat-decomposition.c: New file.
16595         * modules/uninorm/compat-decomposition-tests: New file.
16596
16597         New module 'uninorm/compat-decomposition'.
16598         * lib/uninorm/decompose-internal.h: New file.
16599         * lib/uninorm/compat-decomposition.c: New file.
16600         * modules/uninorm/compat-decomposition: New file.
16601
16602         Tests for module 'uninorm/canonical-decomposition'.
16603         * tests/uninorm/test-canonical-decomposition.c: New file.
16604         * modules/uninorm/canonical-decomposition-tests: New file.
16605
16606         New module 'uninorm/canonical-decomposition'.
16607         * lib/uninorm/canonical-decomposition.c: New file.
16608         * modules/uninorm/canonical-decomposition: New file.
16609
16610         Tests for module 'uninorm/decomposition'.
16611         * tests/uninorm/test-decomposition.c: New file.
16612         * modules/uninorm/decomposition-tests: New file.
16613
16614         New module 'uninorm/decomposition'.
16615         * lib/uninorm/decomposition.c: New file.
16616         * modules/uninorm/decomposition: New file.
16617
16618         New module 'uninorm/decomposition-table'.
16619         * lib/uninorm/decomposition-table.h: New file.
16620         * lib/uninorm/decomposition-table.c: New file.
16621         * lib/uninorm/decomposition-table1.h: New file, generated by
16622         gen-uni-tables.
16623         * lib/uninorm/decomposition-table2.h: New file, generated by
16624         gen-uni-tables.
16625         * modules/uninorm/decomposition-table: New file.
16626
16627         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
16628         (UC_DECOMP_*): New enumeration items.
16629         (get_decomposition): New function.
16630         (struct decomp_table): New type.
16631         (output_decomposition, output_decomposition_tables): New functions.
16632         (unicode_composition_exclusions): New variable.
16633         (fill_composition_exclusions, debug_output_composition_tables): New
16634         functions.
16635         (main): Accept one more argument. Invoke fill_composition_exclusions.
16636         Output decomposition and composition tables.
16637
16638         New module 'uninorm/base'.
16639         * lib/uninorm.h: New file.
16640         * lib/unictype.h: Update comment.
16641         * modules/uninorm/base: New file.
16642
16643 2009-02-21  David Lutterkort  <lutter@redhat.com>
16644
16645         Tests for module 'safe-alloc'.
16646         * tests/test-safe-alloc.c: New file.
16647         * modules/safe-alloc-tests: New file.
16648
16649         New module 'safe-alloc'.
16650         * lib/safe-alloc.h: New file.
16651         * lib/safe-alloc.c: New file.
16652         * m4/safe-alloc.m4: New file.
16653         * modules/safe-alloc: New file.
16654         * doc/safe-alloc.texi: New file.
16655         * doc/gnulib.texi: Include it.
16656         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
16657         safe-alloc.
16658
16659 2009-02-18  Bruno Haible  <bruno@clisp.org>
16660
16661         Fix link error on non-glibc systems.
16662         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
16663         variable.
16664         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16665
16666 2009-02-18  Jim Meyering  <meyering@redhat.com>
16667
16668         fts: avoid used-uninitialized error due to recent change
16669         * lib/fts.c (fts_read): Guard uses of the new member,
16670         parent->fts_n_dirs_remaining, since it's not relevant for
16671         the parent of a directory specified on the command-line.
16672
16673 2009-02-17  James Youngman  <jay@gnu.org>
16674             Bruno Haible  <bruno@clisp.org>
16675
16676         * m4/include_next.m4: Reformulate comment.
16677
16678 2009-02-16  Jim Meyering  <meyering@redhat.com>
16679
16680         fts: add #if guards so that the fts_lgpl module still builds
16681         * lib/fts.c: Guard just-added hash-table-using parts with
16682         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
16683         Reported by Simon Josefsson.
16684
16685 2009-02-15  Bruno Haible  <bruno@clisp.org>
16686
16687         * modules/array-mergesort-tests: New file.
16688         * tests/test-array-mergesort.c: New file.
16689
16690         New module 'array-mergesort'.
16691         * modules/array-mergesort: New file.
16692         * lib/array-mergesort.h: New file.
16693
16694 2009-02-15  Bruno Haible  <bruno@clisp.org>
16695
16696         Fix 2009-02-07 commit.
16697         * lib/gen-uni-tables.c (output_predicate, output_category,
16698         output_combclass, output_bidi_category, output_decimal_digit,
16699         output_digit, output_numeric, output_mirror, output_scripts,
16700         output_ident_category, output_simple_mapping): Fix format directives.
16701         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
16702
16703 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
16704
16705         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
16706         fixes are available from IBM.
16707
16708 2009-02-13  Jim Meyering  <meyering@redhat.com>
16709
16710         fts: arrange not to stat non-directories in more cases
16711         This makes GNU find (when it doesn't need to stat each file)
16712         *much* more efficient at traversing reiserfs file systems.
16713         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
16714         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
16715         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
16716         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
16717         (leaf_optimization_applies): New function.
16718         (LCO_hash, LCO_compare): New helper functions.
16719         (link_count_optimize_ok): New function.
16720         (fts_stat): Initialize new member (if dir).
16721         (fts_read): Decrement parent's fts_n_dirs_remaining count if
16722         we've just stat'ed a directory.  Skip the stat call when possible.
16723         ---
16724         Note this AFS-related exchange:
16725         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
16726         and note find's pioctl call in find/fstype.c.
16727         But that is necessary only if you want to enable the
16728         optimization for AFS, and for now, I don't.
16729
16730         fts: move a function definition "up" (no semantic change)
16731         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
16732         "up" to precede upcoming use of a related function.
16733
16734 2009-02-11  Jim Meyering  <meyering@redhat.com>
16735
16736         fts: correct internal computation of nlinks (optimization-related)
16737         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
16738         whether the current entry is a directory, so don't test it.
16739
16740 2009-02-10  Bruno Haible  <bruno@clisp.org>
16741
16742         Tests for module 'uniwbrk/ulc-wordbreaks'.
16743         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
16744         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
16745         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
16746
16747         Tests for module 'uniwbrk/u32-wordbreaks'.
16748         * modules/uniwbrk/u32-wordbreaks-tests: New file.
16749         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
16750
16751         Tests for module 'uniwbrk/u16-wordbreaks'.
16752         * modules/uniwbrk/u16-wordbreaks-tests: New file.
16753         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
16754
16755         Tests for module 'uniwbrk/u8-wordbreaks'.
16756         * modules/uniwbrk/u8-wordbreaks-tests: New file.
16757         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
16758
16759 2009-02-10  Bruno Haible  <bruno@clisp.org>
16760
16761         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
16762         property.
16763         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
16764         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
16765         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
16766
16767 2009-02-10  Simon Josefsson  <simon@josefsson.org>
16768
16769         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
16770         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
16771
16772 2009-02-10  Bruno Haible  <bruno@clisp.org>
16773
16774         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
16775         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
16776         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
16777         * lib/unilbrk/u8-possible-linebreaks.c: Update.
16778         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
16779         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
16780
16781 2009-02-09  Simon Josefsson  <simon@josefsson.org>
16782
16783         * lib/sockets.h (gl_fd_to_handle): New function.
16784
16785         * tests/test-sockets.c: Call gl_fd_to_handle.
16786
16787 2009-02-09  Bruno Haible  <bruno@clisp.org>
16788
16789         * doc/havelib.texi: Document the conventions on bi-arch systems.
16790
16791 2009-02-08  Bruno Haible  <bruno@clisp.org>
16792
16793         Document the AC_LIB_LINKFLAGS macro.
16794         * doc/havelib.texi: New file, mostly written on 2005-05-24.
16795         * doc/gnulib.texi: Include it.
16796
16797 2009-02-08  Bruno Haible  <bruno@clisp.org>
16798
16799         Fix wrong order of sections, compared to TOC.
16800         * doc/gnulib.texi: Include relocatable-maint.texi after the
16801         "Regular expressions" node, not before.
16802
16803 2009-02-08  Bruno Haible  <bruno@clisp.org>
16804
16805         Tests for module 'unicase/totitle'.
16806         * modules/unicase/totitle-tests: New file.
16807
16808         Tests for module 'unicase/tolower'.
16809         * modules/unicase/tolower-tests: New file.
16810
16811         Tests for module 'unicase/toupper'.
16812         * modules/unicase/toupper-tests: New file.
16813         * tests/unicase/test-mapping-part1.h: New file.
16814         * tests/unicase/test-mapping-part2.h: New file.
16815
16816         New module 'unicase/totitle'.
16817         * modules/unicase/totitle: New file.
16818         * lib/unicase/totitle.c: New file.
16819
16820         New module 'unicase/tolower'.
16821         * modules/unicase/tolower: New file.
16822         * lib/unicase/tolower.c: New file.
16823
16824         New module 'unicase/toupper'.
16825         * modules/unicase/toupper: New file.
16826         * lib/unicase/toupper.c: New file.
16827         * lib/unicase/simple-mapping.h: New file.
16828
16829         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
16830         (mapping_table): New structure.
16831         (output_simple_mapping): New function.
16832         (main): Invoke output_simple_mapping_test and output_simple_mapping.
16833         * modules/gen-uni-tables (Description): Update.
16834         * lib/unicase/toupper.h: New file, automatically generated by
16835         gen-uni-tables.
16836         * lib/unicase/tolower.h: New file, automatically generated by
16837         gen-uni-tables.
16838         * lib/unicase/totitle.h: New file, automatically generated by
16839         gen-uni-tables.
16840         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
16841         gen-uni-tables.
16842         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
16843         gen-uni-tables.
16844         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
16845         gen-uni-tables.
16846
16847         New module 'unicase/base'.
16848         * modules/unicase/base: New file.
16849         * lib/unicase.h: New file.
16850
16851 2009-02-08  Bruno Haible  <bruno@clisp.org>
16852
16853         New module 'uniwbrk/ulc-wordbreaks'.
16854         * modules/uniwbrk/ulc-wordbreaks: New file.
16855         * lib/uniwbrk/ulc-wordbreaks.c: New file.
16856
16857         New module 'uniwbrk/u32-wordbreaks'.
16858         * modules/uniwbrk/u32-wordbreaks: New file.
16859         * lib/uniwbrk/u32-wordbreaks.c: New file.
16860
16861         New module 'uniwbrk/u16-wordbreaks'.
16862         * modules/uniwbrk/u16-wordbreaks: New file.
16863         * lib/uniwbrk/u16-wordbreaks.c: New file.
16864
16865         New module 'uniwbrk/u8-wordbreaks'.
16866         * modules/uniwbrk/u8-wordbreaks: New file.
16867         * lib/uniwbrk/u8-wordbreaks.c: New file.
16868         * lib/uniwbrk/u-wordbreaks.h: New file.
16869
16870         New module 'uniwbrk/table'.
16871         * modules/uniwbrk/table: New file.
16872         * lib/uniwbrk/wbrktable.h: New file.
16873         * lib/uniwbrk/wbrktable.c: New file.
16874
16875         New module 'uniwbrk/wordbreak-property'.
16876         * modules/uniwbrk/wordbreak-property: New file.
16877         * lib/uniwbrk/wordbreak-property.c: New file.
16878
16879         * lib/gen-uni-tables.c (WBP_*): New enum items.
16880         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
16881         (unicode_org_wbp): New variable.
16882         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
16883         New functions.
16884         (wbp_table): New structure.
16885         (output_wbp, output_wbrk_tables): New functions.
16886         (main): Accept additional argument. Invoke fill_org_wbp,
16887         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
16888         output_wbrk_tables.
16889         * modules/gen-uni-tables (Description): Update.
16890         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
16891         gen-uni-tables.
16892
16893         New module 'uniwbrk/base'.
16894         * modules/uniwbrk/base: New file.
16895         * lib/uniwbrk.h: New file.
16896
16897 2009-02-08  Bruno Haible  <bruno@clisp.org>
16898
16899         Update to Unicode 5.1.0.
16900         * lib/gen-uni-tables.c (is_property_alphabetic): Include
16901         U+2185..U+2188.
16902         (is_property_default_ignorable_code_point): Don't include characters
16903         of category Cc or Cs and not-a-characters.
16904         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
16905         U+0D79, U+109E, U+109F, U+A60C.
16906         * lib/unictype/bidi_of.h: Regenerated.
16907         * lib/unictype/blocks.h: Regenerated.
16908         * lib/unictype/categ_C.h: Regenerated.
16909         * lib/unictype/categ_Cf.h: Regenerated.
16910         * lib/unictype/categ_Cn.h: Regenerated.
16911         * lib/unictype/categ_L.h: Regenerated.
16912         * lib/unictype/categ_Ll.h: Regenerated.
16913         * lib/unictype/categ_Lm.h: Regenerated.
16914         * lib/unictype/categ_Lo.h: Regenerated.
16915         * lib/unictype/categ_Lu.h: Regenerated.
16916         * lib/unictype/categ_M.h: Regenerated.
16917         * lib/unictype/categ_Mc.h: Regenerated.
16918         * lib/unictype/categ_Me.h: Regenerated.
16919         * lib/unictype/categ_Mn.h: Regenerated.
16920         * lib/unictype/categ_N.h: Regenerated.
16921         * lib/unictype/categ_Nd.h: Regenerated.
16922         * lib/unictype/categ_Nl.h: Regenerated.
16923         * lib/unictype/categ_No.h: Regenerated.
16924         * lib/unictype/categ_P.h: Regenerated.
16925         * lib/unictype/categ_Pd.h: Regenerated.
16926         * lib/unictype/categ_Pe.h: Regenerated.
16927         * lib/unictype/categ_Pf.h: Regenerated.
16928         * lib/unictype/categ_Pi.h: Regenerated.
16929         * lib/unictype/categ_Po.h: Regenerated.
16930         * lib/unictype/categ_Ps.h: Regenerated.
16931         * lib/unictype/categ_S.h: Regenerated.
16932         * lib/unictype/categ_Sk.h: Regenerated.
16933         * lib/unictype/categ_Sm.h: Regenerated.
16934         * lib/unictype/categ_So.h: Regenerated.
16935         * lib/unictype/categ_of.h: Regenerated.
16936         * lib/unictype/combining.h: Regenerated.
16937         * lib/unictype/ctype_alnum.h: Regenerated.
16938         * lib/unictype/ctype_alpha.h: Regenerated.
16939         * lib/unictype/ctype_graph.h: Regenerated.
16940         * lib/unictype/ctype_lower.h: Regenerated.
16941         * lib/unictype/ctype_print.h: Regenerated.
16942         * lib/unictype/ctype_punct.h: Regenerated.
16943         * lib/unictype/ctype_upper.h: Regenerated.
16944         * lib/unictype/decdigit.h: Regenerated.
16945         * lib/unictype/digit.h: Regenerated.
16946         * lib/unictype/mirror.h: Regenerated.
16947         * lib/unictype/numeric.h: Regenerated.
16948         * lib/unictype/pr_alphabetic.h: Regenerated.
16949         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
16950         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
16951         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
16952         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
16953         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
16954         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
16955         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
16956         * lib/unictype/pr_combining.h: Regenerated.
16957         * lib/unictype/pr_dash.h: Regenerated.
16958         * lib/unictype/pr_decimal_digit.h: Regenerated.
16959         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
16960         * lib/unictype/pr_deprecated.h: Regenerated.
16961         * lib/unictype/pr_diacritic.h: Regenerated.
16962         * lib/unictype/pr_extender.h: Regenerated.
16963         * lib/unictype/pr_format_control.h: Regenerated.
16964         * lib/unictype/pr_grapheme_base.h: Regenerated.
16965         * lib/unictype/pr_grapheme_extend.h: Regenerated.
16966         * lib/unictype/pr_grapheme_link.h: Regenerated.
16967         * lib/unictype/pr_id_continue.h: Regenerated.
16968         * lib/unictype/pr_id_start.h: Regenerated.
16969         * lib/unictype/pr_ideographic.h: Regenerated.
16970         * lib/unictype/pr_ignorable_control.h: Regenerated.
16971         * lib/unictype/pr_lowercase.h: Regenerated.
16972         * lib/unictype/pr_math.h: Regenerated.
16973         * lib/unictype/pr_numeric.h: Regenerated.
16974         * lib/unictype/pr_other_alphabetic.h: Regenerated.
16975         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
16976         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
16977         * lib/unictype/pr_other_id_continue.h: Regenerated.
16978         * lib/unictype/pr_other_lowercase.h: Regenerated.
16979         * lib/unictype/pr_other_math.h: Regenerated.
16980         * lib/unictype/pr_punctuation.h: Regenerated.
16981         * lib/unictype/pr_sentence_terminal.h: Regenerated.
16982         * lib/unictype/pr_soft_dotted.h: Regenerated.
16983         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
16984         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
16985         * lib/unictype/pr_unified_ideograph.h: Regenerated.
16986         * lib/unictype/pr_uppercase.h: Regenerated.
16987         * lib/unictype/pr_xid_continue.h: Regenerated.
16988         * lib/unictype/pr_xid_start.h: Regenerated.
16989         * lib/unictype/pr_zero_width.h: Regenerated.
16990         * lib/unictype/scripts.h: Regenerated.
16991         * lib/unictype/scripts_byname.gperf: Regenerated.
16992         * lib/unictype/sy_java_ident.h: Regenerated.
16993         * lib/unilbrk/lbrkprop1.h: Regenerated.
16994         * lib/unilbrk/lbrkprop2.h: Regenerated.
16995         * tests/unictype/test-categ_C.c: Regenerated.
16996         * tests/unictype/test-categ_Cf.c: Regenerated.
16997         * tests/unictype/test-categ_Cn.c: Regenerated.
16998         * tests/unictype/test-categ_L.c: Regenerated.
16999         * tests/unictype/test-categ_Ll.c: Regenerated.
17000         * tests/unictype/test-categ_Lm.c: Regenerated.
17001         * tests/unictype/test-categ_Lo.c: Regenerated.
17002         * tests/unictype/test-categ_Lu.c: Regenerated.
17003         * tests/unictype/test-categ_M.c: Regenerated.
17004         * tests/unictype/test-categ_Mc.c: Regenerated.
17005         * tests/unictype/test-categ_Me.c: Regenerated.
17006         * tests/unictype/test-categ_Mn.c: Regenerated.
17007         * tests/unictype/test-categ_N.c: Regenerated.
17008         * tests/unictype/test-categ_Nd.c: Regenerated.
17009         * tests/unictype/test-categ_Nl.c: Regenerated.
17010         * tests/unictype/test-categ_No.c: Regenerated.
17011         * tests/unictype/test-categ_P.c: Regenerated.
17012         * tests/unictype/test-categ_Pd.c: Regenerated.
17013         * tests/unictype/test-categ_Pe.c: Regenerated.
17014         * tests/unictype/test-categ_Pf.c: Regenerated.
17015         * tests/unictype/test-categ_Pi.c: Regenerated.
17016         * tests/unictype/test-categ_Po.c: Regenerated.
17017         * tests/unictype/test-categ_Ps.c: Regenerated.
17018         * tests/unictype/test-categ_S.c: Regenerated.
17019         * tests/unictype/test-categ_Sk.c: Regenerated.
17020         * tests/unictype/test-categ_Sm.c: Regenerated.
17021         * tests/unictype/test-categ_So.c: Regenerated.
17022         * tests/unictype/test-ctype_alnum.c: Regenerated.
17023         * tests/unictype/test-ctype_alpha.c: Regenerated.
17024         * tests/unictype/test-ctype_graph.c: Regenerated.
17025         * tests/unictype/test-ctype_lower.c: Regenerated.
17026         * tests/unictype/test-ctype_print.c: Regenerated.
17027         * tests/unictype/test-ctype_punct.c: Regenerated.
17028         * tests/unictype/test-ctype_upper.c: Regenerated.
17029         * tests/unictype/test-decdigit.h: Regenerated.
17030         * tests/unictype/test-digit.h: Regenerated.
17031         * tests/unictype/test-numeric.h: Regenerated.
17032         * tests/unictype/test-pr_alphabetic.c: Regenerated.
17033         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
17034         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
17035         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
17036         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
17037         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
17038         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
17039         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
17040         * tests/unictype/test-pr_combining.c: Regenerated.
17041         * tests/unictype/test-pr_dash.c: Regenerated.
17042         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
17043         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
17044         * tests/unictype/test-pr_deprecated.c: Regenerated.
17045         * tests/unictype/test-pr_diacritic.c: Regenerated.
17046         * tests/unictype/test-pr_extender.c: Regenerated.
17047         * tests/unictype/test-pr_format_control.c: Regenerated.
17048         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
17049         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
17050         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
17051         * tests/unictype/test-pr_id_continue.c: Regenerated.
17052         * tests/unictype/test-pr_id_start.c: Regenerated.
17053         * tests/unictype/test-pr_ideographic.c: Regenerated.
17054         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
17055         * tests/unictype/test-pr_lowercase.c: Regenerated.
17056         * tests/unictype/test-pr_math.c: Regenerated.
17057         * tests/unictype/test-pr_numeric.c: Regenerated.
17058         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
17059         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
17060         Regenerated.
17061         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
17062         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
17063         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
17064         * tests/unictype/test-pr_other_math.c: Regenerated.
17065         * tests/unictype/test-pr_punctuation.c: Regenerated.
17066         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
17067         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
17068         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
17069         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
17070         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
17071         * tests/unictype/test-pr_uppercase.c: Regenerated.
17072         * tests/unictype/test-pr_xid_continue.c: Regenerated.
17073         * tests/unictype/test-pr_xid_start.c: Regenerated.
17074         * tests/unictype/test-pr_zero_width.c: Regenerated.
17075
17076         Update to Unicode 5.1.0.
17077         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
17078         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
17079         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
17080         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
17081         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
17082         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
17083         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
17084         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
17085         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
17086         (nonspacing_table_ind): Update.
17087         * tests/uniwidth/test-uc_width2.sh: Update expected result.
17088
17089         Update to Unicode 5.1.0.
17090         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
17091         code transform.
17092         * lib/uniname/uniname.c (unicode_character_name,
17093         unicode_name_character): Add the range 0x1Fxxx to the code transform.
17094         * lib/uniname/uninames.h: Regenerated.
17095         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
17096
17097 2009-02-07  Bruno Haible  <bruno@clisp.org>
17098
17099         Merge gen-ctype and gen-lbrk into a single program.
17100         * lib/gen-uni-tables.c: New file, incorporating
17101         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
17102         Add directory prefixes to the names of the generated files.
17103         * lib/unictype/gen-ctype.c: Remove file.
17104         * lib/unilbrk/gen-lbrk.c: Remove file.
17105         * modules/gen-uni-tables: New file.
17106         * modules/unictype/gen-ctype: Remove file.
17107         * modules/unilbrk/gen-lbrk: Remove file.
17108
17109 2009-02-07  Bruno Haible  <bruno@clisp.org>
17110
17111         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
17112
17113         New module 'unistr/u32-strcoll'.
17114         * modules/unistr/u32-strcoll: New file.
17115         * lib/unistr/u32-strcoll.c: New file.
17116
17117         New module 'unistr/u16-strcoll'.
17118         * modules/unistr/u16-strcoll: New file.
17119         * lib/unistr/u16-strcoll.c: New file.
17120
17121         New module 'unistr/u8-strcoll'.
17122         * modules/unistr/u8-strcoll: New file.
17123         * lib/unistr/u8-strcoll.c: New file.
17124         * lib/unistr/u-strcoll.h: New file.
17125
17126 2009-02-07  Bruno Haible  <bruno@clisp.org>
17127
17128         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
17129         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
17130         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
17131         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
17132         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
17133         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
17134
17135 2009-02-07  Bruno Haible  <bruno@clisp.org>
17136
17137         Make 64-bit clean.
17138         * lib/unictype/gen-ctype.c (output_predicate, output_category,
17139         output_combclass, output_bidi_category, output_decimal_digit,
17140         output_digit, output_numeric, output_mirror, output_scripts,
17141         output_ident_category): Use proper width specifier in format strings.
17142
17143 2009-02-07  Bruno Haible  <bruno@clisp.org>
17144
17145         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
17146         failure behaviour.
17147
17148 2009-02-07  Jim Meyering  <meyering@redhat.com>
17149
17150         regex: avoid compilation failure with upcoming gcc-4.4
17151         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
17152         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
17153         "... error: integer overflow in preprocessor expression".
17154
17155 2009-02-05  Ben Pfaff  <blp@gnu.org>
17156
17157         Fix link errors on Windows when close module is used.
17158         * modules/close: Add $(LIB_CLOSE) to Link section.
17159         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
17160         $(LIB_CLOSE) on Windows.
17161
17162 2009-02-05  Jim Meyering  <meyering@redhat.com>
17163
17164         still avoid unused-parameter warnings, but do it cleanly
17165         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
17166         (get_fs_usage): Cast to void instead.
17167         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
17168         (dev_from_mount_options, read_file_system_list): Cast to void.
17169         Prompted by Bruno Haible.
17170
17171 2009-02-04  Jim Meyering  <meyering@redhat.com>
17172
17173         fsusage.c: correct copyright year
17174         * lib/fsusage.c: Reflect year in which the change is pushed into
17175
17176         avoid misc. warnings
17177         * lib/fsusage.c (UNUSED_PARAM): Define.
17178         (get_fs_usage): Mark parameter "disk" as unused.
17179         * lib/getugroups.c (getgrent): Use "void" in prototype.
17180         * lib/mountlist.c: Mark unused parameters.
17181         (read_file_system_list): Declare a local with "const".
17182         * lib/nanosleep.c (getnow): Declare static.
17183         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
17184
17185         dirfd: set errno upon failure
17186         * lib/dirfd.c: Include <errno.h>.
17187         Set errno to ENOTSUP when returning -1.
17188         * modules/dirfd (Depends-on): Add errno.
17189         Suggested by John Kodis <kodis@comcast.net>.
17190
17191 2009-02-01  Bruno Haible  <bruno@clisp.org>
17192
17193         Don't assume sizeof (long) >= sizeof (void *).
17194         * lib/memcmp.c: Include stdint.h.
17195         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
17196         srcp2 to 'const byte *'.
17197         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
17198         types to uintptr_t.
17199         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
17200         * modules/memcmp (Depends-on): Add stdint.
17201         Reported by Ozkan Sezer <sezeroz@gmail.com>.
17202
17203 2009-01-30  Eric Blake  <ebb9@byu.net>
17204
17205         fix more require-before-expand issues
17206         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
17207         expand, AC_PROG_AWK.
17208         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
17209
17210 2009-01-28  Eric Blake  <ebb9@byu.net>
17211
17212         version-etc: use consistent URL formatting
17213         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
17214         Improve formatting.  Use fputs for string without %.
17215
17216 2009-01-28  Jim Meyering  <meyering@redhat.com>
17217
17218         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
17219         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
17220         "underquoted definition of NAME" from autoconf-2.59.
17221
17222 2009-01-28  Bruno Haible  <bruno@clisp.org>
17223
17224         * doc/gnulib.texi: Add "Obsolete modules" to index.
17225
17226 2009-01-28  Jim Meyering  <meyering@redhat.com>
17227
17228         useless-if-before-free: recognize more variants
17229         * build-aux/useless-if-before-free: Also recognize e.g.,
17230         if (NULL != p) free (p);
17231
17232 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
17233
17234         test-getaddrinfo: skip (don't fail) this test when there's no network
17235         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
17236         on the presumption that it means you lack network access.
17237
17238 2009-01-26  Jim Meyering  <meyering@redhat.com>
17239
17240         fflush: avoid warnings on modern systems
17241         * lib/fflush.c (rpl_fflush): Move declarations of locals,
17242         pos and result, into scopes where they're used.
17243
17244 2009-01-26  Eric Blake  <ebb9@byu.net>
17245
17246         Silence warning reintroduced by recent extensions patch.
17247         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
17248         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
17249         autoconf.
17250
17251         Backport improved autoconf semantics of AC_DEFUN_ONCE.
17252         * m4/00gnulib.m4: New file.
17253         * gnulib-tool (func_get_filelist): Always use it.
17254         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
17255         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
17256
17257 2009-01-25  Bruno Haible  <bruno@clisp.org>
17258
17259         Make test-quotearg work on MacOS X and AIX.
17260         * tests/test-quotearg.sh: New file.
17261         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
17262         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
17263         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
17264         include <libintl.h>.
17265         (fake_locale): Remove variable.
17266         (gettext, dgettext, dcgettext): Remove functions.
17267         (main): Instead of setting a fake locale, set a real locale. Call
17268         textdomain and bindtextdomain.
17269         * modules/quotearg-tests (Files): Add the new files.
17270         (Depends-on): Add gettext, setenv, unsetenv.
17271         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
17272         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
17273         Augment TESTS_ENVIRONMENT.
17274
17275 2009-01-25  Bruno Haible  <bruno@clisp.org>
17276
17277         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
17278         fr_FR.ISO8859-1 locale on MacOS X.
17279         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
17280         ja_JP.eucJP locale on MacOS X.
17281         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
17282         zh_CN.GB18030 locale on MacOS X.
17283
17284 2009-01-25  Bruno Haible  <bruno@clisp.org>
17285
17286         Avoid link errors on MacOS X 10.3.
17287         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
17288         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
17289
17290 2009-01-25  Bruno Haible  <bruno@clisp.org>
17291
17292         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
17293         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
17294         * modules/pipe (Files): Remove m4/posix_spawn.m4.
17295         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
17296         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
17297         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
17298         posix_spawnattr_init, posix_spawnattr_setsigmask,
17299         posix_spawnattr_setflags, posix_spawnattr_destroy.
17300
17301         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
17302         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
17303         * modules/execute (Files): Remove m4/posix_spawn.m4.
17304         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
17305         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
17306         posix_spawnattr_init, posix_spawnattr_setsigmask,
17307         posix_spawnattr_setflags, posix_spawnattr_destroy.
17308
17309 2009-01-25  Bruno Haible  <bruno@clisp.org>
17310
17311         * lib/glthread/threadlib.c: Include <stdlib.h>.
17312
17313 2009-01-25  Bruno Haible  <bruno@clisp.org>
17314
17315         * lib/glthread/threadlib.c (dummy): New declaration.
17316
17317 2009-01-25  Bruno Haible  <bruno@clisp.org>
17318
17319         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
17320         multibyte characters also for the GB18030 encoding. Don't crash when
17321         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
17322
17323 2009-01-25  Bruno Haible  <bruno@clisp.org>
17324
17325         Avoid redefining 'struct random_data' on OSF/1 5.1.
17326         * lib/stdlib.in.h: Include <random.h> if it exists.
17327         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
17328         HAVE_RANDOM_H. Include <random.h> when testing whether
17329         'struct random_data' exists.
17330         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
17331
17332 2009-01-25  Bruno Haible  <bruno@clisp.org>
17333
17334         Don't install charset.alias on MacOS X >= 10.3.
17335         * lib/localcharset.c (DARWIN7): New macro.
17336         (get_charset_aliases): Hardcode the result for Darwin7.
17337         * modules/localcharset (install-exec-local): Don't install
17338         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
17339
17340 2009-01-25  Bruno Haible  <bruno@clisp.org>
17341
17342         Don't install charset.alias on mingw and Cygwin.
17343         * modules/localcharset (install-exec-local): Don't install
17344         charset.alias on mingw and Cygwin, if the file does not yet exist.
17345         The result for these platforms is hardcoded in localcharset.c.
17346
17347 2009-01-25  Bruno Haible  <bruno@clisp.org>
17348
17349         Make it possible again to use AC_GNU_SOURCE together with gnulib.
17350         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
17351         before requiring AC_USE_SYSTEM_EXTENSIONS.
17352
17353 2009-01-25  Jim Meyering  <meyering@redhat.com>
17354
17355         c-strtod: avoid warnings
17356         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
17357         "assignment discards qualifiers from pointer target type" warnings.
17358
17359 2009-01-24  Bruno Haible  <bruno@clisp.org>
17360
17361         Add support for non-UTF-8 locales on MacOS X.
17362         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
17363         canonical encodings. For Darwin 7 and newer, don't map traditional
17364         encodings to UTF-8.
17365         Reported by Vincent Lefevre <vincent@vinc17.org>
17366         at <http://savannah.gnu.org/bugs/?25235>.
17367
17368 2009-01-24  Bruno Haible  <bruno@clisp.org>
17369
17370         * doc/gnulib.texi (Obsolete modules): New section.
17371         Reported by Mike Frysinger <vapier@gentoo.org>.
17372
17373 2009-01-24  Bruno Haible  <bruno@clisp.org>
17374
17375         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
17376         (%.dvi): New rule.
17377
17378 2009-01-24  Bruno Haible  <bruno@clisp.org>
17379
17380         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
17381         Reported by Eric Blake.
17382
17383 2009-01-24  Bruno Haible  <bruno@clisp.org>
17384
17385         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
17386         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
17387         Reported by Gary V. Vaughan <gary@gnu.org>.
17388
17389 2009-01-24  Bruno Haible  <bruno@clisp.org>
17390
17391         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
17392
17393 2009-01-23  Bruno Haible  <bruno@clisp.org>
17394
17395         Make c-strtod, c-strtold usable in libraries.
17396         * lib/c-strtod.c: Include string.h instead of xalloc.h.
17397         (C_STRTOD): Call strdup instead of xstrdup.
17398         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
17399         * modules/c-strtold (Depends-on): Likewise.
17400         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
17401         * NEWS: Mention the change.
17402         Reported by Michael Gold <mgold@ncf.ca>.
17403
17404 2009-01-23  Jim Meyering  <meyering@redhat.com>
17405
17406         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
17407         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
17408         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
17409
17410 2009-01-23  Simon Josefsson  <simon@josefsson.org>
17411
17412         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
17413         GNU CoreUtils.
17414         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
17415         * modules/version-etc (Description): Update.
17416
17417 2009-01-22  Bruno Haible  <bruno@clisp.org>
17418
17419         Cache the C locale object.
17420         * lib/c-strtod.c (c_locale_cache): New variable.
17421         (c_locale): New function.
17422         (C_STRTOD): Use it, and don't call freelocale.
17423         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
17424         Suggested by Paolo Bonzini.
17425
17426 2009-01-21  Bruno Haible  <bruno@clisp.org>
17427
17428         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
17429         conditions other than overflow.
17430
17431 2009-01-21  Bruno Haible  <bruno@clisp.org>
17432
17433         * lib/c-strtod.c: Include errno.h.
17434         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
17435         value from STRTOD_L and STRTOD.
17436
17437 2009-01-21  Bruno Haible  <bruno@clisp.org>
17438         and Jim Meyering  <meyering@redhat.com>
17439
17440         nanosleep: skip configure test (fail it) for apple universal builds
17441         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
17442         universal builds, assume that nanosleep does not work.
17443         * modules/nanosleep (Depends-on): Add multiarch.
17444
17445         mktime: skip configure test (fail it) for apple universal builds
17446         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
17447         universal builds, assume that mktime does not work.
17448         * modules/mktime (Depends-on): Add multiarch.
17449
17450 2009-01-21  Eric Blake  <ebb9@byu.net>
17451
17452         multiarch: avoid expand-before-require warning
17453         * modules/multiarch (configure.ac): Require, rather than expand,
17454         gl_MULTIARCH.
17455         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
17456         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
17457         enforce that all clients require it.  Partial reversion of
17458         2008-12-29 patch.
17459
17460         error: avoid expand-before-require warning
17461         * modules/errno (configure.ac): Require, rather than expand,
17462         gl_HEADER_ERRNO_H.
17463         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
17464         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
17465         enforce that all clients require it.
17466
17467         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
17468         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
17469         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
17470         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
17471
17472 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
17473
17474         Revert:
17475         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
17476
17477         regex: do not depend on obsolete modules.
17478         * modules/regex: Remove memcmp and memmove.
17479
17480 2009-01-20  Bruno Haible  <bruno@clisp.org>
17481
17482         Make the 'link' module link on Windows NT 4.
17483         * lib/link.c (_WIN32_WINNT): Don't define.
17484         (CreateHardLinkFuncType): New type.
17485         (CreateHardLinkFunc, initialized): New variables.
17486         (initialize): New function.
17487         (link): Invoke CreateHardLink indirectly through the function pointer.
17488
17489 2009-01-20  Bruno Haible  <bruno@clisp.org>
17490
17491         Fix compilation failure on mingw.
17492         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
17493
17494 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
17495
17496         * doc/c-strtod.texi: Mention a couple of restrictions.
17497
17498 2009-01-20  Jim Meyering  <meyering@redhat.com>
17499
17500         gettimeofday: move more declarations out of functions
17501         * lib/gettimeofday.c: Move extern declarations of tzset and
17502         gmtime out of containing functions.  Prompted by Bruno Haible.
17503
17504 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
17505
17506         regex: do not depend on obsolete modules.
17507         * modules/regex: Remove memcmp and memmove.
17508
17509 2009-01-19  Bruno Haible  <bruno@clisp.org>
17510
17511         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
17512         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
17513         gl_BIGENDIAN, not AC_C_BIGENDIAN.
17514         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
17515         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
17516
17517 2009-01-19  Bruno Haible  <bruno@clisp.org>
17518
17519         * tests/test-link.c: Include <errno.h>.
17520         (main): Exit with code 77 when a hard link cannot be created due to
17521         the file system.
17522         * tests/test-link.sh: Skip test when a hard link cannot be created due
17523         to the file system.
17524         Suggested by Eric Blake.
17525
17526 2009-01-19  Martin Lambers  <marlam@marlam.de>
17527
17528         * modules/link-tests: New file.
17529         * tests/test-link.sh: New file.
17530         * tests/test-link.c: New file.
17531
17532 2009-01-19  Eric Blake  <ebb9@byu.net>
17533
17534         doc: mention another function added in cygwin 1.7.0
17535         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
17536         Another new function in cygwin 1.7.
17537
17538 2009-01-19  Bruno Haible  <bruno@clisp.org>
17539
17540         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
17541         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
17542         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
17543         gl_BIGENDIAN, not AC_C_BIGENDIAN.
17544         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
17545         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
17546         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
17547         * m4/md4.m4 (gl_MD4): Likewise.
17548         * m4/md5.m4 (gl_MD5): Likewise.
17549         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
17550         * m4/sha1.m4 (gl_SHA1): Likewise.
17551         * m4/sha256.m4 (gl_SHA256): Likewise.
17552         * m4/sha512.m4 (gl_SHA512): Likewise.
17553
17554 2009-01-19  Bruno Haible  <bruno@clisp.org>
17555
17556         * modules/uniname/uniname-tests (Depends-on): Add progname.
17557         * tests/uniname/test-uninames.c: Include progname.h.
17558         (main): Call set_program_name.
17559
17560         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
17561         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
17562         (main): Call set_program_name.
17563
17564         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
17565         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
17566         (main): Call set_program_name.
17567
17568         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
17569         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
17570         (main): Call set_program_name.
17571
17572         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
17573         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
17574         (main): Call set_program_name.
17575
17576         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
17577         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
17578         (main): Call set_program_name.
17579
17580         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
17581         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
17582         (main): Call set_program_name.
17583
17584         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
17585         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
17586         (main): Call set_program_name.
17587
17588         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
17589         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
17590         (main): Call set_program_name.
17591
17592 2009-01-19  Eric Blake  <ebb9@byu.net>
17593
17594         test-unistd: test previous patch
17595         * tests/test-unistd.c: Test *_FILENO macros.
17596
17597         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
17598         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
17599         Guarantee a definition.
17600         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
17601         * modules/unistd-safer (Depends-on): Add dependency on unistd.
17602         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
17603         * lib/dup-safer.c (STDERR_FILENO): Likewise.
17604         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
17605         Likewise.
17606         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
17607         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
17608         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
17609         Likewise.
17610         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
17611         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
17612         (STDERR_FILENO): Likewise.
17613         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
17614         (STDERR_FILENO): Likewise.
17615         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
17616         (STDERR_FILENO): Likewise.
17617         Reported by Elbert Pol.
17618
17619 2009-01-19  Eric Blake  <ebb9@byu.net>
17620
17621         doc: mention more functions added in cygwin 1.7.0
17622         * doc/posix-functions/abort.texi (abort): Update wording related
17623         to cygwin.
17624         * doc/posix-functions/daylight.texi (daylight): Likewise.
17625         * doc/posix-functions/optarg.texi (optarg): Likewise.
17626         * doc/posix-functions/optarg.texi (opterr): Likewise.
17627         * doc/posix-functions/optarg.texi (optind): Likewise.
17628         * doc/posix-functions/optarg.texi (optopt): Likewise.
17629         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
17630         worked in 1.5.x, and was withdrawn in 1.7.
17631         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
17632         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
17633         cygwin versions.
17634         * doc/posix-functions/perror.texi (perror): Likewise.
17635         * doc/posix-functions/printf.texi (printf): Likewise.
17636         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
17637         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
17638         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
17639         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
17640         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
17641         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
17642         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
17643         Likewise.
17644         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
17645         Likewise.
17646         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
17647         this function.
17648         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
17649         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
17650         Likewise.
17651         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
17652         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
17653         * doc/posix-functions/confstr.texi (confstr): Likewise.
17654         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
17655         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
17656         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
17657         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
17658         * doc/posix-functions/fputws.texi (fputws): Likewise.
17659         * doc/posix-functions/fwide.texi (fwide): Likewise.
17660         * doc/posix-functions/getwc.texi (getwc): Likewise.
17661         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
17662         * doc/posix-functions/putwc.texi (putwc): Likewise.
17663         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
17664         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
17665         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
17666         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
17667         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
17668         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
17669         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
17670         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
17671         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
17672         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
17673         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
17674
17675 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
17676
17677         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
17678         * lib/ioctl.c: Include <sys/ioctl.h>.
17679
17680 2009-01-19  Simon Josefsson  <simon@josefsson.org>
17681
17682         * modules/getdate-tests (Depends-on): Add progname.
17683         * tests/test-getdate.c: Use progname module, to avoid link errors
17684         on non-glibc systems.
17685
17686 2009-01-18  Simon Josefsson  <simon@josefsson.org>
17687
17688         * modules/filenamecat-tests (Depends-on): Add progname.
17689         * modules/fstrcmp-tests (Depends-on): Likewise.
17690
17691         * tests/test-filenamecat.c: Use progname module, to avoid link
17692         errors on non-glibc systems.
17693         * tests/test-fstrcmp.c: Likewise.
17694
17695 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
17696
17697         gettimeofday: avoid warning: nested extern declaration of 'localtime'
17698         * lib/gettimeofday.c: Move extern declaration out of function.
17699
17700 2009-01-18  Bruno Haible  <bruno@clisp.org>
17701
17702         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
17703         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
17704         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
17705
17706 2009-01-18  Bruno Haible  <bruno@clisp.org>
17707
17708         * lib/strftime.c (MEMPCPY): Remove unused macro.
17709         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
17710
17711 2009-01-18  Martin Lambers  <marlam@marlam.de>
17712
17713         New module 'link'.
17714         * lib/unistd.in.h (link): New declaration.
17715         * lib/link.c: New file.
17716         * m4/link.m4: New file.
17717         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
17718         HAVE_LINK.
17719         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
17720         * modules/link: New file.
17721         * doc/posix-functions/link.texi: Mention the new module.
17722
17723 2009-01-18  Bruno Haible  <bruno@clisp.org>
17724
17725         * tests/test-avltree_list.c (main): Call set_program_name.
17726         * tests/test-avltree_oset.c (main): Likewise.
17727         * tests/test-obstack-printf.c: Include progname.h.
17728         (main): Call set_program_name.
17729         * tests/test-quotearg.c: Include progname.h.
17730         (main): Call set_program_name.
17731         * tests/test-xmemdup0.c: Include progname.h.
17732         (main): Call set_program_name.
17733
17734 2009-01-18  Bruno Haible  <bruno@clisp.org>
17735
17736         New module 'alphasort'.
17737         * lib/dirent.in.h (alphasort): New declaration.
17738         * lib/alphasort.c: New file, from glibc with modifications.
17739         * m4/alphasort.m4: New file.
17740         * modules/alphasort: New file.
17741         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
17742         HAVE_ALPHASORT.
17743         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
17744         HAVE_ALPHASORT.
17745         * doc/posix-functions/alphasort.texi: Mention the new module and the
17746         portability problems.
17747
17748 2009-01-18  Bruno Haible  <bruno@clisp.org>
17749
17750         New module 'scandir'.
17751         * lib/dirent.in.h (scandir): New declaration.
17752         * lib/scandir.c: New file, from glibc with modifications.
17753         * m4/scandir.m4: New file.
17754         * modules/scandir: New file.
17755         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
17756         HAVE_SCANDIR.
17757         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
17758         HAVE_SCANDIR.
17759         * doc/posix-functions/scandir.texi: Mention the new module and the
17760         portability problems.
17761
17762 2009-01-17  Bruno Haible  <bruno@clisp.org>
17763
17764         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
17765         Update documentation.
17766         (func_remove_suffix): Escape all dots in the suffix. Update
17767         documentation.
17768         (func_filter_filelist): Update documentation.
17769         Reported by Ralf Wildenhues.
17770
17771 2009-01-17  Bruno Haible  <bruno@clisp.org>
17772
17773         * modules/dprintf-posix-tests: New file.
17774         * tests/test-dprintf-posix.sh: New file.
17775         * tests/test-dprintf-posix.c: New file.
17776
17777         New modules 'dprintf', 'dprintf-posix'.
17778         * lib/stdio.in.h (dprintf): New declaration.
17779         * lib/dprintf.c: New file.
17780         * m4/dprintf.m4: New file.
17781         * m4/dprintf-posix.m4: New file.
17782         * modules/dprintf: New file.
17783         * modules/dprintf-posix: New file.
17784         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
17785         HAVE_DPRINTF, REPLACE_DPRINTF.
17786         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
17787         HAVE_DPRINTF, REPLACE_DPRINTF.
17788         * doc/posix-functions/dprintf.texi: Mention the new modules.
17789
17790 2009-01-17  Bruno Haible  <bruno@clisp.org>
17791
17792         * modules/vdprintf-posix-tests: New file.
17793         * tests/test-vdprintf-posix.sh: New file.
17794         * tests/test-vdprintf-posix.c: New file.
17795
17796         New modules 'vdprintf', 'vdprintf-posix'.
17797         * lib/stdio.in.h (vdprintf): New declaration.
17798         * lib/vdprintf.c: New file.
17799         * m4/vdprintf.m4: New file.
17800         * m4/vdprintf-posix.m4: New file.
17801         * modules/vdprintf: New file.
17802         * modules/vdprintf-posix: New file.
17803         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
17804         HAVE_VDPRINTF, REPLACE_VDPRINTF.
17805         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
17806         HAVE_VDPRINTF, REPLACE_VDPRINTF.
17807         * doc/posix-functions/vdprintf.texi: Mention the new modules.
17808
17809 2009-01-17  Bruno Haible  <bruno@clisp.org>
17810
17811         Fix replacement of fopen on mingw.
17812         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
17813         mingw.
17814
17815 2009-01-17  Bruno Haible  <bruno@clisp.org>
17816
17817         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
17818         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
17819
17820 2009-01-17  Bruno Haible  <bruno@clisp.org>
17821
17822         Avoid test-fflush2.sh failure on mingw.
17823         * tests/test-fflush2.c: Include binary-io.h.
17824         (main): Put standard input into binary mode.
17825         * modules/fflush-tests (Depends-on): Add binary-io.
17826
17827 2009-01-17  Bruno Haible  <bruno@clisp.org>
17828
17829         * lib/wchar.in.h: In another particular situation, include only the
17830         system's <wchar.h> file.
17831         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
17832         Reported by Albert Chin-A-Young <china@thewrittenword.com>
17833         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
17834
17835 2009-01-17  Bruno Haible  <bruno@clisp.org>
17836
17837         Support for stripping executables in --enable-relocatable.
17838         * build-aux/install-reloc: Expect one more argument, or an environment
17839         variable RELOC_STRIP_PROG. If set, strip the destination program and
17840         its wrapper.
17841         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
17842         RELOC_STRIP_PROG.
17843         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
17844         to set RELOCATABLE_STRIP.
17845         * NEWS: Mention the new Makefile requirement.
17846
17847 2009-01-17  Bruno Haible  <bruno@clisp.org>
17848
17849         * build-aux/install-reloc: Remove debugging information left over by
17850         C compiler on MacOS X.
17851
17852 2009-01-17  Bruno Haible  <bruno@clisp.org>
17853
17854         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
17855         * lib/progreloc.c (find_executable): Fix type of pointer passed to
17856         _NSGetExecutablePath.
17857
17858 2009-01-16  Jim Meyering  <meyering@redhat.com>
17859
17860         strerror: avoid warnings about discarding "const"
17861         * lib/strerror.c (rpl_strerror): Instead of returning a const
17862         string from each and every "case", use a variable, and add a single
17863         cast after the switch.
17864
17865 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
17866
17867         * lib/arpa_inet.in.h: Add extern "C" block for C++.
17868
17869 2009-01-16  Bruno Haible  <bruno@clisp.org>
17870
17871         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
17872         array initializer syntax that also works in C++ mode.
17873         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
17874
17875 2009-01-16  Jim Meyering  <meyering@redhat.com>
17876
17877         poll: suppress a warning
17878         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
17879         to ignore "...unsigned expression < 0 is always false" warnings.
17880
17881 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
17882
17883         poll: remove declarations of unused variables
17884         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
17885         sockbuf and optlen.
17886
17887 2009-01-15  Bruno Haible  <bruno@clisp.org>
17888
17889         Make fflush-after-ungetc POSIX compliant on BSD systems.
17890         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
17891         (clear_ungetc_buffer): Implement also for other systems.
17892         (rpl_fflush): On glibc systems, invoke
17893         clear_ungetc_buffer_preserving_position. Otherwise, invoke
17894         clear_ungetc_buffer after fetching the stream's position, not before.
17895
17896 2009-01-15  Bruno Haible  <bruno@clisp.org>
17897
17898         Make fflush-after-ungetc POSIX compliant on glibc systems.
17899         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
17900         after ungetc.
17901         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
17902         (rpl_fflush): On glibc systems, simply call the system's fflush
17903         function after clearing the ungetc buffer.
17904         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
17905         Instead, lseek only to the end of file, then use the system's fseeko
17906         for the rest. On glibc systems, reset the EOF indicator bit.
17907
17908 2009-01-15  Jim Meyering  <meyering@redhat.com>
17909
17910         openmp.m4: revert quote-adding change, for portability to older autoconf
17911         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
17912         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
17913         Simon Josefsson noticed the problem when using autoconf-2.61.
17914
17915 2009-01-15  Bruno Haible  <bruno@clisp.org>
17916
17917         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
17918         * tests/test-fflush2.c (ASSERT): Always fail.
17919         (main): Add two tests for fflush() after ungetc(), taking into account
17920         the Austin Group's clarification.
17921         Suggested by Eric Blake.
17922
17923 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
17924
17925         mktime.m4: remove K&R-style function prototypes
17926         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
17927         for the Sun C++ compiler.
17928
17929 2009-01-14  Bruno Haible  <bruno@clisp.org>
17930
17931         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
17932         while including <wchar.h>.
17933         * lib/wchar.in.h: In two particular situations on HP-UX, include only
17934         the system's <wchar.h> file.
17935         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
17936
17937 2009-01-14  Bruno Haible  <bruno@clisp.org>
17938
17939         * m4/csharp.m4: Don't mention gettext on the serial number line.
17940         * m4/csharpexec.m4: Likewise.
17941         * m4/eaccess.m4: Likewise.
17942         * m4/javaexec.m4: Likewise.
17943         * m4/sig_atomic_t.m4: Likewise.
17944         * m4/tmpdir.m4: Likewise.
17945         * m4/intldir.m4: Bump gettext version.
17946         * m4/lib-ld.m4: Likewise.
17947
17948 2009-01-14  Bruno Haible  <bruno@clisp.org>
17949
17950         * lib/progname.c (set_program_name): Add more comments.
17951         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
17952
17953 2009-01-14  Simon Josefsson  <simon@josefsson.org>
17954
17955         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
17956         were sys/stat.h does not define it.
17957
17958 2009-01-14  Jim Meyering  <meyering@redhat.com>
17959
17960         many *.m4 files: improve m4 quoting
17961         99% of this change was performed by running the following commands:
17962         git ls-files | grep '\.m4$' | xargs perl -pi \
17963           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
17964           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
17965           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
17966           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
17967         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
17968         The remainder were to add Copyright dates, increment serial numbers,
17969         undo some changes in comments, exclude m4/intl.m4, and add quotes
17970         around the "1" in ",1" where the unusual spacing prohibited the
17971         above regexps from doing the job.  For more details, see
17972         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
17973         * m4/acl.m4: Modified.
17974         * m4/afs.m4: Likewise.
17975         * m4/alloca.m4: Likewise.
17976         * m4/argp.m4: Likewise.
17977         * m4/argz.m4: Likewise.
17978         * m4/atexit.m4: Likewise.
17979         * m4/bison-i18n.m4: Likewise.
17980         * m4/bison.m4: Likewise.
17981         * m4/byteswap.m4: Likewise.
17982         * m4/c-stack.m4: Likewise.
17983         * m4/c-strtod.m4: Likewise.
17984         * m4/calloc.m4: Likewise.
17985         * m4/canonicalize-lgpl.m4: Likewise.
17986         * m4/chown.m4: Likewise.
17987         * m4/clock_time.m4: Likewise.
17988         * m4/codeset.m4: Likewise.
17989         * m4/copy-file.m4: Likewise.
17990         * m4/csharp.m4: Likewise.
17991         * m4/csharpcomp.m4: Likewise.
17992         * m4/csharpexec.m4: Likewise.
17993         * m4/d-ino.m4: Likewise.
17994         * m4/d-type.m4: Likewise.
17995         * m4/dirfd.m4: Likewise.
17996         * m4/double-slash-root.m4: Likewise.
17997         * m4/eaccess.m4: Likewise.
17998         * m4/eealloc.m4: Likewise.
17999         * m4/environ.m4: Likewise.
18000         * m4/errno_h.m4: Likewise.
18001         * m4/euidaccess.m4: Likewise.
18002         * m4/execute.m4: Likewise.
18003         * m4/fatal-signal.m4: Likewise.
18004         * m4/fchdir.m4: Likewise.
18005         * m4/fcntl_h.m4: Likewise.
18006         * m4/fileblocks.m4: Likewise.
18007         * m4/filenamecat.m4: Likewise.
18008         * m4/findprog.m4: Likewise.
18009         * m4/flexmember.m4: Likewise.
18010         * m4/fnmatch.m4: Likewise.
18011         * m4/fopen.m4: Likewise.
18012         * m4/fpending.m4: Likewise.
18013         * m4/fprintf-posix.m4: Likewise.
18014         * m4/free.m4: Likewise.
18015         * m4/frexp.m4: Likewise.
18016         * m4/frexpl.m4: Likewise.
18017         * m4/fsusage.m4: Likewise.
18018         * m4/ftruncate.m4: Likewise.
18019         * m4/gc-camellia.m4: Likewise.
18020         * m4/gc-random.m4: Likewise.
18021         * m4/gc.m4: Likewise.
18022         * m4/getaddrinfo.m4: Likewise.
18023         * m4/getcwd-abort-bug.m4: Likewise.
18024         * m4/getcwd-path-max.m4: Likewise.
18025         * m4/getdate.m4: Likewise.
18026         * m4/getdomainname.m4: Likewise.
18027         * m4/getgroups.m4: Likewise.
18028         * m4/gethostname.m4: Likewise.
18029         * m4/gethrxtime.m4: Likewise.
18030         * m4/getline.m4: Likewise.
18031         * m4/getloadavg.m4: Likewise.
18032         * m4/getndelim2.m4: Likewise.
18033         * m4/getpass.m4: Likewise.
18034         * m4/gettext.m4: Likewise.
18035         * m4/gettime.m4: Likewise.
18036         * m4/gettimeofday.m4: Likewise.
18037         * m4/gnulib-common.m4: Likewise.
18038         * m4/group-member.m4: Likewise.
18039         * m4/host-os.m4: Likewise.
18040         * m4/iconv.m4: Likewise.
18041         * m4/iconv_open.m4: Likewise.
18042         * m4/inet_ntop.m4: Likewise.
18043         * m4/inet_pton.m4: Likewise.
18044         * m4/inline.m4: Likewise.
18045         * m4/intldir.m4: Likewise.
18046         * m4/intlmacosx.m4: Likewise.
18047         * m4/intmax.m4: Likewise.
18048         * m4/intmax_t.m4: Likewise.
18049         * m4/inttypes.m4: Likewise.
18050         * m4/inttypes_h.m4: Likewise.
18051         * m4/inttypes-pri.m4: Likewise.
18052         * m4/isapipe.m4: Likewise.
18053         * m4/isnand.m4: Likewise.
18054         * m4/isnanf.m4: Likewise.
18055         * m4/isnanl.m4: Likewise.
18056         * m4/javacomp.m4: Likewise.
18057         * m4/javaexec.m4: Likewise.
18058         * m4/jm-winsz1.m4: Likewise.
18059         * m4/jm-winsz2.m4: Likewise.
18060         * m4/lchown.m4: Likewise.
18061         * m4/lcmessage.m4: Likewise.
18062         * m4/ldexpl.m4: Likewise.
18063         * m4/lib-ld.m4: Likewise.
18064         * m4/lib-link.m4: Likewise.
18065         * m4/libsigsegv.m4: Likewise.
18066         * m4/link-follow.m4: Likewise.
18067         * m4/localcharset.m4: Likewise.
18068         * m4/locale-fr.m4: Likewise.
18069         * m4/locale-ja.m4: Likewise.
18070         * m4/locale-tr.m4: Likewise.
18071         * m4/locale-zh.m4: Likewise.
18072         * m4/lock.m4: Likewise.
18073         * m4/longlong.m4: Likewise.
18074         * m4/ls-mntd-fs.m4: Likewise.
18075         * m4/lstat.m4: Likewise.
18076         * m4/malloc.m4: Likewise.
18077         * m4/mathl.m4: Likewise.
18078         * m4/mbrtowc.m4: Likewise.
18079         * m4/mbstate_t.m4: Likewise.
18080         * m4/mbswidth.m4: Likewise.
18081         * m4/memchr.m4: Likewise.
18082         * m4/memcmp.m4: Likewise.
18083         * m4/memcpy.m4: Likewise.
18084         * m4/memmem.m4: Likewise.
18085         * m4/memmove.m4: Likewise.
18086         * m4/mempcpy.m4: Likewise.
18087         * m4/memrchr.m4: Likewise.
18088         * m4/memset.m4: Likewise.
18089         * m4/minmax.m4: Likewise.
18090         * m4/mkdir-slash.m4: Likewise.
18091         * m4/mkdtemp.m4: Likewise.
18092         * m4/mktime.m4: Likewise.
18093         * m4/mmap-anon.m4: Likewise.
18094         * m4/mountlist.m4: Likewise.
18095         * m4/nanosleep.m4: Likewise.
18096         * m4/nls.m4: Likewise.
18097         * m4/nocrash.m4: Likewise.
18098         * m4/open.m4: Likewise.
18099         * m4/openat.m4: Likewise.
18100         * m4/openmp.m4: Likewise.
18101         * m4/pathmax.m4: Likewise.
18102         * m4/perl.m4: Likewise.
18103         * m4/physmem.m4: Likewise.
18104         * m4/pipe.m4: Likewise.
18105         * m4/po.m4: Likewise.
18106         * m4/poll.m4: Likewise.
18107         * m4/posixtm.m4: Likewise.
18108         * m4/posixver.m4: Likewise.
18109         * m4/printf-frexp.m4: Likewise.
18110         * m4/printf-frexpl.m4: Likewise.
18111         * m4/printf-posix.m4: Likewise.
18112         * m4/printf-posix-rpl.m4: Likewise.
18113         * m4/printf.m4: Likewise.
18114         * m4/progtest.m4: Likewise.
18115         * m4/putenv.m4: Likewise.
18116         * m4/readline.m4: Likewise.
18117         * m4/readlink.m4: Likewise.
18118         * m4/readutmp.m4: Likewise.
18119         * m4/realloc.m4: Likewise.
18120         * m4/regex.m4: Likewise.
18121         * m4/relocatable.m4: Likewise.
18122         * m4/relocatable-lib.m4: Likewise.
18123         * m4/rename-dest-slash.m4: Likewise.
18124         * m4/rename.m4: Likewise.
18125         * m4/rmdir-errno.m4: Likewise.
18126         * m4/rmdir.m4: Likewise.
18127         * m4/roundf.m4: Likewise.
18128         * m4/roundl.m4: Likewise.
18129         * m4/rpmatch.m4: Likewise.
18130         * m4/save-cwd.m4: Likewise.
18131         * m4/selinux-selinux-h.m4: Likewise.
18132         * m4/setenv.m4: Likewise.
18133         * m4/settime.m4: Likewise.
18134         * m4/sig2str.m4: Likewise.
18135         * m4/sig_atomic_t.m4: Likewise.
18136         * m4/signalblocking.m4: Likewise.
18137         * m4/signbit.m4: Likewise.
18138         * m4/sigpipe.m4: Likewise.
18139         * m4/sockets.m4: Likewise.
18140         * m4/sockpfaf.m4: Likewise.
18141         * m4/st_dm_mode.m4: Likewise.
18142         * m4/stat-time.m4: Likewise.
18143         * m4/stdbool.m4: Likewise.
18144         * m4/stdint.m4: Likewise.
18145         * m4/stdint_h.m4: Likewise.
18146         * m4/stpcpy.m4: Likewise.
18147         * m4/stpncpy.m4: Likewise.
18148         * m4/strcase.m4: Likewise.
18149         * m4/strchrnul.m4: Likewise.
18150         * m4/strcspn.m4: Likewise.
18151         * m4/strdup.m4: Likewise.
18152         * m4/strftime.m4: Likewise.
18153         * m4/strndup.m4: Likewise.
18154         * m4/strnlen.m4: Likewise.
18155         * m4/strpbrk.m4: Likewise.
18156         * m4/strptime.m4: Likewise.
18157         * m4/strsep.m4: Likewise.
18158         * m4/strtod.m4: Likewise.
18159         * m4/strtoimax.m4: Likewise.
18160         * m4/strtok_r.m4: Likewise.
18161         * m4/strtol.m4: Likewise.
18162         * m4/strtoll.m4: Likewise.
18163         * m4/strtoul.m4: Likewise.
18164         * m4/strtoull.m4: Likewise.
18165         * m4/strtoumax.m4: Likewise.
18166         * m4/strverscmp.m4: Likewise.
18167         * m4/threadlib.m4: Likewise.
18168         * m4/timegm.m4: Likewise.
18169         * m4/tm_gmtoff.m4: Likewise.
18170         * m4/tmpdir.m4: Likewise.
18171         * m4/tmpfile.m4: Likewise.
18172         * m4/tzset.m4: Likewise.
18173         * m4/uintmax_t.m4: Likewise.
18174         * m4/unlinkdir.m4: Likewise.
18175         * m4/unlocked-io.m4: Likewise.
18176         * m4/uptime.m4: Likewise.
18177         * m4/userspec.m4: Likewise.
18178         * m4/utimbuf.m4: Likewise.
18179         * m4/utime.m4: Likewise.
18180         * m4/utimes-null.m4: Likewise.
18181         * m4/utimes.m4: Likewise.
18182         * m4/vararrays.m4: Likewise.
18183         * m4/vasnprintf.m4: Likewise.
18184         * m4/vfprintf-posix.m4: Likewise.
18185         * m4/vprintf-posix.m4: Likewise.
18186         * m4/wait-process.m4: Likewise.
18187         * m4/wchar_t.m4: Likewise.
18188         * m4/wint_t.m4: Likewise.
18189         * m4/write-any-file.m4: Likewise.
18190         * m4/yield.m4: Likewise.
18191
18192 2009-01-13  Bruno Haible  <bruno@clisp.org>
18193
18194         Avoid test-copy-file.sh failures when ACL support insufficient.
18195         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
18196         TESTS_ENVIRONMENT.
18197         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
18198         Reported by Jim Meyering.
18199
18200 2009-01-13  Bruno Haible  <bruno@clisp.org>
18201
18202         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
18203         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
18204         * modules/unistdio/u8-printf-parse (Files): Likewise.
18205         * modules/unistdio/u32-printf-parse (Files): Likewise.
18206         * modules/unistdio/ulc-printf-parse (Files): Likewise.
18207
18208 2009-01-13  Simon Josefsson  <simon@josefsson.org>
18209
18210         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
18211         and m4/inttypes_h.m4 too.
18212
18213 2009-01-12  Eric Blake  <ebb9@byu.net>
18214
18215         tests: IRIX 6.2 cc can't compile -0.0 into .data
18216         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
18217         rather than at compile-time.
18218         * tests/test-floorl.c (minus_zero): Likewise.
18219         * tests/test-frexpl.c (minus_zero): Likewise.
18220         * tests/test-isnan.c (minus_zerol): Likewise.
18221         * tests/test-isnanl.h (minus_zero): Likewise.
18222         * tests/test-ldexpl.c (minus_zero): Likewise.
18223         * tests/test-roundl.c (minus_zero): Likewise.
18224         * tests/test-signbit.c (minus_zerol): Likewise.
18225         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
18226         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
18227         * tests/test-truncl.c (minus_zero): Likewise.
18228         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
18229         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
18230         Reported by Tom G. Christensen and Nelson H. F. Beebe.
18231
18232 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
18233
18234         regex: fix glibc bug 9697
18235         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
18236         handling.
18237
18238 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
18239
18240         regex: fix glibc bug 697
18241         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
18242         being NULL also if there are no backreferences.
18243
18244 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
18245
18246         regex: merge glibc changes
18247         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
18248         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
18249         re_string_skip_chars, re_string_reconstruct): Likewise.
18250         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
18251
18252 2009-01-07  Jim Meyering  <meyering@redhat.com>
18253
18254         poll: filter through cppi
18255         * lib/poll.c: Indent cpp directives to reflect nesting.
18256
18257 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
18258
18259         poll: don't return uninitialized
18260         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
18261
18262 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
18263
18264         avoid compile failure on AIX 6.1
18265         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
18266         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
18267
18268 2009-01-04  Jim Meyering  <meyering@redhat.com>
18269
18270         remove duplicate inclusion of <stdio.h>
18271         * tests/test-fprintf-posix.c: Likewise.
18272         * tests/test-printf-posix.c: Likewise.
18273         * tests/test-snprintf-posix.c: Likewise.
18274         * tests/test-sprintf-posix.c: Likewise.
18275         * tests/test-vasprintf-posix.c: Likewise.
18276         * tests/test-vfprintf-posix.c: Likewise.
18277         * tests/test-vprintf-posix.c: Likewise.
18278         * tests/test-vsnprintf-posix.c: Likewise.
18279         * tests/test-vsprintf-posix.c: Likewise.
18280
18281 2009-01-03  Jim Meyering  <meyering@redhat.com>
18282
18283         gnulib-tool: fix sed-based filtering
18284         * gnulib-tool (func_filter_filelist): Remove extra backslash
18285         in sed_fff_filter definition.
18286
18287 2009-01-02  Jim Meyering  <meyering@redhat.com>
18288
18289         strftime: avoid compilation failure on Solaris 2.6
18290         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
18291         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
18292         Don't #define mbrlen or mbsinit, since now they're guaranteed to
18293         be available.  Reported by Tom G. Christensen.  Details in
18294         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
18295
18296 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18297             Bruno Haible  <bruno@clisp.org>
18298
18299         Speed up gnulib-tool by doing more string processing through shell
18300         built-ins.
18301         * gnulib-tool (fast_func_append): New variable.
18302         (func_remove_prefix, func_remove_suffix): New functions.
18303         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
18304         (func_filter_filelist): New function.
18305         (func_get_dependencies): Use func_remove_suffix instead of sed.
18306         (func_get_automake_snippet): Use func_filter_filelist instead of a
18307         subshell and sed invocation.
18308
18309 2009-01-01  Bruno Haible  <bruno@clisp.org>
18310
18311         Fix a security bug.
18312         * gnulib-tool (func_import, import, update): Don't allow the characters
18313         '"', '$', '`', '\' in macro arguments that become part of commands that
18314         are evaluated.
18315
18316 2009-01-01  Bruno Haible  <bruno@clisp.org>
18317
18318         * gnulib-tool (func_reset_sigpipe): Add more comments.
18319
18320 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18321
18322         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
18323         func_emit_tests_Makefile_am, func_import): Abort loops early if we
18324         already know the answer.
18325
18326 2009-01-01  Jim Meyering  <meyering@redhat.com>
18327
18328         * lib/version-etc.c (version_etc_va): Update copyright year.
18329
18330 2008-12-30  Bruno Haible  <bruno@clisp.org>
18331
18332         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
18333         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
18334         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
18335
18336 2008-12-29  Eric Blake  <ebb9@byu.net>
18337
18338         multiarch: avoid autoconf AC_REQUIRE bug
18339         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
18340         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
18341         2.63 and older.
18342         Reported by Bruno Haible, and analyzed in
18343         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
18344
18345 2008-12-29  Bruno Haible  <bruno@clisp.org>
18346
18347         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
18348         files in subdirectories correctly.
18349         Reported by Ralf Wildenhues.
18350
18351 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18352
18353         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
18354         rather than 'join FILE -', for Solaris join.
18355
18356 2008-12-29  Bruno Haible  <bruno@clisp.org>
18357
18358         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
18359         quoting.
18360         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
18361         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
18362         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
18363         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
18364         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
18365         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
18366         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
18367         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
18368         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
18369         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
18370         * m4/nls.m4 (AM_NLS): Likewise.
18371         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
18372         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
18373         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
18374         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
18375         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
18376         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
18377         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
18378         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
18379         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
18380         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
18381         * m4/xsize.m4 (gl_XSIZE): Likewise.
18382         Suggested by Jim Meyering.
18383
18384 2008-11-17  Bruce Korb  <bkorb@gnu.org>
18385
18386         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
18387         * lib/parse-duration.c: use a switch instead of cascading if's.
18388
18389 2008-12-29  Eric Blake  <ebb9@byu.net>
18390
18391         wchar.h: supply WEOF on Irix 5.3
18392         * lib/wchar.in.h (wint_t): Also supply WEOF.
18393         * lib/wctype.in.h (wint_t): Likewise.
18394         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
18395         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
18396         Reported by Tom G. Christensen.
18397
18398 2008-12-26  Bruno Haible  <bruno@clisp.org>
18399
18400         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
18401         i486, i586, i686.
18402
18403 2008-12-26  Bruno Haible  <bruno@clisp.org>
18404
18405         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
18406
18407 2008-12-26  Bruno Haible  <bruno@clisp.org>
18408
18409         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
18410         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
18411         not __STDC_CONSTANT_MACROS.
18412         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
18413
18414 2008-12-25  Bruno Haible  <bruno@clisp.org>
18415
18416         Add support for universal builds to vasnprintf.
18417         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
18418         universal builds, guess no.
18419         * modules/vasnprintf-posix (Depends-on): Add multiarch.
18420         * modules/vasprintf-posix (Depends-on): Likewise.
18421         * modules/fprintf-posix (Depends-on): Likewise.
18422         * modules/vfprintf-posix (Depends-on): Likewise.
18423         * modules/snprintf-posix (Depends-on): Likewise.
18424         * modules/vsnprintf-posix (Depends-on): Likewise.
18425         * modules/sprintf-posix (Depends-on): Likewise.
18426         * modules/vsprintf-posix (Depends-on): Likewise.
18427         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
18428         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
18429         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
18430         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
18431         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
18432         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
18433         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
18434
18435         Add support for universal builds to <inttypes.h>.
18436         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
18437         _SCNu64_PREFIX): In Apple
18438         universal builds, define directly, using _LP64.
18439         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
18440         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
18441         * modules/inttypes (Depends-on): Add multiarch.
18442         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
18443
18444         Add support for universal builds to <stdint.h>.
18445         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
18446         universal builds, define directly, using _LP64.
18447         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
18448         Apple universal builds, don't test for the size and suffix of ptrdiff_t
18449         and size_t.
18450         * modules/stdint (Depends-on): Add multiarch.
18451         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
18452
18453         New module 'multiarch'.
18454         * modules/multiarch: New file.
18455         * m4/multiarch.m4: New file.
18456
18457 2008-12-25  Bruno Haible  <bruno@clisp.org>
18458
18459         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
18460
18461 2008-12-25  Bruno Haible  <bruno@clisp.org>
18462
18463         * modules/btowc (License): Relicense under LGPLv2+.
18464         * modules/mbsinit (License): Likewise.
18465         * modules/mbrtowc (License): Likewise.
18466         * modules/wcrtomb (License): Likewise.
18467         * modules/streq (License): Likewise.
18468         Reported by David Lutterkort <lutter@redhat.com>.
18469
18470 2008-12-23  Bruno Haible  <bruno@clisp.org>
18471
18472         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
18473
18474 2008-12-23  Bruno Haible  <bruno@clisp.org>
18475
18476         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
18477         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
18478         GETADDRINFO_LIB, not in LIBS.
18479         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
18480         * modules/canon-host (Link): Likewise.
18481         * NEWS: Mention the change.
18482         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
18483         GETADDRINFO_LIB.
18484
18485 2008-12-22  Bruno Haible  <bruno@clisp.org>
18486
18487         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
18488         * doc/posix-functions/iswalpha_l.texi: Likewise.
18489         * doc/posix-functions/iswblank_l.texi: Likewise.
18490         * doc/posix-functions/iswcntrl_l.texi: Likewise.
18491         * doc/posix-functions/iswctype_l.texi: Likewise.
18492         * doc/posix-functions/iswdigit_l.texi: Likewise.
18493         * doc/posix-functions/iswgraph_l.texi: Likewise.
18494         * doc/posix-functions/iswlower_l.texi: Likewise.
18495         * doc/posix-functions/iswprint_l.texi: Likewise.
18496         * doc/posix-functions/iswpunct_l.texi: Likewise.
18497         * doc/posix-functions/iswspace_l.texi: Likewise.
18498         * doc/posix-functions/iswupper_l.texi: Likewise.
18499         * doc/posix-functions/iswxdigit_l.texi: Likewise.
18500         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
18501         * doc/posix-functions/open_wmemstream.texi: Likewise.
18502         * doc/posix-functions/swscanf.texi: Likewise.
18503         * doc/posix-functions/towctrans_l.texi: Likewise.
18504         * doc/posix-functions/towlower.texi: Likewise.
18505         * doc/posix-functions/towlower_l.texi: Likewise.
18506         * doc/posix-functions/towupper.texi: Likewise.
18507         * doc/posix-functions/towupper_l.texi: Likewise.
18508         * doc/posix-functions/vfwprintf.texi: Likewise.
18509         * doc/posix-functions/vfwscanf.texi: Likewise.
18510         * doc/posix-functions/vswscanf.texi: Likewise.
18511         * doc/posix-functions/vwprintf.texi: Likewise.
18512         * doc/posix-functions/vwscanf.texi: Likewise.
18513         * doc/posix-functions/wcpcpy.texi: Likewise.
18514         * doc/posix-functions/wcpncpy.texi: Likewise.
18515         * doc/posix-functions/wcscasecmp.texi: Likewise.
18516         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
18517         * doc/posix-functions/wcscoll_l.texi: Likewise.
18518         * doc/posix-functions/wcsdup.texi: Likewise.
18519         * doc/posix-functions/wcsncasecmp.texi: Likewise.
18520         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
18521         * doc/posix-functions/wcsnlen.texi: Likewise.
18522         * doc/posix-functions/wcsnrtombs.texi: Likewise.
18523         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
18524         * doc/posix-functions/wctrans_l.texi: Likewise.
18525         * doc/posix-functions/wctype_l.texi: Likewise.
18526         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
18527         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
18528         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
18529         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
18530         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
18531         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
18532         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
18533         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
18534         * doc/glibc-functions/wcschrnul.texi: Likewise.
18535         * doc/glibc-functions/wcsftime_l.texi: Likewise.
18536         * doc/glibc-functions/wcstod_l.texi: Likewise.
18537         * doc/glibc-functions/wcstof_l.texi: Likewise.
18538         * doc/glibc-functions/wcstol_l.texi: Likewise.
18539         * doc/glibc-functions/wcstold_l.texi: Likewise.
18540         * doc/glibc-functions/wcstoll_l.texi: Likewise.
18541         * doc/glibc-functions/wcstoq.texi: Likewise.
18542         * doc/glibc-functions/wcstoul_l.texi: Likewise.
18543         * doc/glibc-functions/wcstoull_l.texi: Likewise.
18544         * doc/glibc-functions/wcstouq.texi: Likewise.
18545         * doc/glibc-functions/wmempcpy.texi: Likewise.
18546
18547 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
18548             Eric Blake  <ebb9@byu.net>
18549             Paolo Bonzini  <bonzini@gnu.org>
18550             Bruno Haible  <bruno@clisp.org>
18551
18552         Make c-stack work on Haiku.
18553         * lib/c-stack.c (SA_ONSTACK): Define fallback.
18554         (c_stack_action): Use SA_ONSTACK flag.
18555
18556 2008-12-22  Bruno Haible  <bruno@clisp.org>
18557
18558         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
18559
18560 2008-12-22  Bruno Haible  <bruno@clisp.org>
18561
18562         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
18563         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
18564         being overridden.
18565         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
18566         New macros.
18567         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
18568         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
18569         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
18570         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
18571
18572 2008-12-22  Bruno Haible  <bruno@clisp.org>
18573
18574         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
18575         from test code.
18576
18577 2008-12-22  Eric Blake  <ebb9@byu.net>
18578
18579         Avoid gcc warnings on cygwin.
18580         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
18581         Avoid unused variable.
18582         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
18583         Likewise.
18584
18585 2008-12-22  Bruno Haible  <bruno@clisp.org>
18586
18587         Remove HAVE_MBRTOWC conditionals.
18588         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
18589         (mbscasecmp): Assume mbrtowc function.
18590         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
18591         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
18592         * lib/mbschr.c: Include mbuiter.h unconditionally.
18593         (mbschr): Assume mbrtowc function.
18594         * lib/mbscspn.c: Include mbuiter.h unconditionally.
18595         (mbscspn): Assume mbrtowc function.
18596         * lib/mbslen.c: Include mbuiter.h unconditionally.
18597         (mbslen): Assume mbrtowc function.
18598         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
18599         (mbsncasecmp): Assume mbrtowc function.
18600         * lib/mbsnlen.c: Include mbiter.h unconditionally.
18601         (mbsnlen): Assume mbrtowc function.
18602         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
18603         (mbspbrk): Assume mbrtowc function.
18604         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
18605         (mbspcasecmp): Assume mbrtowc function.
18606         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
18607         (mbsrchr): Assume mbrtowc function.
18608         * lib/mbssep.c: Include mbuiter.h unconditionally.
18609         (mbssep): Assume mbrtowc function.
18610         * lib/mbsspn.c: Include mbuiter.h unconditionally.
18611         (mbsspn): Assume mbrtowc function.
18612         * lib/mbsstr.c: Include mbuiter.h unconditionally.
18613         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
18614         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
18615         (mbstok_r): Assume mbrtowc function.
18616         * lib/propername.c: Include mbuiter.h unconditionally.
18617         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
18618         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
18619         (trim2): Assume mbrtowc function.
18620         * lib/mbswidth.c (mbsinit): Remove fallback definition.
18621         (mbsnwidth): Assume mbrtowc function.
18622         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
18623         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
18624         fallback definitions.
18625         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
18626
18627 2008-12-22  Bruno Haible  <bruno@clisp.org>
18628
18629         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
18630
18631 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
18632
18633         * modules/regex: Request emulations for the mb*/wc* functions we need.
18634         * m4/regex.m4: Don't look for those functions here.
18635         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
18636
18637 2008-12-22  Bruno Haible  <bruno@clisp.org>
18638
18639         * modules/fnmatch (Depends-on): Remove duplicated dependency.
18640
18641 2008-12-21  Bruno Haible  <bruno@clisp.org>
18642
18643         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
18644         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
18645         (Include): Remove conditionalization.
18646         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
18647         (Include): Remove conditionalization.
18648         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
18649         (Include): Remove conditionalization.
18650         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
18651         * m4/mbfile.m4 (gl_MBFILE): Likewise.
18652         * NEWS: Mention the change.
18653         Reported by Alan Hourihane <alanh@fairlite.co.uk>
18654         via Sergey Poznyakoff <gray@gnu.org.ua>.
18655
18656 2008-12-21  Bruno Haible  <bruno@clisp.org>
18657
18658         * MODULES.html.sh (Extended multibyte and wide character utilities
18659         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
18660         wcrtomb, wcsrtombs.
18661         (Support for systems lacking POSIX:2008): Add accept, bind, close,
18662         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
18663         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
18664         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
18665
18666 2008-12-21  Bruno Haible  <bruno@clisp.org>
18667
18668         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
18669
18670 2008-12-21  Bruno Haible  <bruno@clisp.org>
18671
18672         * modules/wcsnrtombs-tests: New file.
18673         * tests/test-wcsnrtombs1.sh: New file.
18674         * tests/test-wcsnrtombs2.sh: New file.
18675         * tests/test-wcsnrtombs3.sh: New file.
18676         * tests/test-wcsnrtombs4.sh: New file.
18677         * tests/test-wcsnrtombs.c: New file.
18678
18679         New module 'wcsnrtombs'.
18680         * lib/wchar.in.h (wcsnrtombs): New declaration.
18681         * lib/wcsnrtombs.c: New file.
18682         * lib/wcsrtombs-state.c: New file.
18683         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
18684         (internal_state): Remove variable.
18685         * m4/wcsnrtombs.m4: New file.
18686         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
18687         compilation units.
18688         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
18689         HAVE_WCSNRTOMBS.
18690         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
18691         HAVE_WCSNRTOMBS.
18692         * modules/wcsnrtombs: New file.
18693         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
18694         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
18695
18696 2008-12-21  Bruno Haible  <bruno@clisp.org>
18697
18698         * modules/wcsrtombs-tests: New file.
18699         * tests/test-wcsrtombs1.sh: New file.
18700         * tests/test-wcsrtombs2.sh: New file.
18701         * tests/test-wcsrtombs3.sh: New file.
18702         * tests/test-wcsrtombs4.sh: New file.
18703         * tests/test-wcsrtombs.c: New file.
18704
18705         New module 'wcsrtombs'.
18706         * lib/wchar.in.h (wcsrtombs): New declaration.
18707         * lib/wcsrtombs.c: New file.
18708         * m4/wcsrtombs.m4: New file.
18709         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
18710         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
18711         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
18712         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
18713         * modules/wcsrtombs: New file.
18714         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
18715         bugs.
18716
18717 2008-12-21  Bruno Haible  <bruno@clisp.org>
18718
18719         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
18720         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
18721         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
18722         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
18723         if not correct.
18724         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
18725         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
18726         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
18727         m4/locale-zh.m4, m4/codeset.m4.
18728         * doc/posix-functions/wcrtomb.texi: Document the bug.
18729
18730 2008-12-21  Bruno Haible  <bruno@clisp.org>
18731
18732         Work around a btowc() bug on IRIX 6.5.
18733         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
18734         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
18735         REPLACE_WTOBC if not.
18736         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
18737         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
18738         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
18739
18740 2008-12-21  Bruno Haible  <bruno@clisp.org>
18741
18742         * modules/wcrtomb-tests: New file.
18743         * tests/test-wcrtomb.sh: New file.
18744         * tests/test-wcrtomb.c: New file.
18745
18746         New module 'wcrtomb'.
18747         * lib/wchar.in.h (wcrtomb): New declaration.
18748         * lib/wcrtomb.c: New file.
18749         * m4/wcrtomb.m4: New file.
18750         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
18751         HAVE_WCRTOMB.
18752         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
18753         HAVE_WCRTOMB.
18754         * modules/wcrtomb: New file.
18755         * doc/posix-functions/wcrtomb.texi: Mention the new module.
18756
18757 2008-12-21  Bruno Haible  <bruno@clisp.org>
18758
18759         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
18760         * modules/mbsrtowcs (Files): Likewise.
18761         * modules/wctob (Files): Likewise.
18762         * modules/c-strcase-tests (Files): Likewise.
18763         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
18764         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
18765         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
18766         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
18767         * modules/vasnprintf-posix-tests (Files): Likewise.
18768
18769 2008-12-21  William Pursell  <bill.pursell@gmail.com>
18770
18771         gitlog-to-changelog: pass all command-line arguments to git-log
18772         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
18773         it is sometimes convenient to filter the commits in various ways.
18774         gitlog-to-changelog only allows --since to specify a start date,
18775         but git-log itself supports many other filtering mechanisms.
18776         At the moment, I want to filter by branch name.  Rather than
18777         adding a --branch option to gitlog-to-changelog, it seems more
18778         flexible to simply pass all options directly to git-log and let
18779         git do the work.  Notice that this effectively makes --since a
18780         redundant option for gitlog-to-changelog, but removing it would
18781         require current usage to change since calls would then require
18782         an additional '--'.
18783
18784 2008-12-21  Bruno Haible  <bruno@clisp.org>
18785
18786         * modules/mbsnrtowcs-tests: New file.
18787         * tests/test-mbsnrtowcs1.sh: New file.
18788         * tests/test-mbsnrtowcs2.sh: New file.
18789         * tests/test-mbsnrtowcs3.sh: New file.
18790         * tests/test-mbsnrtowcs4.sh: New file.
18791         * tests/test-mbsnrtowcs.c: New file.
18792
18793         New module 'mbsnrtowcs'.
18794         * lib/wchar.in.h (mbsnrtowcs): New declaration.
18795         * lib/mbsnrtowcs.c: New file.
18796         * lib/mbsrtowcs-state.c: New file.
18797         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
18798         (internal_state): Remove variable.
18799         * m4/mbsnrtowcs.m4: New file.
18800         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
18801         compilation units.
18802         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
18803         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
18804         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
18805         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
18806         * modules/mbsnrtowcs: New file.
18807         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
18808         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
18809         portability problem.
18810
18811 2008-12-21  Bruno Haible  <bruno@clisp.org>
18812
18813         Work around mbsrtowcs bug.
18814         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
18815         (gl_FUNC_MBSRTOWCS): Invoke it.
18816         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
18817         m4/locale-zh.m4.
18818         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
18819
18820 2008-12-21  Bruno Haible  <bruno@clisp.org>
18821
18822         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
18823
18824 2008-12-21  Bruno Haible  <bruno@clisp.org>
18825
18826         Update doc for AIX.
18827         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
18828         16-bit wchar_t type.
18829         * doc/posix-functions/btowc.texi: Likewise.
18830         * doc/posix-functions/fgetwc.texi: Likewise.
18831         * doc/posix-functions/fgetws.texi: Likewise.
18832         * doc/posix-functions/fputwc.texi: Likewise.
18833         * doc/posix-functions/fputws.texi: Likewise.
18834         * doc/posix-functions/fwide.texi: Likewise.
18835         * doc/posix-functions/fwprintf.texi: Likewise.
18836         * doc/posix-functions/fwscanf.texi: Likewise.
18837         * doc/posix-functions/getwchar.texi: Likewise.
18838         * doc/posix-functions/getwc.texi: Likewise.
18839         * doc/posix-functions/iswalnum.texi: Likewise.
18840         * doc/posix-functions/iswalpha.texi: Likewise.
18841         * doc/posix-functions/iswblank.texi: Likewise.
18842         * doc/posix-functions/iswcntrl.texi: Likewise.
18843         * doc/posix-functions/iswctype.texi: Likewise.
18844         * doc/posix-functions/iswdigit.texi: Likewise.
18845         * doc/posix-functions/iswgraph.texi: Likewise.
18846         * doc/posix-functions/iswlower.texi: Likewise.
18847         * doc/posix-functions/iswprint.texi: Likewise.
18848         * doc/posix-functions/iswpunct.texi: Likewise.
18849         * doc/posix-functions/iswspace.texi: Likewise.
18850         * doc/posix-functions/iswupper.texi: Likewise.
18851         * doc/posix-functions/iswxdigit.texi: Likewise.
18852         * doc/posix-functions/mbrtowc.texi: Likewise.
18853         * doc/posix-functions/mbsrtowcs.texi: Likewise.
18854         * doc/posix-functions/mbstowcs.texi: Likewise.
18855         * doc/posix-functions/mbtowc.texi: Likewise.
18856         * doc/posix-functions/putwchar.texi: Likewise.
18857         * doc/posix-functions/putwc.texi: Likewise.
18858         * doc/posix-functions/swprintf.texi: Likewise.
18859         * doc/posix-functions/tolower.texi: Likewise.
18860         * doc/posix-functions/toupper.texi: Likewise.
18861         * doc/posix-functions/towctrans.texi: Likewise.
18862         * doc/posix-functions/ungetwc.texi: Likewise.
18863         * doc/posix-functions/vswprintf.texi: Likewise.
18864         * doc/posix-functions/wcrtomb.texi: Likewise.
18865         * doc/posix-functions/wcscat.texi: Likewise.
18866         * doc/posix-functions/wcschr.texi: Likewise.
18867         * doc/posix-functions/wcscmp.texi: Likewise.
18868         * doc/posix-functions/wcscoll.texi: Likewise.
18869         * doc/posix-functions/wcscpy.texi: Likewise.
18870         * doc/posix-functions/wcscspn.texi: Likewise.
18871         * doc/posix-functions/wcsftime.texi: Likewise.
18872         * doc/posix-functions/wcslen.texi: Likewise.
18873         * doc/posix-functions/wcsncat.texi: Likewise.
18874         * doc/posix-functions/wcsncmp.texi: Likewise.
18875         * doc/posix-functions/wcsncpy.texi: Likewise.
18876         * doc/posix-functions/wcspbrk.texi: Likewise.
18877         * doc/posix-functions/wcsrchr.texi: Likewise.
18878         * doc/posix-functions/wcsrtombs.texi: Likewise.
18879         * doc/posix-functions/wcsspn.texi: Likewise.
18880         * doc/posix-functions/wcsstr.texi: Likewise.
18881         * doc/posix-functions/wcstod.texi: Likewise.
18882         * doc/posix-functions/wcstof.texi: Likewise.
18883         * doc/posix-functions/wcstoimax.texi: Likewise.
18884         * doc/posix-functions/wcstok.texi: Likewise.
18885         * doc/posix-functions/wcstold.texi: Likewise.
18886         * doc/posix-functions/wcstoll.texi: Likewise.
18887         * doc/posix-functions/wcstol.texi: Likewise.
18888         * doc/posix-functions/wcstombs.texi: Likewise.
18889         * doc/posix-functions/wcstoull.texi: Likewise.
18890         * doc/posix-functions/wcstoul.texi: Likewise.
18891         * doc/posix-functions/wcstoumax.texi: Likewise.
18892         * doc/posix-functions/wcswidth.texi: Likewise.
18893         * doc/posix-functions/wcsxfrm.texi: Likewise.
18894         * doc/posix-functions/wctob.texi: Likewise.
18895         * doc/posix-functions/wctomb.texi: Likewise.
18896         * doc/posix-functions/wctrans.texi: Likewise.
18897         * doc/posix-functions/wctype.texi: Likewise.
18898         * doc/posix-functions/wcwidth.texi: Likewise.
18899         * doc/posix-functions/wmemchr.texi: Likewise.
18900         * doc/posix-functions/wmemcmp.texi: Likewise.
18901         * doc/posix-functions/wmemcpy.texi: Likewise.
18902         * doc/posix-functions/wmemmove.texi: Likewise.
18903         * doc/posix-functions/wmemset.texi: Likewise.
18904         * doc/posix-functions/wprintf.texi: Likewise.
18905         * doc/posix-functions/wscanf.texi: Likewise.
18906
18907 2008-12-21  Bruno Haible  <bruno@clisp.org>
18908
18909         Update doc for HP-UX 11.11.
18910         * doc/posix-functions/btowc.texi: Clarify that the function is missing
18911         in HP-UX version 11.00, not in all versions of HP-UX 11.
18912         * doc/posix-functions/fwide.texi: Likewise.
18913         * doc/posix-functions/fwprintf.texi: Likewise.
18914         * doc/posix-functions/fwscanf.texi: Likewise.
18915         * doc/posix-functions/inet_ntop.texi: Likewise.
18916         * doc/posix-functions/inet_pton.texi: Likewise.
18917         * doc/posix-functions/mbrlen.texi: Likewise.
18918         * doc/posix-functions/mbrtowc.texi: Likewise.
18919         * doc/posix-functions/mbsinit.texi: Likewise.
18920         * doc/posix-functions/mbsrtowcs.texi: Likewise.
18921         * doc/posix-functions/swprintf.texi: Likewise.
18922         * doc/posix-functions/swscanf.texi: Likewise.
18923         * doc/posix-functions/towctrans.texi: Likewise.
18924         * doc/posix-functions/vfwprintf.texi: Likewise.
18925         * doc/posix-functions/vswprintf.texi: Likewise.
18926         * doc/posix-functions/vwprintf.texi: Likewise.
18927         * doc/posix-functions/wcrtomb.texi: Likewise.
18928         * doc/posix-functions/wcsrtombs.texi: Likewise.
18929         * doc/posix-functions/wcsstr.texi: Likewise.
18930         * doc/posix-functions/wctob.texi: Likewise.
18931         * doc/posix-functions/wctrans.texi: Likewise.
18932         * doc/posix-functions/wmemchr.texi: Likewise.
18933         * doc/posix-functions/wmemcmp.texi: Likewise.
18934         * doc/posix-functions/wmemcpy.texi: Likewise.
18935         * doc/posix-functions/wmemmove.texi: Likewise.
18936         * doc/posix-functions/wmemset.texi: Likewise.
18937         * doc/posix-functions/wprintf.texi: Likewise.
18938         * doc/posix-functions/wscanf.texi: Likewise.
18939
18940 2008-12-21  Bruno Haible  <bruno@clisp.org>
18941
18942         Work around a portability problem.
18943         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
18944         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
18945
18946 2008-12-20  Bruno Haible  <bruno@clisp.org>
18947
18948         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
18949         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
18950         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
18951         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
18952         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
18953
18954         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
18955         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
18956         set.
18957         (GNULIB_defined_mbstate_t): New macro.
18958         (mbsinit): Redefine if REPLACE_MBSINIT is set.
18959         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
18960         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
18961         reuses the system's mbrtowc function but works around the bugs.
18962         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
18963         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
18964         macros.
18965         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
18966         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
18967         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
18968         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
18969         REPLACE_MBSINIT if mbsinit needs to be overridden.
18970         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
18971         REPLACE_MBSINIT, REPLACE_MBRTOWC.
18972         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
18973         REPLACE_MBSINIT, REPLACE_MBRTOWC.
18974         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
18975         m4/locale-zh.m4.
18976         (Depends): Add mbsinit.
18977         * modules/mbsinit (Depends): Add mbrtowc.
18978         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
18979
18980 2008-12-20  Bruno Haible  <bruno@clisp.org>
18981
18982         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
18983         so that there are no conversion errors on AIX.
18984         * tests/test-mbsrtowcs.c (main): LIkewise.
18985
18986 2008-12-20  Bruno Haible  <bruno@clisp.org>
18987
18988         Work around wctob bug on Solaris <= 9.
18989         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
18990         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
18991         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
18992         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
18993         * modules/wctob (Files): Add m4/locale-fr.m4.
18994         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
18995
18996 2008-12-20  Bruno Haible  <bruno@clisp.org>
18997
18998         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
18999         /dev/null.
19000         * tests/test-select-in.sh: Likewise.
19001         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19002
19003 2008-12-20  Bruno Haible  <bruno@clisp.org>
19004
19005         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
19006         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
19007         Cygwin 1.5.x.
19008
19009 2008-12-20  Bruno Haible  <bruno@clisp.org>
19010
19011         Ensure mbstate_t is defined on HP-UX 11.11.
19012         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
19013         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
19014         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
19015         AC_USE_SYSTEM_EXTENSIONS.
19016         * modules/fnmatch (Depends-on): Add extensions.
19017         * modules/mbrlen (Depends-on): Likewise.
19018         * modules/mbrtowc (Depends-on): Likewise.
19019         * modules/mbsinit (Depends-on): Likewise.
19020         * modules/mbsrtowcs (Depends-on): Likewise.
19021         * modules/mbswidth (Depends-on): Likewise.
19022         * modules/quotearg (Depends-on): Likewise.
19023         * modules/strftime (Depends-on): Likewise.
19024
19025 2008-12-20  Bruno Haible  <bruno@clisp.org>
19026
19027         Ensure wctob is declared on IRIX 6.5.
19028         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
19029         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
19030         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
19031         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
19032         of HAVE_WCTOB.
19033         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
19034         HAVE_WCTOB.
19035         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
19036
19037 2008-12-19  Bruno Haible  <bruno@clisp.org>
19038
19039         * modules/mbsrtowcs-tests: New file.
19040         * tests/test-mbsrtowcs1.sh: New file.
19041         * tests/test-mbsrtowcs2.sh: New file.
19042         * tests/test-mbsrtowcs3.sh: New file.
19043         * tests/test-mbsrtowcs4.sh: New file.
19044         * tests/test-mbsrtowcs.c: New file.
19045
19046         New module 'mbsrtowcs'.
19047         * lib/wchar.in.h (mbsrtowcs): New declaration.
19048         * lib/mbsrtowcs.c: New file.
19049         * m4/mbsrtowcs.m4: New file.
19050         * modules/mbsrtowcs: New file.
19051         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
19052         HAVE_MBSRTOWCS.
19053         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
19054         HAVE_MBSRTOWCS.
19055         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
19056
19057 2008-12-19  Bruno Haible  <bruno@clisp.org>
19058
19059         New module 'mbrlen'.
19060         * lib/wchar.in.h (mbrlen): New declaration.
19061         * lib/mbrlen.c: New file.
19062         * m4/mbrlen.m4: New file.
19063         * modules/mbrlen: New file.
19064         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
19065         HAVE_MBRLEN.
19066         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
19067         HAVE_MBRLEN.
19068         * doc/posix-functions/mbrlen.texi: Document the new module.
19069
19070 2008-12-19  Bruno Haible  <bruno@clisp.org>
19071
19072         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
19073         * modules/mbrtowc (Depends-on): Add verify.
19074         Suggested by Paul Eggert.
19075
19076 2008-12-18  Bruno Haible  <bruno@clisp.org>
19077
19078         * modules/mbsinit-tests: New file.
19079         * tests/test-mbsinit.sh: New file.
19080         * tests/test-mbsinit.c: New file.
19081
19082 2008-12-18  Bruno Haible  <bruno@clisp.org>
19083
19084         * modules/mbrtowc-tests: New file.
19085         * tests/test-mbrtowc1.sh: New file.
19086         * tests/test-mbrtowc2.sh: New file.
19087         * tests/test-mbrtowc3.sh: New file.
19088         * tests/test-mbrtowc4.sh: New file.
19089         * tests/test-mbrtowc.c: New file.
19090
19091         New module 'mbrtowc'.
19092         * lib/wchar.in.h (mbstate_t): Override when the system does not have
19093         mbsinit and mbrtowc.
19094         (mbrtowc): New declaration.
19095         * lib/mbrtowc.c: New file.
19096         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
19097         * modules/mbrtowc: New file.
19098         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
19099         HAVE_MBRTOWC.
19100         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
19101         HAVE_MBRTOWC.
19102         * doc/posix-functions/mbrtowc.texi: Document the new module.
19103
19104 2008-12-18  Bruno Haible  <bruno@clisp.org>
19105
19106         New module 'wctob'.
19107         * lib/wchar.in.h (wctob): New declaration.
19108         * lib/wctob.c: New file.
19109         * m4/wctob.m4: New file.
19110         * modules/wctob: New file.
19111         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
19112         HAVE_WCTOB.
19113         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
19114         * doc/posix-functions/wctob.texi: Document the new module.
19115
19116 2008-12-18  Bruno Haible  <bruno@clisp.org>
19117
19118         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
19119         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
19120
19121 2008-12-18  Simon Josefsson  <simon@josefsson.org>
19122
19123         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
19124         G. Christensen" <tgc@jupiterrise.com>.
19125
19126         * lib/flock.c: Need to include errno.h.  Reported by "Tom
19127         G. Christensen" <tgc@jupiterrise.com>.
19128
19129         * lib/flock.c: Need to include string.h.  Reported by "Tom
19130         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
19131         <ebb9@byu.net>.
19132
19133 2008-12-18  Bruno Haible  <bruno@clisp.org>
19134
19135         * m4/locale-ja.m4: New file, from GNU gettext.
19136
19137 2008-12-17  Bruno Haible  <bruno@clisp.org>
19138
19139         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
19140         Suggested by Eric Blake.
19141
19142 2008-12-17  Bruno Haible  <bruno@clisp.org>
19143
19144         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
19145
19146 2008-12-17  Bruno Haible  <bruno@clisp.org>
19147
19148         * lib/mbsinit.c: Include verify.h. Verify an assumption.
19149         * modules/mbsinit (Depends-on): Add verify.
19150         Suggested by Paul Eggert.
19151
19152 2008-12-17  Bruno Haible  <bruno@clisp.org>
19153
19154         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
19155         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
19156         gl_FUNC_MBRTOWC.
19157         * m4/mbiter.m4 (gl_MBITER): LIkewise.
19158         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
19159         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
19160         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
19161         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
19162         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
19163         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
19164         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
19165         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
19166         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
19167         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
19168         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
19169         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
19170         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
19171         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
19172         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
19173         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
19174         * modules/trim (configure.ac): Likewise.
19175
19176 2008-12-17  Bruno Haible  <bruno@clisp.org>
19177
19178         * modules/btowc-tests: New file.
19179         * tests/test-btowc1.sh: New file.
19180         * tests/test-btowc2.sh: New file.
19181         * tests/test-btowc.c: New file.
19182
19183         New module 'btowc'.
19184         * lib/wchar.in.h (btowc): New declaration.
19185         * lib/btowc.c: New file.
19186         * m4/btowc.m4: New file.
19187         * modules/btowc: New file.
19188         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
19189         HAVE_BTOWC.
19190         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
19191         * doc/posix-functions/btowc.texi: Document the new module.
19192
19193 2008-12-17  Bruno Haible  <bruno@clisp.org>
19194
19195         New module 'mbsinit'.
19196         * lib/wchar.in.h (mbsinit): New declaration.
19197         * lib/mbsinit.c: New file.
19198         * m4/mbsinit.m4: New file.
19199         * modules/mbsinit: New file.
19200         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
19201         HAVE_MBSINIT.
19202         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
19203         HAVE_MBSINIT.
19204         * doc/posix-functions/mbsinit.texi: Document the new module.
19205
19206 2008-12-16  Bruno Haible  <bruno@clisp.org>
19207
19208         * lib/unistd.in.h: Add comment.
19209         * tests/test-environ.c: Don't include <stdlib.h>.
19210
19211 2008-12-16  Bruno Haible  <bruno@clisp.org>
19212
19213         * lib/parse-duration.h (parse_duration): Document return value
19214         convention.
19215         * lib/parse-duration.c: Include specification header first. Add
19216         comments.
19217         (_): Remove macro.
19218         (parse_year_month_day, parse_hour_minute_second): Move side effects
19219         outside of strchr call.
19220         (parse_non_iso8601): Move side effects outside of isspace call.
19221         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
19222         call.
19223
19224 2008-12-16  Bruno Haible  <bruno@clisp.org>
19225
19226         * tests/test-parse-duration.sh: Produce no output when the test
19227         succeeds.
19228
19229 2008-12-16  Bruno Haible  <bruno@clisp.org>
19230
19231         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
19232         expressions.
19233
19234 2008-12-15  Bruno Haible  <bruno@clisp.org>
19235
19236         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
19237         * doc/glibc-functions/flistxattr.texi: Likewise.
19238         * doc/glibc-functions/fopencookie.texi: Likewise.
19239         * doc/glibc-functions/fremovexattr.texi: Likewise.
19240         * doc/glibc-functions/fsetxattr.texi: Likewise.
19241         * doc/glibc-functions/getxattr.texi: Likewise.
19242         * doc/glibc-functions/lgetxattr.texi: Likewise.
19243         * doc/glibc-functions/listxattr.texi: Likewise.
19244         * doc/glibc-functions/llistxattr.texi: Likewise.
19245         * doc/glibc-functions/lremovexattr.texi: Likewise.
19246         * doc/glibc-functions/lsetxattr.texi: Likewise.
19247         * doc/glibc-functions/removexattr.texi: Likewise.
19248         * doc/glibc-functions/setxattr.texi: Likewise.
19249         * doc/posix-functions/open_memstream.texi: Likewise.
19250
19251 2008-12-15  Eric Blake  <ebb9@byu.net>
19252
19253         Update doc for cygwin 1.7.
19254         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
19255         functions.
19256         * doc/posix-functions/fchmodat.texi: Likewise.
19257         * doc/posix-functions/fchownat.texi: Likewise.
19258         * doc/posix-functions/fdopendir.texi: Likewise.
19259         * doc/posix-functions/fmemopen.texi: Likewise.
19260         * doc/posix-functions/freeaddrinfo.texi: Likewise.
19261         * doc/posix-functions/fstatat.texi: Likewise.
19262         * doc/posix-functions/futimens.texi: Likewise.
19263         * doc/posix-functions/gai_strerror.texi: Likewise.
19264         * doc/posix-functions/getaddrinfo.texi: Likewise.
19265         * doc/posix-functions/getnameinfo.texi: Likewise.
19266         * doc/posix-functions/if_freenameindex.texi: Likewise.
19267         * doc/posix-functions/if_indextoname.texi: Likewise.
19268         * doc/posix-functions/if_nameindex.texi: Likewise.
19269         * doc/posix-functions/if_nametoindex.texi: Likewise.
19270         * doc/posix-functions/insque.texi: Likewise.
19271         * doc/posix-functions/linkat.texi: Likewise.
19272         * doc/posix-functions/llrint.texi: Likewise.
19273         * doc/posix-functions/llrintf.texi: Likewise.
19274         * doc/posix-functions/llrintl.texi: Likewise.
19275         * doc/posix-functions/lockf.texi: Likewise.
19276         * doc/posix-functions/lrintl.texi: Likewise.
19277         * doc/posix-functions/mkdirat.texi: Likewise.
19278         * doc/posix-functions/mkfifoat.texi: Likewise.
19279         * doc/posix-functions/mknodat.texi: Likewise.
19280         * doc/posix-functions/mq_close.texi: Likewise.
19281         * doc/posix-functions/mq_getattr.texi: Likewise.
19282         * doc/posix-functions/mq_notify.texi: Likewise.
19283         * doc/posix-functions/mq_open.texi: Likewise.
19284         * doc/posix-functions/mq_receive.texi: Likewise.
19285         * doc/posix-functions/mq_send.texi: Likewise.
19286         * doc/posix-functions/mq_setattr.texi: Likewise.
19287         * doc/posix-functions/mq_timedreceive.texi: Likewise.
19288         * doc/posix-functions/mq_timedsend.texi: Likewise.
19289         * doc/posix-functions/mq_unlink.texi: Likewise.
19290         * doc/posix-functions/open_memstream.texi: Likewise.
19291         * doc/posix-functions/openat.texi: Likewise.
19292         * doc/posix-functions/posix_fadvise.texi: Likewise.
19293         * doc/posix-functions/posix_fallocate.texi: Likewise.
19294         * doc/posix-functions/posix_madvise.texi: Likewise.
19295         * doc/posix-functions/posix_memalign.texi: Likewise.
19296         * doc/posix-functions/posix_openpt.texi: Likewise.
19297         * doc/posix-functions/readlinkat.texi: Likewise.
19298         * doc/posix-functions/remque.texi: Likewise.
19299         * doc/posix-functions/renameat.texi: Likewise.
19300         * doc/posix-functions/rintl.texi: Likewise.
19301         * doc/posix-functions/sem_unlink.texi: Likewise.
19302         * doc/posix-functions/shm_open.texi: Likewise.
19303         * doc/posix-functions/shm_unlink.texi: Likewise.
19304         * doc/posix-functions/signgam.texi: Likewise.
19305         * doc/posix-functions/sigset.texi: Likewise.
19306         * doc/posix-functions/stpcpy.texi: Likewise.
19307         * doc/posix-functions/stpncpy.texi: Likewise.
19308         * doc/posix-functions/strerror.texi: Likewise.
19309         * doc/posix-functions/strtod.texi: Likewise.
19310         * doc/posix-functions/symlinkat.texi: Likewise.
19311         * doc/posix-functions/unlinkat.texi: Likewise.
19312         * doc/posix-functions/utimensat.texi: Likewise.
19313         * doc/glibc-functions/bindresvport.texi: Likewise.
19314         * doc/glibc-functions/dn_expand.texi: Likewise.
19315         * doc/glibc-functions/exp10.texi: Likewise.
19316         * doc/glibc-functions/exp10f.texi: Likewise.
19317         * doc/glibc-functions/fgetxattr.texi: Likewise.
19318         * doc/glibc-functions/flistxattr.texi: Likewise.
19319         * doc/glibc-functions/fopencookie.texi: Likewise.
19320         * doc/glibc-functions/freeifaddrs.texi: Likewise.
19321         * doc/glibc-functions/fremovexattr.texi: Likewise.
19322         * doc/glibc-functions/fsetxattr.texi: Likewise.
19323         * doc/glibc-functions/getifaddrs.texi: Likewise.
19324         * doc/glibc-functions/getxattr.texi: Likewise.
19325         * doc/glibc-functions/lgetxattr.texi: Likewise.
19326         * doc/glibc-functions/listxattr.texi: Likewise.
19327         * doc/glibc-functions/llistxattr.texi: Likewise.
19328         * doc/glibc-functions/lremovexattr.texi: Likewise.
19329         * doc/glibc-functions/lsetxattr.texi: Likewise.
19330         * doc/glibc-functions/pow10.texi: Likewise.
19331         * doc/glibc-functions/pow10f.texi: Likewise.
19332         * doc/glibc-functions/rcmd_af.texi: Likewise.
19333         * doc/glibc-functions/removexattr.texi: Likewise.
19334         * doc/glibc-functions/res_init.texi: Likewise.
19335         * doc/glibc-functions/res_mkquery.texi: Likewise.
19336         * doc/glibc-functions/res_query.texi: Likewise.
19337         * doc/glibc-functions/res_querydomain.texi: Likewise.
19338         * doc/glibc-functions/res_send.texi: Likewise.
19339         * doc/glibc-functions/rresvport_af.texi: Likewise.
19340         * doc/glibc-functions/setxattr.texi: Likewise.
19341         * doc/glibc-functions/strcasestr.texi: Likewise.
19342
19343 2008-12-15  Bruno Haible  <bruno@clisp.org>
19344
19345         Fix compilation error on OSF/1 4.0.
19346         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
19347         <sys/time.h>, simply delegate to the system header.
19348         Reported by Daniel Richard G. <oss@teragram.com>.
19349
19350 2008-12-15  Bruno Haible  <bruno@clisp.org>
19351
19352         * doc/posix-functions/openat.texi: Mention the 'openat' module.
19353         * doc/posix-functions/fchmodat.texi: Likewise.
19354         * doc/posix-functions/fchownat.texi: Likewise.
19355         * doc/posix-functions/fdopendir.texi: Likewise.
19356         * doc/posix-functions/fstatat.texi: Likewise.
19357         * doc/posix-functions/mkdirat.texi: Likewise.
19358         * doc/posix-functions/unlinkat.texi: Likewise.
19359
19360 2008-12-14  Bruno Haible  <bruno@clisp.org>
19361
19362         Update doc for POSIX:2008.
19363         * doc/posix-functions/faccessat.texi: New file.
19364         * doc/posix-functions/fchmodat.texi: New file.
19365         * doc/posix-functions/fchownat.texi: New file.
19366         * doc/posix-functions/fdopendir.texi: New file.
19367         * doc/posix-functions/fstatat.texi: New file.
19368         * doc/posix-functions/futimens.texi: New file.
19369         * doc/posix-functions/linkat.texi: New file.
19370         * doc/posix-functions/mkdirat.texi: New file.
19371         * doc/posix-functions/mkfifoat.texi: New file.
19372         * doc/posix-functions/mknodat.texi: New file.
19373         * doc/posix-functions/open_wmemstream.texi: New file.
19374         * doc/posix-functions/openat.texi: New file.
19375         * doc/posix-functions/psiginfo.texi: New file.
19376         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
19377         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
19378         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
19379         * doc/posix-functions/readlinkat.texi: New file.
19380         * doc/posix-functions/renameat.texi: New file.
19381         * doc/posix-functions/strerror_l.texi: New file.
19382         * doc/posix-functions/symlinkat.texi: New file.
19383         * doc/posix-functions/unlinkat.texi: New file.
19384         * doc/posix-functions/utimensat.texi: New file.
19385         * doc/gnulib.texi (Function Substitutes): Add these subsections.
19386
19387 2008-12-14  Bruno Haible  <bruno@clisp.org>
19388
19389         Update doc for POSIX:2008.
19390         * doc/posix-functions/alphasort.texi: Renamed from
19391         doc/glibc-functions/alphasort.texi.
19392         * doc/posix-functions/dirfd.texi: Renamed from
19393         doc/glibc-functions/dirfd.texi.
19394         * doc/posix-functions/dprintf.texi: Renamed from
19395         doc/glibc-functions/dprintf.texi.
19396         * doc/posix-functions/duplocale.texi: Renamed from
19397         doc/glibc-functions/duplocale.texi.
19398         * doc/posix-functions/fexecve.texi: Renamed from
19399         doc/glibc-functions/fexecve.texi.
19400         * doc/posix-functions/fmemopen.texi: Renamed from
19401         doc/glibc-functions/fmemopen.texi.
19402         * doc/posix-functions/freelocale.texi: Renamed from
19403         doc/glibc-functions/freelocale.texi.
19404         * doc/posix-functions/getdate_err.texi: Renamed from
19405         doc/glibc-functions/getdate_err.texi.
19406         * doc/posix-functions/isalnum_l.texi: Renamed from
19407         doc/glibc-functions/isalnum_l.texi.
19408         * doc/posix-functions/isalpha_l.texi: Renamed from
19409         doc/glibc-functions/isalpha_l.texi.
19410         * doc/posix-functions/isblank_l.texi: Renamed from
19411         doc/glibc-functions/isblank_l.texi.
19412         * doc/posix-functions/iscntrl_l.texi: Renamed from
19413         doc/glibc-functions/iscntrl_l.texi.
19414         * doc/posix-functions/isdigit_l.texi: Renamed from
19415         doc/glibc-functions/isdigit_l.texi.
19416         * doc/posix-functions/isgraph_l.texi: Renamed from
19417         doc/glibc-functions/isgraph_l.texi.
19418         * doc/posix-functions/islower_l.texi: Renamed from
19419         doc/glibc-functions/islower_l.texi.
19420         * doc/posix-functions/isprint_l.texi: Renamed from
19421         doc/glibc-functions/isprint_l.texi.
19422         * doc/posix-functions/ispunct_l.texi: Renamed from
19423         doc/glibc-functions/ispunct_l.texi.
19424         * doc/posix-functions/isspace_l.texi: Renamed from
19425         doc/glibc-functions/isspace_l.texi.
19426         * doc/posix-functions/isupper_l.texi: Renamed from
19427         doc/glibc-functions/isupper_l.texi.
19428         * doc/posix-functions/iswalnum_l.texi: Renamed from
19429         doc/glibc-functions/iswalnum_l.texi.
19430         * doc/posix-functions/iswalpha_l.texi: Renamed from
19431         doc/glibc-functions/iswalpha_l.texi.
19432         * doc/posix-functions/iswblank_l.texi: Renamed from
19433         doc/glibc-functions/iswblank_l.texi.
19434         * doc/posix-functions/iswcntrl_l.texi: Renamed from
19435         doc/glibc-functions/iswcntrl_l.texi.
19436         * doc/posix-functions/iswctype_l.texi: Renamed from
19437         doc/glibc-functions/iswctype_l.texi.
19438         * doc/posix-functions/iswdigit_l.texi: Renamed from
19439         doc/glibc-functions/iswdigit_l.texi.
19440         * doc/posix-functions/iswgraph_l.texi: Renamed from
19441         doc/glibc-functions/iswgraph_l.texi.
19442         * doc/posix-functions/iswlower_l.texi: Renamed from
19443         doc/glibc-functions/iswlower_l.texi.
19444         * doc/posix-functions/iswprint_l.texi: Renamed from
19445         doc/glibc-functions/iswprint_l.texi.
19446         * doc/posix-functions/iswpunct_l.texi: Renamed from
19447         doc/glibc-functions/iswpunct_l.texi.
19448         * doc/posix-functions/iswspace_l.texi: Renamed from
19449         doc/glibc-functions/iswspace_l.texi.
19450         * doc/posix-functions/iswupper_l.texi: Renamed from
19451         doc/glibc-functions/iswupper_l.texi.
19452         * doc/posix-functions/iswxdigit_l.texi: Renamed from
19453         doc/glibc-functions/iswxdigit_l.texi.
19454         * doc/posix-functions/isxdigit_l.texi: Renamed from
19455         doc/glibc-functions/isxdigit_l.texi.
19456         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
19457         doc/glibc-functions/mbsnrtowcs.texi.
19458         * doc/posix-functions/mkdtemp.texi: Renamed from
19459         doc/glibc-functions/mkdtemp.texi.
19460         * doc/posix-functions/newlocale.texi: Renamed from
19461         doc/glibc-functions/newlocale.texi.
19462         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
19463         doc/glibc-functions/nl_langinfo_l.texi.
19464         * doc/posix-functions/open_memstream.texi: Renamed from
19465         doc/glibc-functions/open_memstream.texi.
19466         * doc/posix-functions/opterr.texi: Renamed from
19467         doc/glibc-functions/opterr.texi.
19468         * doc/posix-functions/optind.texi: Renamed from
19469         doc/glibc-functions/optind.texi.
19470         * doc/posix-functions/optopt.texi: Renamed from
19471         doc/glibc-functions/optopt.texi.
19472         * doc/posix-functions/psignal.texi: Renamed from
19473         doc/glibc-functions/psignal.texi.
19474         * doc/posix-functions/scandir.texi: Renamed from
19475         doc/glibc-functions/scandir.texi.
19476         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
19477         doc/glibc-functions/sched_get_priority_min.texi.
19478         * doc/posix-functions/signgam.texi: Renamed from
19479         doc/glibc-functions/signgam.texi.
19480         * doc/posix-functions/stpcpy.texi: Renamed from
19481         doc/glibc-functions/stpcpy.texi.
19482         * doc/posix-functions/stpncpy.texi: Renamed from
19483         doc/glibc-functions/stpncpy.texi.
19484         * doc/posix-functions/strcasecmp_l.texi: Renamed from
19485         doc/glibc-functions/strcasecmp_l.texi.
19486         * doc/posix-functions/strcoll_l.texi: Renamed from
19487         doc/glibc-functions/strcoll_l.texi.
19488         * doc/posix-functions/strfmon_l.texi: Renamed from
19489         doc/glibc-functions/strfmon_l.texi.
19490         * doc/posix-functions/strftime_l.texi: Renamed from
19491         doc/glibc-functions/strftime_l.texi.
19492         * doc/posix-functions/strncasecmp_l.texi: Renamed from
19493         doc/glibc-functions/strncasecmp_l.texi.
19494         * doc/posix-functions/strndup.texi: Renamed from
19495         doc/glibc-functions/strndup.texi.
19496         * doc/posix-functions/strnlen.texi: Renamed from
19497         doc/glibc-functions/strnlen.texi.
19498         * doc/posix-functions/strsignal.texi: Renamed from
19499         doc/glibc-functions/strsignal.texi.
19500         * doc/posix-functions/strxfrm_l.texi: Renamed from
19501         doc/glibc-functions/strxfrm_l.texi.
19502         * doc/posix-functions/timer_gettime.texi: Renamed from
19503         doc/glibc-functions/timer_gettime.texi.
19504         * doc/posix-functions/tolower_l.texi: Renamed from
19505         doc/glibc-functions/tolower_l.texi.
19506         * doc/posix-functions/toupper_l.texi: Renamed from
19507         doc/glibc-functions/toupper_l.texi.
19508         * doc/posix-functions/towctrans_l.texi: Renamed from
19509         doc/glibc-functions/towctrans_l.texi.
19510         * doc/posix-functions/towlower_l.texi: Renamed from
19511         doc/glibc-functions/towlower_l.texi.
19512         * doc/posix-functions/towupper_l.texi: Renamed from
19513         doc/glibc-functions/towupper_l.texi.
19514         * doc/posix-functions/uselocale.texi: Renamed from
19515         doc/glibc-functions/uselocale.texi.
19516         * doc/posix-functions/vdprintf.texi: Renamed from
19517         doc/glibc-functions/vdprintf.texi.
19518         * doc/posix-functions/wcpcpy.texi:
19519         Renamed from doc/glibc-functions/wcpcpy.texi.
19520         * doc/posix-functions/wcpncpy.texi: Renamed from
19521         doc/glibc-functions/wcpncpy.texi.
19522         * doc/posix-functions/wcscasecmp.texi: Renamed from
19523         doc/glibc-functions/wcscasecmp.texi.
19524         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
19525         doc/glibc-functions/wcscasecmp_l.texi.
19526         * doc/posix-functions/wcscoll_l.texi: Renamed from
19527         doc/glibc-functions/wcscoll_l.texi.
19528         * doc/posix-functions/wcsdup.texi: Renamed from
19529         doc/glibc-functions/wcsdup.texi.
19530         * doc/posix-functions/wcsncasecmp.texi: Renamed from
19531         doc/glibc-functions/wcsncasecmp.texi.
19532         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
19533         doc/glibc-functions/wcsncasecmp_l.texi.
19534         * doc/posix-functions/wcsnlen.texi: Renamed from
19535         doc/glibc-functions/wcsnlen.texi.
19536         * doc/posix-functions/wcsnrtombs.texi: Renamed from
19537         doc/glibc-functions/wcsnrtombs.texi.
19538         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
19539         doc/glibc-functions/wcsxfrm_l.texi.
19540         * doc/posix-functions/wctrans_l.texi: Renamed from
19541         doc/glibc-functions/wctrans_l.texi.
19542         * doc/posix-functions/wctype_l.texi: Renamed from
19543         doc/glibc-functions/wctype_l.texi.
19544         * doc/gnulib.texi (Function Substitutes): Add these subsections.
19545         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
19546         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
19547         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
19548         these subsections.
19549         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
19550         Remove sections.
19551
19552 2008-12-14  Bruno Haible  <bruno@clisp.org>
19553
19554         Update doc for POSIX:2008.
19555         * doc/posix-functions/*.texi: Update URL of POSIX specification.
19556
19557 2008-12-14  Bruno Haible  <bruno@clisp.org>
19558
19559         Update doc for POSIX:2008.
19560         * doc/pastposix-functions/bcmp.texi: Renamed from
19561         doc/posix-functions/bcmp.texi.
19562         * doc/pastposix-functions/bcopy.texi: Renamed from
19563         doc/posix-functions/bcopy.texi.
19564         * doc/pastposix-functions/bsd_signal.texi: Renamed from
19565         doc/posix-functions/bsd_signal.texi.
19566         * doc/pastposix-functions/bzero.texi: Renamed from
19567         doc/posix-functions/bzero.texi.
19568         * doc/pastposix-functions/ecvt.texi: Renamed from
19569         doc/posix-functions/ecvt.texi.
19570         * doc/pastposix-functions/fcvt.texi: Renamed from
19571         doc/posix-functions/fcvt.texi.
19572         * doc/pastposix-functions/ftime.texi: Renamed from
19573         doc/posix-functions/ftime.texi.
19574         * doc/pastposix-functions/gcvt.texi: Renamed from
19575         doc/posix-functions/gcvt.texi.
19576         * doc/pastposix-functions/getcontext.texi: Renamed from
19577         doc/posix-functions/getcontext.texi.
19578         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
19579         doc/posix-functions/gethostbyaddr.texi.
19580         * doc/pastposix-functions/gethostbyname.texi: Renamed from
19581         doc/posix-functions/gethostbyname.texi.
19582         * doc/pastposix-functions/getwd.texi: Renamed from
19583         doc/posix-functions/getwd.texi.
19584         * doc/pastposix-functions/h_errno.texi: Renamed from
19585         doc/posix-functions/h_errno.texi.
19586         * doc/pastposix-functions/index.texi: Renamed from
19587         doc/posix-functions/index.texi.
19588         * doc/pastposix-functions/makecontext.texi: Renamed from
19589         doc/posix-functions/makecontext.texi.
19590         * doc/pastposix-functions/mktemp.texi: Renamed from
19591         doc/posix-functions/mktemp.texi.
19592         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
19593         doc/posix-functions/pthread_attr_getstackaddr.texi.
19594         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
19595         doc/posix-functions/pthread_attr_setstackaddr.texi.
19596         * doc/pastposix-functions/rindex.texi: Renamed from
19597         doc/posix-functions/rindex.texi.
19598         * doc/pastposix-functions/scalb.texi: Renamed from
19599         doc/posix-functions/scalb.texi.
19600         * doc/pastposix-functions/setcontext.texi: Renamed from
19601         doc/posix-functions/setcontext.texi.
19602         * doc/pastposix-functions/swapcontext.texi: Renamed from
19603         doc/posix-functions/swapcontext.texi.
19604         * doc/pastposix-functions/ualarm.texi: Renamed from
19605         doc/posix-functions/ualarm.texi.
19606         * doc/pastposix-functions/usleep.texi: Renamed from
19607         doc/posix-functions/usleep.texi.
19608         * doc/pastposix-functions/vfork.texi: Renamed from
19609         doc/posix-functions/vfork.texi.
19610         * doc/pastposix-functions/wcswcs.texi: Renamed from
19611         doc/posix-functions/wcswcs.texi.
19612         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
19613         (Function Substitutes): Update.
19614
19615 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19616
19617         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
19618         m4/strerror.m4.
19619
19620 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19621             Bruno Haible  <bruno@clisp.org>
19622
19623         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
19624
19625 2008-12-13  Bruno Haible  <bruno@clisp.org>
19626
19627         * modules/strtoull (Depends-on): Remove unistd.
19628
19629 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19630
19631         * modules/strtoull (Depends-on): Add stdlib.
19632
19633 2008-12-11  Simon Josefsson  <simon@josefsson.org>
19634
19635         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
19636
19637 2008-12-10  Jim Meyering  <meyering@redhat.com>
19638
19639         gl_ASSERT: don't say assertions are disabled when they're not
19640         * m4/assert.m4 (gl_ASSERT): Do not make configure report
19641         "checking whether to enable assertions... no", when they are in
19642         fact enabled.  This is solely a bug in the output of configure.
19643         In spite of saying "no", NDEBUG was not defined in that case.
19644         Also, as noted by Eric Blake, leave assertions enabled upon
19645         --enable-assert=INVALID.
19646
19647 2008-12-10  Bruno Haible  <bruno@clisp.org>
19648
19649         Change MODULES.html to refer to POSIX:2008 where possible.
19650         * MODULES.html.sh (POSIX2008_URL): New variable.
19651         (posix_headers): Remove sys/timeb, ucontext.
19652         (posix2001_headers): New variable.
19653         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
19654         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
19655         index, makecontext, mktemp, pthread_attr_getstackaddr,
19656         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
19657         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
19658         (posix2001_functions): New variable.
19659         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
19660         otherwise.
19661
19662 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19663
19664         add missing include to parse-duration.c
19665         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
19666         * modules/parse-duration (Depends-on): Add xalloc.
19667
19668         fix sed script reading maint.mk
19669         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
19670         (syntax-check-rules): Use it.
19671
19672 2008-12-09  Bruno Haible  <bruno@clisp.org>
19673
19674         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
19675         MacOS X 10.4/PowerPC.
19676         Reported by Simon Josefsson.
19677
19678 2008-12-08  Jim Meyering  <meyering@redhat.com>
19679
19680         work around mingw's lack of some S_IF definitions
19681         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
19682         Reported by Simon Josefsson.
19683
19684 2008-12-08  Bruno Haible  <bruno@clisp.org>
19685
19686         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
19687         applied to variables. Needed on MacOS X 10.4/PowerPC.
19688         Reported by Simon Josefsson.
19689
19690 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
19691         and Eric Blake  <ebb9@byu.net>
19692
19693         assert: honor --enable-assert
19694         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
19695         order to honor --enable-assert, rather than treating it as a
19696         synonym for --disable-assert.
19697
19698 2008-12-08  Jim Meyering  <meyering@redhat.com>
19699
19700         * lib/posixtm.c: Remove now-useless declaration of mktime.
19701
19702         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
19703
19704 2008-12-07  Bruno Haible  <bruno@clisp.org>
19705
19706         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
19707         test_once): Mark functions as static.
19708         * tests/test-tls.c (test_tls): Likewise.
19709
19710 2008-12-07  Bruno Haible  <bruno@clisp.org>
19711
19712         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
19713         iconv_register_autodetect.
19714
19715 2008-12-07  Jim Meyering  <meyering@redhat.com>
19716
19717         posixtm.c: avoid a warning
19718         * lib/posixtm.c (posixtime): Don't initialize tm0.
19719         It's no longer needed to placate gcc4's -Wuninitialized,
19720         and the attempt to placate would elicit a new warning.
19721
19722         unicodeio.c: mark unused parameters
19723         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
19724         (fallback_failure_callback): Likewise.
19725
19726 2008-12-07  Bruno Haible  <bruno@clisp.org>
19727
19728         * gnulib-tool (func_create_testdir): When building the tests
19729         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
19730         Reported by Simon Josefsson.
19731
19732 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19733
19734         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
19735
19736 2008-12-06  Bruno Haible  <bruno@clisp.org>
19737
19738         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
19739         Suggested by Eric Blake.
19740
19741 2008-12-06  Bruno Haible  <bruno@clisp.org>
19742
19743         Fix a c-stack test failure on MacOS X.
19744         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
19745         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
19746         handler for SIGBUS as well.
19747         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
19748         install a signal handler for SIGBUS as well.
19749         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
19750
19751 2008-12-06  Bruno Haible  <bruno@clisp.org>
19752
19753         Advocacy documentation.
19754         * doc/gnulib-intro.texi (Benefits): New section.
19755         * doc/gnulib.texi: Update.
19756
19757 2008-12-06  Bruno Haible  <bruno@clisp.org>
19758
19759         Document the 'manywarnings' module.
19760         * doc/manywarnings.texi: New file.
19761         * doc/gnulib.texi: Include it.
19762
19763 2008-12-05  Eric Blake  <ebb9@byu.net>
19764
19765         tests: silence some gcc warnings
19766         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
19767         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
19768         type mismatches.
19769
19770 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19771             Bruno Haible  <bruno@clisp.org>
19772
19773         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
19774
19775 2008-11-29  Jim Meyering  <meyering@redhat.com>
19776
19777         unicodeio.c: mark unused parameters
19778         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
19779         (fallback_failure_callback): Likewise.
19780
19781         fts: fix a thinko
19782         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
19783         (set_stat_type): Return S_IF*-valued "type" directly.
19784         Prompted by James Youngman's spotting a related bug.
19785         Confirmed by further testing through find.
19786
19787         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
19788         * lib/fts.c (D_TYPE): Define.
19789         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
19790         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
19791         (s_ifmt_shift_bits): New function.
19792         (set_stat_type): New function.
19793         (fts_build): When not calling fts_stat, call set_stat_type
19794         to propagate dirent.d_type info to fts_read caller.
19795         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
19796         fts_statp->st_mode type information may be valid.
19797
19798 2008-11-28  Simon Josefsson  <simon@josefsson.org>
19799
19800         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
19801         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
19802         <sds@gnu.org>.
19803
19804 2008-11-20  Bruno Haible  <bruno@clisp.org>
19805
19806         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
19807         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
19808         INCLUDE_NEXT.
19809         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
19810         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
19811         * modules/math (Makefile.am): Substitute
19812         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
19813         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
19814
19815 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
19816             Bruno Haible  <bruno@clisp.org>
19817
19818         * lib/stdint.in.h: Define all type macros so that their expansion is
19819         a single typedef'ed token. Fixes a compilation failure in Boost which
19820         does "using ::int8_t;".
19821
19822 2008-11-18  Simon Josefsson  <simon@josefsson.org>
19823
19824         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
19825         gl_MANYWARN_ALL_GCC.
19826         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
19827         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
19828         * modules/manywarnings: New file.
19829         * MODULES.html.sh: Mention manywarnings module.
19830
19831 2008-11-18  Bruno Haible  <bruno@clisp.org>
19832
19833         * doc/gnulib-tool.texi (Unit tests): New section.
19834
19835 2008-11-18  Simon Josefsson  <simon@josefsson.org>
19836
19837         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
19838         paths like 'lib/po/foo.po'.
19839
19840 2008-11-17  Simon Josefsson  <simon@josefsson.org>
19841
19842         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
19843         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
19844
19845 2008-11-17  Simon Josefsson  <simon@josefsson.org>
19846
19847         * m4/warnings.m4: Use CPPFLAGS to really check whether the
19848         parameter works.
19849
19850 2008-11-17  Simon Josefsson  <simon@josefsson.org>
19851
19852         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
19853
19854 2008-11-17  Bruce Korb  <bkorb@gnu.org>
19855
19856         * modules/parse-duration-tests: New file.
19857         * tests/test-parse-duration.sh: New file.
19858         * tests/test-parse-duration.c: New file.
19859
19860         New module 'parse-duration'.
19861         * lib/parse-duration.h: New file.
19862         * lib/parse-duration.c: New file.
19863         * modules/parse-duration: New file.
19864
19865 2008-11-17  Bruno Haible  <bruno@clisp.org>
19866
19867         * tests/test-select-out.sh: Comment out the first pipe test.
19868         Reported by Simon Josefsson.
19869
19870 2008-11-17  Bruno Haible  <bruno@clisp.org>
19871
19872         * modules/getaddrinfo (Depends-on): Add servent, hostent.
19873         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
19874         gl_HOSTENT.
19875
19876 2008-11-17  Bruno Haible  <bruno@clisp.org>
19877
19878         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
19879         -lnetwork and -lnet. Needed for Haiku and BeOS.
19880
19881 2008-11-16  Bruno Haible  <bruno@clisp.org>
19882
19883         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
19884
19885 2008-11-16  Bruno Haible  <bruno@clisp.org>
19886
19887         Avoid test failure on Haiku.
19888         * tests/test-fsync.c: Include <errno.h>.
19889         (main): Don't require that fsync (0) fails.
19890
19891 2008-11-15  Bruno Haible  <bruno@clisp.org>
19892
19893         New module 'hostent'.
19894         * modules/hostent: New file.
19895         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
19896
19897 2008-11-15  Bruno Haible  <bruno@clisp.org>
19898
19899         New module 'servent'.
19900         * modules/servent: New file.
19901         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
19902
19903 2008-11-15  Bruno Haible  <bruno@clisp.org>
19904
19905         Avoid generating same test program with two different rules.
19906         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
19907         test-frexp to test-frexp-nolibm.
19908         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
19909         test-frexpl to test-frexpl-nolibm.
19910
19911 2008-11-15  Bruno Haible  <bruno@clisp.org>
19912
19913         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
19914         $(FREXPL_LIBM).
19915
19916 2008-11-15  Bruno Haible  <bruno@clisp.org>
19917
19918         * lib/netdb.in.h: Activate the definitions also when the system's
19919         <netdb.h> has 'struct addrinfo'.
19920         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
19921         EAI_OVERFLOW or AI_NUMERICSERV.
19922         * doc/posix-headers/netdb.texi: Document the problem.
19923
19924 2008-11-15  Bruno Haible  <bruno@clisp.org>
19925
19926         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
19927
19928         Make the 'sched' module work on platforms where <sched.h> exists but
19929         is incomplete (such as Haiku).
19930         * lib/sched.in.h; Include the system's <sched.h> if it exists.
19931         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
19932         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
19933         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
19934         HAVE_STRUCT_SCHED_PARAM.
19935         * modules/sched (Depends-on): Add include_next.
19936         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
19937         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
19938         * doc/posix-headers/sched.texi: Document the issue.
19939
19940 2008-11-13  Jim Meyering  <meyering@redhat.com>
19941
19942         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
19943         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
19944         test would fail due to the difference in the Report bugs to ...
19945         line.  The expected address is empty, "<>", while the actual
19946         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
19947
19948 2008-11-12  Bruno Haible  <bruno@clisp.org>
19949
19950         lstat: don't compile lstat.c on systems lacking lstat
19951         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
19952         which don't have lstat; this is handled by lib/sys_stat.in.h already.
19953         Reported by Daniel P. Berrange via Jim Meyering.
19954
19955 2008-11-12  Jim Meyering  <meyering@redhat.com>
19956
19957         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
19958
19959 2008-11-12  Simon Josefsson  <simon@josefsson.org>
19960
19961         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
19962         instead.
19963
19964 2008-11-12  Bruno Haible  <bruno@clisp.org>
19965
19966         * lib/unicodeio.c: Include unistr.h.
19967         (utf8_wctomb): Remove function.
19968         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
19969
19970 2008-11-12  Simon Josefsson  <simon@josefsson.org>
19971
19972         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
19973         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
19974         <bruno@clisp.org>.
19975         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
19976
19977 2008-11-12  Simon Josefsson  <simon@josefsson.org>
19978
19979         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
19980         * doc/gnulib.texi: Add section for warnings.
19981
19982 2008-11-11  Bruno Haible  <bruno@clisp.org>
19983
19984         * lib/sockets.h: Add a comment.
19985
19986 2008-11-11  Karl Berry  <karl@gnu.org>
19987
19988         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
19989
19990 2008-11-11  Eric Blake  <ebb9@byu.net>
19991
19992         fdl.texi: avoid git symlinks
19993         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
19994
19995 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
19996
19997         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
19998
19999 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
20000
20001         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
20002         (gl_WARN_ADD): Substitute $2 if literal.
20003
20004 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
20005
20006         * m4/warning.m4: Remove.
20007
20008 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
20009
20010         * m4/warnings.m4: Almost complete rewrite. :-)
20011
20012 2008-11-10  Simon Josefsson  <simon@josefsson.org>
20013
20014         * modules/warnings: New module.
20015         * m4/warnings.m4: New file.
20016         * MODULES.html.sh: Mention warnings module.
20017         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
20018         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20019
20020 2008-11-10  Eric Blake  <ebb9@byu.net>
20021
20022         fdl.texi: make a symlink to the latest version
20023         * doc/standards.texi: Revert today's earlier change.
20024         * doc/fdl-1.2.texi: Rename from old fdl.texi...
20025         * doc/fdl.texi: ...and replace this with a symlink to the newer
20026         fdl-1.3.texi.
20027
20028 2008-11-10  Bruno Haible  <bruno@clisp.org>
20029
20030         * tests/test-select-fd.c (main): Accept the result file name as fourth
20031         argument.
20032         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
20033         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
20034
20035 2008-11-10  Bruno Haible  <bruno@clisp.org>
20036
20037         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
20038         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
20039         as autoconf-substituted macros.
20040         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
20041         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
20042         gl_NETDB_H_DEFAULTS. Set these variables.
20043         * modules/netdb (Makefile.am): Substitute these variables.
20044
20045 2008-11-10  Eric Blake  <ebb9@byu.net>
20046
20047         standards.texi: include correct file for FDL 1.3
20048         * doc/standards.texi (GNU Free Documentation License): Change
20049         include file to pull in FDL 1.3, not 1.2.
20050
20051         fdl.texi: revert accidental change to license
20052         * doc/fdl.texi: This is FDL 1.2, not 1.3.
20053
20054 2008-11-10  Bruno Haible  <bruno@clisp.org>
20055
20056         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
20057         cross-compiling guesses also when the native compile gives no result.
20058
20059 2008-11-10  Bruno Haible  <bruno@clisp.org>
20060
20061         * lib/spawni.c (__spawni): Force variable into the stack.
20062
20063 2008-11-10  Bruno Haible  <bruno@clisp.org>
20064
20065         Add support for Haiku.
20066         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
20067         glibc and BeOS, but also on Haiku.
20068         * lib/fpurge.c (fpurge): Likewise.
20069         * lib/freadable.c (freadable): Likewise.
20070         * lib/freadahead.c (freadahead): Likewise.
20071         * lib/freading.c (freading): Likewise.
20072         * lib/freadptr.c (freadptr): Likewise.
20073         * lib/freadseek.c (freadptrinc): Likewise.
20074         * lib/fseeko.c (rpl_fseeko): Likewise.
20075         * lib/fseterr.c (fseterr): Likewise.
20076         * lib/fwritable.c (fwritable): Likewise.
20077         * lib/fwriting.c (fwriting): Likewise.
20078         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
20079
20080 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
20081
20082         * lib/config.charset: Treat Haiku like BeOS.
20083
20084 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
20085
20086         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
20087         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
20088
20089 2008-11-08  Bruno Haible  <bruno@clisp.org>
20090
20091         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
20092         AC_CACHE_CHECK.
20093
20094 2008-11-08  Bruno Haible  <bruno@clisp.org>
20095
20096         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
20097
20098 2008-11-08  Bruno Haible  <bruno@clisp.org>
20099
20100         * tests/test-select-fd.c: New file.
20101         * tests/test-select-in.sh: New file.
20102         * tests/test-select-out.sh: New file.
20103         * tests/test-select-stdin.c: New file.
20104         * modules/select-tests (Files): Add the new files.
20105         (Depends-on): Add gettimeofday.
20106         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
20107         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
20108         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
20109
20110 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
20111             Bruno Haible  <bruno@clisp.org>
20112
20113         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
20114
20115 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
20116
20117         * build-aux/pmccabe2html: Added support for C++ source files.
20118
20119 2008-11-05  Ben Pfaff  <blp@gnu.org>
20120
20121         Fix lib/close.c build on Windows.
20122         * modules/close (Files): Add lib/w32sock.h.
20123
20124 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
20125
20126         Accept Bison's NEWS format.
20127         * build-aux/announce-gen (print_news_deltas): Tweak
20128         $re_prefix.
20129
20130 2008-11-04  Bruno Haible  <bruno@clisp.org>
20131
20132         * modules/random_r (Maintainer): Add glibc.
20133
20134 2008-11-04  Simon Josefsson  <simon@josefsson.org>
20135
20136         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
20137         by karl@freefriends.org (Karl Berry).
20138         * doc/alloca.texi: Likewise.
20139         * doc/c-ctype.texi: Likewise.
20140         * doc/c-strcase.texi: Likewise.
20141         * doc/c-strcaseeq.texi: Likewise.
20142         * doc/c-strcasestr.texi: Likewise.
20143         * doc/c-strstr.texi: Likewise.
20144         * doc/c-strtod.texi: Likewise.
20145         * doc/c-strtold.texi: Likewise.
20146         * doc/ctime.texi: Likewise.
20147         * doc/error.texi: Likewise.
20148         * doc/fdl.texi: Likewise.
20149         * doc/gcd.texi: Likewise.
20150         * doc/getdate.texi: Likewise.
20151         * doc/gnulib-intro.texi: Likewise.
20152         * doc/gnulib-tool.texi: Likewise.
20153         * doc/gnulib.texi: Likewise.
20154         * doc/inet_ntoa.texi: Likewise.
20155         * doc/maintain.texi: Likewise.
20156         * doc/make-stds.texi: Likewise.
20157         * doc/quote.texi: Likewise.
20158         * doc/regexprops-generic.texi: Likewise.
20159         * doc/standards.texi: Likewise.
20160         * doc/verify.texi: Likewise.
20161         * doc/visibility.texi: Likewise.
20162         * doc/gnulib.texi (GNU Free Documentation License): Include
20163         fdl-1.3.texi instead of fdl.texi.
20164
20165 2008-11-04  Simon Josefsson  <simon@josefsson.org>
20166
20167         * doc/fdl-1.3.texi: New file, from
20168         <http://www.gnu.org/licenses/fdl-1.3.texi>.
20169         * modules/fdl-1.3: Add.
20170         * MODULES.html.sh: Add fdl-1.3.
20171
20172 2008-11-03  Bruno Haible  <bruno@clisp.org>
20173
20174         Make determination of absolute name of header file work with AIX xlc.
20175         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
20176         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
20177         preprocessing.
20178         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
20179         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
20180
20181 2008-11-03  Simon Josefsson  <simon@josefsson.org>
20182
20183         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
20184         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
20185         <ludo@gnu.org>.
20186
20187 2008-11-02  Bruno Haible  <bruno@clisp.org>
20188
20189         Mark 'strpbrk' obsolete.
20190         * modules/strpbrk (Status, Notice): New sections.
20191         * modules/strtok_r (Depends-on): Add strpbrk.
20192
20193 2008-11-02  Bruno Haible  <bruno@clisp.org>
20194
20195         Mark 'strdup' obsolete.
20196         * modules/strdup (Status, Notice): New sections.
20197         * modules/findprog (Depends-on): Add strdup.
20198         * modules/getaddrinfo (Depends-on): Likewise.
20199         * modules/localename (Depends-on): Likewise.
20200         * modules/relocatable-lib (Depends-on): Likewise.
20201         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
20202         * modules/relocatable-prog (Depends-on): Likewise.
20203         * modules/trim (Depends-on): Likewise.
20204         * modules/unictype/gen-ctype (Depends-on): Likewise.
20205         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
20206
20207 2008-11-02  Bruno Haible  <bruno@clisp.org>
20208
20209         Mark 'strcspn' obsolete.
20210         * modules/strcspn (Status, Notice): New sections.
20211
20212 2008-11-02  Bruno Haible  <bruno@clisp.org>
20213
20214         Mark 'rmdir' obsolete.
20215         * modules/rmdir (Status, Notice): New sections.
20216         * modules/clean-temp (Depends-on): Add rmdir.
20217         * modules/openat (Depends-on): Likewise.
20218
20219 2008-11-02  Bruno Haible  <bruno@clisp.org>
20220
20221         Mark 'raise' obsolete.
20222         * modules/raise (Status, Notice): New sections.
20223         (Include): Specify <signal.h>.
20224         * modules/stdio (Depends-on): Add raise.
20225         * modules/write (Depends-on): Likewise.
20226
20227 2008-11-02  Bruno Haible  <bruno@clisp.org>
20228
20229         Mark 'memset' obsolete.
20230         * modules/memset (Status, Notice): New sections.
20231
20232 2008-11-02  Bruno Haible  <bruno@clisp.org>
20233
20234         Mark 'memmove' obsolete.
20235         * modules/memmove (Status, Notice): New sections.
20236         * modules/argp (Depends-on): Add memmove.
20237         * modules/argz (Depends-on): Likewise.
20238         * modules/canonicalize (Depends-on): Likewise.
20239         * modules/canonicalize-lgpl (Depends-on): Likewise.
20240         * modules/fts (Depends-on): Likewise.
20241         * modules/getcwd (Depends-on): Likewise.
20242         * modules/human (Depends-on): Likewise.
20243         * modules/regex (Depends-on): Likewise.
20244         * modules/striconveh (Depends-on): Likewise.
20245         * modules/trim (Depends-on): Likewise.
20246         * modules/unistr/u8-move (Depends-on): Likewise.
20247         * modules/unistr/u16-move (Depends-on): Likewise.
20248         * modules/unistr/u32-move (Depends-on): Likewise.
20249
20250 2008-11-02  Bruno Haible  <bruno@clisp.org>
20251
20252         Mark 'memcpy' obsolete.
20253         * modules/memcpy (Status, Notice): New sections.
20254
20255 2008-11-02  Bruno Haible  <bruno@clisp.org>
20256
20257         Mark 'memcmp' obsolete.
20258         * modules/memcmp (Status, Notice): New sections.
20259         * modules/argmatch (Depends-on): Add memchr.
20260         * modules/backupfile (Depends-on): Likewise.
20261         * modules/c-strcasestr (Depends-on): Likewise.
20262         * modules/crypto/des (Depends-on): Likewise.
20263         * modules/csharpcomp (Depends-on): Likewise.
20264         * modules/fnmatch (Depends-on): Likewise.
20265         * modules/git-merge-changelog (Depends-on): Likewise.
20266         * modules/isnand (Depends-on): Likewise.
20267         * modules/isnand-nolibm (Depends-on): Likewise.
20268         * modules/isnanf (Depends-on): Likewise.
20269         * modules/isnanf-nolibm (Depends-on): Likewise.
20270         * modules/isnanl (Depends-on): Likewise.
20271         * modules/isnanl-nolibm (Depends-on): Likewise.
20272         * modules/mbchar (Depends-on): Likewise.
20273         * modules/memcoll (Depends-on): Likewise.
20274         * modules/quotearg (Depends-on): Likewise.
20275         * modules/regex (Depends-on): Likewise.
20276         * modules/relocatable-prog (Depends-on): Likewise.
20277         * modules/same (Depends-on): Likewise.
20278         * modules/signbit (Depends-on): Likewise.
20279         * modules/strcasestr-simple (Depends-on): Likewise.
20280         * modules/unictype/gen-ctype (Depends-on): Likewise.
20281         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
20282         * modules/uniname/uniname (Depends-on): Likewise.
20283         * modules/unistr/u8-cmp (Depends-on): Likewise.
20284
20285 2008-11-02  Bruno Haible  <bruno@clisp.org>
20286
20287         Mark 'memchr' obsolete.
20288         * modules/memchr (Status, Notice): New sections.
20289         * modules/argp (Depends-on): Add memchr.
20290         * modules/base64 (Depends-on): Likewise.
20291         * modules/c-strcasestr (Depends-on): Likewise.
20292         * modules/chdir-long (Depends-on): Likewise.
20293         * modules/fnmatch (Depends-on): Likewise.
20294         * modules/getsubopt (Depends-on): Likewise.
20295         * modules/git-merge-changelog (Depends-on): Likewise.
20296         * modules/glob (Depends-on): Likewise.
20297         * modules/strcasestr-simple (Depends-on): Likewise.
20298         * modules/strnlen (Depends-on): Likewise.
20299
20300 2008-11-02  Bruno Haible  <bruno@clisp.org>
20301
20302         Mark 'atexit' obsolete.
20303         * modules/atexit (Status, Notice): New sections.
20304         * modules/chdir-long (Depends-on): Add atexit.
20305         * modules/wait-process (Depends-on): Likewise.
20306
20307 2008-11-02  Bruno Haible  <bruno@clisp.org>
20308
20309         * gnulib-tool: New option --with-obsolete.
20310         (func_usage): Document it.
20311         (func_modules_transitive_closure): Drop obsolete dependencies if
20312         incobsolete is not true.
20313         (func_import): Read and save the incobsolete variable to the cache.
20314
20315 2008-11-02  Bruno Haible  <bruno@clisp.org>
20316
20317         * modules/TEMPLATE-EXTENDED: New field 'Status'.
20318         * gnulib-tool: New option --extract-status.
20319         (func_usage): Document it.
20320         (sed_extract_prog): Recognize it.
20321         (func_get_status): New function.
20322
20323 2008-10-30  Simon Josefsson  <simon@josefsson.org>
20324
20325         * modules/sockets (License): Change from LGPL to LGPLv2+.
20326
20327 2008-10-28  Simon Josefsson  <simon@josefsson.org>
20328
20329         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
20330
20331 2008-10-28  Simon Josefsson  <simon@josefsson.org>
20332
20333         * MODULES.html.sh (Support for systems lacking POSIX:2001):
20334         Mention times and sys_times.
20335         * modules/sys_times, modules/sys_times-tests: New modules.
20336         * modules/times, modules/times-tests: Likewise
20337         * m4/sys_times_h.m4: New file.
20338         * lib/sys_times.in.h: Likewise
20339         * lib/times.c: Likewise.
20340         * tests/test-sys_times.c: Likewise.
20341         * tests/test-times.c: Likewise.
20342         * doc/posix-headers/sys_times.texi: Update.
20343         * doc/posix-functions/times.texi: Update.
20344
20345 2008-10-28  Jim Meyering  <meyering@redhat.com>
20346
20347         * modules/tempname (Depends-on): Add lstat.
20348
20349         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
20350
20351 2008-10-28  Simon Josefsson  <simon@josefsson.org>
20352
20353         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
20354         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
20355         using idiom used elsewhere in gnulib.
20356
20357 2008-10-27  Jim Meyering  <meyering@redhat.com>
20358
20359         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
20360
20361 2008-10-27  Simon Josefsson  <simon@josefsson.org>
20362
20363         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
20364         TESTS_ENVIRONMENT, for shell scripts that needs to call built
20365         programs.
20366         * tests/test-argp-2.sh: Use $EXEEXT when needed.
20367
20368 2008-10-27  Simon Josefsson  <simon@josefsson.org>
20369
20370         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
20371
20372 2008-10-27  Bruno Haible  <bruno@clisp.org>
20373
20374         * tests/test-lstat.c: Include <stdio.h>.
20375
20376 2008-10-27  Simon Josefsson  <simon@josefsson.org>
20377
20378         * modules/lstat-tests: New module.
20379         * tests/test-lstat.c: New file.
20380
20381 2008-10-26  Jim Meyering  <meyering@redhat.com>
20382
20383         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
20384
20385 2008-10-26  Simon Josefsson  <simon@josefsson.org>
20386             Bruno Haible  <bruno@clisp.org>
20387
20388         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
20389         * modules/configmake (Include): Add a note that the include must come
20390         after all system headers.
20391         * lib/javaversion.c: Include configmake.h after all other includes.
20392
20393 2008-10-26  Bruno Haible  <bruno@clisp.org>
20394
20395         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
20396         HAVE_STRUCT_RANDOM_DATA to 1.
20397         (gl_STDLIB_H): Simplify.
20398
20399 2008-10-26  Simon Josefsson  <simon@josefsson.org>
20400
20401         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
20402         substitute HAVE_STRUCT_RANDOM_DATA.
20403         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
20404         random_data.
20405         * modules/stdlib (Makefile.am): Substitute
20406         HAVE_STRUCT_RANDOM_DATA.
20407
20408 2008-10-26  Simon Josefsson  <simon@josefsson.org>
20409
20410         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
20411         * doc/gnulib-intro.texi (Copyright): Likewise.
20412
20413 2008-10-26  Simon Josefsson  <simon@josefsson.org>
20414
20415         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
20416         findings.
20417
20418 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
20419             Bruno Haible  <bruno@clisp.org>
20420
20421         * lib/unistd.in.h: Include <winsock2.h>.
20422         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
20423         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
20424         Provide dummy declarations.
20425         (gethostname): Override.
20426         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
20427         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
20428         gl_PREREQ_SYS_H_WINSOCK2.
20429         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
20430         * doc/posix-functions/gethostname.texi: More details.
20431
20432 2008-10-25  Bruno Haible  <bruno@clisp.org>
20433
20434         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
20435         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
20436         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
20437
20438         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
20439         here ...
20440         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
20441         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
20442         gl_UNISTD_H_DEFAULTS.
20443
20444 2008-10-25  Eric Blake  <ebb9@byu.net>
20445
20446         signbit: avoid spurious compiler failure
20447         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
20448         declarations inside function.
20449
20450 2008-10-24  Simon Josefsson  <simon@josefsson.org>
20451             Bruno Haible  <bruno@clisp.org>
20452
20453         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
20454         * modules/random_r (Depends-on): Add stdint.
20455
20456 2008-10-24  Bruno Haible  <bruno@clisp.org>
20457
20458         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
20459         Eggert.
20460         * modules/strerror (License): Likewise.
20461
20462 2008-10-24  Jim Meyering  <meyering@redhat.com>
20463
20464         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
20465         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
20466
20467 2008-10-24  Eric Blake  <ebb9@byu.net>
20468
20469         getgroups: fix compilation when getgroups is available
20470         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
20471         but with <config.h> override of getgroups disabled.
20472
20473 2008-10-24  Simon Josefsson  <simon@josefsson.org>
20474
20475         * doc/gnulib.texi (Header files): Add note about C++ problems.
20476         Explained by Bruno Haible <bruno@clisp.org>.
20477
20478 2008-10-23  Bruno Haible  <bruno@clisp.org>
20479
20480         Define a dummy SA_NODEFER macro on Interix.
20481         * lib/signal.in.h (SA_NODEFER): Define fallback.
20482         Reported by Aleksey Cheusov <cheusov@tut.by> via
20483         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
20484
20485 2008-10-23  Bruno Haible  <bruno@clisp.org>
20486
20487         * modules/freadahead (License): Change to LGPLv2+.
20488         Suggested by Simon Josefsson.
20489
20490 2008-10-23  Jim Meyering  <meyering@redhat.com>
20491
20492         random_r: new module
20493         * modules/random_r: New file.
20494         * m4/random_r.m4: New file.
20495         * lib/random_r.c: New file, from glibc.
20496         * modules/random_r-tests: New file.
20497         * tests/test-random_r.c: New file.
20498         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
20499          Declare.
20500         (RAND_MAX): Define.
20501         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
20502         * modules/stdlib: Substitute them, too.
20503         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
20504         * doc/glibc-functions/initstate_r.texi: Mention the new module.
20505         * doc/glibc-functions/random_r.texi: Likewise.
20506         * doc/glibc-functions/setstate_r.texi: Likewise.
20507         * doc/glibc-functions/srandom_r.texi: Likewise.
20508         * config/srclist.txt: Mention it.
20509
20510 2008-10-23  David Lutterkort  <lutter@redhat.com>
20511
20512         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
20513         link requirement
20514
20515 2008-10-23  Jim Meyering  <meyering@redhat.com>
20516
20517         selinux-h: mark parameters of stub functions as intentionally unused
20518         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
20519         * lib/se-context.in.h: Likewise.
20520
20521 2008-10-22  Simon Josefsson  <simon@josefsson.org>
20522
20523         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
20524
20525 2008-10-22  Simon Josefsson  <simon@josefsson.org>
20526
20527         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
20528
20529 2008-10-22  Eric Blake  <ebb9@byu.net>
20530
20531         glthread/thread: avoid compiler warning
20532         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
20533         Add unreachable abort to silence compiler.
20534
20535 2008-10-22  Eric Blake  <ebb9@byu.net>
20536
20537         netdb: also supply struct addrinfo for cygwin 1.5.x
20538         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
20539         older cygwin.
20540         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
20541         cygwin.
20542         * doc/posix-headers/netdb.texi (netdb.h): Document this.
20543
20544 2008-10-22  Bruno Haible  <bruno@clisp.org>
20545
20546         * users.txt: Update entry about pspp.
20547
20548 2008-10-21  Bruno Haible  <bruno@clisp.org>
20549
20550         Simplification.
20551         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
20552         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
20553
20554         Simplification.
20555         * lib/ioctl.c (ioctl): Don't undefine.
20556         * lib/socket.c (socket): Don't undefine.
20557
20558         Remove unused module indicator macros.
20559         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
20560         GNULIB_$1 as a C macro.
20561
20562         * doc/posix-functions/close.texi: Undo last change.
20563         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
20564         Windows platforms.
20565
20566 2008-10-21  Bruno Haible  <bruno@clisp.org>
20567
20568         Add gethostname() declaration to <unistd.h>.
20569         * lib/unistd.in.h (gethostname): New declaration.
20570         * lib/gethostname.c: Include <unistd.h>.
20571         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
20572         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
20573         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
20574         and HAVE_GETHOSTNAME.
20575         * modules/gethostname (Depends-on): Add unistd.
20576         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
20577         (Include): Specify <unistd.h>.
20578         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
20579         HAVE_GETHOSTNAME.
20580         * tests/test-gethostname.c: Include <unistd.h> first.
20581
20582 2008-10-21  Bruno Haible  <bruno@clisp.org>
20583
20584         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
20585         * modules/select-tests (Depends-on): Likewise.
20586         Reported by Simon Josefsson.
20587
20588 2008-10-21  Simon Josefsson  <simon@josefsson.org>
20589
20590         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
20591         * lib/accept.c: New file, based on winsock.c.
20592         * lib/bind.c: New file, based on winsock.c.
20593         * lib/connect.c: New file, based on winsock.c.
20594         * lib/getpeername.c: New file, based on winsock.c.
20595         * lib/getsockname.c: New file, based on winsock.c.
20596         * lib/getsockopt.c: New file, based on winsock.c.
20597         * lib/ioctl.c: New file, based on winsock.c.
20598         * lib/listen.c: New file, based on winsock.c.
20599         * lib/recv.c: New file, based on winsock.c.
20600         * lib/recvfrom.c: New file, based on winsock.c.
20601         * lib/send.c: New file, based on winsock.c.
20602         * lib/sendto.c: New file, based on winsock.c.
20603         * lib/setsockopt.c: New file, based on winsock.c.
20604         * lib/shutdown.c: New file, based on winsock.c.
20605         * lib/socket.c: New file, based on winsock.c.
20606         * lib/w32sock.h: New file, based on winsock.c.
20607         * lib/winsock.c: Remove file.
20608         * modules/accept: Likewise.
20609         * modules/bind: Likewise.
20610         * modules/connect: Likewise.
20611         * modules/getpeername: Likewise.
20612         * modules/getsockname: Likewise.
20613         * modules/getsockopt: Likewise.
20614         * modules/ioctl: Likewise.
20615         * modules/listen: Likewise.
20616         * modules/recv: Likewise.
20617         * modules/recvfrom: Likewise.
20618         * modules/send: Likewise.
20619         * modules/sendto: Likewise.
20620         * modules/setsockopt: Likewise.
20621         * modules/shutdown: Likewise.
20622         * modules/socket: Use socket.c instead of winsock.c.
20623         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
20624         * doc/posix-functions/accept.texi: Doc fix.
20625         * doc/posix-functions/bind.texi: Doc fix.
20626         * doc/posix-functions/close.texi: Doc fix.
20627         * doc/posix-functions/connect.texi: Doc fix.
20628         * doc/posix-functions/getpeername.texi: Doc fix.
20629         * doc/posix-functions/getsockname.texi: Doc fix.
20630         * doc/posix-functions/getsockopt.texi: Doc fix.
20631         * doc/posix-functions/ioctl.texi: Doc fix.
20632         * doc/posix-functions/listen.texi: Doc fix.
20633         * doc/posix-functions/recv.texi: Doc fix.
20634         * doc/posix-functions/recvfrom.texi: Doc fix.
20635         * doc/posix-functions/send.texi: Doc fix.
20636         * doc/posix-functions/sendto.texi: Doc fix.
20637         * doc/posix-functions/setsockopt.texi: Doc fix.
20638         * doc/posix-functions/shutdown.texi: Doc fix.
20639         * doc/posix-functions/socket.texi: Doc fix.
20640
20641 2008-10-20  Bruno Haible  <bruno@clisp.org>
20642
20643         Take into account the role of SIGABRT_COMPAT on Windows 2008.
20644         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
20645         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
20646         as an alias for SIGABRT.
20647         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
20648         (sigaction): Map it to SIGABRT.
20649         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
20650
20651 2008-10-20  Bruno Haible  <bruno@clisp.org>
20652
20653         * lib/fts.c: Don't include lstat.h.
20654         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
20655
20656         Move the lstat() declaration to <sys/stat.h>.
20657         * lib/lstat.h: Remove file.
20658         * lib/sys_stat.in.h: Add special invocation convention.
20659         (lstat): New declaration.
20660         * lib/lstat.c (orig_lstat): New function.
20661         (rpl_lstat): Use orig_lstat instead of lstat.
20662         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
20663         AC_C_INLINE. Set REPLACE_LSTAT.
20664         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
20665         and REPLACE_LSTAT.
20666         * modules/lstat (Files): Remove lib/lstat.h.
20667         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
20668         (Include): Specify <sys/stat.h> instead of lstat.h.
20669         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
20670         REPLACE_LSTAT.
20671         * NEWS: Mention the change.
20672
20673 2008-10-20  Bruno Haible  <bruno@clisp.org>
20674
20675         * modules/posix_spawn-tests: New file.
20676         * tests/test-posix_spawn3.c: New file.
20677
20678 2008-10-20  Bruno Haible  <bruno@clisp.org>
20679
20680         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
20681         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
20682         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
20683         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
20684         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
20685
20686 2008-10-20  Bruno Haible  <bruno@clisp.org>
20687
20688         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
20689         of posix_spawn on AIX 5.3.
20690
20691 2008-10-20  Bruno Haible  <bruno@clisp.org>
20692
20693         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
20694
20695 2008-10-20  Bruno Haible  <bruno@clisp.org>
20696
20697         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
20698         of AC_LANG_PROGRAM.
20699
20700 2008-10-20  Simon Josefsson  <simon@josefsson.org>
20701
20702         * lib/netdb.in.h: Don't define GNU specific constants until they
20703         are supported or needed.  Reported by Bruno Haible
20704         <bruno@clisp.org>.
20705
20706 2008-10-20  Simon Josefsson  <simon@josefsson.org>
20707
20708         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
20709
20710 2008-10-20  Simon Josefsson  <simon@josefsson.org>
20711
20712         * lib/getaddrinfo.h: Remove file.
20713         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
20714         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
20715         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
20716         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
20717         * modules/netdb: Substitute GNULIB_GETADDRINFO.
20718         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
20719         * tests/test-getaddrinfo.c: Likewise.
20720         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
20721         * NEWS: Mention change.
20722
20723 2008-10-19  Bruno Haible  <bruno@clisp.org>
20724
20725         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
20726
20727 2008-10-19  Bruno Haible  <bruno@clisp.org>
20728
20729         * lib/wait-process.c: Include simply <sys/wait.h>.
20730         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
20731         WIFSTOPPED): Remove fallback definitions.
20732         * modules/wait-process (Depends-on): Add sys_wait.
20733
20734         New module 'sys_wait'.
20735         * modules/sys_wait: New file.
20736         * lib/sys_wait.in.h: New file, partially copied from
20737         lib/wait-process.c.
20738         * m4/sys_wait_h.m4: New file.
20739         * doc/posix-headers/sys_wait.texi: Mention the new module.
20740
20741 2008-10-19  Bruno Haible  <bruno@clisp.org>
20742
20743         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
20744
20745 2008-10-19  Bruno Haible  <bruno@clisp.org>
20746
20747         Assume that waitpid() fills an 'int' status, not a 'union wait'.
20748         * lib/wait-process.c (WAIT_T): Remove type.
20749         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
20750         (wait_subprocess): Update.
20751
20752 2008-10-19  Bruno Haible  <bruno@clisp.org>
20753
20754         New module 'atoll'.
20755         * modules/atoll: New file.
20756         * lib/stdlib.in.h (atoll): New declaration.
20757         * lib/atoll.c: New file, from glibc with modifications.
20758         * m4/atoll.m4: New file.
20759         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
20760         HAVE_ATOLL.
20761         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
20762         * doc/posix-functions/atoll.texi: Mention the new module.
20763
20764 2008-10-19  Bruno Haible  <bruno@clisp.org>
20765
20766         Add strtoull() declaration to <stdlib.h>.
20767         * lib/stdlib.in.h (strtoull): New declaration.
20768         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
20769         Set HAVE_STRTOULL.
20770         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
20771         HAVE_STRTOULL.
20772         * modules/strtoull (Depends-on): Add stdlib.
20773         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
20774         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
20775         HAVE_STRTOULL.
20776
20777 2008-10-19  Bruno Haible  <bruno@clisp.org>
20778
20779         Add strtoll() declaration to <stdlib.h>.
20780         * lib/stdlib.in.h (strtoll): New declaration.
20781         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
20782         Set HAVE_STRTOLL.
20783         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
20784         HAVE_STRTOLL.
20785         * modules/strtoll (Depends-on): Add stdlib.
20786         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
20787         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
20788
20789 2008-10-19  Bruno Haible  <bruno@clisp.org>
20790
20791         * modules/bcopy (Depends-on): Add strings.
20792         (Include): Specify <strings.h>.
20793
20794 2008-10-19  Bruno Haible  <bruno@clisp.org>
20795
20796         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
20797
20798 2008-10-19  Bruno Haible  <bruno@clisp.org>
20799
20800         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
20801         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
20802         mingw.
20803
20804 2008-10-19  Bruno Haible  <bruno@clisp.org>
20805
20806         * lib/atanl.c: Don't include isnanl.h.
20807         * lib/cosl.c: Likewise.
20808         * lib/ldexpl.c: Likewise.
20809         * lib/logl.c: Likewise.
20810         * lib/sinl.c: Likewise.
20811         * lib/sqrtl.c: Likewise.
20812         * lib/tanl.c: Likewise.
20813
20814         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
20815         * lib/isnanf.h: Remove file.
20816         * lib/isnand.h: Remove file.
20817         * lib/isnanl.h: Remove file.
20818         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
20819         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
20820         macros.
20821         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
20822         HAVE_ISNANF, don't define it as a C macro.
20823         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
20824         HAVE_ISNAND, don't define it as a C macro.
20825         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
20826         HAVE_ISNANL, don't define it as a C macro.
20827         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
20828         HAVE_ISNAN[FDL].
20829         * modules/isnanf (Files): Remove lib/isnanf.h.
20830         (Depends-on): Add math.
20831         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
20832         (Include): Specify <math.h> instead of isnanf.h.
20833         * modules/isnand (Files): Remove lib/isnand.h.
20834         (Depends-on): Add math.
20835         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
20836         (Include): Specify <math.h> instead of isnand.h.
20837         * modules/isnanl (Files): Remove lib/isnanl.h.
20838         (Depends-on): Add math.
20839         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
20840         (Include): Specify <math.h> instead of isnanl.h.
20841         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
20842         HAVE_ISNAN[FDL].
20843         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
20844         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
20845         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
20846         * NEWS: Mention the change.
20847
20848 2008-10-18  Bruno Haible  <bruno@clisp.org>
20849
20850         Add getusershell(), setusershell(), endusershell() declarations to
20851         <unistd.h>.
20852         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
20853         declarations.
20854         * lib/getusershell.c: Include unistd.h.
20855         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
20856         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
20857         HAVE_GETUSERSHELL.
20858         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
20859         and HAVE_GETUSERSHELL.
20860         * modules/getusershell (Depends-on): Add unistd, extensions.
20861         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
20862         (Include): Specify <unistd.h>.
20863         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
20864         HAVE_GETUSERSHELL.
20865
20866 2008-10-18  Bruno Haible  <bruno@clisp.org>
20867
20868         Add a getloadavg() declaration to <stdlib.h>.
20869         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
20870         getloadavg declaration.
20871         (getloadavg): New declaration.
20872         * lib/getloadavg.c: Include <stdlib.h> first.
20873         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
20874         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
20875         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
20876         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
20877         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
20878         * modules/getloadavg (Depends-on): Add stdlib, extensions.
20879         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
20880         (Include): Specify <stdlib.h>.
20881         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
20882         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
20883
20884 2008-10-18  Bruno Haible  <bruno@clisp.org>
20885
20886         * lib/dirchownmod.c: Don't include lchmod.h.
20887
20888         Move the lchmod() declaration to <sys/stat.h>.
20889         * lib/lchmod.h: Remove file.
20890         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
20891         (lchmod): New declaration, moved here from lib/lchown.h.
20892         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
20893         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
20894         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
20895         and HAVE_LCHMOD.
20896         * modules/lchmod (Files): Remove lib/lchmod.h.
20897         (Depends-on): Add sys_stat, extensions.
20898         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
20899         (Include): Specify <sys/stat.h> instead of lchmod.h.
20900         * modules/sys_stat (Depends-on): Add link-warning.
20901         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
20902         definition of GL_LINK_WARNING.
20903         * NEWS: Mention the change.
20904
20905 2008-10-18  Bruno Haible  <bruno@clisp.org>
20906
20907         * lib/fchdir.c: Don't include dirfd.h.
20908         * lib/fts.c: Likewise.
20909         * lib/getcwd.c: Likewise.
20910         * lib/glob.c: Likewise.
20911
20912         Move the dirfd() declaration to <dirent.h>.
20913         * lib/dirfd.h: Remove file.
20914         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
20915         (dirfd): New declaration.
20916         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
20917         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
20918         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
20919         HAVE_DECL_DIRFD.
20920         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
20921         HAVE_DECL_DIRFD.
20922         * modules/dirfd (Files): Remove lib/dirfd.h.
20923         (Depends-on): Add dirent, extensions.
20924         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
20925         (Include): Specify <dirent.h> instead of dirfd.h.
20926         * modules/dirent (Depends-on): Add link-warning.
20927         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
20928         definition of GL_LINK_WARNING.
20929         * NEWS: Mention the change.
20930
20931 2008-10-18  Bruno Haible  <bruno@clisp.org>
20932
20933         Move the euidaccess() declaration to <unistd.h>.
20934         * lib/euidaccess.h: Remove file.
20935         * lib/unistd.in.h (euidaccess): New declaration.
20936         * lib/euidaccess.c: Don't include euidaccess.h.
20937         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
20938         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
20939         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
20940         and HAVE_EUIDACCESS.
20941         * modules/euidaccess (Files): Remove lib/euidaccess.h.
20942         (Depends-on): Add unistd.
20943         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
20944         (Include): Specify <unistd.h> instead of euidaccess.h.
20945         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
20946         HAVE_EUIDACCESS.
20947         * NEWS: Mention the change.
20948
20949 2008-10-18  Bruno Haible  <bruno@clisp.org>
20950
20951         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
20952
20953         Move the getdomainname() declaration to <unistd.h>.
20954         * lib/getdomainname.h: Remove file.
20955         * lib/unistd.in.h (getdomainname): New declaration.
20956         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
20957         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
20958         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
20959         HAVE_GETDOMAINNAME.
20960         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20961         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
20962         * modules/getdomainname (Files): Remove lib/getdomainname.h.
20963         (Depends-on): Add unistd, extensions.
20964         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
20965         (Includes): Specify <unistd.h> instead of getdomainname.h.
20966         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
20967         HAVE_GETDOMAINNAME.
20968         * NEWS: Mention the change.
20969
20970 2008-10-18  Bruno Haible  <bruno@clisp.org>
20971
20972         * modules/dirent: New file.
20973         * m4/dirent_h.m4: New file.
20974         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
20975         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
20976         * modules/fchdir (Files): Remove lib/dirent.in.h.
20977         (Depends-on): Add dirent.
20978         (Makefile.am): Move rules to modules/dirent.
20979         * doc/posix-headers/dirent.texi: Mention the new module.
20980
20981 2008-10-18  Bruno Haible  <bruno@clisp.org>
20982
20983         Avoid -Wunused-parameter warnings in public gnulib header files.
20984         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
20985         macro.
20986         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
20987
20988 2008-10-18  Bruno Haible  <bruno@clisp.org>
20989
20990         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
20991         * doc/glibc-functions/error.texi: Mention the module 'error'.
20992         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
20993         * doc/glibc-functions/getdomainname.texi: Mention the module
20994         'getdomainname'.
20995         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
20996         * doc/glibc-functions/getpagesize.texi: Mention the module
20997         'getpagesize'.
20998         * doc/glibc-functions/getusershell.texi: Mention the module
20999         'getusershell'.
21000         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
21001         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
21002         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
21003         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
21004         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
21005         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
21006         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
21007         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
21008         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
21009         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
21010         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
21011         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
21012         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
21013         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
21014
21015 2008-10-17  Bruno Haible  <bruno@clisp.org>
21016
21017         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
21018         HP-UX and IRIX, use -0.0L.
21019         * tests/test-ceill.c (minus_zero): Likewise.
21020         * tests/test-floorl.c (minus_zero): Likewise.
21021         * tests/test-frexpl.c (minus_zero): Likewise.
21022         * tests/test-isnan.c (minus_zerol): Likewise.
21023         * tests/test-isnanl.h (minus_zero): Likewise.
21024         * tests/test-ldexpl.c (minus_zero): Likewise.
21025         * tests/test-roundl.c (minus_zero): Likewise.
21026         * tests/test-signbit.c (minus_zerol): Likewise.
21027         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
21028         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
21029         * tests/test-truncl.c (minus_zero): Likewise.
21030         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
21031         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
21032         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
21033         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
21034
21035 2008-10-17  Bruno Haible  <bruno@clisp.org>
21036
21037         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
21038         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
21039         that it gets activated only for gcc >= 3.0.
21040         * lib/dirent.in.h: Likewise.
21041         * lib/errno.in.h: Likewise.
21042         * lib/fcntl.in.h: Likewise.
21043         * lib/float.in.h: Likewise.
21044         * lib/iconv.in.h: Likewise.
21045         * lib/inttypes.in.h: Likewise.
21046         * lib/locale.in.h: Likewise.
21047         * lib/math.in.h: Likewise.
21048         * lib/netdb.in.h: Likewise.
21049         * lib/netinet_in.in.h: Likewise.
21050         * lib/search.in.h: Likewise.
21051         * lib/signal.in.h: Likewise.
21052         * lib/spawn.in.h: Likewise.
21053         * lib/stdarg.in.h: Likewise.
21054         * lib/stdint.in.h: Likewise.
21055         * lib/stdio.in.h: Likewise.
21056         * lib/stdlib.in.h: Likewise.
21057         * lib/string.in.h: Likewise.
21058         * lib/strings.in.h: Likewise.
21059         * lib/sys_file.in.h: Likewise.
21060         * lib/sys_ioctl.in.h: Likewise.
21061         * lib/sys_select.in.h: Likewise.
21062         * lib/sys_socket.in.h: Likewise.
21063         * lib/sys_stat.in.h: Likewise.
21064         * lib/sys_time.in.h: Likewise.
21065         * lib/sysexits.in.h: Likewise.
21066         * lib/time.in.h: Likewise.
21067         * lib/unistd.in.h: Likewise.
21068         * lib/wchar.in.h: Likewise.
21069         * lib/wctype.in.h: Likewise.
21070         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
21071
21072 2008-10-17  Jim Meyering  <meyering@redhat.com>
21073
21074         ignore-value: don't depend on inline module
21075         * modules/ignore-value (Depends-on): Remove 'inline'.
21076         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
21077         Suggestion from Bruno Haible.
21078
21079 2008-10-17  Bruno Haible  <bruno@clisp.org>
21080
21081         New implementation of condition variables for Win32.
21082         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
21083         (gl_linked_waitqueue_t): New type.
21084         (gl_cond_t): Use it.
21085         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
21086         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
21087         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
21088         (glthread_cond_init_func, glthread_cond_wait_func,
21089         glthread_cond_timedwait_func, glthread_cond_signal_func,
21090         glthread_cond_broadcast_func, glthread_cond_destroy_func):
21091         Reimplemented on the basis of gl_linked_waitqueue_t.
21092         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
21093         gl_waitqueue_t.
21094         (gl_rwlock_t): Update.
21095         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
21096
21097 2008-10-17  Simon Josefsson  <simon@josefsson.org>
21098
21099         * modules/recvfrom (Depends-on): Add dependency on getpeername.
21100         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
21101
21102 2008-10-17  Jim Meyering  <meyering@redhat.com>
21103
21104         ignore-value: new module
21105         * modules/ignore-value: New file.
21106         * lib/ignore-value.h: New file.
21107         * MODULES.html.sh (Compiler warning management): New section,
21108         just for this module.  More to come.
21109
21110 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
21111
21112         open-safer.c: avoid 'signed and unsigned in conditional...' warning
21113         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
21114         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
21115
21116 2008-10-16  Jim Meyering  <meyering@redhat.com>
21117
21118         openat-die.c: avoid 'no previous prototype' warning
21119         * lib/openat-die.c: Include "openat.h".
21120         Reported by Reuben Thomas <rrt@sc3d.org>.
21121
21122 2008-10-16  Simon Josefsson  <simon@josefsson.org>
21123
21124         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
21125         * lib/netdb.in.h: Fix typo.
21126         Reported by Bruno Haible  <bruno@clisp.org>
21127
21128         * lib/netdb.in.h: Include sys/socket.h for platforms without
21129         netdb.h, to get structures like hostent on MinGW.
21130         * modules/netdb (Depends-on): Add sys_socket.
21131
21132 2008-10-15  Simon Josefsson  <simon@josefsson.org>
21133
21134         * modules/netdb, modules/netdb-tests: New file.
21135         * m4/netdb_h.m4: New file.
21136         * lib/netdb.in.h: Add, currently just an empty file pending
21137         definitions.
21138         * tests/test-netdb.c: New file.
21139         * doc/posix-headers/netdb.texi: Mention that we replace it if
21140         needed.
21141         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
21142         netdb.
21143
21144 2008-10-15  Simon Josefsson  <simon@josefsson.org>
21145
21146         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
21147         with code.
21148
21149 2008-10-13  Bruno Haible  <bruno@clisp.org>
21150
21151         * lib/glthread/cond.c (glthread_cond_wait_func,
21152         glthread_cond_timedwait_func): Add a comment.
21153
21154 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
21155
21156         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
21157         * tests/test-select.c: Likewise,
21158
21159 2008-10-13  Bruno Haible  <bruno@clisp.org>
21160
21161         * lib/glthread/cond.c (glthread_cond_wait_func,
21162         glthread_cond_timedwait_func): Fix variable name.
21163         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
21164
21165 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
21166
21167         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
21168         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
21169         struct sockaddr.sa_len.
21170         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
21171
21172 2008-10-13  Simon Josefsson  <simon@josefsson.org>
21173
21174         * build-aux/pmccabe2html: Add css and css_url parameters.
21175
21176 2008-10-12  Bruno Haible  <bruno@clisp.org>
21177
21178         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
21179         calling aclx_get.
21180         Reported by Rainer Tammer <tammer@tammer.net>.
21181
21182 2008-10-12  Bruno Haible  <bruno@clisp.org>
21183
21184         Use msvcrt aware primitives for creation/termination of Win32 threads.
21185         * lib/glthread/thread.c: Include <process.h>.
21186         (glthread_create_func): Use _beginthreadex instead of CreateThread.
21187         (wrapper_func): Update signature.
21188         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
21189
21190 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
21191             Bruno Haible  <bruno@clisp.org>
21192
21193         Provide a Win32 implementation of the 'cond' module.
21194         * lib/glthread/cond.h [USE_WIN32]: New implementation.
21195         * lib/glthread/cond.c (glthread_cond_init_func,
21196         glthread_cond_wait_func, glthread_cond_timedwait_func,
21197         glthread_cond_signal_func, glthread_cond_broadcast_func,
21198         glthread_cond_destroy_func) [USE_WIN32]: New functions.
21199         * modules/cond (Dependencies): Add gettimeofday.
21200
21201 2008-10-11  Bruno Haible  <bruno@clisp.org>
21202
21203         Make sleep work on older versions of mingw.
21204         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
21205         only whether it exists.
21206         * doc/posix-functions/sleep.texi: Mention the problem with older
21207         versions of mingw.
21208
21209 2008-10-11  Bruno Haible  <bruno@clisp.org>
21210
21211         New module 'shutdown'.
21212         * modules/shutdown: New file.
21213         * lib/sys_socket.in.h (shutdown): New declaration.
21214         * lib/winsock.c (shutdown): New function.
21215         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
21216         GNULIB_SHUTDOWN.
21217         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
21218         * doc/posix-functions/shutdown.texi: Document the new module.
21219
21220 2008-10-11  Jim Meyering  <meyering@redhat.com>
21221
21222         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
21223
21224 2008-10-11  Bruno Haible  <bruno@clisp.org>
21225
21226         New module 'fclose'.
21227         * modules/fclose: New file.
21228         * lib/stdio.in.h (fclose): New declaration.
21229         * lib/fclose.c: New file.
21230         * m4/fclose.m4: New file.
21231         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
21232         REPLACE_FCLOSE.
21233         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
21234         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
21235         REPLACE_FCLOSE.
21236         * modules/close (Depends-on): fclose.
21237         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
21238
21239 2008-10-11  Bruno Haible  <bruno@clisp.org>
21240
21241         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
21242         set errno and don't call _close.
21243
21244 2008-10-10  Bruno Haible  <bruno@clisp.org>
21245
21246         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
21247         ACL, not afterwards. Fixes test failure on Cygwin.
21248
21249 2008-10-09  Ben Pfaff  <blp@gnu.org>
21250
21251         * build-aux/announce-gen: Fix gnulib version related part of usage
21252         message.  Die with a useful error message if no tarballs are
21253         found.
21254
21255 2008-10-10  Jim Meyering  <meyering@redhat.com>
21256
21257         bootstrap: use git's --depth=N option only if it's supported
21258         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
21259         recognize the --depth option.  Reported by Pádraig Brady.
21260
21261 2008-10-09  Bruno Haible  <bruno@clisp.org>
21262
21263         New module 'ioctl'.
21264         * modules/ioctl: New file.
21265         * lib/sys_socket.in.h (ioctl): Remove declaration.
21266         * lib/winsock.c: Include <sys/ioctl.h>.
21267         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
21268         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
21269         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
21270         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
21271         * doc/posix-functions/ioctl.texi: Mention the new module.
21272
21273 2008-10-09  Bruno Haible  <bruno@clisp.org>
21274
21275         New module 'sys_ioctl'.
21276         * lib/sys_ioctl.in.h: New file.
21277         * m4/sys_ioctl_h.m4: New file.
21278         * modules/sys_ioctl: New file.
21279         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
21280
21281 2008-10-09  Bruno Haible  <bruno@clisp.org>
21282
21283         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
21284         * lib/winsock.c: Include <stdarg.h>.
21285         (rpl_ioctl): Change to second argument 'int' and then varargs.
21286
21287 2008-10-09  Bruno Haible  <bruno@clisp.org>
21288
21289         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
21290         when the sys_socket module is present and the system has <winsock2.h>.
21291
21292 2008-10-09  Bruno Haible  <bruno@clisp.org>
21293
21294         * doc/posix-functions/close.texi: Mention module 'close' instead of
21295         module 'sys_socket'.
21296
21297 2008-10-09  Bruno Haible  <bruno@clisp.org>
21298
21299         * doc/glibc-headers/sys_ioctl.texi: New file.
21300         * doc/gnulib.texi: Include it.
21301
21302 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
21303             Bruno Haible  <bruno@clisp.org>
21304
21305         Combine the two replacements of 'close'.
21306         * lib/sys_socket.in.h (close): Define to a reminder to include
21307         <unistd.h>.
21308         (_gl_close_fd_maybe_socket): New declaration.
21309         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
21310         * lib/winsock.c (close): Remove undefinition.
21311         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
21312         needed for the gnulib module 'close'.
21313         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
21314         define to an error symbol or to a warning, if suitable.
21315         * lib/close.c: Include <sys/socket.h>.
21316         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
21317         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
21318         UNISTD_H_HAVE_WINSOCK2_H.
21319         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
21320         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21321         UNISTD_H_HAVE_WINSOCK2_H.
21322         * modules/sys_socket (Files): Add m4/unistd_h.m4.
21323         (configure.ac): Set a module indicator.
21324         (Makefile.am): Substitute GNULIB_CLOSE.
21325         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
21326         * modules/poll-tests (Depends-on): Add close.
21327         * modules/select-tests (Depends-on): Likewise.
21328
21329 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
21330             Bruno Haible  <bruno@clisp.org>
21331
21332         New module 'close'.
21333         * modules/close: New file.
21334         * lib/unistd.in.h (close): Move declaration out of the
21335         FCHDIR_REPLACEMENT scope.
21336         (_gl_unregister_fd): New declaration.
21337         * lib/close.c: New file.
21338         * lib/fchdir.c (rpl_close): Remove function.
21339         * m4/close.m4: New file.
21340         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
21341         close.
21342         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
21343         REPLACE_CLOSE.
21344         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
21345         REPLACE_CLOSE.
21346         * modules/fchdir (Depends-on): Add close.
21347
21348 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
21349             Bruno Haible  <bruno@clisp.org>
21350
21351         * lib/fcntl.in.h (open): Simplify conditionals.
21352         (_gl_register_fd): New declaration.
21353         * lib/fchdir.c (rpl_open): Remove function.
21354         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
21355         also.
21356         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
21357         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
21358         open.
21359
21360 2008-10-09  Jim Meyering  <meyering@redhat.com>
21361
21362         GNUmakefile: use the more name-space-friendly "_version"
21363         * top/GNUmakefile (_dummy): Update.
21364         (_version): Rename from "version".
21365
21366 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
21367             Bruno Haible  <bruno@clisp.org>
21368
21369         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
21370         rpl_close.
21371         (_gl_register_fd): New function, extracted from rpl_open.
21372         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
21373         (rpl_open, rpl_opendir): Use _gl_register_fd.
21374
21375 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
21376
21377         Fix organization of 'open' replacement.
21378         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
21379         (gl_FUNC_OPEN): Use it.
21380         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
21381
21382 2008-10-08  Bruno Haible  <bruno@clisp.org>
21383
21384         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
21385
21386 2008-10-08  Simon Josefsson  <simon@josefsson.org>
21387
21388         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
21389         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
21390         listen).
21391
21392 2008-10-08  Eric Blake  <ebb9@byu.net>
21393
21394         GNUmakefile: add 'make version' target
21395         * top/GNUmakefile (_curr-ver): Split version update rules...
21396         (version): ...into a target.
21397
21398 2008-10-07  Bruno Haible  <bruno@clisp.org>
21399
21400         Use a more portable replacement expression for -0.0L.
21401         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
21402         instead of -0.0L. Fix m4 quotation.
21403
21404         * tests/test-signbit.c: Include <float.h>.
21405         (minus_zero): New variable.
21406         (test_signbitl): Use minus_zero instead of -zero.
21407         * modules/signbit-tests (Depends-on): Add float.
21408
21409         * tests/test-ceill.c: Include <float.h>.
21410         (zero): Remove variable.
21411         (minus_zero): New variable.
21412         (main): Use minus_zero instead of -zero.
21413         * modules/ceill-tests (Depends-on): Add float.
21414
21415         * tests/test-floorl.c: Include <float.h>.
21416         (zero): Remove variable.
21417         (minus_zero): New variable.
21418         (main): Use minus_zero instead of -zero.
21419         * modules/floorl-tests (Depends-on): Add float.
21420
21421         * tests/test-roundl.c: Include <float.h>.
21422         (zero): Remove variable.
21423         (minus_zero): New variable.
21424         (main): Use minus_zero instead of -zero.
21425         * modules/roundl-tests (Depends-on): Add float.
21426
21427         * tests/test-truncl.c: Include <float.h>.
21428         (zero): Remove variable.
21429         (minus_zero): New variable.
21430         (main): Use minus_zero instead of -zero.
21431         * modules/truncl-tests (Depends-on): Add float.
21432
21433         * tests/test-frexpl.c (zero): Remove variable.
21434         (minus_zero): New variable.
21435         (main): Use minus_zero instead of -zero.
21436         * modules/frexpl-tests (Depends-on): Add float.
21437
21438         * tests/test-isnan.c (zerol): Remove variable.
21439         (minus_zerol): New variable.
21440         (test_long_double): Use minus_zerol instead of -zerol.
21441         * modules/isnan-tests (Depends-on): Add float.
21442
21443         * tests/test-isnanl.h (zero): Remove variable.
21444         (minus_zero): New variable.
21445         (main): Use minus_zero instead of -zero.
21446         * modules/isnanl-nolibm-tests (Depends-on): Add float.
21447         * modules/isnanl-tests (Depends-on): Add float.
21448
21449         * tests/test-ldexpl.c (zero): Remove variable.
21450         (minus_zero): New variable.
21451         (main): Use minus_zero instead of -zero.
21452         * modules/ldexpl-tests (Depends-on): Add float.
21453
21454         * tests/test-snprintf-posix.h (zerol): Remove variable.
21455         (minus_zerol): New variable.
21456         (test_function): Use minus_zerol instead of -zerol.
21457         * modules/snprintf-posix-tests (Depends-on): Add float.
21458         * modules/vsnprintf-posix-tests (Depends-on): Add float.
21459
21460         * tests/test-sprintf-posix.h (zerol): Remove variable.
21461         (minus_zerol): New variable.
21462         (test_function): Use minus_zerol instead of -zerol.
21463         * modules/sprintf-posix-tests (Depends-on): Add float.
21464         * modules/vsprintf-posix-tests (Depends-on): Add float.
21465
21466         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
21467         (minus_zerol): New variable.
21468         (test_function): Use minus_zerol instead of -zerol.
21469         * modules/vasnprintf-posix-tests (Depends-on): Add float.
21470
21471         * tests/test-vasprintf-posix.c (zerol): Remove variable.
21472         (minus_zerol): New variable.
21473         (test_function): Use minus_zerol instead of -zerol.
21474         * modules/vasprintf-posix-tests (Depends-on): Add float.
21475
21476 2008-10-07  Simon Josefsson  <simon@josefsson.org>
21477
21478         * MODULES.html.sh (Support for building documentation): Mention
21479         pmccabe2html.  Sort entries.
21480
21481         Add pmccabe2html module, from gnupdf.
21482         * build-aux/pmccabe.css: New file.
21483         * build-aux/pmccabe2html: New file.
21484         * m4/pmccabe2html.m4: New file.
21485         * modules/pmccabe2html: New file.
21486
21487 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
21488
21489         flock: new module
21490         * MODULES.html.sh: Add to list of modules.
21491         * lib/flock.c: flock implementation for Windows and Unix systems
21492         which have fcntl.
21493         * doc/glibc-functions/flock.texi: Update documentation.
21494         * lib/sys_file.in.h: <sys/file.h> header file.
21495         * m4/flock.m4: M4 macros.
21496         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
21497         * modules/flock: flock module.
21498         * modules/flock-tests: flock tests module.
21499         * modules/sys_file: sys/file.h module.
21500         * tests/test-flock.c: test suite for flock.
21501
21502 2008-10-06  Jim Meyering  <meyering@redhat.com>
21503
21504         bootstrap: check for LT_INIT more portably still ;-)
21505         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
21506         Spotted by Bruno Haible.
21507
21508 2008-10-06  Eric Blake  <ebb9@byu.net>
21509
21510         test-signbit: avoid tripping Irix cc bug on -0.0L
21511         * tests/test-signbit.c (minus_zerol): Delete, and replace with
21512         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
21513         entire testsuite consistent and avoids an Irix 6.2 bug.
21514
21515 2008-10-05  Bruno Haible  <bruno@clisp.org>
21516             Jim Meyering  <jim@meyering.net>
21517
21518         Add an option for ignoring EPIPE during close_stdout.
21519         * lib/closeout.h: Include <stdbool.h>.
21520         (close_stdout_set_ignore_EPIPE): New declaration.
21521         * lib/closeout.c: Include <stdbool.h>.
21522         (ignore_EPIPE): New variable.
21523         (close_stdout_set_ignore_EPIPE): New function.
21524         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
21525         * lib/close-stream.c (close_stream): Mention the possible EPIPE
21526         failure.
21527         * modules/closeout (Depends-on): Add stdbool.
21528
21529 2008-10-05  Bruno Haible  <bruno@clisp.org>
21530
21531         * modules/accept: New file.
21532         * modules/bind: New file.
21533         * modules/connect: New file.
21534         * modules/getpeername: New file.
21535         * modules/getsockname: New file.
21536         * modules/getsockopt: New file.
21537         * modules/listen: New file.
21538         * modules/recv: New file.
21539         * modules/recvfrom: New file.
21540         * modules/send: New file.
21541         * modules/sendto: New file.
21542         * modules/setsockopt: New file.
21543         * modules/socket: New file.
21544         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
21545         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
21546         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
21547         the particular module is requested. Add a link warning when the
21548         particular module is not requested.
21549         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
21550         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
21551         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
21552         the particular module is requested.
21553         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
21554         gl_SYS_SOCKET_H_DEFAULTS): New macros.
21555         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
21556         * modules/sys_socket (Depends-on): Add link-warning.
21557         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
21558         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
21559         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
21560         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
21561         GL_LINK_WARNING.
21562         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
21563         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
21564         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
21565         * doc/posix-functions/getpeername.texi: Mention the new module
21566         'getpeername'.
21567         * doc/posix-functions/getsockname.texi: Mention the new module
21568         'getsockname'.
21569         * doc/posix-functions/getsockopt.texi: Mention the new module
21570         'getsockopt'.
21571         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
21572         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
21573         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
21574         * doc/posix-functions/send.texi: Mention the new module 'send'.
21575         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
21576         * doc/posix-functions/setsockopt.texi: Mention the new module
21577         'setsockopt'.
21578         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
21579         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
21580         listen, connect, accept.
21581         * modules/select-tests (Depends-on): Likewise.
21582
21583 2008-10-05  Bruno Haible  <bruno@clisp.org>
21584
21585         * lib/winsock.c (strerror): Remove unused #undef.
21586         (rpl_close): Remove unused local variable.
21587
21588         * modules/sys_socket (Depends-on); Add errno.
21589
21590 2008-10-05  Bruno Haible  <bruno@clisp.org>
21591
21592         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
21593         (select): Add a link warning when the 'select' module is not used.
21594         * modules/sys_select (Depends-on): Add link-warning.
21595         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
21596         Suggested by Paolo Bonzini.
21597
21598 2008-10-05  Jim Meyering  <meyering@redhat.com>
21599
21600         bootstrap: check for LT_INIT more portably
21601         * build-aux/bootstrap: Avoid using grep -E, since it's not
21602         portable enough.  Suggestion from Bruno Haible.
21603
21604 2008-10-05  Bruno Haible  <bruno@clisp.org>
21605
21606         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
21607         as being fixed by gnulib.
21608
21609 2008-10-05  Bruno Haible  <bruno@clisp.org>
21610
21611         * modules/select-tests: New file, mostly copied from
21612         modules/sys_select-tests.
21613         * tests/test-select.c: New file, mostly copied from
21614         tests/test-sys_select.c.
21615         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
21616         * modules/sys_select-tests (Depends-on): Remove all dependencies.
21617         (Makefile.am): Remove test_sys_select_LDADD.
21618
21619         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
21620         to an undefined symbol, for an error message.
21621         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
21622         (gl_SYS_SELECT_H_DEFAULTS): New macro.
21623         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
21624         winsock-select.c here.
21625         * modules/sys_select (Files): Remove lib/winsock-select.c.
21626         (Depends-on): Remove alloca.
21627         (Makefile.am): Substitute GNULIB_SELECT.
21628         * modules/select: New file.
21629         * doc/posix-functions/select.texi: Update.
21630
21631 2008-10-05  Bruno Haible  <bruno@clisp.org>
21632
21633         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
21634         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
21635         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
21636         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
21637         getdtablesize.
21638         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
21639         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
21640
21641 2008-10-05  Bruno Haible  <bruno@clisp.org>
21642
21643         * modules/getdtablesize-tests: New file.
21644         * tests/test-getdtablesize.c: New file.
21645
21646         New module 'getdtablesize'.
21647         * lib/unistd.in.h (getdtablesize): New declaration.
21648         * lib/getdtablesize.c: New file.
21649         * m4/getdtablesize.m4: New file.
21650         * modules/getdtablesize: New file.
21651         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21652         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
21653         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
21654         HAVE_GETDTABLESIZE.
21655         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
21656
21657 2008-10-05  Bruno Haible  <bruno@clisp.org>
21658
21659         * modules/sched (Makefile.am): Fix typo.
21660         Reported by Simon Josefsson.
21661
21662 2008-10-05  Jim Meyering  <meyering@redhat.com>
21663
21664         bootstrap: check for LT_INIT, too
21665         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
21666         are deprecated.  Suggestion from Ralf Wildenhues.
21667
21668 2008-10-05  Bruno Haible  <bruno@clisp.org>
21669
21670         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
21671         overriding them by ours.
21672         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
21673
21674 2008-10-05  Jim Meyering  <meyering@redhat.com>
21675
21676         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
21677         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
21678         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
21679
21680 2008-10-04  Bruno Haible  <bruno@clisp.org>
21681
21682         * modules/dup2 (License): Change to LGPLv2+.
21683         * modules/sleep (License): Likewise.
21684         * modules/perror (License): Likewise.
21685         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
21686         Blake.
21687         * modules/signal (License): Likewise.
21688         * modules/sigprocmask (License): Likewise.
21689         * modules/raise (License): Change to LGPLv2+, with approval by Jim
21690         Meyering.
21691
21692 2008-10-04  Bruno Haible  <bruno@clisp.org>
21693
21694         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
21695         Reported by Rainer Tammer <tammer@tammer.net>.
21696
21697 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
21698             Bruno Haible  <bruno@clisp.org>
21699
21700         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
21701         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
21702         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
21703
21704 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
21705
21706         filevercmp: new module
21707         * lib/filevercmp.h: New function filevercmp comparing version strings.
21708         * lib/filevercmp.c: Implementation of filevercmp function.
21709         * modules/filevercmp: Module metadata.
21710         * tests/test-filevercmp.c: Unit test for new module.
21711         * modules/filevercmp-tests: Unit test metadata.
21712         * MODULES.html.sh: Add filevercmp module.
21713
21714 2008-10-03  Bruno Haible  <bruno@clisp.org>
21715
21716         * lib/c-ctype.h: Add comment.
21717         Reported by Jim Meyering.
21718
21719 2008-10-02  Bruno Haible  <bruno@clisp.org>
21720
21721         * modules/posix_spawn-internal (Depends-on): Add 'open'.
21722
21723 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
21724
21725         * build-aux/bootstrap: Allow renaming bootstrap, and change the
21726         name of bootstrap.conf accordingly.
21727
21728 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
21729
21730         * build-aux/bootstrap: Install git-merge-changelog configuration
21731         items into .gitconfig if needed.
21732
21733 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
21734
21735         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
21736         git repository, and initialize/update it accordingly.
21737
21738 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
21739
21740         * modules/fsync-tests: New file.
21741         * tests/test-fsync.c: New file.
21742
21743         New module 'fsync'.
21744         * lib/fsync.c: New file.
21745         * m4/fsync.m4: New file.
21746         * modules/fsync: New file.
21747         * lib/unistd.in.h (fsync): New declaration.
21748         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
21749         GNULIB_FSYNC and HAVE_FSYNC.
21750         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
21751         * MODULES.html.sh (posix_functions): Add fsync.
21752         * doc/posix-functions/fsync.texi: Mention the new module.
21753
21754 2008-10-02  Jim Meyering  <meyering@redhat.com>
21755
21756         fts.c: sync with similar code from coreutils' remove.c
21757         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
21758         Guard also with "#if defined __linux__", since for now at least,
21759         this code is Linux-kernel-specific.
21760
21761 2008-10-02  Jim Meyering  <meyering@redhat.com>
21762
21763         fts: bug fixes
21764         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
21765         Include <sys/vfs.h>, not <sys/statfs.h>.
21766
21767         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
21768         Include <sys/vfs.h>, not <sys/statfs.h>.
21769
21770 2008-10-01  Bruno Haible  <bruno@clisp.org>
21771
21772         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
21773         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
21774         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
21775         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
21776         * doc/posix-functions/posix_spawnp.texi: Likewise.
21777         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
21778         whether posix_spawn actually works.
21779         * m4/pipe.m4 (gl_PIPE): Likewise.
21780         * modules/execute (Files): Add m4/posix_spawn.m4.
21781         * modules/pipe (Files): Add m4/posix_spawn.m4.
21782         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
21783
21784 2008-10-01  Jim Meyering  <meyering@redhat.com>
21785
21786         remove trailing spaces
21787         * NEWS: Likewise.
21788         * lib/poll.c (poll): Likewise.
21789         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
21790         * lib/winsock.c (rpl_close): Likewise.
21791         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
21792         * modules/yield: Likewise.
21793         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
21794         * tests/test-sys_select.c (connect_to_socket): Likewise.
21795
21796         fts.c: adjust a new interface to be more generally useful
21797         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
21798         (fts_build): Adjust caller.
21799
21800 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21801
21802         * modules/cond-tests: New file.
21803         * tests/test-cond.c: New file.
21804
21805 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21806             Bruno Haible  <bruno@clisp.org>
21807
21808         * modules/cond (Dependencies): Add errno, time.
21809         * lib/glthread/cond.h: Include <time.h>.
21810         (gl_cond_define, gl_cond_define_initialized): Use the same definition
21811         across platforms.
21812
21813 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21814             Bruno Haible  <bruno@clisp.org>
21815
21816         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
21817
21818 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21819             Bruno Haible  <bruno@clisp.org>
21820
21821         * modules/tls-tests (Depends-on): Add thread, yield.
21822         (configure.ac): Remove all checks.
21823         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
21824         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
21825         gl_thread_self): Remove definitions. Include glthread/thread.h and
21826         glthread/yield.h instead.
21827         (test_tls): Pass an additional NULL argument to gl_thread_join.
21828
21829 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21830             Bruno Haible  <bruno@clisp.org>
21831
21832         * modules/lock-tests (Depends-on): Add thread, yield.
21833         (configure.ac): Remove all checks.
21834         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
21835         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
21836         gl_thread_self): Remove definitions. Include glthread/thread.h and
21837         glthread/yield.h instead.
21838         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
21839         additional NULL argument to gl_thread_join.
21840
21841 2008-09-30  Bruno Haible  <bruno@clisp.org>
21842
21843         Fix the Win32 implementation of the 'thread' module.
21844         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
21845         pointer type.
21846         (gl_thread_self): Invoke gl_thread_self_func.
21847         (gl_thread_self_func): New declaration.
21848         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
21849         (do_init_self_key, init_self_key): New functions.
21850         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
21851         Remove some fields.
21852         (running_threads, running_lock): Remove variables.
21853         (get_current_thread_handle): New function.
21854         (gl_thread_self_func, wrapper_func, glthread_create_func,
21855         glthread_join_func, gl_thread_exit_func): Largely rewritten and
21856         simplified.
21857
21858 2008-09-30  Bruno Haible  <bruno@clisp.org>
21859
21860         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
21861         files.
21862
21863 2008-09-30  Jim Meyering  <meyering@redhat.com>
21864
21865         fts.m4: correct the test for statfs.f_type
21866         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
21867         when checking for statfs.f_type.
21868
21869 2008-09-15  Simon Josefsson  <simon@josefsson.org>
21870
21871         tests: avoid some compiler warnings
21872         * tests/test-memchr.c (main): Pass NULL indirectly.
21873         * tests/test-getdate.c (main): Remove unused variable 'ret'.
21874
21875 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
21876
21877         getdate.y: disallow countable dayshifts like "4 yesterday ago"
21878         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
21879         exactly specified dayshifts.
21880         (dayshift): New rule.
21881         (rel): Add dayshift.
21882         (relative_time_table) [tomorrow, yesterday, today, now]:
21883         Use tDAY_SHIFT in place of tDAY_UNIT.
21884         * tests/test-getdate.c: Add tests for now-disallowed countable
21885         dayshifts, e.g., "4 yesterday ago".
21886
21887 2008-09-29  Bruno Haible  <bruno@clisp.org>
21888
21889         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
21890         * tests/test-posix_spawn1.in.sh: Renamed from
21891         tests/test-posix_spawn.in.sh.
21892         * tests/test-posix_spawn2.c: New file.
21893         * tests/test-posix_spawn2.in.sh: New file.
21894         * modules/posix_spawnp-tests (Files): Update.
21895         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
21896
21897 2008-09-29  Bruno Haible  <bruno@clisp.org>
21898
21899         Propagate effects of putenv/setenv/unsetenv to child processes.
21900         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
21901         * lib/pipe.c (create_pipe): Likewise.
21902
21903 2008-09-29  Bruno Haible  <bruno@clisp.org>
21904
21905         Enable use of shell scripts as executables in mingw.
21906         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
21907         run the program as a shell script.
21908         * lib/pipe.c (create_pipe): Likewise.
21909         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
21910         resulting array.
21911
21912 2008-09-29  Eric Blake  <ebb9@byu.net>
21913
21914         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
21915
21916 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
21917
21918         * doc/posix-functions/accept.texi: Update mingw problems.
21919         * doc/posix-functions/bind.texi: Update mingw problems.
21920         * doc/posix-functions/close.texi: Update mingw problems.
21921         * doc/posix-functions/connect.texi: Update mingw problems.
21922         * doc/posix-functions/getpeername.texi: Update mingw problems.
21923         * doc/posix-functions/getsockname.texi: Update mingw problems.
21924         * doc/posix-functions/getsockopt.texi: Update mingw problems.
21925         * doc/posix-functions/ioctl.texi: Update mingw problems.
21926         * doc/posix-functions/listen.texi: Update mingw problems.
21927         * doc/posix-functions/recv.texi: Update mingw problems.
21928         * doc/posix-functions/recvfrom.texi: Update mingw problems.
21929         * doc/posix-functions/select.texi: Update mingw problems.
21930         * doc/posix-functions/send.texi: Update mingw problems.
21931         * doc/posix-functions/sendto.texi: Update mingw problems.
21932         * doc/posix-functions/setsockopt.texi: Update mingw problems.
21933         * doc/posix-functions/socket.texi: Update mingw problems.
21934
21935 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
21936             Bruno Haible  <bruno@clisp.org>
21937
21938         * lib/sys_select.in.h: Include sys/time.h.
21939         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
21940         * modules/sys_select: Depend on sys_time.
21941         * tests/test-sys_select.c: Test that sys/select.h defines struct
21942         timeval fully.
21943
21944 2008-09-29  Bruno Haible  <bruno@clisp.org>
21945
21946         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
21947         * lib/sys_select.in.h: Likewise.
21948
21949 2008-09-29  Bruno Haible  <bruno@clisp.org>
21950
21951         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
21952
21953 2008-09-29  Bruno Haible  <bruno@clisp.org>
21954
21955         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
21956         Set LIBSOCKET instead of augmenting LIBS.
21957         * modules/sockets (Link): New section.
21958         * modules/sockets-tests (test_sockets_LDADD): New variable.
21959         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
21960         * modules/poll-tests (test_poll_LDADD): New variable.
21961         * NEWS: Document the change.
21962
21963 2008-09-29  Bruno Haible  <bruno@clisp.org>
21964
21965         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
21966         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
21967         ARPA_INET_H directly.
21968         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
21969
21970 2008-09-28  Bruno Haible  <bruno@clisp.org>
21971
21972         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
21973         from gl_HEADER_SYS_SOCKET.
21974         (gl_HEADER_SYS_SOCKET): Invoke it.
21975         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
21976
21977 2008-09-28  Bruno Haible  <bruno@clisp.org>
21978
21979         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
21980         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
21981         Needed on OSF/1 4.0.
21982
21983 2008-09-28  Bruno Haible  <bruno@clisp.org>
21984
21985         Override open more carefully.
21986         * lib/open.c (orig_open): New function.
21987         (rpl_open): Use orig_open instead of open.
21988         * lib/fcntl.in.h: Add special invocation convention.
21989         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
21990         (gl_FUNC_OPEN): Invoke it.
21991
21992         Override freopen more carefully.
21993         * lib/freopen.c (orig_freopen): New function.
21994         (rpl_freopen): Use orig_freopen instead of freopen.
21995         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
21996         (gl_FUNC_FREOPEN): Invoke it.
21997
21998         Override fopen more carefully.
21999         * lib/fopen.c (orig_fopen): New function.
22000         (rpl_fopen): Use orig_fopen instead of fopen.
22001         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
22002         (gl_FUNC_FOPEN): Invoke it.
22003         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
22004
22005 2008-09-28  Bruno Haible  <bruno@clisp.org>
22006
22007         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
22008         SIGPIPE.
22009
22010 2008-09-28  Bruno Haible  <bruno@clisp.org>
22011
22012         * tests/test-sigaction.c (handler, main): Disable the check whether
22013         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
22014         glibc systems with LinuxThreads.
22015
22016 2008-09-28  Bruno Haible  <bruno@clisp.org>
22017
22018         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
22019
22020         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
22021         with AIX xlc.
22022         * lib/fcntl.in.h (open): Likewise.
22023         Reported by Rainer Tammer <tammer@tammer.net>.
22024
22025 2008-09-28  Bruno Haible  <bruno@clisp.org>
22026
22027         * modules/posix_spawnp-tests: New file.
22028         * tests/test-posix_spawn.c: New file.
22029         * tests/test-posix_spawn.in.sh: New file.
22030
22031         New module 'posix_spawnp'.
22032         * modules/posix_spawnp: New file.
22033         * lib/spawnp.c: New file, from GNU libc with modifications.
22034         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
22035
22036         New module 'posix_spawn'.
22037         * modules/posix_spawn: New file.
22038         * lib/spawn.c: New file, from GNU libc with modifications.
22039         * doc/posix-functions/posix_spawn.texi: Mention the new module.
22040
22041         New module 'posix_spawnattr_destroy'.
22042         * modules/posix_spawnattr_destroy: New file.
22043         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
22044         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
22045         module.
22046
22047         New module 'posix_spawnattr_setsigmask'.
22048         * modules/posix_spawnattr_setsigmask: New file.
22049         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
22050         modifications.
22051         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
22052         new module.
22053
22054         New module 'posix_spawnattr_getsigmask'.
22055         * modules/posix_spawnattr_getsigmask: New file.
22056         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
22057         modifications.
22058         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
22059         new module.
22060
22061         New module 'posix_spawnattr_setsigdefault'.
22062         * modules/posix_spawnattr_setsigdefault: New file.
22063         * lib/spawnattr_setdefault.c: New file, from GNU libc with
22064         modifications.
22065         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
22066         new module.
22067
22068         New module 'posix_spawnattr_getsigdefault'.
22069         * modules/posix_spawnattr_getsigdefault: New file.
22070         * lib/spawnattr_getdefault.c: New file, from GNU libc with
22071         modifications.
22072         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
22073         new module.
22074
22075         New module 'posix_spawnattr_setschedpolicy'.
22076         * modules/posix_spawnattr_setschedpolicy: New file.
22077         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
22078         modifications.
22079         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
22080         new module.
22081
22082         New module 'posix_spawnattr_getschedpolicy'.
22083         * modules/posix_spawnattr_getschedpolicy: New file.
22084         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
22085         modifications.
22086         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
22087         new module.
22088
22089         New module 'posix_spawnattr_setschedparam'.
22090         * modules/posix_spawnattr_setschedparam: New file.
22091         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
22092         modifications.
22093         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
22094         new module.
22095
22096         New module 'posix_spawnattr_getschedparam'.
22097         * modules/posix_spawnattr_getschedparam: New file.
22098         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
22099         modifications.
22100         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
22101         new module.
22102
22103         New module 'posix_spawnattr_setpgroup'.
22104         * modules/posix_spawnattr_setpgroup: New file.
22105         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
22106         modifications.
22107         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
22108         module.
22109
22110         New module 'posix_spawnattr_getpgroup'.
22111         * modules/posix_spawnattr_getpgroup: New file.
22112         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
22113         modifications.
22114         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
22115         module.
22116
22117         New module 'posix_spawnattr_setflags'.
22118         * modules/posix_spawnattr_setflags: New file.
22119         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
22120         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
22121         module.
22122
22123         New module 'posix_spawnattr_getflags'.
22124         * modules/posix_spawnattr_getflags: New file.
22125         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
22126         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
22127         module.
22128
22129         New module 'posix_spawnattr_init'.
22130         * modules/posix_spawnattr_init: New file.
22131         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
22132         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
22133         module.
22134
22135         New module 'posix_spawn_file_actions_destroy'.
22136         * modules/posix_spawn_file_actions_destroy: New file.
22137         * lib/spawn_faction_destroy.c: New file, from GNU libc with
22138         modifications.
22139         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
22140         the new module.
22141
22142         New module 'posix_spawn_file_actions_addopen'.
22143         * modules/posix_spawn_file_actions_addopen: New file.
22144         * lib/spawn_faction_addopen.c: New file, from GNU libc with
22145         modifications.
22146         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
22147         the new module.
22148
22149         New module 'posix_spawn_file_actions_adddup2'.
22150         * modules/posix_spawn_file_actions_adddup2: New file.
22151         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
22152         modifications.
22153         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
22154         the new module.
22155
22156         New module 'posix_spawn_file_actions_addclose'.
22157         * modules/posix_spawn_file_actions_addclose: New file.
22158         * lib/spawn_faction_addclose.c: New file, from GNU libc with
22159         modifications.
22160         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
22161         the new module.
22162
22163         New module 'posix_spawn_file_actions_init'.
22164         * modules/posix_spawn_file_actions_init: New file.
22165         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
22166         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
22167         new module.
22168
22169         New module 'posix_spawn-internal'.
22170         * modules/posix_spawn-internal: New file.
22171         * lib/spawn_int.h: New file, from GNU libc with modifications.
22172         * lib/spawni.c: New file, from GNU libc with modifications.
22173         * m4/posix_spawn.m4: New file.
22174
22175         New module 'spawn'.
22176         * modules/spawn: New file.
22177         * lib/spawn.in.h: New file, from GNU libc with modifications.
22178         * m4/spawn_h.m4: New file.
22179         * doc/posix-headers/spawn.texi: Mention the new module.
22180
22181 2008-09-28  Bruno Haible  <bruno@clisp.org>
22182
22183         * modules/sched-tests: New file.
22184         * tests/test-sched.c: New file.
22185
22186         New module 'sched'.
22187         * modules/sched: New file.
22188         * lib/sched.in.h: New file.
22189         * m4/sched_h.m4: New file.
22190         * doc/posix-headers/sched.texi: Mention the new module.
22191
22192 2008-09-27  Eric Blake  <ebb9@byu.net>
22193
22194         Fix previous patch, and tweak references to $0.
22195         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
22196         (func_version, func_gnulib_dir): Don't call this program
22197         gnulib-tool.
22198         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
22199         with using $0 in function.
22200         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
22201         (func_fatal_error): Reuse the name the user invoked us with.
22202
22203 2008-09-27  Bruno Haible  <bruno@clisp.org>
22204
22205         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
22206         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
22207         (gl_ICONV_H): Not here.
22208         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
22209         instead of assigning ICONV_H directly.
22210
22211         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
22212         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
22213         WCHAR_H directly.
22214
22215 2008-09-27  Bruno Haible  <bruno@clisp.org>
22216
22217         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
22218         * modules/arpa_inet (Depends-on): Add link-warning.
22219         (Makefile.am): Insert the definition of GL_LINK-WARNING.
22220         * modules/unistd (Makefile.am): Likewise.
22221
22222 2008-09-26  Bruno Haible  <bruno@clisp.org>
22223
22224         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
22225         variables.
22226         (func_version): Essentially copied from gnulib-tool.
22227         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
22228         func_readlink): Copied from gnulib-tool.
22229
22230 2008-09-26  Bruno Haible  <bruno@clisp.org>
22231
22232         * gnulib-tool (func_version): Change directory to $gnulib_dir before
22233         invoking git-version-gen.
22234
22235 2008-09-26  Bruno Haible  <bruno@clisp.org>
22236
22237         * posix-modules: Update to directory names changed on 2008-01-19.
22238         Remove commas in output before splitting into words. No more need to
22239         avoid 'ftruncate' since 2007-02-19.
22240
22241 2008-09-26  Bruno Haible  <bruno@clisp.org>
22242
22243         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
22244
22245 2008-09-26  Bruno Haible  <bruno@clisp.org>
22246
22247         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
22248         * modules/fwriteerror (Depends-on): Add errno.
22249
22250 2008-09-26  Bruno Haible  <bruno@clisp.org>
22251
22252         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
22253         * tests/test-vc-list-files-cvs.sh: Likewise.
22254
22255 2008-09-26  Bruno Haible  <bruno@clisp.org>
22256
22257         * doc/posix-headers/sys_resource.texi: Reorder items.
22258
22259 2008-09-26  Jim Meyering  <meyering@redhat.com>
22260
22261         fts: tweak inode comparison function
22262         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
22263         inode numbers, as documented.
22264
22265         fts: sort dirent entries on inode number before traversing
22266         This avoids a quadratic, seek-related performance penalty when
22267         operating on a directory containing many entries (measurable at 10k;
22268         3.5 hours at 2 million entries with a cold cache) on certain types
22269         of file systems, including ext3 and ext4, but not tmpfs.
22270         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
22271         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
22272         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
22273         (fs_handles_readdir_ordered_dirents_efficiently): New function.
22274         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
22275         (fts_build): Set the stat.st_ino member from D_INO.
22276         If it is likely to be useful, sort dirent entries on inode number.
22277
22278         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
22279         and the struct statfs.f_type member.
22280         * modules/fts (Depends-on): Add d-ino.
22281
22282 2008-09-26  Bruno Haible  <bruno@clisp.org>
22283
22284         * modules/sigpipe-die (Depends-on): Add sigpipe.
22285
22286         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
22287         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
22288         and GNULIB_STDIO_H_SIGPIPE are set.
22289         * lib/stdio-write.c: New file.
22290         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
22291         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
22292         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
22293         REPLACE_STDIO_WRITE_FUNCS.
22294         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
22295         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
22296         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
22297         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
22298         * modules/stdio (Files): Add lib/stdio-write.c.
22299         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
22300         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
22301         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
22302         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
22303         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
22304         REPLACE_FPRINTF_POSIX.
22305         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
22306         REPLACE_PRINTF_POSIX.
22307         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
22308         REPLACE_VFPRINTF_POSIX.
22309         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
22310         REPLACE_VPRINTF_POSIX.
22311         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
22312         SIGPIPE issue.
22313         * doc/posix-functions/fputc.texi: Likewise.
22314         * doc/posix-functions/fputs.texi: Likewise.
22315         * doc/posix-functions/fwrite.texi: Likewise.
22316         * doc/posix-functions/printf.texi: Likewise.
22317         * doc/posix-functions/putc.texi: Likewise.
22318         * doc/posix-functions/putchar.texi: Likewise.
22319         * doc/posix-functions/puts.texi: Likewise.
22320         * doc/posix-functions/vfprintf.texi: Likewise.
22321         * doc/posix-functions/vprintf.texi: Likewise.
22322
22323         * modules/safe-write (Depends-on): Add write.
22324
22325         * modules/sigpipe-tests: New file.
22326         * tests/test-sigpipe.c: New file.
22327         * tests/test-sigpipe.sh: New file.
22328
22329         * modules/write: New file.
22330         * lib/unistd.in.h: Include <sys/types.h>.
22331         (write): New declaration.
22332         * lib/write.c: New file.
22333         * m4/write.m4: New file.
22334         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
22335         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
22336         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
22337         GNULIB_WRITE, REPLACE_WRITE.
22338         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
22339         and the SIGPIPE issue.
22340
22341         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
22342         (raise): New declaration.
22343         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
22344         (ext_signal): New function.
22345         (rpl_raise): New function.
22346         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
22347         GNULIB_SIGNAL_H_SIGPIPE.
22348         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
22349         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
22350
22351         * modules/sigpipe: New file.
22352         * m4/sigpipe.m4: New file.
22353
22354 2008-09-25  Derek Price  <derek@ximbiot.com>
22355             Bruno Haible  <bruno@clisp.org>
22356
22357         * gnulib-tool (func_import): Report all license incompatibilities, not
22358         just the first one.
22359
22360 2008-09-25  Bruno Haible  <bruno@clisp.org>
22361
22362         * gnulib-tool (func_import): When computing the edits, consider not
22363         only the Makefile.ams that exist but also those that will be generated.
22364
22365 2008-09-25  Simon Josefsson  <simon@josefsson.org>
22366
22367         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
22368         fixes gnulib-tool --test warning about duplicate dependency.
22369
22370 2008-09-25  Bruno Haible  <bruno@clisp.org>
22371
22372         * gnulib-tool: Don't ask the user to perform edits in the generated
22373         Makefile.ams.
22374         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
22375         apply to the Makefile.am being generated.
22376         (func_emit_tests_Makefile_am): Execute edits that apply to the
22377         Makefile.am being generated.
22378         (func_import): Setup list of Makefile.am edits before emitting the
22379         Makefile.ams, not at the end.
22380         (func_create_testdir): Update.
22381         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
22382
22383 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22384
22385         * gnulib-tool (func_import): Store the --tests-base option in the
22386         comment in gnulib-cache.m4.
22387
22388 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
22389
22390         * NEWS: Document increased portability that sys_select now provides.
22391
22392         * lib/sys_select.in.h: Install select wrapper.
22393         * lib/sys_socket.in.h: Use more descriptive name when there is no
22394         select wrapper.
22395         * lib/winsock-select.c: New.
22396         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
22397         Require gl_HEADER_SYS_SOCKET.
22398         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
22399         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
22400         * tests/test-sys_select.c: Add functional tests.
22401
22402 2008-09-24  Eric Blake  <ebb9@byu.net>
22403
22404         open, fopen: close fd leak in last patch
22405         * lib/open.c (rpl_open): Close fd before returning error.
22406         * lib/fopen.c (rpl_fopen): Close fd before returning error.
22407         * doc/posix-functions/open.texi (open): Document that Irix also
22408         has the bug.
22409         * doc/posix-functions/fopen.texi (fopen): Likewise.
22410         Reported by Paolo Bonzini.
22411
22412 2008-09-24  Bruno Haible  <bruno@clisp.org>
22413
22414         Ensure that a filename ending in a slash cannot be used to access a
22415         non-directory.
22416         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
22417         to check whether it's really a directory.
22418         * lib/fopen.c: Include fcntl.h, unistd.h.
22419         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
22420         and fdopen().
22421         * modules/fopen (Depends-on): Add unistd.
22422         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
22423         * tests/test-fopen.c (main): Likewise.
22424         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
22425         * doc/posix-functions/fopen.texi: Likewise.
22426         Reported by Eric Blake.
22427
22428 2008-09-23  Eric Blake  <ebb9@byu.net>
22429
22430         c-stack: avoid compiler optimizations when provoking overflow
22431         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
22432         recursion harder to optimize, to ensure a stack overflow occurs.
22433         * tests/test-c-stack.c (recurse): Likewise.
22434         Borrowed from libsigsegv.
22435
22436         c-stack: work around Irix sigaltstack bug
22437         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
22438         whether sigaltstack uses wrong end of stack_t (copied in part from
22439         libsigsegv).
22440         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
22441         Irix bug, without requiring an over-allocation.
22442         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
22443         bug.
22444
22445         fopen: document mingw bug on directories
22446         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
22447         not allowing a stream visiting a directory, even though reading
22448         from such a stream is not portable.
22449
22450 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
22451
22452         * lib/poll.c: Rewrite.
22453         * modules/poll: Depend on alloca.
22454
22455 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
22456
22457         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
22458         instead define prototypes for a full set of wrappers.  Ensure
22459         that Cygwin does not use the compatibility code, which is only
22460         for MinGW.
22461         * lib/winsock.c: New.
22462         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
22463         * modules/sys_socket: Add lib/winsock.c.
22464
22465         * modules/poll-tests: Add errno and perror.
22466         * tests/test-poll.c: Use ioctl, not ioctlsocket.
22467
22468 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
22469
22470         * tests/test-poll.c: Downgrade minimum needed Winsock version.
22471
22472 2008-09-23  Bruno Haible  <bruno@clisp.org>
22473
22474         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
22475         * doc/glibc-functions/*: Likewise.
22476
22477 2008-09-23  Simon Josefsson  <simon@josefsson.org>
22478
22479         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
22480         success.
22481
22482 2008-09-22  Eric Blake  <ebb9@byu.net>
22483             Bruno Haible  <bruno@clisp.org>
22484
22485         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
22486         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
22487         supply %A but mishandle pseudo-NaN.
22488         Reported by Simon Josefsson.
22489
22490 2008-09-21  Bruno Haible  <bruno@clisp.org>
22491
22492         * tests/test-lock.c (main): Tweak skip message.
22493         * tests/test-tls.c (main): Likewise.
22494
22495 2008-09-21  Bruno Haible  <bruno@clisp.org>
22496
22497         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
22498         whether 'struct sigaction' has sa_sigaction here...
22499         (gl_PREREQ_SIG_HANDLER_H): ... not here.
22500         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
22501
22502 2008-09-21  Bruno Haible  <bruno@clisp.org>
22503
22504         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
22505         section.
22506         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
22507         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
22508         the new section.
22509         (Support for obsolete systems lacking POSIX:2001): New section.
22510         (String handling <string.h>): Move strdup to the new section.
22511         Suggested by Simon Josefsson and Paolo Bonzini.
22512
22513 2008-09-21  Bruno Haible  <bruno@clisp.org>
22514
22515         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
22516         exponents in %e and %g results on 'long double'. Needed for mingw's
22517         improved *printf functions.
22518         * tests/test-vasprintf-posix.c (test_function): Likewise.
22519         * tests/test-snprintf-posix.h (test_function): Likewise.
22520         * tests/test-sprintf-posix.h (test_function): Likewise.
22521         Reported by Eric Blake.
22522
22523 2008-09-21  Bruno Haible  <bruno@clisp.org>
22524
22525         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
22526         * tests/test-sprintf-posix.h (test_function): Likewise.
22527
22528 2008-09-21  Bruno Haible  <bruno@clisp.org>
22529
22530         * modules/getpass (Depends-on): Add strdup-posix.
22531
22532         New module 'strdup-posix'.
22533         * modules/strdup-posix: New file.
22534         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
22535         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
22536         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
22537         REPLACE_STRDUP.
22538         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
22539         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
22540         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
22541         strdup-posix.
22542
22543         * modules/strdup (Depends-on): Remove malloc-posix.
22544
22545 2008-09-20  Bruno Haible  <bruno@clisp.org>
22546
22547         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
22548         Wildenhues.
22549
22550 2008-09-20  Bruno Haible  <bruno@clisp.org>
22551
22552         Ensure that wint_t gets defined on IRIX 5.3.
22553         * lib/wchar.in.h (wint_t): Define if not defined by the system.
22554         * lib/wctype.in.h (wint_t): Likewise.
22555         (__wctype_wint_t): Remove type.
22556         (isw*): Use wint_t instead of __wctype_wint_t.
22557         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
22558         * modules/wchar (Files): Add m4/wint_t.m4.
22559         (Makefile.am): Substitute HAVE_WINT_T.
22560         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
22561         * tests/test-wctype.c: Check that wint_t is defined.
22562         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
22563         * doc/posix-headers/wctype.texi: Likewise.
22564         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22565
22566 2008-09-18  Bruno Haible  <bruno@clisp.org>
22567
22568         * gnulib-tool (func_exit): Update comment.
22569
22570 2008-09-18  Simon Josefsson  <simon@josefsson.org>
22571
22572         * modules/getaddrinfo (Depends-on): Remove strdup, this module
22573         assumes strdup exists and does not depend on strdup to return
22574         ENOMEM on out of memory conditions.
22575
22576 2008-09-18  Bruno Haible  <bruno@clisp.org>
22577
22578         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
22579         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
22580         digits for the exponent.
22581
22582 2008-09-18  Jim Meyering  <meyering@redhat.com>
22583             Bruno Haible  <bruno@clisp.org>
22584
22585         * lib/vasnprintf.c (decimal_point_char): Define also if
22586         NEED_PRINTF_INFINITE_LONG_DOUBLE.
22587
22588 2008-09-16  Bruno Haible  <bruno@clisp.org>
22589         and Eric Blake  <ebb9@byu.net>
22590
22591         vasnprintf: support Irix 5.3
22592         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
22593         that mishandle long double infinity.
22594         Reported by Tom G. Christensen.
22595
22596 2008-09-16  Bruno Haible  <bruno@clisp.org>
22597
22598         * doc/glibc-functions/scandir.texi: Mention the function is missing on
22599         Solaris 9.
22600         * doc/glibc-functions/alphasort.texi: Likewise.
22601         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
22602
22603 2008-09-16  Jim Meyering  <meyering@redhat.com>
22604
22605         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
22606         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
22607         a umask modification leak out of a subshell.  Otherwise, the
22608         opensolaris /bin/sh would be accepted and thus cause unwarranted
22609         failures in the coreutils test suite.
22610
22611 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
22612
22613         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
22614         to succeed.
22615
22616 2008-09-16  Jim Meyering  <meyering@redhat.com>
22617
22618         avoid spurious test failure when library is built without ACL support
22619         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
22620         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
22621         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
22622         * tests/test-copy-acl.sh: Likewise.
22623
22624 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22625
22626         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
22627         based on character occurrence counts.
22628
22629 2008-09-15  Eric Blake  <ebb9@byu.net>
22630
22631         tests: avoid some compiler warnings
22632         * tests/test-memchr.c (main): Pass NULL indirectly.
22633         * tests/test-closein.c (main): Avoid unused variable.
22634
22635 2008-09-15  Bruno Haible  <bruno@clisp.org>
22636
22637         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
22638         are missing on OpenBSD 4.0 individually.
22639         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
22640
22641 2008-09-15  Bruno Haible  <bruno@clisp.org>
22642
22643         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
22644         * doc/posix-functions/strerror.texi: Mention also Cygwin.
22645         * doc/posix-functions/perror.texi: Likewise.
22646         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
22647         is missing.
22648         Reported by Eric Blake.
22649
22650         * lib/errno.in.h: Use replacement values >= 2000.
22651         Reported by Eric Blake.
22652
22653 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22654
22655         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
22656         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
22657         limit.
22658         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
22659         compareseq was aborted.
22660
22661 2008-09-14  Bruno Haible  <bruno@clisp.org>
22662
22663         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
22664         yvec_edit_count.
22665         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
22666         (fstrcmp_bounded): Simplify result computation accordingly.
22667
22668 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22669
22670         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
22671         (fstrcmp): Define in terms of fstrcmp_bounded.
22672         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
22673         lower_bound argument.
22674         Return quickly if the result is certainly < lower_bound.
22675         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
22676
22677 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22678
22679         * lib/diffseq.h (EARLY_ABORT): New macro.
22680         (compareseq): Change return type to bool. Return true when EARLY_ABORT
22681         evaluates to true.
22682
22683 2008-09-14  Bruno Haible  <bruno@clisp.org>
22684
22685         * modules/perror-tests: New file.
22686         * tests/test-perror.sh: New file.
22687         * tests/test-perror.c: New file.
22688
22689         New module 'perror'.
22690         * lib/stdio.in.h (perror): New declaration.
22691         * lib/perror.c: New file.
22692         * m4/perror.m4: New file.
22693         * modules/perror: New file.
22694         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
22695         * doc/posix-functions/perror.texi: Mention the perror module.
22696         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
22697         REPLACE_PERROR.
22698         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
22699         REPLACE_PERROR.
22700
22701 2008-09-14  Bruno Haible  <bruno@clisp.org>
22702
22703         * modules/stdio (Makefile.am): Reorder to match the order in
22704         lib/stdio.in.h.
22705         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
22706
22707 2008-09-13  Bruno Haible  <bruno@clisp.org>
22708
22709         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
22710
22711 2008-09-13  Bruno Haible  <bruno@clisp.org>
22712
22713         Extend strerror to cover the added errno values.
22714         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
22715         (rpl_strerror): Provide error messages for the added errno values and
22716         for the WSA* values.
22717         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
22718         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
22719         strerror.
22720         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
22721         * modules/strerror (Depends-on): Add errno.
22722         * doc/posix-functions/strerror.texi: Document the change.
22723         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
22724         and EOVERFLOW.
22725
22726 2008-09-13  Bruno Haible  <bruno@clisp.org>
22727
22728         * modules/EOVERFLOW: Remove file.
22729         * m4/eoverflow.m4: Remove file.
22730         * modules/EOVERFLOW-tests: Remove file.
22731         * tests/test-EOVERFLOW.c: Remove file.
22732         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
22733         * modules/ftell (Depends-on): Likewise.
22734         * modules/getdelim (Depends-on): Likewise.
22735         * modules/getugroups (Depends-on): Likewise.
22736         * modules/poll (Depends-on): Likewise.
22737         * modules/snprintf (Depends-on): Likewise.
22738         * modules/sprintf-posix (Depends-on): Likewise.
22739         * modules/vasnprintf (Depends-on): Likewise.
22740         * modules/vasprintf (Depends-on): Likewise.
22741         * modules/vfprintf-posix (Depends-on): Likewise.
22742         * modules/vsnprintf (Depends-on): Likewise.
22743         * modules/vsprintf-posix (Depends-on): Likewise.
22744         * modules/xvasprintf (Depends-on): Likewise.
22745         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
22746         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
22747         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
22748         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
22749         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
22750         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
22751         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
22752         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
22753         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
22754         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
22755         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
22756         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
22757         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
22758         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
22759         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
22760         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
22761         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
22762         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
22763         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
22764         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
22765         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
22766         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
22767         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
22768         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
22769         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
22770         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
22771         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
22772         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
22773         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
22774         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
22775         * MODULES.html.sh: Remove EOVERFLOW.
22776         * NEWS: Mention the change.
22777
22778 2008-09-13  Bruno Haible  <bruno@clisp.org>
22779
22780         * modules/errno-tests: New file.
22781         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
22782
22783         * lib/errno.in.h: New file.
22784         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
22785         * modules/errno: New file.
22786         * doc/posix-headers/errno.texi: Update documentation.
22787         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
22788
22789 2008-09-13  Bruno Haible  <bruno@clisp.org>
22790
22791         * tests/test-poll.c: Use #if for native Windows, rather than testing
22792         __MSVCRT__.
22793
22794 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22795             Bruno Haible  <bruno@clisp.org>
22796
22797         * lib/glob.c: Don't include <pwd.h> on native Windows.
22798         (WINDOWS32): New macro.
22799         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
22800
22801 2008-09-13  Bruno Haible  <bruno@clisp.org>
22802
22803         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
22804         (ETIMEDOUT): Remove macro.
22805         (glthread_cond_timedwait_multithreaded): New declaration.
22806         (glthread_cond_timedwait): Use it.
22807         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
22808         (glthread_cond_timedwait_multithreaded): New function.
22809
22810 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
22811
22812         * modules/poll-tests: Do not check for io.h.
22813         * tests/test-poll.c: Check for __MSVCRT__ instead.
22814
22815 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
22816
22817         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
22818         * modules/poll-tests: Add inet_pton, stdbool, sockets.
22819         * tests/test-poll.c: Use them.  Use _pipe on Windows.
22820
22821 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
22822
22823         * modules/poll-tests: New.
22824         * tests/test-poll.c: New.
22825
22826 2008-09-12  Eric Blake  <ebb9@byu.net>
22827
22828         frexp: test for NetBSD failure on -0.0
22829         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
22830         not all, bugs from NetBSD 3.0 have been fixed.
22831         * doc/posix-functions/frexp.texi (frexp): Document bug.
22832         Reported by Thomas Klausner.
22833
22834         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
22835         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
22836         literal -0.0.
22837         Reported by Jonathan C. Patschke <jp@centtech.com>.
22838
22839 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22840
22841         * lib/glthread/cond.h: Use dummy implementation also if
22842         USE_WIN32_THREADS.
22843
22844 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22845
22846         * modules/fnmatch-posix (License): Change to LGPLv2+.
22847         * modules/fnmatch-gnu (License): Likewise.
22848
22849 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22850
22851         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
22852
22853 2008-09-11  Jim Meyering  <meyering@redhat.com>
22854
22855         * users.txt: Add gtk-vnc.
22856
22857 2008-09-08  Simon Josefsson  <simon@josefsson.org>
22858
22859         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
22860         rotate amounts.
22861
22862         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
22863         required for 16-bit and 8-bit rotates.
22864         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
22865         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
22866         UINT8_MAX instead of hard-coded constants.
22867         Suggested by Paul Eggert.
22868
22869 2008-09-07  Bruno Haible  <bruno@clisp.org>
22870
22871         * tests/test-striconveh.c (main): Check behaviour when converting from
22872         UTF-7.
22873
22874         Make striconveh work better with stateful encodings.
22875         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
22876         that iconv does not increment the inptr when returning -1/EINVAL.
22877
22878 2008-09-07  Bruno Haible  <bruno@clisp.org>
22879
22880         * build-aux/config.rpath: Update according to libtool-2.2.6.
22881         * build-aux/config.libpath: Likewise.
22882
22883 2008-09-06  Bruno Haible  <bruno@clisp.org>
22884
22885         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
22886         * lib/freadptr.c (freadptr): Likewise.
22887         * lib/freadseek.c (freadptrinc): Likewise.
22888         Reported by Simon Josefsson.
22889
22890 2008-09-06  Bruno Haible  <bruno@clisp.org>
22891
22892         * modules/freadptr (License): Change to LGPLv2+.
22893         * modules/freadseek (License): Likewise.
22894         Suggested by Eric Blake.
22895
22896         * modules/memchr2 (License): Change to LGPLv2+.
22897         Approved by Eric Blake.
22898
22899 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22900             Bruno Haible  <bruno@clisp.org>
22901
22902         Make gnulib-tool work with native 'sed' on AIX.
22903         * gnulib-tool (sed_noop): New variable.
22904         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
22905         func_add_or_update, func_create_testdir): Use it to initialize sed
22906         script variables.
22907         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
22908
22909 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
22910             Bruno Haible  <bruno@clisp.org>
22911
22912         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
22913         also works after #include directives.
22914
22915 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
22916
22917         getdate.y: reject an out-of-range timezone value
22918         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
22919         the range [-24...+24].  When specified with only one or two digits,
22920         * tests/test-getdate.c: Tests for the fix.
22921         * doc/getdate.texi: Document this change.
22922
22923 2008-09-03  Bruno Haible  <bruno@clisp.org>
22924
22925         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
22926
22927 2008-09-02  Simon Josefsson  <simon@josefsson.org>
22928
22929         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
22930         <bruce.korb@gmail.com> with ideas from Ben Pfaff
22931         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
22932         Blake <ebb9@byu.net>.
22933
22934         * tests/test-bitrotate.c: Add more test vectors.
22935
22936 2008-09-02  Eric Blake  <ebb9@byu.net>
22937
22938         vasnprintf-posix: handle large precision via %.*d
22939         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
22940         when handling it ourselves.
22941         * tests/test-vasnprintf-posix.c (test_function): Add test.
22942         * tests/test-snprintf-posix.h (test_function): Likewise.
22943         * tests/test-sprintf-posix.h (test_function): Likewise.
22944         * tests/test-vasprintf-posix.c (test_function): Likewise.
22945         Reported by Alain Guibert.
22946
22947 2008-09-01  Eric Blake  <ebb9@byu.net>
22948
22949         c-stack: make configure-time check more robust
22950         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
22951         successful sigaction call.
22952         Reported by Tom G. Christensen.
22953
22954 2008-09-01  Bruno Haible  <bruno@clisp.org>
22955
22956         New module 'findprog-lgpl'.
22957         * modules/findprog-lgpl: New file.
22958         * lib/findprog-lgpl.c: New file.
22959         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
22960         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
22961         to decide whether to use strdup or xstrdup, concatenated_filename or
22962         xconcatenated_filename.
22963
22964 2008-09-01  Bruno Haible  <bruno@clisp.org>
22965
22966         Split module 'concat-filename' into 'concat-filename' (LGPL) and
22967         'xconcat-filename' (GPL).
22968         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
22969         (License): Change to LGPLv2+.
22970         * modules/xconcat-filename: New file.
22971         * lib/concat-filename.h (concatenated_filename): Change specification.
22972         (xconcatenated_filename): New declaration.
22973         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
22974         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
22975         memory situations.
22976         * lib/xconcat-filename.c: New file.
22977         * NEWS: Mention the change.
22978         * lib/findprog.c: Include concat-filename.h, not filename.h.
22979         (find_in_path): Use xconcatenated_filename instead of
22980         concatenated_filename.
22981         * lib/javacomp.c: Include concat-filename.h, not filename.h.
22982         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
22983         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
22984         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
22985         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
22986         instead of concatenated_filename.
22987         * lib/javaexec.c: Include concat-filename.h, not filename.h.
22988         (execute_java_class): Use xconcatenated_filename instead of
22989         concatenated_filename.
22990         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
22991         * modules/javacomp (Depends-on): Likewise.
22992         * modules/javaexec (Depends-on): Likewise.
22993
22994 2008-09-01  Bruno Haible  <bruno@clisp.org>
22995
22996         Split module 'filename' into 'filename' and 'concat-filename'.
22997         * modules/filename: Keep only lib/filename.h.
22998         (License): Change to LGPLv2+.
22999         * modules/concat-filename: New file, extracted from modules/filename.
23000         * lib/filename.h (concatenated_filename): Remove declaration.
23001         * lib/concat-filename.h: New file, extracted from lib/filename.h.
23002         * lib/concat-filename.c: Include concat-filename.h.
23003         * NEWS: Mention the change.
23004
23005 2008-09-01  Simon Josefsson  <simon@josefsson.org>
23006
23007         * lib/bitrotate.h (rotl8, rotr8): Add.
23008
23009         * modules/bitrotate (configure.ac): Need
23010         AC_REQUIRE([AC_C_INLINE]).
23011         (Description): Mention stdint.h.  Reported by Bruno Haible
23012         <bruno@clisp.org>.
23013
23014         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
23015         Paolo Bonzini <bonzini@gnu.org>.
23016
23017 2008-08-31  Bruno Haible  <bruno@clisp.org>
23018
23019         Assume Solaris specific bi-arch conventions on Solaris systems.
23020         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
23021         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
23022         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
23023         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
23024         like acl_libdirstem.
23025         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
23026         acl_libdirstem.
23027         * NEWS: Mention the change.
23028         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
23029
23030 2008-08-31  Jim Meyering  <meyering@redhat.com>
23031
23032         * lib/strftime.h: Add comments describing the two added arguments.
23033
23034         remove duplicate #include directives
23035         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
23036         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
23037
23038 2008-08-31  Bruno Haible  <bruno@clisp.org>
23039
23040         New module 'sigpipe-die'.
23041         * modules/sigpipe-die: New file.
23042         * lib/sigpipe-die.h: New file.
23043         * lib/sigpipe-die.c: New file.
23044         * MODULES.html.sh (Signal handling): Add sigpipe-die.
23045
23046 2008-08-31  Bruno Haible  <bruno@clisp.org>
23047
23048         Don't override previously installed signal handlers.
23049         * lib/fatal-signal.c (saved_sigactions): New variable.
23050         (uninstall_handlers): Reset the signal to the saved handler, not
23051         to SIG_DFL (except when ignored).
23052         (install_handlers): Save the previous handlers.
23053
23054 2008-08-30  Bruno Haible  <bruno@clisp.org>
23055
23056         * gnulib-tool (func_reset_sigpipe): New function.
23057         (func_get_automake_snippet, func_modules_transitive_closure,
23058         func_import): Invoke it before a join command that reads from stdin,
23059         to avoid "echo: write error: Broken pipe" error messages on stderr.
23060         Reported by Sam Steingold <sds@gnu.org>.
23061
23062 2008-08-30  Bruno Haible  <bruno@clisp.org>
23063
23064         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
23065         Code copied from m4/open.m4.
23066         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
23067         access and the filename ends in a slash. Code copied from lib/open.c.
23068         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
23069         * tests/test-fopen.c (main): Check against bug with trailing slash.
23070
23071 2008-08-29  Bruno Haible  <bruno@clisp.org>
23072
23073         Avoid some "gcc -pedantic" warnings.
23074         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
23075         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
23076         * lib/dirent.in.h: Likewise.
23077         * lib/fcntl.in.h: Likewise.
23078         * lib/float.in.h: Likewise.
23079         * lib/iconv.in.h: Likewise.
23080         * lib/inttypes.in.h: Likewise.
23081         * lib/locale.in.h: Likewise.
23082         * lib/math.in.h: Likewise.
23083         * lib/netinet_in.in.h: Likewise.
23084         * lib/search.in.h: Likewise.
23085         * lib/signal.in.h: Likewise.
23086         * lib/stdarg.in.h: Likewise.
23087         * lib/stdint.in.h: Likewise.
23088         * lib/stdio.in.h: Likewise.
23089         * lib/stdlib.in.h: Likewise.
23090         * lib/string.in.h: Likewise.
23091         * lib/strings.in.h: Likewise.
23092         * lib/sys_select.in.h: Likewise.
23093         * lib/sys_socket.in.h: Likewise.
23094         * lib/sys_stat.in.h: Likewise.
23095         * lib/sys_time.in.h: Likewise.
23096         * lib/sysexits.in.h: Likewise.
23097         * lib/time.in.h: Likewise.
23098         * lib/unistd.in.h: Likewise.
23099         * lib/wchar.in.h: Likewise.
23100         * lib/wctype.in.h: Likewise.
23101         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
23102         * modules/fchdir (Makefile.am): Likewise.
23103         * modules/fcntl (Makefile.am): Likewise.
23104         * modules/float (Makefile.am): Likewise.
23105         * modules/iconv_open (Makefile.am): Likewise.
23106         * modules/inttypes (Makefile.am): Likewise.
23107         * modules/locale (Makefile.am): Likewise.
23108         * modules/math (Makefile.am): Likewise.
23109         * modules/netinet_in (Makefile.am): Likewise.
23110         * modules/search (Makefile.am): Likewise.
23111         * modules/signal (Makefile.am): Likewise.
23112         * modules/stdarg (Makefile.am): Likewise.
23113         * modules/stdint (Makefile.am): Likewise.
23114         * modules/stdio (Makefile.am): Likewise.
23115         * modules/stdlib (Makefile.am): Likewise.
23116         * modules/string (Makefile.am): Likewise.
23117         * modules/strings (Makefile.am): Likewise.
23118         * modules/sys_select (Makefile.am): Likewise.
23119         * modules/sys_socket (Makefile.am): Likewise.
23120         * modules/sys_stat (Makefile.am): Likewise.
23121         * modules/sys_time (Makefile.am): Likewise.
23122         * modules/sysexits (Makefile.am): Likewise.
23123         * modules/time (Makefile.am): Likewise.
23124         * modules/unistd (Makefile.am): Likewise.
23125         * modules/wchar (Makefile.am): Likewise.
23126         * modules/wctype (Makefile.am): Likewise.
23127         Reported by Reuben Thomas <rrt@sc3d.org>.
23128
23129 2008-08-29  Bruno Haible  <bruno@clisp.org>
23130
23131         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
23132         any more.
23133
23134 2008-08-29  Simon Josefsson  <simon@josefsson.org>
23135
23136         * MODULES.html.sh (Misc): Add bitrotate.
23137
23138         * modules/bitrotate: New file.
23139
23140         * lib/bitrotate.h: New file.
23141
23142         * modules/bitrotate-tests: New file.
23143
23144         * tests/test-bitrotate.c: New file.
23145
23146         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
23147         on the bitrotate module.
23148
23149         * lib/arctwo.c: Use new bitrotate module.
23150
23151 2008-08-29  Jim Meyering  <meyering@redhat.com>
23152
23153         bootstrap: merge changes from coreutils
23154         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
23155         of copied files.  Remove a kludge, now that this is fixed.
23156         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
23157         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
23158         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
23159
23160 2008-08-29  Bruno Haible  <bruno@clisp.org>
23161
23162         * MODULES.html.sh: Remove --cvs-urls option.
23163
23164 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
23165
23166         maint.mk: adjust to file name change
23167         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
23168
23169 2008-08-28  Jim Meyering  <meyering@redhat.com>
23170
23171         * modules/getndelim2 (License): Relicense to LGPLv2+.
23172         Approved by Richard Stallman for the version of 1995, and by
23173         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
23174
23175 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
23176
23177         * lib/getdelim.c (flockfile, funlockfile): Make all of them
23178         dummy if one is not available.  Do not touch them if
23179         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
23180         (getc_maybe_unlocked): New.
23181         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
23182
23183 2008-08-26  Eric Blake  <ebb9@byu.net>
23184
23185         doc/INSTALL: resync from autoconf
23186         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
23187         (INSTALL_PRELUDE): Delete; this is done more efficiently by
23188         moving...
23189         * install.texi [!autoconf]: ...here.  Resync from autoconf.
23190         * INSTALL: Regenerate.
23191         * INSTALL.ISO: New file.
23192         * INSTALL.UTF-8: Likewise.
23193
23194 2008-08-26  Jim Meyering  <meyering@redhat.com>
23195
23196         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
23197         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
23198         these definitions conditional, so that they may be overridden, too.
23199
23200 2008-08-26  Bruno Haible  <bruno@clisp.org>
23201
23202         Generate INSTALL file variants with prettier quotes.
23203         * doc/Makefile (INSTALL_PRELUDE): New macro.
23204         (INSTALL): Use it.
23205         (INSTALL.ISO, INSTALL.UTF-8): New rules.
23206
23207 2008-08-26  Bruno Haible  <bruno@clisp.org>
23208
23209         Run makeinfo in an English locale.
23210         * doc/Makefile (MAKEINFO): New variable.
23211
23212 2008-08-26  Bruno Haible  <bruno@clisp.org>
23213
23214         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
23215         Suggested by Eric Blake.
23216
23217 2008-08-25  Bruno Haible  <bruno@clisp.org>
23218
23219         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
23220
23221 2008-08-25  Eric Blake  <ebb9@byu.net>
23222
23223         c-stack: test that stack overflow can be caught
23224         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
23225         that platform allows handling stack overflow; at least OS/2 EMX
23226         has sigaltstack, but crashes before transferring control to
23227         handler on stack overflow.
23228         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
23229         check for HAVE_STACK_OVERFLOW_HANDLING.
23230         Reported by Elbert Pol.
23231
23232 2008-08-25  Bruno Haible  <bruno@clisp.org>
23233
23234         * doc/posix-functions/strftime.texi: Fix description of strftime
23235         module.
23236
23237 2008-08-24  Bruno Haible  <bruno@clisp.org>
23238
23239         * tests/uniwidth/test-uc_width2.c: New file.
23240         * tests/uniwidth/test-uc_width2.sh: New file.
23241         * modules/uniwidth/width-tests (Files): Add the new files.
23242         (TESTS): Add uniwidth/test-uc_width2.sh.
23243         (TESTS_ENVIRONMENT): New variable.
23244         (check_PROGRAMS): Add test-uc_width2.
23245         (test_uc_width2_SOURCES): New variable.
23246
23247         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
23248         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
23249         not 0x00AB.
23250         Reported by Alexander V. Lukyanov <lav@netis.ru>.
23251
23252 2008-08-22  Eric Blake  <ebb9@byu.net>
23253
23254         test-lock, test-tls: mention why a test is skipped
23255         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
23256         skipped.
23257         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
23258
23259         count-one-bits: relax license
23260         * modules/count-one-bits (License): Relicense to LGPLv2+.
23261         Suggested by Ludovic Courtès, approved by Ben Pfaff.
23262
23263 2008-08-22  Andreas Schwab  <schwab@suse.de>
23264
23265         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
23266         Remove spurious space in assignment.
23267
23268 2008-08-21  Simon Josefsson  <simon@josefsson.org>
23269
23270         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
23271         Paul Eggert <eggert@CS.UCLA.EDU>.
23272
23273 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
23274
23275         * modules/gettext: Add m4/threadlib.m4.
23276
23277 2008-08-19  Eric Blake  <ebb9@byu.net>
23278
23279         test-c-stack: fix compilation failure on FreeBSD 5.0
23280         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
23281         headers before <sys/resource.h>.
23282         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
23283         the bug.
23284         Reported by Nelson H. F. Beebe.
23285
23286         strverscmp: migrate from "strverscmp.h" to <string.h>
23287         * modules/string (Makefile.am): Add new hooks.
23288         * modules/strverscmp (Files): Remove strverscmp.h.
23289         (Depends-on): Add string.
23290         (configure.ac): Add indicator.
23291         (Include): Mention new header.
23292         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
23293         defaults.
23294         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
23295         results.
23296         * lib/strverscmp.h: Delete.
23297         * lib/string.in.h (strverscmp): Provide declaration, when needed.
23298         * tests/test-strverscmp.c (includes): Adjust client.
23299         * lib/check-version.c (includes): Likewise.
23300         * NEWS: Document the change.
23301
23302         strverscmp: add unit test
23303         * modules/strverscmp-tests: New file.
23304         * tests/test-strverscmp.c: Likewise.
23305
23306 2008-08-19  Simon Josefsson  <simon@josefsson.org>
23307
23308         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
23309         regarding Windows crypto stuff, from Mono.
23310
23311 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
23312
23313         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
23314         if present, for intel RND.  Return error on failures.
23315
23316 2008-08-18  Ben Pfaff  <blp@gnu.org>
23317
23318         gitlog-to-changelog: give better diagnostic for failed pipe-open
23319         * build-aux/gitlog-to-changelog: Improve error message: suggest
23320         that the version of Git may be too old.
23321
23322 2008-08-18  Simon Josefsson  <simon@josefsson.org>
23323
23324         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
23325         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
23326
23327 2008-08-18  Bruno Haible  <bruno@clisp.org>
23328
23329         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
23330         pthread_in_use().
23331
23332 2008-08-18  Bruno Haible  <bruno@clisp.org>
23333
23334         * lib/glthread/threadlib.c: Include <pthread.h>.
23335
23336 2008-08-18  Bruno Haible  <bruno@clisp.org>
23337
23338         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
23339         glthread_recursive_lock_* macros.
23340         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
23341         Fix syntax error.
23342
23343 2008-08-18  Bruno Haible  <bruno@clisp.org>
23344
23345         * lib/glthread/thread.c: Avoid forcing a context switch right after
23346         thread creation.
23347
23348 2008-08-17  Bruno Haible  <bruno@clisp.org>
23349
23350         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
23351         * lib/glthread/thread.h: Provide Win32 specific implementation.
23352         * modules/thread (Files): Add lib/glthread/thread.c.
23353         (Depends-on): Add lock.
23354         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
23355
23356 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23357
23358         New module 'yield'.
23359         * modules/yield: New file.
23360         * lib/glthread/yield.h: New file.
23361         * m4/yield.m4: New file.
23362         * MODULES.html.sh (Multithreading): Add yield.
23363
23364 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23365
23366         New module 'thread'.
23367         * modules/thread: New file.
23368         * lib/glthread/thread.h: New file.
23369         * m4/thread.m4: New file.
23370         * MODULES.html.sh (Multithreading): Add thread.
23371
23372 2008-08-17  Bruno Haible  <bruno@clisp.org>
23373
23374         * lib/glthread/lock.h: Include <stdlib.h> always.
23375         * lib/glthread/tls.h: Likewise.
23376         * lib/glthread/cond.h: Likewise.
23377
23378 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23379
23380         New module 'cond'.
23381         * modules/cond: New file.
23382         * lib/glthread/cond.h: New file.
23383         * lib/glthread/cond.c: New file.
23384         * m4/cond.m4: New file.
23385         * MODULES.html.sh (Multithreading): Add cond.
23386
23387 2008-08-16  Eric Blake  <ebb9@byu.net>
23388
23389         c-stack: fix regression on Irix 5.3 from 2008-06-21
23390         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
23391         sa_sigaction...
23392         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
23393         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
23394         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
23395         * modules/signal (Makefile.am): Use the value.
23396         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
23397         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
23398         * doc/posix-headers/signal.texi (signal.h): Document this
23399         portability issue.
23400         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
23401         Reported by Tom G. Christensen.
23402
23403 2008-08-17  Bruno Haible  <bruno@clisp.org>
23404
23405         New module 'threadlib'.
23406         * modules/threadlib: New file.
23407         * lib/glthread/threadlib.c: New file, extracted from
23408         lib/glthread/lock.c.
23409         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
23410         functions.
23411         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
23412         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
23413         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
23414         macros.
23415         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
23416         (gl_DISABLE_THREADS): Remove macro.
23417         * modules/lock (Files): Remove build-aux/config.rpath.
23418         (Depends-on): Remove havelib. Add threadlib.
23419         (configure.ac-early): Remove section.
23420         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
23421         * modules/tls (Depends-on): Remove lock. Add threadlib.
23422         (Link): New section, copied from threadlib.
23423         * MODULES.html.sh (Multithreading): Add threadlib.
23424
23425 2008-08-14  Bruno Haible  <bruno@clisp.org>
23426
23427         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
23428         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
23429         glthread_rwlock_unlock, glthread_rwlock_destroy,
23430         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
23431         glthread_recursive_lock_destroy): Define as macros always.
23432         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
23433         glthread_lock_lock.
23434         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
23435         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
23436         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
23437         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
23438         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
23439         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
23440         (glthread_recursive_lock_lock_func): Renamed from
23441         glthread_recursive_lock_lock.
23442         (glthread_recursive_lock_unlock_func): Renamed from
23443         glthread_recursive_lock_unlock.
23444         (glthread_recursive_lock_destroy_func): Renamed from
23445         glthread_recursive_lock_destroy.
23446
23447 2008-08-14  Bruno Haible  <bruno@clisp.org>
23448
23449         * lib/glthread/lock.h: Renamed from lib/lock.h.
23450         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
23451         * lib/glthread/tls.h: Renamed from lib/tls.h.
23452         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
23453         * lib/fstrcmp.c: Update includes.
23454         * lib/strsignal.c: Update includes.
23455         * modules/lock (Files, Makefile.am): Update.
23456         (Include): Change to "glthread/lock.h".
23457         * modules/tls (Files, Makefile.am): Update.
23458         (Include): Change to "glthread/tls.h".
23459         * tests/test-lock.c: Update includes.
23460         * tests/test-tls.c: Update includes.
23461         * NEWS: Mention the renamed header files.
23462
23463 2008-08-11  Jim Meyering  <meyering@redhat.com>
23464
23465         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
23466
23467 2008-08-11  Eric Blake  <ebb9@byu.net>
23468
23469         test-c-stack: avoid C99-ism
23470         * tests/test-c-stack.c (main): Fix whitespace, move declaration
23471         before statement.
23472         Reported by Alain Guibert.
23473
23474 2008-08-10  Jim Meyering  <meyering@redhat.com>
23475
23476         ensure that return value of uinttostr et al are not ignored
23477         * lib/inttostr.h (__GNUC_PREREQ): Define.
23478         (__attribute_warn_unused_result__): Define.
23479         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
23480
23481 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
23482
23483         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
23484         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
23485
23486 2008-08-07  Jim Meyering  <meyering@redhat.com>
23487
23488         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
23489
23490         * modules/mkstemp (License): Relicense under LGPLv2+.
23491         * modules/tempname (License): Likewise.
23492
23493 2008-08-06  Bruno Haible  <bruno@clisp.org>
23494
23495         * lib/poll.c (poll): Further micro-optimization.
23496
23497 2008-08-06  Jim Meyering  <meyering@redhat.com>
23498
23499         inet_pton.c: use locale-independent tolower
23500         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
23501         (inet_pton6): Use c_tolower rather than tolower.
23502         * modules/inet_pton (Depends-on): Add c-ctype.
23503
23504 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
23505
23506         * lib/poll.c (poll): Avoid division when timeout is 0, cache
23507         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
23508
23509 2008-08-06  Jim Meyering  <meyering@redhat.com>
23510
23511         * modules/inet_pton (License): Relicense under LGPLv2+.
23512
23513 2008-08-03  Bruno Haible  <bruno@clisp.org>
23514
23515         Additional non-aborting API for lock and tls.
23516         * lib/lock.h: Include <errno.h>.
23517         (glthread_lock_init): New macro/function.
23518         (gl_lock_init): Define as wrapper around glthread_lock_init.
23519         (glthread_lock_lock): New macro/function.
23520         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
23521         (glthread_lock_unlock): New macro/function.
23522         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
23523         (glthread_lock_destroy): New macro/function.
23524         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
23525         (glthread_rwlock_init): New macro/function.
23526         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
23527         (glthread_rwlock_rdlock): New macro/function.
23528         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
23529         (glthread_rwlock_wrlock): New macro/function.
23530         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
23531         (glthread_rwlock_unlock): New macro/function.
23532         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
23533         (glthread_rwlock_destroy): New macro/function.
23534         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
23535         (glthread_recursive_lock_init): New macro/function.
23536         (gl_recursive_lock_init): Define as wrapper around
23537         glthread_recursive_lock_init.
23538         (glthread_recursive_lock_lock): New macro/function.
23539         (gl_recursive_lock_lock): Define as wrapper around
23540         glthread_recursive_lock_lock.
23541         (glthread_recursive_lock_unlock): New macro/function.
23542         (gl_recursive_lock_unlock): Define as wrapper around
23543         glthread_recursive_lock_unlock.
23544         (glthread_recursive_lock_destroy): New macro/function.
23545         (gl_recursive_lock_destroy): Define as wrapper around
23546         glthread_recursive_lock_destroy.
23547         (glthread_once): New macro/function.
23548         (gl_once): Define as wrapper around glthread_once.
23549         Update function declarations.
23550         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
23551         glthread_rwlock_init. Return error code.
23552         (glthread_rwlock_rdlock_multithreaded): Renamed from
23553         glthread_rwlock_rdlock. Return error code.
23554         (glthread_rwlock_wrlock_multithreaded): Renamed from
23555         glthread_rwlock_wrlock. Return error code.
23556         (glthread_rwlock_unlock_multithreaded): Renamed from
23557         glthread_rwlock_unlock. Return error code.
23558         (glthread_rwlock_destroy_multithreaded): Renamed from
23559         glthread_rwlock_destroy. Return error code.
23560         (glthread_recursive_lock_init_multithreaded): Renamed from
23561         glthread_recursive_lock_init. Return error code.
23562         (glthread_recursive_lock_lock_multithreaded): Renamed from
23563         glthread_recursive_lock_lock. Return error code.
23564         (glthread_recursive_lock_unlock_multithreaded): Renamed from
23565         glthread_recursive_lock_unlock. Return error code.
23566         (glthread_recursive_lock_destroy_multithreaded): Renamed from
23567         glthread_recursive_lock_destroy. Return error code.
23568         (glthread_once_call): Make static.
23569         (glthread_once_multithreaded): Renamed from glthread_once.
23570         * lib/tls.h: Include <errno.h>.
23571         (glthread_tls_key_init): New macro/function.
23572         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
23573         (glthread_tls_set): New macro/function.
23574         (gl_tls_set): Define as wrapper around glthread_tls_set.
23575         (glthread_tls_key_destroy): New macro/function.
23576         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
23577         Update function declarations.
23578         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
23579         glthread_tls_get.
23580         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
23581
23582 2008-08-04  Eric Blake  <ebb9@byu.net>
23583
23584         gnumakefile: use space, not TAB, outside of targets
23585         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
23586
23587 2008-08-02  Jim Meyering  <meyering@redhat.com>
23588
23589         getdate.y: avoid locale-dependent date parsing failure
23590         In Turkish locales, getdate would fail to recognize keywords
23591         containing a lowercase "i".  The solution is not to rely on
23592         locale-sensitive case-conversion.
23593         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
23594         (lookup_word): Use c_toupper in place of toupper.
23595         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
23596         Reported by Vefa Bicakci <bicave@superonline.com> in
23597         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
23598         * modules/getdate (Depends-on): Add c-ctype.
23599
23600 2008-08-02  Bruno Haible  <bruno@clisp.org>
23601
23602         * gnulib-tool (func_import): When updating or creating a .gitignore
23603         file, prepend each added line with a slash, and ignore leading slashes
23604         from the existing lines.
23605         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
23606
23607 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23608
23609         Portability fix for GNU make 3.79.1.
23610         * top/GNUmakefile: Avoid 'else COND', which older GNU make
23611         versions do not understand.
23612
23613 2008-08-01  Bruno Haible  <bruno@clisp.org>
23614
23615         Work around bug of HP-UX 10.20 cc with -0.0 literal.
23616         * tests/test-isnanf.h (zero): New variable.
23617         (main): Avoid literal -0.0f.
23618         * tests/test-isnand.h (zero): New variable.
23619         (main): Avoid literal -0.0.
23620         * tests/test-isnanl.h (zero): New variable.
23621         (main): Avoid literal -0.0L.
23622         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
23623         (test_float, test_double, test_long_double): Avoid literals -0.0f,
23624         -0.0, -0.0L.
23625         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
23626         (test_signbitd): Avoid literal -0.0.
23627         (test_signbitl): Avoid literal -0.0L.
23628         * tests/test-ceilf1.c (zero): New variable.
23629         (main): Avoid literal -0.0f.
23630         * tests/test-ceill.c (zero): New variable.
23631         (main): Avoid literal -0.0L.
23632         * tests/test-floorf1.c (zero): New variable.
23633         (main): Avoid literal -0.0f.
23634         * tests/test-floorl.c (zero): New variable.
23635         (main): Avoid literal -0.0L.
23636         * tests/test-roundf1.c (zero): New variable.
23637         (main): Avoid literal -0.0f.
23638         * tests/test-round1.c (zero): New variable.
23639         (main): Avoid literal -0.0.
23640         * tests/test-roundl.c (zero): New variable.
23641         (main): Avoid literal -0.0L.
23642         * tests/test-truncf1.c (zero): New variable.
23643         (main): Avoid literal -0.0f.
23644         * tests/test-trunc1.c (zero): New variable.
23645         (main): Avoid literal -0.0.
23646         * tests/test-truncl.c (zero): New variable.
23647         (main): Avoid literal -0.0L.
23648         * tests/test-frexp.c (zero): New variable.
23649         (main): Avoid literal -0.0.
23650         * tests/test-frexpl.c (zero): New variable.
23651         (main): Avoid literal -0.0L.
23652         * tests/test-ldexpl.c (zero): New variable.
23653         (main): Avoid literal -0.0L.
23654         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
23655         (zerod, zerol): New variables.
23656         (test_function): Avoid literals -0.0, -0.0L.
23657         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
23658         (zerod, zerol): New variables.
23659         (test_function): Avoid literals -0.0, -0.0L.
23660         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
23661         (zerod, zerol): New variables.
23662         (test_function): Avoid literals -0.0, -0.0L.
23663         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
23664         (zerod, zerol): New variables.
23665         (test_function): Avoid literals -0.0, -0.0L.
23666         * tests/test-strtod.c (zero): New variable.
23667         (main): Avoid literal -0.0.
23668         Reported by Jonathan C. Patschke <jp@centtech.com>.
23669
23670 2008-07-31  Jim Meyering  <meyering@redhat.com>
23671
23672         sha256.h: correct definition of SHA224_DIGEST_SIZE
23673         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
23674         Reported by Paulie Pena IV <paulie4@gmail.com>.
23675         Define as 224 / 8, rather than as a literal.
23676         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
23677         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
23678         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
23679
23680 2008-07-31  Bruno Haible  <bruno@clisp.org>
23681
23682         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
23683         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
23684         Reported by Jonathan Patschke <jp@centtech.com>.
23685
23686 2008-07-31  Bruno Haible  <bruno@clisp.org>
23687
23688         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
23689         Reported by Paolo Bonzini <bonzini@gnu.org>.
23690
23691 2008-07-30  Eric Blake  <ebb9@byu.net>
23692
23693         test-strtod: allow compilation without -lm
23694         * tests/test-strtod.c (main): Avoid link dependence on fabs.
23695         Reported by Dennis Clarke <blastwave@gmail.com>.
23696
23697 2008-07-28  Jim Meyering  <meyering@redhat.com>
23698
23699         bootstrap: work also when there are no .po files in po/
23700         * build-aux/bootstrap (update_po_files): Complete the change
23701         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
23702
23703 2008-07-27  Jim Meyering  <meyering@redhat.com>
23704
23705         * users.txt: Add zile.
23706
23707 2008-07-26  Ben Pfaff  <blp@gnu.org>
23708
23709         Add missing dependencies on new m4/exponent[fdl].m4 files.
23710         * modules/isnanf-nolibm: Add m4/exponentf.m4.
23711         * modules/isnand-nolibm: Add m4/exponentd.m4.
23712         * modules/isnanl-nolibm: Add m4/exponentl.m4.
23713         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
23714         m4/isnan[fdl].m4, because the macros actually used moved.
23715         Reported by Jim Meyering.
23716
23717 2008-07-14  Ben Pfaff  <blp@gnu.org>
23718
23719         Add isinf module.
23720         * lib/isinf.c: New file.
23721         * lib/math.in.h: Define isinf macro if we have decided to replace
23722         it.
23723         * m4/isinf.m4: New file.
23724         * m4/math_h.m4: Initialize and substitute variables for isinf
23725         module.
23726         * modules/isinf: New file.
23727         * modules/isinf-tests: New file.
23728         * modules/math: Add substitutions for new module.
23729         * tests/test-isinf.c: New file.
23730         * doc/posix-functions/isinf.texi: Mention new module.
23731         * MODULES.html.sh: Mention new module.
23732
23733 2008-07-14  Ben Pfaff  <blp@gnu.org>
23734
23735         Factor out some macros for use by additional modules.
23736         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
23737         exponentf.m4.
23738         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
23739         exponentd.m4.
23740         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
23741         file exponentl.m4.
23742         * m4/exponentf.m4: New file.
23743         * m4/exponentd.m4: New file.
23744         * m4/exponentl.m4: New file.
23745         * modules/isnanf: Use new file m4/exponentf.m4.
23746         * modules/isnand: Use new file m4/exponentd.m4.
23747         * modules/isnanl: Use new file m4/exponentl.m4.
23748
23749 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
23750
23751         mktime.c: normalize tp->tm_isdst value to -1/0/1.
23752         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
23753         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
23754         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
23755
23756         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
23757         readlink on platforms without PATH_MAX.
23758
23759 2008-07-21  Eric Blake  <ebb9@byu.net>
23760
23761         Warn, not fail, on stale version.
23762         * top/GNUmakefile (_curr-ver): Tone down previous patch.
23763
23764         Don't allow installation with stale devel version number.
23765         * top/GNUmakefile (_is-install-target): New macro.
23766         (_curr-ver): Forbid installation with stale version number.
23767
23768 2008-07-20  Bruno Haible  <bruno@clisp.org>
23769
23770         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
23771         TESTS_ENVIRONMENT.
23772         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
23773
23774 2008-07-20  Bruno Haible  <bruno@clisp.org>
23775
23776         * lib/c-stack.h (c_stack_action): Add documentation.
23777         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
23778
23779 2008-07-20  Bruno Haible  <bruno@clisp.org>
23780
23781         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
23782         * modules/readlink (License): Likewise.
23783
23784 2008-07-17  Eric Blake  <ebb9@byu.net>
23785
23786         * modules/c-stack (Link): Fix typo.
23787
23788         Make c-stack use libsigsegv, when available.
23789         * modules/c-stack (Depends-on): Add libsigsegv.
23790         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
23791         needed.
23792         * lib/c-stack.c (SIGSTKSZ): Define fallback.
23793         (segv_handler, overflow_handler, c_stack_action)
23794         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
23795         implementation when libsigsegv is available, but only when using
23796         the library is necessary.
23797         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
23798         comment, explaining why XSI check fails on Linux.
23799         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
23800         * tests/test-c-stack2.sh: Tweak skip message.
23801         * NEWS: Document new link-time requirements.
23802
23803 2008-07-16  Eric Blake  <ebb9@byu.net>
23804
23805         c-stack: Expose false positives when not using libsigsegv.
23806         * modules/c-stack-tests (Files): Expand test.
23807         * tests/test-c-stack.c (main): Add means to conditionally trigger
23808         non-overflow SIGSEGV.
23809         * tests/test-c-stack2.sh: New file.
23810
23811 2008-07-14  Bruno Haible  <bruno@clisp.org>
23812
23813         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
23814         Reported by Eric Blake.
23815
23816 2008-07-14  Sam Steingold  <sds@gnu.org>
23817             Bruno Haible  <bruno@clisp.org>
23818
23819         New module libsigsegv.
23820         * modules/libsigsegv: New file.
23821         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
23822         modifications.
23823         * MODULES.html.sh (Signal handling): New section.
23824
23825 2008-07-14  Bruno Haible  <bruno@clisp.org>
23826
23827         * modules/unictype/ctype-* (Description): Add the word "function".
23828         Improves the resulting doc in MODULES.html.
23829
23830 2008-07-12  Ben Pfaff  <blp@gnu.org>
23831
23832         Add longlong module.
23833         * modules/longlong: New file.
23834
23835 2008-07-12  Bruno Haible  <bruno@clisp.org>
23836
23837         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
23838         to empty.
23839
23840 2008-07-10  Ben Pfaff  <blp@gnu.org>
23841
23842         Add isnan module.
23843         * doc/posix-functions/isnan.texi: Mention new module.
23844         * lib/math.in.h: Define isnan macro if we have decided to replace
23845         it.
23846         * m4/isnan.m4: New file.
23847         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
23848         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
23849         also.
23850         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
23851         redundancy.
23852         * m4/math_h.m4: Initialize and substitute variables for isnan
23853         module.
23854         * modules/isnan: New file.
23855         * modules/isnan-tests: New file.
23856         * modules/math: Add substitutions for new module.
23857         * tests/test-isnan.c: New file.
23858         * MODULES.html.sh: Mention new module.
23859
23860 2008-07-10  Ben Pfaff  <blp@gnu.org>
23861
23862         Add isnanf module.
23863         * lib/isnanf.m4: New file.
23864         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
23865         (gl_HAVE_ISNANF_IN_LIBM): New macro.
23866         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
23867         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
23868         * modules/isnanf: New file.
23869         * modules/isnanf-tests: New file.
23870         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
23871         files.
23872         * tests/test-isnanf-nolibm.c: factored most of its contents into
23873         new file tests/test-isnanf.h.
23874         * tests/test-isnanf.h: New file.
23875         * tests/test-isnanf.c: New file.
23876         * MODULES.html.sh: Mention new module.
23877         * doc/glibc-functions/isnanf.texi: Mention new module.
23878
23879 2008-07-10  Ben Pfaff  <blp@gnu.org>
23880
23881         Add isnand module.
23882         * lib/isnand.h: New file.
23883         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
23884         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
23885         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
23886         functionality also.
23887         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
23888         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
23889         (gl_HAVE_ISNAND_IN_LIBM): New macro.
23890         * modules/isnand: New file.
23891         * modules/isnand-tests: New file.
23892         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
23893         files.
23894         * tests/test-isnand-nolibm.c: factored most of its contents into
23895         new file tests/test-isnand.h.
23896         * tests/test-isnand.h: New file.
23897         * tests/test-isnand.c: New file.
23898         * MODULES.html.sh: Mention new module.
23899
23900 2008-07-10  Ben Pfaff  <blp@gnu.org>
23901
23902         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
23903         * lib/isnand.h: Rename lib/isnand-nolibm.h.
23904         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
23905         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
23906         * modules/isnanf-nolibm: Update references to renamed files.
23907         * modules/isnand-nolibm: Likewise.
23908         * modules/isnanf-nolibm-tests: Likewise.
23909         * modules/isnand-nolibm-tests: Likewise.
23910         * lib/frexp.c: Likewise.
23911         * lib/isfinite.c: Likewise.
23912         * lib/signbitd.c: Likewise.
23913         * lib/signbitf.c: Likewise.
23914         * lib/vasnprintf.c: Likewise.
23915         * tests/test-ceilf1.c: Likewise.
23916         * tests/test-ceilf2.c: Likewise.
23917         * tests/test-floorf1.c: Likewise.
23918         * tests/test-floorf2.c: Likewise.
23919         * tests/test-frexp.c: Likewise.
23920         * tests/test-round1.c: Likewise.
23921         * tests/test-round2.c: Likewise.
23922         * tests/test-roundf1.c: Likewise.
23923         * tests/test-strtod.c: Likewise.
23924         * tests/test-trunc1.c: Likewise.
23925         * tests/test-trunc2.c: Likewise.
23926         * tests/test-truncf1.c: Likewise.
23927         * tests/test-truncf2.c: Likewise.
23928         * NEWS: Mention the renamed header files.
23929
23930 2008-07-11  Jim Meyering  <meyering@redhat.com>
23931
23932         vc-list-files: make the last-resort awk code more portable
23933         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
23934         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
23935         does not support it.
23936
23937 2008-07-10  Eric Blake  <ebb9@byu.net>
23938
23939         Work with tar's bootstrap.
23940         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
23941         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
23942         an m4 comment.
23943
23944 2008-07-09  Jim Meyering  <meyering@redhat.com>
23945
23946         posix-shell.m4: fix typo that made this test malfunction
23947         * m4/posix-shell.m4: Remove capitalization in variable name.
23948
23949 2008-07-08  Bruno Haible  <bruno@clisp.org>
23950
23951         * m4/onceonly.m4: Update comments.
23952         Reported by Ben Pfaff <blp@cs.stanford.edu>.
23953
23954 2008-07-04  Jim Meyering  <meyering@redhat.com>
23955
23956         * users.txt: Add vc-dwim.
23957         (bison, coreutils): Use the gitweb URL.
23958
23959 2008-07-03  Jim Meyering  <meyering@redhat.com>
23960
23961         * users.txt: Add libffcall.  From Sam Steingold.
23962
23963 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
23964
23965         getdate.y: do not ignore TZ with relative day, month or year offset
23966         * lib/getdate.y (get_date): Move the tz-handling block to follow the
23967         relative-date-handling, since otherwise, the latter would clobber the
23968         sole output (an updated Start value) of the tz-handling block.
23969         * tests/test-getdate.c: Tests for the fix
23970
23971 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23972
23973         Recognize 'foo_LIBRARIES += libgnu.a'.
23974         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
23975         makefile snippet has already specified an installation location,
23976         also using '+='.
23977
23978 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
23979
23980         getdate.y: factor out common actions
23981         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
23982         Use them in place of open-coded actions.
23983
23984 2008-07-01  Simon Josefsson  <simon@josefsson.org>
23985
23986         Add self-test for getdate module.
23987         * modules/getdate-tests: New file.
23988         * tests/test-getdate.c: New file.
23989
23990 2008-06-29  Bruno Haible  <bruno@clisp.org>
23991
23992         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
23993         .gitignore.
23994         Reported by Sylvain Beucler <beuc@beuc.net>.
23995
23996 2008-06-29  Bruno Haible  <bruno@clisp.org>
23997
23998         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
23999         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
24000
24001 2008-06-29  Bruno Haible  <bruno@clisp.org>
24002
24003         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
24004         EXTRA_DIST.
24005         Reported by Sylvain Beucler <beuc@beuc.net>.
24006
24007 2008-06-26  Jim Meyering  <meyering@redhat.com>
24008
24009         make several modules depend on the "open" module
24010         This provides slightly increased consistency when opening-for-write
24011         the name of a non-directory spelled with a trailing slash.
24012         * modules/chdir-safer: Likewise.
24013         * modules/chown: Likewise.
24014         * modules/clean-temp: Likewise.
24015         * modules/copy-file: Likewise.
24016         * modules/fchdir: Likewise.
24017         * modules/fcntl-safer: Likewise.
24018         * modules/pipe: Likewise.
24019         * modules/utime: Likewise.
24020         Prompted by Eric Blake and Bruno Haible.
24021
24022 2008-06-24  Andreas Schwab  <schwab@suse.de>
24023
24024         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
24025         literals can be used as initializers for global variables.
24026
24027 2008-06-23  Eric Blake  <ebb9@byu.net>
24028
24029         Make gnulib-cache.m4 easier to diff.
24030         * gnulib-tool (func_import): Allow newlines when reading cached
24031         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
24032
24033 2008-06-23  Bruno Haible  <bruno@clisp.org>
24034
24035         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
24036         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
24037         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
24038         m4/signalblocking.m4.
24039         (gl_PREREQ_SIGACTION): Don't invoke it.
24040         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
24041         gl_PREREQ_SIG_HANDLER_H.
24042         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
24043         Don't check for sigaction here.
24044
24045 2008-06-23  Bruno Haible  <bruno@clisp.org>
24046
24047         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
24048         (install_handlers): Don't set the SA_RESETHAND flag.
24049
24050 2008-06-23  Bruno Haible  <bruno@clisp.org>
24051
24052         * m4/sigaction.m4: Comment fixes.
24053         * lib/signal.in.h: Likewise.
24054
24055 2008-06-23  Eric Blake  <ebb9@byu.net>
24056
24057         Fix typo.
24058         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
24059
24060         Avoid SA_ namespace.
24061         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
24062         Reported by Ralf Wildenhues.
24063
24064         Avoid test failure due to SA_RESTORER.
24065         * tests/test-sigaction.c (SA_MASK): New macro.
24066         (main): Avoid failing due to extension flags being set.
24067         Reported by Jim Meyering.
24068
24069         Revert use of sig-handler.h in sigprocmask.c.
24070         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
24071         it requires the existence of struct sigaction.
24072         * lib/sigprocmask.c (handler_t): Restore typedef.
24073         (rpl_signal, old_handlers): Use local type.
24074
24075 2008-06-22  Bruno Haible  <bruno@clisp.org>
24076
24077         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
24078         conditionally.
24079         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
24080
24081 2008-06-22  Bruno Haible  <bruno@clisp.org>
24082
24083         * doc/posix-functions/siginterrupt.texi: Move note.
24084
24085         * lib/signal.in.h (SA_RESTART): New macro.
24086         * lib/sigaction.c: Update comment.
24087
24088         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
24089
24090         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
24091         (gl_PREREQ_SIGPROCMASK): Invoke it.
24092         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
24093
24094         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
24095
24096         * lib/sigprocmask.c: Update a comment.
24097
24098 2008-06-21  Eric Blake  <ebb9@byu.net>
24099
24100         Use sigaction module rather than signal().
24101         * modules/c-stack (Depends-on): Add sigaction.
24102         * modules/fatal-signal (Depends-on): Likewise.
24103         * modules/nanosleep (Depends-on): Likewise.
24104         * modules/sigprocmask (Files): Add sig-handler.h.
24105         * modules/sigaction (Files): Likewise.
24106         * lib/sig-handler.h (get_handler): New file, suggested by Paul
24107         Eggert.
24108         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
24109         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
24110         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
24111         (init_fatal_signals): Likewise.
24112         * lib/nanosleep.c (rpl_nanosleep): Likewise.
24113         (siginterrupt): Delete fallback.
24114         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
24115         instead.
24116         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
24117         siginterrupt.
24118
24119         New module sigaction, for mingw.
24120         * modules/sigaction: New module...
24121         * modules/sigaction-tests: ...and its test.
24122         * m4/sigaction.m4: New file.
24123         * lib/sigaction.c: Likewise.
24124         * tests/test-sigaction.c: Likewise.
24125         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
24126         * modules/signal (Makefile.am): Likewise.
24127         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
24128         needed.
24129         * doc/posix-headers/signal.texi (signal.h): Mention provided
24130         types.
24131         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
24132         that sigaction is preferable.
24133         * doc/posix-functions/sigaction.texi (sigaction): Mention new
24134         module.
24135         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
24136         sigaction.
24137
24138         Improve robustness of sigprocmask by overriding signal.
24139         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
24140         is in use.
24141         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
24142         (SIGKILL, SIGSTOP): Provide fallbacks.
24143         (rpl_signal): Implement.
24144         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
24145         signal can be called inside handlers.
24146
24147         Fix nanosleep module on mingw.
24148         * modules/nanosleep (Depends-on): Add sys_select.
24149         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
24150
24151         Fix licensing of sigprocmask.
24152         * modules/raise (License): Relicense as LGPL.
24153
24154 2008-06-21  Bruno Haible  <bruno@clisp.org>
24155
24156         * lib/propername.c (proper_name_utf8): Don't use the transliterated
24157         result if it contains question marks.
24158         Reported by Michael Geng <linux@michaelgeng.de>.
24159
24160 2008-06-19  Bruno Haible  <bruno@clisp.org>
24161
24162         Fix CVS-ism.
24163         * doc/gnulib.texi: Include updated-stamp.texi.
24164         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
24165         (updated-stamp.texi): New rule.
24166         (gnulib.info): Depend on it.
24167         * doc/.gitignore: Add updated-stamp.texi.
24168         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
24169
24170 2008-06-19  Bruno Haible  <bruno@clisp.org>
24171
24172         * doc/Makefile (gnulib.info): Update and simplify dependencies.
24173         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
24174
24175 2008-06-19  Eric Blake  <ebb9@byu.net>
24176
24177         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
24178         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
24179         Reported by Stepan Kasal.
24180
24181 2008-06-18  Bruno Haible  <bruno@clisp.org>
24182
24183         * lib/fatal-signal.c (init_fatal_signals): Add comment.
24184         Reported by Eric Blake.
24185
24186 2008-06-18  Eric Blake  <ebb9@byu.net>
24187
24188         Work around cygwin 1.5.25 strsignal bug.
24189         * tests/test-strsignal.c: Allow for const char *.
24190         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
24191
24192 2008-06-18  Simon Josefsson  <simon@josefsson.org>
24193
24194         * users.txt: Update URL to article and add author/date
24195         information.
24196
24197 2008-06-17  Bruno Haible  <bruno@clisp.org>
24198
24199         New macro gl_DISABLE_THREADS.
24200         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
24201         if the user did not pass --enable-threads or --disable-threads option.
24202         (gl_DISABLE_THREADS): New macro.
24203         Reported by Eric Blake <ebb9@byu.net>.
24204
24205 2008-06-17  Bruno Haible  <bruno@clisp.org>
24206
24207         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
24208         when the macro ignores it.
24209         Based on a patch by Eric Blake <ebb9@byu.net>.
24210
24211 2008-06-17  Bruno Haible  <bruno@clisp.org>
24212
24213         * modules/tls (License): Change to LGPLv2+.
24214         Reported by Eric Blake.
24215
24216 2008-06-17  Eric Blake  <ebb9@byu.net>
24217
24218         Simplify c-stack prerequisites.
24219         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
24220         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
24221         no longer requires <ucontext.h> to exist.  Optimize setrlimit
24222         check.
24223         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
24224         <sys/resource.h>.
24225
24226         Move c-stack test into testsuite.
24227         * modules/c-stack-tests: New file.
24228         * lib/c-stack.c [DEBUG]: Move test program...
24229         * tests/test-c-stack.c: ...into this new file.  Skip rather than
24230         fail test if sigaltstack is lacking.
24231         * tests/test-c-stack.sh: New driver file.
24232
24233 2008-06-16  Eric Blake  <ebb9@byu.net>
24234
24235         Use raise module consistently.
24236         * modules/fatal-signal (Depends-on): Add raise.
24237         * modules/sigprocmask (Depends-on): Likewise.
24238         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
24239         * lib/sigprocmask.c (sigprocmask): Likewise.
24240         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
24241         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
24242
24243         Fix compliance bug in sigpending.
24244         * lib/sigprocmask.c (sigpending): Return pending array via
24245         parameter, not return value.
24246
24247 2008-06-14  Eric Blake  <ebb9@byu.net>
24248
24249         Improve obstack-printf test code.
24250         * tests/test-obstack-printf.c (test_function): Fix comment, and
24251         simplify usage of obstack_* in macros.  Add a test for coverage.
24252         Reported by Bruno Haible.
24253
24254 2008-06-14  Bruno Haible  <bruno@clisp.org>
24255
24256         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
24257         array size as a constant, not as a const variable.
24258         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
24259         AC_USE_SYSTEM_EXTENSIONS.
24260         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
24261         Test whether the obstack_printf function actually exists.
24262         * modules/obstack-printf (Depends-on): Add extensions.
24263         (Include): Remove obstack.h.
24264         * modules/obstack-printf-posix (Depends-on): Add extensions.
24265         (Include): Remove obstack.h.
24266
24267 2008-06-13  Eric Blake  <ebb9@byu.net>
24268
24269         Add obstack-printf and obstack-printf-posix modules.
24270         * modules/obstack-printf: New file.
24271         * modules/obstack-printf-posix: Likewise.
24272         * MODULES.html.sh (Misc): Mention them.
24273         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
24274         Likewise.
24275         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
24276         Likewise.
24277         * modules/stdio (Makefile.am): Accomodate new modules.
24278         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
24279         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
24280         Declare.
24281         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
24282         functions.
24283         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
24284         (gl_REPLACE_OBSTACK_PRINTF): New macros
24285         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
24286         * tests/test-obstack-printf.c: New file.
24287         * modules/obstack-printf-tests: Likewise.
24288         * modules/obstack-printf-posix-tests: Likewise.
24289
24290 2008-06-11  Bruno Haible  <bruno@clisp.org>
24291
24292         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
24293         * lib/open.c: Include errno.h.
24294         (open): Fail when attempting to write to a file that has a trailing
24295         slash.
24296         * tests/test-open.c (main): Test against trailing slash bug.
24297         * doc/posix-functions/open.texi: Mention the trailing slash bug.
24298
24299 2008-06-10  Bruno Haible  <bruno@clisp.org>
24300
24301         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
24302         for $? to work inside the trap command, with various /bin/sh-s.
24303         * tests/test-vc-list-files-cvs.sh: Likewise.
24304
24305 2008-06-10  Bruno Haible  <bruno@clisp.org>
24306
24307         * lib/acl-internal.h: Don't include gettext.h here.
24308         * lib/set-mode-acl.c: Include gettext.h here.
24309         * lib/copy-acl.c: Likewise.
24310
24311 2008-06-10  Bruno Haible  <bruno@clisp.org>
24312
24313         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
24314         * lib/wait-process.c (wait_subprocess): Likewise.
24315         * lib/execute.h (execute): Add termsigp argument.
24316         * lib/execute.c (execute): Likewise.
24317         * lib/csharpcomp.c (compile_csharp_using_pnet,
24318         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
24319         * lib/csharpexec.c (execute_csharp_using_pnet,
24320         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
24321         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
24322         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
24323         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
24324         is_jikes_present): Update.
24325         * lib/javaexec.c (execute_java_class): Update.
24326         * lib/javaversion.c (execute_and_read_line): Update.
24327         * NEWS: Document the changes.
24328         Reported by Eric Blake.
24329
24330 2008-06-10  Eric Blake  <ebb9@byu.net>
24331
24332         Add missing include.
24333         * tests/test-strstr.c (includes): Add <signal.h>.
24334         * tests/test-strcasestr.c (includes): Likewise.
24335         * tests/test-memmem.c (includes): Likewise.
24336
24337 2008-06-10  Bruno Haible  <bruno@clisp.org>
24338
24339         * lib/wait-process.c (wait_subprocess): Add an assertion.
24340
24341 2008-06-10  Bruno Haible  <bruno@clisp.org>
24342
24343         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
24344
24345 2008-06-10  Bruno Haible  <bruno@clisp.org>
24346
24347         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
24348         using alarm().
24349         * tests/test-strcasestr.c (main): Likewise.
24350         * tests/test-strstr.c (main): Likewise.
24351
24352 2008-06-09  Bruno Haible  <bruno@clisp.org>
24353
24354         Work around the Solaris 10 ACE ACLs ABI change.
24355         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
24356         declare if ACL_NO_TRIVIAL is present.
24357         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
24358         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
24359         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
24360         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
24361         define if ACL_NO_TRIVIAL is present.
24362         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
24363         and use the current ABI.
24364         (file_has_acl): Use same #if condition as elsewhere.
24365         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
24366         in use, and use the current ABI.
24367         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
24368         Reported by Jim Meyering.
24369
24370 2008-06-09  Eric Blake  <ebb9@byu.net>
24371
24372         Work around environments that (stupidly) ignore SIGALRM.
24373         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
24374         before using alarm().
24375         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
24376         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
24377         Reported by Ian Beckwith <ianb@erislabs.net>.
24378
24379         Produce autobuild blurb earlier in log.
24380         * modules/autobuild (configure.ac-early): Move AB_INIT here.
24381
24382 2008-06-09  Jim Meyering  <meyering@redhat.com>
24383         and OndÅ™ej Vašík  <ovasik@redhat.com>
24384
24385         utimens.c: correct kernel bug work-around
24386         OndÅ™ej Vašík found that the invalid return value of 280 indicates
24387         failure, not success, and the kernel bug we're trying to work
24388         around affects not just the utimensat call, but also the fallback
24389         futimens call.
24390         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
24391         not success.
24392         [HAVE_FUTIMENS]: Use the same work-around, here.
24393
24394 2008-06-09  Jim Meyering  <meyering@redhat.com>
24395
24396         add more guards around definition of ACE_-related code
24397         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
24398         ALLOW and ACE_OWNER are also defined.
24399
24400 2008-06-08  Bruno Haible  <bruno@clisp.org>
24401
24402         * lib/acl-internal.h: Add me as co-author.
24403         * lib/file-has-acl.c: Likewise.
24404         * lib/set-mode-acl.c: Likewise.
24405         * lib/copy-acl.c: Likewise.
24406
24407 2008-06-08  Bruno Haible  <bruno@clisp.org>
24408
24409         Add support for AIX ACLs.
24410         * lib/acl-internal.h (acl_nontrivial): New declaration.
24411         * lib/file-has-acl.c (acl_nontrivial): New function.
24412         (file_has_acl): Add implementation using AIX 4 ACL API.
24413         * lib/set-mode-acl.c (qset_acl): Likewise.
24414         * lib/copy-acl.c (qcopy_acl): Likewise.
24415
24416 2008-06-08  Bruno Haible  <bruno@clisp.org>
24417
24418         Add support for HP-UX ACLs.
24419         * lib/acl-internal.h (acl_nontrivial): New declaration.
24420         * lib/file-has-acl.c (acl_nontrivial): New function.
24421         (file_has_acl): Add implementation using HP-UX 11 ACL API.
24422         * lib/set-mode-acl.c (qset_acl): Likewise.
24423         * lib/copy-acl.c (qcopy_acl): Likewise.
24424
24425 2008-06-08  Bruno Haible  <bruno@clisp.org>
24426
24427         Add support for Cygwin ACLs.
24428         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
24429         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
24430         the chmod_or_fchmod call.
24431         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
24432
24433 2008-06-08  Bruno Haible  <bruno@clisp.org>
24434
24435         Fix bug with setuid modes in Solaris 10+ code.
24436         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
24437         succeeded, when the mode contains some special bits.
24438
24439 2008-06-08  Bruno Haible  <bruno@clisp.org>
24440
24441         Add support for Solaris 7..10 ACLs.
24442         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
24443         declarations.
24444         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
24445         functions.
24446         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
24447         * lib/set-mode-acl.c (qset_acl): Likewise.
24448         * lib/copy-acl.c (qcopy_acl): Likewise.
24449
24450 2008-06-08  Bruno Haible  <bruno@clisp.org>
24451
24452         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
24453         declaration.
24454         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
24455         (acl_access_nontrivial): Remove MacOS X case.
24456         (file_has_acl): Use acl_extended_nontrivial.
24457         * lib/copy-acl.c (qcopy_acl): Likewise.
24458
24459 2008-06-08  Bruno Haible  <bruno@clisp.org>
24460
24461         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
24462
24463 2008-06-08  Jim Meyering  <meyering@redhat.com>
24464
24465         * modules/acl (Maintainer): Add Bruno Haible.
24466
24467 2008-06-07  Bruno Haible  <bruno@clisp.org>
24468
24469         Improve support for Tru64 ACLs.
24470         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
24471         ACL on OSF/1.
24472
24473 2008-06-07  Bruno Haible  <bruno@clisp.org>
24474
24475         Add support for MacOS X ACLs.
24476         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
24477         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
24478         * lib/set-mode-acl.c (qset_acl): Likewise.
24479         * lib/copy-acl.c (qcopy_acl): Likewise.
24480
24481 2008-06-07  Bruno Haible  <bruno@clisp.org>
24482
24483         Fix memory leak introduced on 2008-05-22.
24484         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
24485         use.
24486
24487 2008-06-07  Bruno Haible  <bruno@clisp.org>
24488
24489         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
24490         to construct an empty ACL.
24491
24492 2008-06-07  Bruno Haible  <bruno@clisp.org>
24493
24494         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
24495         precisely.
24496         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
24497
24498 2008-06-07  Bruno Haible  <bruno@clisp.org>
24499
24500         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
24501         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
24502
24503 2008-06-07  Bruno Haible  <bruno@clisp.org>
24504
24505         * doc/posix-functions/_setjmp.texi: Explain the use of this function
24506         regardless of POSIX.
24507         * doc/posix-functions/_longjmp.texi: Likewise.
24508         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
24509         SystemV platform in this case.
24510
24511 2008-06-06  Eric Blake  <ebb9@byu.net>
24512
24513         Document abort() bugs.
24514         * doc/posix-functions/abort.texi (abort): Mention anomalies.
24515
24516         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
24517         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
24518         sigsetjmp.
24519         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
24520         siglongjmp, but only as a macro.
24521         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
24522         is obsolete.
24523         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
24524
24525         Tweak documentation to cover cygwin argz bugs.
24526         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
24527         argz bug fix; no code change needed since no cygwin releases
24528         occurred between the last fix and the bug being tested.
24529         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
24530         module and recently fixed cygwin bugs.
24531         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
24532         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
24533         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
24534         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
24535         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
24536         Likewise.
24537         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
24538         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
24539         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
24540         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
24541         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
24542         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
24543         Likewise.
24544
24545         Avoid gcc warning on cygwin.
24546         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
24547         !ACL_NO_TRIVIAL]: Avoid unused variable.
24548
24549 2008-06-05  Eric Blake  <ebb9@byu.net>
24550
24551         Be tolerant of UNKNOWN version in gnulib-tool test dir.
24552         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
24553         git-version-gen fails to come up with a version.
24554         Reported by Simon Josefsson.
24555
24556 2008-06-05  Jim Meyering  <meyering@redhat.com>
24557             Paul Eggert  <eggert@cs.ucla.edu>
24558
24559         utimens.c: work around a probable Linux kernel bug
24560         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
24561         appears to be a kernel bug that causes utimensat to return 280
24562         instead of 0, indicating success.
24563
24564 2008-06-04  Bruno Haible  <bruno@clisp.org>
24565
24566         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
24567         2008-06-01 commit.
24568
24569 2008-06-04  Bruno Haible  <bruno@clisp.org>
24570
24571         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
24572         * lib/file-has-acl.c (acl_access_nontrivial): New function.
24573         (file_has_acl): Use it. Save errno afterwards.
24574         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
24575
24576 2008-06-03  Bruno Haible  <bruno@clisp.org>
24577
24578         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
24579         draft code. Simplify #ifs.
24580         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
24581         Put Solaris code after POSIX-draft code. Fix comments regarding
24582         Solaris 10, HP-UX. Mention Cygwin.
24583         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
24584
24585 2008-06-03  Eric Blake  <ebb9@byu.net>
24586
24587         Provide fallback for older kernels.
24588         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
24589         Provide runtime fallback if kernel lacks support.
24590         Reported by Mike Frysinger.
24591
24592 2008-06-02  Bruno Haible  <bruno@clisp.org>
24593
24594         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
24595         it exists.
24596
24597 2008-06-02  Bruno Haible  <bruno@clisp.org>
24598
24599         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
24600         * lib/copy-acl.c (qcopy_acl): Update comment.
24601
24602 2008-06-02  Bruno Haible  <bruno@clisp.org>
24603
24604         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
24605         like ACL APIs.
24606
24607 2008-06-02  Bruno Haible  <bruno@clisp.org>
24608
24609         * tests/test-file-has-acl.sh: Use different code for Cygwin.
24610         * tests/test-set-mode-acl.sh: Likewise.
24611         * tests/test-copy-acl.sh: Likewise.
24612         * tests/test-copy-file.sh: Likewise.
24613
24614 2008-06-02  Bruno Haible  <bruno@clisp.org>
24615
24616         * tests/test-file-has-acl.sh: Remove unused code.
24617
24618 2008-06-01  Bruno Haible  <bruno@clisp.org>
24619
24620         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
24621         (copy_acl): Just a wrapper around qcopy_acl that emits the error
24622         messages.
24623         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
24624
24625 2008-06-01  Bruno Haible  <bruno@clisp.org>
24626
24627         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
24628         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
24629         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
24630         APIs.
24631         * modules/acl-tests (configure.ac): Remove tests now contained in
24632         m4/acl.m4.
24633
24634 2008-06-02  Jim Meyering  <meyering@redhat.com>
24635
24636         announce-gen: use a better key-server host name
24637         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
24638         it may be more consistently reliable.  Suggested by Werner Koch
24639         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
24640
24641 2008-06-01  Bruno Haible  <bruno@clisp.org>
24642
24643         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
24644         Reported by Voroskoi Andras <voroskoi@gmail.com>.
24645
24646 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
24647
24648         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
24649
24650 2008-06-01  Bruno Haible  <bruno@clisp.org>
24651
24652         New ACL tests.
24653         * tests/test-file-has-acl.sh: New file.
24654         * tests/test-file-has-acl.c: New file.
24655         * tests/test-set-mode-acl.sh: New file.
24656         * tests/test-set-mode-acl.c: New file.
24657         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
24658         * tests/test-copy-acl.c: New file.
24659         * modules/acl-tests: New file, based on modules/copy-file-tests.
24660         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
24661         (Depends-on): Add acl-tests.
24662         (configure.ac): Remove checks.
24663         (Makefile.am): Don't create test-sameacls program here any more.
24664
24665 2008-06-01  Bruno Haible  <bruno@clisp.org>
24666
24667         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
24668         * tests/test-sameacls.c: Include progname.h.
24669         (main): Invoke set_program_name. Portability fixes for MacOS X,
24670         Solaris, HP-UX.
24671
24672 2008-06-01  Bruno Haible  <bruno@clisp.org>
24673
24674         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
24675         function.
24676         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
24677
24678 2008-06-01  Bruno Haible  <bruno@clisp.org>
24679
24680         * modules/rpmatch (Depends-on): Add strdup.
24681
24682 2008-06-01  Bruno Haible  <bruno@clisp.org>
24683
24684         * lib/pipe.c: Include unistd-safer.h.
24685         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
24686         * modules/pipe (Depends-on): Add unistd-safer.
24687
24688 2008-05-30  Simon Josefsson  <simon@josefsson.org>
24689
24690         * modules/autobuild (configure.ac): Call AB_INIT.
24691
24692 2008-05-30  Simon Josefsson  <simon@josefsson.org>
24693
24694         * tests/test-getaddrinfo.c: Don't print debug messages by default.
24695         Suggested by Bruno Haible <bruno@clisp.org>.
24696
24697 2008-05-30  Simon Josefsson  <simon@josefsson.org>
24698
24699         * tests/test-base64.c: Cast size_t to unsigned long when invoking
24700         printf.  Use %lu instead of %d.  Reported by Bruno Haible
24701         <bruno@clisp.org>.
24702
24703 2008-05-29  Eric Blake  <ebb9@byu.net>
24704
24705         Prefer new POSIX 200x interfaces over futimesat.
24706         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
24707         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
24708         when available.
24709         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
24710
24711 2008-05-28  Bruno Haible  <bruno@clisp.org>
24712
24713         * modules/stpcpy (License): Change to LGPLv2+.
24714         Requested by David Lutterkort <dlutter@redhat.com>.
24715
24716 2008-05-27  Bruno Haible  <bruno@clisp.org>
24717
24718         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
24719         current mingw.
24720         Reported by Jose E. Marchesi <jemarch@gnu.org>.
24721
24722 2008-05-27  Bruno Haible  <bruno@clisp.org>
24723
24724         * modules/iconv_open (Link): New section, from module 'iconv'.
24725         * modules/striconv (Link): Likewise.
24726         * modules/striconveh (Link): Likewise.
24727         * modules/xstriconv (Link): Likewise.
24728         * modules/unicodeio (Link): Likewise.
24729         * modules/propername (Link): Likewise.
24730         Reported by Jim Meyering.
24731
24732 2008-05-26  Jim Meyering  <meyering@redhat.com>
24733
24734         sha256: do not artificially restrict buffer length to be < 2^32
24735         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
24736         uint32_t to size_t.
24737         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
24738         to match.
24739
24740         avoid unaligned access errors, e.g., on sparc
24741         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
24742         direct access through a possibly-unaligned uint64* pointer.
24743         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
24744         direct access through a possibly-unaligned uint32* pointer.
24745         Prompted by this patch from Tom "spot" Callaway:
24746         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
24747
24748         sha512.c: fix typo in comment
24749         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
24750
24751 2008-05-25  Bruno Haible  <bruno@clisp.org>
24752
24753         * lib/set-mode-acl.c: Renamed from lib/acl.c.
24754         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
24755         (Makefile.am): Update lib_SOURCES.
24756
24757 2008-05-25  Bruno Haible  <bruno@clisp.org>
24758
24759         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
24760
24761 2008-05-25  Jim Meyering  <meyering@redhat.com>
24762
24763         useless-if-before-free: freed expr may have white-space differences
24764         * build-aux/useless-if-before-free: Recognize cases in which the
24765         freed expression differs from the tested one in embedded white
24766         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
24767         $1 was used, so we can't make any regexp shy.  Improved tests now
24768         detect this.
24769
24770         useless-if-before-free: accept white space in the expression.
24771         * build-aux/useless-if-before-free: For now, any white space
24772         in the expression must be identical in the free argument.
24773
24774         useless-if-before-free: efficiency tweak
24775         * build-aux/useless-if-before-free: Make the expression-matching
24776         regexp "shy".
24777         Make the *outer* regexp shy, not the expr-matching one.
24778
24779         update code-in-comment to accept cast of free arg
24780         * build-aux/useless-if-before-free: Update regexp.
24781
24782 2008-05-25  Bruno Haible  <bruno@clisp.org>
24783
24784         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
24785         * modules/copy-file-tests (Files, Makefile.am): Update.
24786         * tests/test-copy-file.c (func_test_copy): Update.
24787
24788 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
24789
24790         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
24791
24792 2008-05-23  Bruno Haible  <bruno@clisp.org>
24793
24794         Improve support for ACLs on OSF/1.
24795         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
24796         Remove fallback for unknown flavors of ACLs.
24797
24798 2008-05-22  Bruno Haible  <bruno@clisp.org>
24799
24800         Add support for ACLs on OSF/1.
24801         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
24802         replacements.
24803         (acl_free_text): New macro fallback.
24804         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
24805         acl_free.
24806         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
24807         acl_free_text function. Require AC_C_INLINE.
24808
24809 2008-05-22  Bruno Haible  <bruno@clisp.org>
24810
24811         Make copy_acl work on MacOS X 10.5.
24812         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
24813         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
24814         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
24815         If MODE_INSIDE_ACL, don't assume that every system has the same text
24816         representation for ACLs as FreeBSD.
24817         * lib/copy-acl.c (copy_acl): Add support for platforms with
24818         !MODE_INSIDE_ACL.
24819         * lib/file-has-acl.c (file_has_acl): Likewise.
24820         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
24821         FreeBSD, MacOS X, or IRIX, respectively.
24822
24823 2008-05-22  Bruno Haible  <bruno@clisp.org>
24824
24825         * lib/acl.h: Don't include <sys/acl.h>.
24826         (GETACLCNT): Move fallback to lib/acl-internal.h.
24827         * lib/acl-internal.h: Include <sys/acl.h> here.
24828         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
24829
24830 2008-05-22  Bruno Haible  <bruno@clisp.org>
24831
24832         Split off copy_acl function to separate file.
24833         * lib/copy-acl.c: New file, extracted from lib/acl.c.
24834         * lib/acl.c (copy_acl): Moved function to separate file.
24835         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
24836         * modules/acl (Files): Add lib/copy-acl.c.
24837         (Makefiles.am): Augment lib_SOURCES.
24838
24839 2008-05-22  Bruno Haible  <bruno@clisp.org>
24840
24841         * modules/copy-file-tests: New file.
24842         * tests/test-copy-file.sh: New file.
24843         * tests/test-copy-file.c: New file.
24844         * tests/test-copy-file-sameacls.c: New file.
24845
24846 2008-05-22  Eric Blake  <ebb9@byu.net>
24847
24848         Avoid gcc warning.
24849         * tests/test-memcmp.c (main): Pass NULL indirectly.
24850
24851 2008-05-21  Bruno Haible  <bruno@clisp.org>
24852
24853         Add reference doc about ACLs.
24854         * doc/acl-resources.txt: New file.
24855         * doc/acl-cygwin.txt: New file.
24856
24857 2008-05-21  Bruno Haible  <bruno@clisp.org>
24858
24859         Avoid one more warning from gcc.
24860         * lib/vasnprintf.c (IF_LINT): Update comments.
24861         (VASNPRINTF): Use it also for the 'prefix' array initializer.
24862
24863 2008-05-21  Jim Meyering  <meyering@redhat.com>
24864
24865         avoid a warning from gcc
24866         * lib/vasnprintf.c (IF_LINT): Define.
24867         (scale10_round_decimal_long_double):
24868         Use it to avoid a "may be used uninitialized" warning.
24869         (scale10_round_decimal_double): Likewise.
24870
24871 2008-05-21  Simon Josefsson  <simon@josefsson.org>
24872
24873         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
24874         declared.
24875
24876 2008-05-20  Bruno Haible  <bruno@clisp.org>
24877
24878         * tests/test-memcmp.c (main): Test also the sign of the result. Test
24879         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
24880
24881 2008-05-20  Simon Josefsson  <simon@josefsson.org>
24882
24883         * modules/memcmp-tests: New file.
24884         * tests/test-memcmp.c: New file.
24885
24886 2008-05-19  Bruno Haible  <bruno@clisp.org>
24887
24888         * modules/propername (Notice, configure.ac): Put quoted "..." into
24889         --keyword option.
24890         * lib/propername.h: Update comments accordingly.
24891         Reported by Eric Blake.
24892
24893 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
24894
24895         * modules/getpass-gnu (Depends-on): Add fseeko.
24896
24897 2008-05-19  Simon Josefsson  <simon@josefsson.org>
24898
24899         * modules/base64-tests: New file.
24900
24901 2008-05-19  Bo Borgerson <gigabo@gmail.com>
24902
24903         * lib/base64.c (base64_decode_ctx): If a decode context structure
24904         was passed in use it to ignore newlines.  If a context structure
24905         was _not_ passed in, continue to treat newlines as garbage (this
24906         is the historical behavior).  Formerly base64_decode.
24907         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
24908         takes a decode context structure.
24909         * lib/base64.h (base64_decode): Macro for four-argument calls.
24910         (base64_decode_alloc): Likewise.
24911         * lib/base64.c (base64_decode_ctx): If a decode context structure
24912         was passed in use it to ignore newlines.  If a context structure
24913         was _not_ passed in, continue to treat newlines as garbage (this
24914         is the historical behavior).  Formerly base64_decode.
24915         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
24916         takes a decode context structure.
24917         * lib/base64.h (base64_decode): Macro for four-argument calls.
24918         (base64_decode_alloc): Likewise.
24919
24920 2008-05-19  Jim Meyering  <meyering@redhat.com>
24921
24922         avoid a warning from gcc
24923         * lib/trim.c (IF_LINT): Define.
24924         (trim2): Use it to avoid a "may be used uninitialized" warning.
24925
24926         Fix doc typo.
24927         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
24928
24929 2008-05-19  Bruno Haible  <bruno@clisp.org>
24930
24931         * doc/glibc-functions/getpass.texi: Document limits of other
24932         implementations.
24933
24934 2008-05-19  Simon Josefsson  <simon@josefsson.org>
24935             Bruno Haible <bruno@clisp.org>
24936
24937         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
24938
24939 2008-05-18  Bruno Haible  <bruno@clisp.org>
24940
24941         * modules/propername: New file, from GNU gettext.
24942         * lib/propername.h: New file, from GNU gettext.
24943         * lib/propername.c: New file, from GNU gettext.
24944         * MODULES.html.sh (Internationalization functions): Add propername.
24945
24946 2008-05-16  Jim Meyering  <meyering@redhat.com>
24947             Bruno Haible  <bruno@clisp.org>
24948
24949         Avoid some warnings from "gcc -Wshadow".
24950         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
24951
24952 2008-05-15  Eric Blake  <ebb9@byu.net>
24953
24954         Extend previous patch to cygwin 1.7.0.
24955         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
24956         fast implementation in cygwin >= 1.7.0.
24957         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
24958         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
24959
24960 2008-05-15  Bruno Haible  <bruno@clisp.org>
24961
24962         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
24963         implementation in glibc >= 2.9.
24964         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
24965         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
24966
24967 2008-05-15  Bruno Haible  <bruno@clisp.org>
24968
24969         * MODULES.html.sh (Internationalization functions): Remove linebreak.
24970         (Unicode string functions): Add unilbrk/*.
24971         Reported by Karl Berry.
24972
24973 2008-05-15  Eric Blake  <ebb9@byu.net>
24974
24975         Fix violation of <stdbool.h> replacement in regex.
24976         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
24977         * lib/regexec.c (re_search_internal): Likewise.
24978         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
24979
24980 2008-05-15  Jim Meyering  <meyering@redhat.com>
24981
24982         avoid distracting test output when git or cvs is not found
24983         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
24984         * tests/test-vc-list-files-git.sh: Likewise.
24985
24986 2008-05-15  Eric Blake  <ebb9@byu.net>
24987
24988         Glibc finally accepted the memmem speedup code, bugzilla #5514.
24989         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
24990         glibc version.
24991         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
24992         * doc/posix-functions/strstr.texi (strstr): Likewise.
24993         * lib/str-two-way.h (MAX): Sychronize with glibc.
24994
24995 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
24996
24997         * lib/regcomp.c (optimize_utf8): Add a note on why we test
24998         opr.ctx_type.
24999         (calc_first): Initialize constraint field.
25000         (duplicate_node_closure): Use it instead of special casing ANCHORS.
25001         Fix grammar.
25002         (duplicate_node): Merge constraint field for all node types.
25003         (calc_eclosure_iter): Look at constraint field for all node types.
25004         * lib/regex_internal.c (create_cd_newstate): Don't look at
25005         opr.ctx_type.
25006
25007 2008-05-14  Bruno Haible  <bruno@clisp.org>
25008
25009         Help GCC to do better code generation.
25010         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
25011         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
25012         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
25013         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
25014         Declare with attribute 'malloc' if supported.
25015
25016 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
25017
25018         use "echo STR|wc -c" rather than unportable "expr length STR"
25019         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
25020         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
25021
25022 2008-05-14  Jim Meyering  <meyering@redhat.com>
25023
25024         use dd ibs=$n count=1 ... rather than less-portable head -c$n
25025         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
25026         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
25027         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
25028         via Collin Lasse.
25029
25030 2008-05-14  Eric Blake  <ebb9@byu.net>
25031
25032         Avoid quadratic growth in gl_LIBSOURCES.
25033         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
25034         Suggested by Bruno Haible.
25035
25036         Test xmemdup0.
25037         * modules/xmemdup0-tests: New file.
25038         * tests/test-xmemdup0.c: Likewise.
25039
25040 2008-05-13  Eric Blake  <ebb9@byu.net>
25041
25042         Split xmemdup0 into its own module.
25043         * modules/xmemdup0: New file.
25044         * lib/xmemdup0.h: Likewise.
25045         * lib/xmemdup0.c: Likewise.
25046         * MODULES.html.sh (Memory management functions): Add xmemdup0.
25047         * lib/xalloc.h (xmemdup0): Remove.
25048         * lib/xmalloc.c (xmemdup0): Likewise.
25049
25050 2008-05-13  Eric Blake  <ebb9@byu.net>
25051             Bruno Haible  <bruno@clisp.org>
25052
25053         Reduce number of forks required during autoconf.
25054         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
25055         and gl_LIBSOURCES_DIR.
25056         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
25057         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
25058         m4_syscmd per file.
25059         <m4_foreach_w>: Move...
25060         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
25061
25062 2008-05-13  Eric Blake  <ebb9@byu.net>
25063
25064         * gnulib-tool: Fix various comment typos.
25065
25066 2008-05-12  Bruno Haible  <bruno@clisp.org>
25067
25068         Tailor the linebreaking algorithm.
25069         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
25070
25071 2008-05-12  Bruno Haible  <bruno@clisp.org>
25072
25073         Update to Unicode 5.0.0.
25074         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
25075         LBP_JV, LBP_JT. Redistribute values.
25076         (unilbrk_table): Change size.
25077         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
25078         Unicode TR#14 rev. 22.
25079         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
25080         LBP_JV, LBP_JT. Redistribute values.
25081         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
25082         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
25083         Update.
25084         * lib/unilbrk/lbrkprop1.h: Regenerated.
25085         * lib/unilbrk/lbrkprop2.h: Regenerated.
25086         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
25087         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
25088         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
25089         Likewise.
25090         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
25091         Likewise.
25092         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
25093         result.
25094         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
25095         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
25096         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
25097         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
25098         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
25099         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
25100
25101 2008-05-11  Bruno Haible  <bruno@clisp.org>
25102
25103         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
25104
25105 2008-05-11  Bruno Haible  <bruno@clisp.org>
25106
25107         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
25108         * modules/unilbrk/gen-lbrk: New file.
25109
25110 2008-05-11  Bruno Haible  <bruno@clisp.org>
25111
25112         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
25113         * m4/sha512.m4 (gl_SHA512): Likewise.
25114
25115 2008-05-11  Jim Meyering  <meyering@redhat.com>
25116
25117         New modules: crypto/sha256, crypto/sha512 (from coreutils)
25118         * modules/crypto/sha256: New file.
25119         * modules/crypto/sha512: Likewise.
25120         * lib/sha256.c: Likewise.
25121         * lib/sha256.h: Likewise.
25122         * lib/sha512.c: Likewise.
25123         * lib/sha512.h: Likewise.
25124         * lib/u64.h: Likewise.
25125         * m4/sha256.m4: Likewise.
25126         * m4/sha512.m4: Likewise.
25127         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
25128
25129 2008-05-10  Bruno Haible  <bruno@clisp.org>
25130
25131         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
25132         (Input/Output <stdio.h>): Add xprintf.
25133         (Signal handling <signal.h>): Add strsignal.
25134         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
25135         (Core language properties): Add func.
25136         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
25137         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
25138         strings.
25139         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
25140         (Input/output): New section.
25141         (File system functions): Add openat-die, stat-macros.
25142         (Networking functions): Add sockets.
25143         (Unicode string functions): Add unictype/*.
25144         (Support for building libraries and executables): Add gperf.
25145         (Support for building documentation): Add agpl-3.0.
25146         (Misc): Add nocrash.
25147
25148 2008-05-10  Bruno Haible  <bruno@clisp.org>
25149
25150         * modules/unictype/gen-ctype: New file.
25151
25152 2008-05-10  Jim Meyering  <meyering@redhat.com>
25153
25154         Make chdir-safer.c more efficient on a system with no symlinks.
25155         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
25156         also if ELOOP is zero.  Suggested by Bruno Haible.
25157
25158         Make chdir-safer.c slightly safer.
25159         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
25160         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
25161
25162         Avoid compile failure on systems without ELOOP (like mingw).
25163         * lib/chdir-safer.c (ELOOP): Define if not already defined.
25164         Reported by Bruno Haible.
25165
25166 2008-05-10  Bruno Haible  <bruno@clisp.org>
25167
25168         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
25169         (is_utf8_encoding): Use a case-insensitive comparison.
25170         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
25171         streq.
25172
25173 2008-05-10  Bruno Haible  <bruno@clisp.org>
25174
25175         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
25176         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
25177         * lib/unilbrk/ulc-common.h (iconv_string_length,
25178         iconv_string_keeping_offsets): Remove declarations.
25179         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
25180         Don't include <iconv.h>, streq.h, xsize.h.
25181         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
25182         conversion.
25183         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
25184         <iconv.h>, streq.h, xsize.h.
25185         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
25186         conversion.
25187         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
25188         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
25189         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
25190         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
25191
25192 2008-05-10  Bruno Haible  <bruno@clisp.org>
25193
25194         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
25195         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
25196
25197         * modules/unilbrk/u32-width-linebreaks-tests: New file.
25198         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
25199
25200         * modules/unilbrk/u16-width-linebreaks-tests: New file.
25201         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
25202
25203         * modules/unilbrk/u8-width-linebreaks-tests: New file.
25204         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
25205
25206         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
25207         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
25208
25209         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
25210         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
25211
25212         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
25213         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
25214
25215         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
25216         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
25217
25218 2008-05-10  Bruno Haible  <bruno@clisp.org>
25219
25220         Split up 'linebreak' module.
25221         * lib/unilbrk.h: New file, based on lib/linebreak.h.
25222         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
25223         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
25224         modifications.
25225         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
25226         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
25227         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
25228         lib/linebreak.c.
25229         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
25230         lib/linebreak.c.
25231         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
25232         lib/linebreak.c.
25233         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
25234         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
25235         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
25236         lib/linebreak.c.
25237         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
25238         lib/linebreak.c.
25239         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
25240         lib/linebreak.c.
25241         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
25242         lib/linebreak.c.
25243         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
25244         lib/linebreak.c.
25245         * modules/unilbrk/base: New file.
25246         * modules/unilbrk/tables: New file.
25247         * modules/unilbrk/u8-possible-linebreaks: New file.
25248         * modules/unilbrk/u16-possible-linebreaks: New file.
25249         * modules/unilbrk/u32-possible-linebreaks: New file.
25250         * modules/unilbrk/ulc-common: New file.
25251         * modules/unilbrk/ulc-possible-linebreaks: New file.
25252         * modules/unilbrk/u8-width-linebreaks: New file.
25253         * modules/unilbrk/u16-width-linebreaks: New file.
25254         * modules/unilbrk/u32-width-linebreaks: New file.
25255         * modules/unilbrk/ulc-width-linebreaks: New file.
25256         * lib/linebreak.h: Remove file.
25257         * lib/linebreak.c: Remove file.
25258         * m4/linebreak.m4: Remove file.
25259         * modules/linebreak: Remove file.
25260         * NEWS: Mention the changes.
25261
25262 2008-05-09  Eric Blake  <ebb9@byu.net>
25263
25264         Add xmemdup0.
25265         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
25266         implementation.
25267         * lib/xmalloc.c (xmemdup0): New C implementation.
25268
25269 2008-05-08  Bruno Haible  <bruno@clisp.org>
25270
25271         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
25272
25273 2008-05-07  Eric Blake  <ebb9@byu.net>
25274
25275         Support cross-compilation of <wctype.h>.
25276         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
25277         AC_CACHE_CHECK.
25278
25279 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
25280
25281         * build-aux/vc-list-files: Add support for bzr.
25282
25283 2008-05-03  Jim Meyering  <meyering@redhat.com>
25284
25285         avoid failed assertion with tight malloc
25286         * tests/test-getndelim2.c: Correct an off-by-one assertion.
25287
25288 2008-05-03  Simon Josefsson  <simon@josefsson.org>
25289
25290         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
25291         are needed from arpa/inet.h.
25292         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
25293         Reported by Bruno Haible.
25294
25295 2008-05-02  Jim Meyering  <meyering@redhat.com>
25296
25297         avoid compilation error on FreeBSD 6
25298         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
25299
25300 2008-05-01  Jim Meyering  <meyering@redhat.com>
25301
25302         useless-if-before-free: correct --help's exit status description
25303         * build-aux/useless-if-before-free (usage): Like grep, exit 0
25304         for one or more matches, etc.  Reported by Bruno Haible.
25305
25306         vc-list-files: make the stand-alone gnulib test work
25307         * modules/vc-list-files-tests (configure.ac):
25308         Define and AC_SUBST abs_aux_dir.
25309         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
25310         $(abs_top_srcdir) to each script and having each of them
25311         duplicate the work of setting PATH, set PATH here, using
25312         the new variable, abs_aux_dir instead.
25313         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
25314         * tests/test-vc-list-files-git.sh: Likewise.
25315         Reported by Bruno Haible.
25316
25317 2008-05-01  Bruno Haible  <bruno@clisp.org>
25318
25319         * lib/getndelim2.c (getndelim2): Fix newsize computation during
25320         reallocation. Rename 'done' to 'found_delimiter'.
25321
25322 2008-05-01  Jim Meyering  <meyering@redhat.com>
25323
25324         vc-list-files: accommodate /bin/sh like the one from Solaris 10
25325         * build-aux/vc-list-files: Use `...`, not $(...).
25326
25327 2008-04-30  Jim Meyering  <meyering@redhat.com>
25328
25329         add tests for vc-list-files
25330         * modules/vc-list-files-tests: New module.
25331         * tests/test-vc-list-files-cvs.sh: New file.
25332         * tests/test-vc-list-files-git.sh: New file.
25333
25334         avoid a warning from gcc
25335         * lib/getndelim2.c (IF_LINT): Define.
25336         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
25337
25338         vc-list-files: work properly with build-aux/cvsu, too
25339         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
25340         to all cvs-based clauses.
25341
25342         vc-list-files: work properly in the CVS+awk case, too
25343         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
25344
25345         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
25346         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
25347         take more than one file argument, so .  Add quotes, just in case $dir
25348         ever contains a shell meta-character.  Prompted by Soren Hansen in
25349         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
25350
25351 2008-04-29  Eric Blake  <ebb9@byu.net>
25352
25353         Optimize getndelim2 to use block operations when possible.
25354         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
25355         freadseek, and memchr2.
25356         * lib/getndelim2.c (getndelim2): Use them for block reads.
25357
25358 2008-04-29  Bruno Haible  <bruno@clisp.org>
25359
25360         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
25361         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
25362         * modules/inet_ntop (Depends-on): Add extensions.
25363         * modules/inet_pton (Depends-on): Likewise.
25364         Reported by Simon Josefsson.
25365
25366 2008-04-29  Jim Meyering  <meyering@redhat.com>
25367
25368         When the is more than one match in a block, match all of them.
25369         * build-aux/useless-if-before-free: Iterate through each block
25370         until there are no more matches.
25371
25372         Fix broken useless-if-before-free script.
25373         * build-aux/useless-if-before-free: Fix typo: missing "?" after
25374         the expression to match cast of argument to free-like function.
25375
25376 2008-04-29  Eric Blake  <ebb9@byu.net>
25377
25378         Use new header.
25379         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
25380
25381 2008-04-29  Jim Meyering  <meyering@redhat.com>
25382
25383         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
25384         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
25385         by gnulib to exist and to declare e.g., inet_ntop.
25386         Don't include "inet_ntop.h", now removed.
25387
25388         * m4/arpa_inet_h.m4: Remove trailing blanks.
25389
25390 2008-04-29  Eric Blake  <ebb9@byu.net>
25391
25392         Silence valgrind on safe reads beyond potential array bounds.
25393         * lib/rawmemchr.valgrind: New file.
25394         * lib/strchrnul.valgrind: Likewise.
25395         * modules/rawmemchr (Files): Distribute new file.
25396         * modules/strchrnul (Files): Likewise.
25397         Suggested by Bruno Haible.
25398
25399 2008-04-29  Bruno Haible  <bruno@clisp.org>
25400
25401         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
25402         (inet_ntop, inet_pton): Change portability warning's wording.
25403         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
25404         Invoke gl_CHECK_NEXT_HEADERS.
25405         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
25406         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
25407         set ARPA_INET_H.
25408         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
25409         * modules/arpa_inet (Description): No longer only for systems that
25410         lack it.
25411         (Depends-on): Add include_next.
25412         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
25413         HAVE_ARPA_INET_H.
25414
25415 2008-04-29  Jim Meyering  <meyering@redhat.com>
25416
25417         * modules/mkdir (License): Re-license as LGPLv2+.
25418
25419 2008-04-29  Bruno Haible  <bruno@clisp.org>
25420
25421         * modules/rawmemchr (Maintainer): Set to Eric.
25422         * modules/strchrnul (Maintainer): Likewise.
25423
25424 2008-04-29  Simon Josefsson  <simon@josefsson.org>
25425
25426         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
25427         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
25428
25429         * modules/arpa_inet (arpa/inet.h): Use them.
25430
25431 2008-04-28  Eric Blake  <ebb9@byu.net>
25432
25433         Test getndelim2.
25434         * modules/getndelim2-tests: New file.
25435         * tests/test-getndelim2.c: Likewise.
25436         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
25437         stream.
25438         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
25439
25440         * MODULES.html.sh: Document new module.
25441
25442 2008-04-20  Bruno Haible  <bruno@clisp.org>
25443
25444         * lib/c-stack.c (die): Use raise.
25445         * modules/c-stack (Depends-on): Add raise.
25446
25447 2008-04-28  Bruno Haible  <bruno@clisp.org>
25448
25449         Expect rpmatch to be declared.
25450         * lib/yesno.c (rpmatch): Remove declaration.
25451
25452         Declare rpmatch.
25453         * lib/stdlib.in.h (rpmatch): New declaration.
25454         * lib/rpmatch.c: Include <stdlib.h> first.
25455         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
25456         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
25457         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
25458         HAVE_RPMATCH.
25459         * modules/rpmatch (Depends-on): Add stdlib, extensions.
25460         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
25461         (Include): Set to <stdlib.h>.
25462         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
25463         HAVE_RPMATCH.
25464         * NEWS: Document the change.
25465
25466 2008-04-28  Bruno Haible  <bruno@clisp.org>
25467
25468         Change rpmatch to use nl_langinfo when appropriate.
25469         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
25470         (N_): New macro.
25471         (localized_pattern): New function/macro.
25472         (try): Remove match, nomatch arguments. Copy the pattern into safe
25473         memory before caching it.
25474         (rpmatch): Use localized_pattern. Add translator comments.
25475         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
25476         Suggested by Eric Blake.
25477         * modules/rpmatch (Depends-on): Add stdbool.
25478
25479 2008-04-28  Eric Blake  <ebb9@byu.net>
25480
25481         Add rawmemchr module, matching glibc.
25482         * modules/string (Makefile.am): New indicator.
25483         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
25484         * lib/string.in.h (rawmemchr): Declare when appropriate.
25485         * modules/rawmemchr: New file.
25486         * m4/rawmemchr.m4: Likewise.
25487         * lib/rawmemchr.c: Likewise.
25488         * modules/rawmemchr-tests: Likewise.
25489         * tests/test-rawmemchr.c: Likewise.
25490         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
25491         module.
25492         * modules/strchrnul (Depends-on): Add rawmemchr.
25493         * lib/strchrnul.c (strchrnul): Optimize a corner case.
25494
25495         Whitespace cleanup.
25496         * tests/test-strchrnul.c: Reindent.
25497         * lib/strchrnul.c: Likewise.
25498
25499         Optimize and test strchrnul.
25500         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
25501         * modules/strchrnul-tests: New file.
25502         * tests/test-strchrnul.c: Likewise.
25503
25504         Remove intprops dependency.
25505         * modules/memchr (Depends-on): Remove intprops.
25506         * modules/memrchr (Depends-on): Likewise.
25507         * modules/memchr2 (Depends-on): Likewise.
25508         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
25509         * lib/memrchr.c (__memrchr): Likewise.
25510         * lib/memrchr2.c (memchr2): Likewise.
25511         Reported by Simon Josefsson.
25512
25513 2008-04-28  Simon Josefsson  <simon@josefsson.org>
25514
25515         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
25516         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25517
25518 2008-04-28  Simon Josefsson  <simon@josefsson.org>
25519
25520         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
25521
25522         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
25523
25524         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
25525
25526         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
25527         declarations.
25528         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
25529
25530         * m4/inet_pton.m4: Don't check for header files.
25531
25532         * m4/inet_ntop.m4: Don't check for header files.
25533
25534 2008-04-28  Simon Josefsson  <simon@josefsson.org>
25535
25536         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
25537         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
25538         trigger for cygwin).
25539         Reported by Bruno Haible  <bruno@clisp.org>.
25540
25541 2008-04-28  Bruno Haible  <bruno@clisp.org>
25542
25543         * doc/posix-functions/strdup.texi: Mention mingw problem.
25544
25545 2008-04-27  Bruno Haible  <bruno@clisp.org>
25546
25547         * modules/stat-time-tests (Depends-on): Add sleep.
25548         * tests/test-stat-time.c (force_unlink): New function.
25549         (cleanup): Use it.
25550         (test_mtime): Remove the ctime related tests.
25551         (test_ctime): New function, containing the ctime related tests.
25552         (main): Call test_ctime, except on native Windows platforms.
25553
25554 2008-04-27  Bruno Haible  <bruno@clisp.org>
25555
25556         * lib/rpmatch.c (rpmatch): Add some comments.
25557         Reported by James Youngman <jay@gnu.org>.
25558
25559 2008-04-27  Bruno Haible  <bruno@clisp.org>
25560
25561         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
25562         quiet NaNs.
25563
25564 2008-04-27  Bruno Haible  <bruno@clisp.org>
25565
25566         Make test-yesno.sh work on mingw.
25567         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
25568         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
25569         (main): Set stdin to binary mode.
25570         * modules/yesno-tests (Depends-on): Add binary-io.
25571
25572 2008-04-27  Bruno Haible  <bruno@clisp.org>
25573
25574         Fix 'isfinite' on x86, x86_64, ia64 platforms.
25575         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
25576         argument that lie outside the IEEE 854 domain.
25577         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
25578         (gl_ISFINITE): Use it.
25579         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
25580
25581 2008-04-27  Bruno Haible  <bruno@clisp.org>
25582
25583         Allow local renaming in config.h.
25584         * lib/memrchr.c (memrchr): Don't undefine outside libc.
25585
25586 2008-04-27  Bruno Haible  <bruno@clisp.org>
25587
25588         * lib/memchr.c (__memchr): Change type of 'i'.
25589         * lib/memchr2.c (memchr2): Likewise.
25590
25591 2008-04-26  Eric Blake  <ebb9@byu.net>
25592         and Bruno Haible  <bruno@clisp.org>
25593
25594         Optimize and test memrchr.
25595         * modules/memrchr (Depends-on): Add intprops.
25596         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
25597         * modules/memrchr-tests: New file.
25598         * tests/test-memrchr.c: New file.
25599
25600 2008-04-26  Bruno Haible  <bruno@clisp.org>
25601
25602         Add tentative support for DragonFly BSD.
25603         * lib/stdio-impl.h: Add macros for DragonFly BSD.
25604         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
25605         fp.
25606         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
25607         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
25608         * lib/fpurge.c (fpurge): Likewise.
25609         * lib/freadable.c (freaadable): Likewise.
25610         * lib/freadahead.c (freadahead): Likewise.
25611         * lib/freading.c (freading): Likewise.
25612         * lib/freadptr.c (freadptr): Likewise.
25613         * lib/freadseek.c (freadptrinc): Likewise.
25614         * lib/fseeko.c (fseeko): Likewise.
25615         * lib/fseterr.c (fseterr): Likewise.
25616         * lib/fwritable.c (fwritable): Likewise.
25617         * lib/fwriting.c (fwriting): Likewise.
25618
25619 2008-04-26  Bruno Haible  <bruno@clisp.org>
25620
25621         * lib/stdio-impl.h: New file.
25622         * lib/fbufmode.c: Include stdio-impl.h.
25623         (fbufmode): Use fp_, remove redundant #defines.
25624         * lib/fflush.c: Include stdio-impl.h.
25625         (clear_ungetc_buffer): Remove redundant #defines.
25626         * lib/fpurge.c: Include stdio-impl.h.
25627         (fpurge): Remove redundant #defines.
25628         * lib/freadable.c: Include stdio-impl.h.
25629         (freadable): Remove redundant #defines.
25630         * lib/freadahead.c: Include stdio-impl.h.
25631         (freadahead): Remove redundant #defines.
25632         * lib/freading.c: Include stdio-impl.h.
25633         (freading): Remove redundant #defines.
25634         * lib/freadptr.c: Include stdio-impl.h.
25635         (freadptr): Remove redundant #defines.
25636         * lib/freadseek.c: Include stdio-impl.h.
25637         (freadptrinc): Remove redundant #defines.
25638         * lib/fseeko.c: Include stdio-impl.h.
25639         (rpl_fseeko): Remove redundant #defines.
25640         * lib/fseterr.c: Include stdio-impl.h.
25641         (fseterr): Remove redundant #defines.
25642         * lib/fwritable.c: Include stdio-impl.h.
25643         (fwritable: Remove redundant #defines.
25644         * lib/fwriting.c: Include stdio-impl.h.
25645         (fwriting): Remove redundant #defines.
25646         * modules/fbufmode (Files): Add lib/stdio-impl.h.
25647         * modules/fflush (Files): Likewise.
25648         * modules/fpurge (Files): Likewise.
25649         * modules/freadable (Files): Likewise.
25650         * modules/freadahead (Files): Likewise.
25651         * modules/freading (Files): Likewise.
25652         * modules/freadptr (Files): Likewise.
25653         * modules/freadseek (Files): Likewise.
25654         * modules/fseeko (Files): Likewise.
25655         * modules/fseterr (Files): Likewise.
25656         * modules/fwritable (Files): Likewise.
25657         * modules/fwriting (Files): Likewise.
25658
25659 2008-04-26  Bruno Haible  <bruno@clisp.org>
25660
25661         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
25662         restore_seek_optimization, update_fpos_cache): New functions, extracted
25663         from rpl_fflush.
25664         (rpl_fflush): Use them.
25665         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
25666         (gl_REPLACE_FFLUSH): Use it.
25667
25668 2008-04-26  Bruno Haible  <bruno@clisp.org>
25669
25670         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
25671         on Solaris.
25672         * tests/test-xstrtoimax.sh: Likewise.
25673         * tests/test-xstrtoumax.sh: Likewise.
25674         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25675
25676 2008-04-26  Bruno Haible  <bruno@clisp.org>
25677
25678         * modules/memchr-tests: New file.
25679         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
25680
25681 2008-04-26  Eric Blake  <ebb9@byu.net>
25682             Bruno Haible  <bruno@clisp.org>
25683
25684         * lib/memchr.c: Include intprops.h.
25685         (__memchr): Optimize parallel detection of matching bytes. Rename local
25686         variables. Add explanatory comments.
25687
25688 2008-04-26  Bruno Haible  <bruno@clisp.org>
25689
25690         Fix module 'memchr', broken since 2000-10-28.
25691         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
25692
25693 2008-04-26  Bruno Haible  <bruno@clisp.org>
25694
25695         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
25696         comments.
25697
25698 2008-04-25  Eric Blake  <ebb9@byu.net>
25699
25700         Use native fstatat on cygwin 1.7.0.
25701         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
25702         first.
25703
25704 2008-04-23  Eric Blake  <ebb9@byu.net>
25705
25706         Improve memchr2 performance.
25707         * lib/memchr2.c (memchr2): Further optimize parallel detection of
25708         NUL bytes.
25709         * modules/memchr2 (Depends-on): Use intprops.h.
25710
25711 2008-04-23  Simon Josefsson  <simon@josefsson.org>
25712
25713         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
25714         an inline function instead of a CPP macro.  Patch by Ben Pfaff
25715         <blp@cs.stanford.edu>.
25716
25717 2008-04-23  Simon Josefsson  <simon@josefsson.org>
25718
25719         * lib/arpa_inet.in.h: New file.
25720
25721         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
25722         (Makefile.am): Sed in substitute header file.
25723
25724         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
25725         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
25726
25727         * modules/inet_ntop (configure.ac): Use
25728         gl_ARPA_INET_MODULE_INDICATOR.
25729
25730         * modules/inet_pton (configure.ac): Use
25731         gl_ARPA_INET_MODULE_INDICATOR.
25732
25733 2008-04-22  Jim Meyering  <meyering@redhat.com>
25734
25735         * modules/verify (License): Re-license as LGPLv2+.
25736
25737 2008-04-22  Simon Josefsson  <simon@josefsson.org>
25738
25739         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
25740         parameter to void* as per POSIX standard (MinGW uses char*).
25741
25742 2008-04-21  Bruno Haible  <bruno@clisp.org>
25743
25744         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
25745         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
25746         Define to replacements if REPLACE_ISWCNTRL is 1.
25747         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
25748         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
25749         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
25750         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
25751         what it fixes.
25752         * doc/posix-functions/iswalpha.texi: Likewise.
25753         * doc/posix-functions/iswblank.texi: Likewise.
25754         * doc/posix-functions/iswcntrl.texi: Likewise.
25755         * doc/posix-functions/iswdigit.texi: Likewise.
25756         * doc/posix-functions/iswgraph.texi: Likewise.
25757         * doc/posix-functions/iswlower.texi: Likewise.
25758         * doc/posix-functions/iswprint.texi: Likewise.
25759         * doc/posix-functions/iswpunct.texi: Likewise.
25760         * doc/posix-functions/iswspace.texi: Likewise.
25761         * doc/posix-functions/iswupper.texi: Likewise.
25762         * doc/posix-functions/iswxdigit.texi: Likewise.
25763         Reported by Alain Guibert.
25764
25765 2008-04-21  Bruno Haible  <bruno@clisp.org>
25766
25767         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
25768         Patch by Alain Guibert.
25769
25770 2008-04-21  Bruno Haible  <bruno@clisp.org>
25771
25772         Fix test failures on mingw.
25773         * tests/test-xstrtol.c (print_no_progname): New function.
25774         (main): Install it in error_print_progname hook.
25775         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
25776         * tests/test-xstrtoimax.sh: Likewise.
25777         * tests/test-xstrtoumax.sh: Likewise.
25778
25779 2008-04-21  Bruno Haible  <bruno@clisp.org>
25780
25781         Fix test failure on mingw.
25782         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
25783
25784 2008-04-21  Bruno Haible  <bruno@clisp.org>
25785
25786         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
25787         Actually assign a value.
25788
25789 2008-04-20  Bruno Haible  <bruno@clisp.org>
25790
25791         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
25792         take 2.
25793         * lib/canonicalize.c (canonicalize_file_name): Elide if the
25794         'canonicalize-lgpl' module is also used.
25795         * lib/canonicalize-lgpl.c: Undo last change.
25796         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
25797
25798 2008-04-20  Bruno Haible  <bruno@clisp.org>
25799
25800         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
25801         config.h. Provide _mkdir based fallback for mingw.
25802         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
25803         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
25804         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
25805         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
25806         rather than defining mkdir in config.h.
25807         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
25808         (gl_SYS_STAT_H_DEFAULTS): New macro.
25809         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
25810         HAVE_IO_H any more.
25811         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
25812         HAVE_DECL_MKDIR and HAVE_IO_H.
25813
25814 2008-04-20  Bruno Haible  <bruno@clisp.org>
25815
25816         * lib/isapipe.c: Port to native Windows platforms.
25817
25818 2008-04-20  Bruno Haible  <bruno@clisp.org>
25819
25820         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
25821
25822 2008-04-21  Eric Blake  <ebb9@byu.net>
25823
25824         Work around preprocessors that don't handle UINTMAX_MAX.
25825         * lib/memchr2.c (memchr2): Avoid embedded #if.
25826         Reported by Alain Guibert, fix suggested by Bruno Haible.
25827
25828 2008-04-21  Simon Josefsson  <simon@josefsson.org>
25829
25830         * doc/posix-functions/strftime.texi (strftime): Explain better
25831         Windows incompatibility.  Suggested by Micah Cowan
25832         <micah@cowan.name>.
25833
25834 2008-04-20  Bruno Haible  <bruno@clisp.org>
25835
25836         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
25837         unistr/u8-mblen.
25838
25839 2008-04-20  Bruno Haible  <bruno@clisp.org>
25840
25841         Fix test failure on platforms with non-GNU iconv.
25842         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
25843         (U_TO_U8): Use it, rather than u16_to_u8.
25844         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
25845         units at the end of the input string.
25846         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
25847
25848 2008-04-20  Bruno Haible  <bruno@clisp.org>
25849
25850         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
25851         when the resulting length is 0.
25852         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
25853
25854 2008-04-20  Bruno Haible  <bruno@clisp.org>
25855
25856         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
25857         works.
25858         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
25859
25860 2008-04-20  Bruno Haible  <bruno@clisp.org>
25861
25862         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
25863         * modules/tsearch-tests (configure.ac): Test for initstate function.
25864
25865 2008-04-20  Bruno Haible  <bruno@clisp.org>
25866
25867         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
25868         for nlink_t if missing.
25869         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
25870
25871 2008-04-19  Bruno Haible  <bruno@clisp.org>
25872
25873         Work around snprintf bug on Linux libc5.
25874         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
25875         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
25876         gl_SNPRINTF_SIZE1.
25877         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
25878         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
25879         that test failed.
25880         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
25881         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
25882         * modules/snprintf (Files): Add m4/printf.m4.
25883         * modules/vsnprintf (Files): Likewise.
25884         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
25885         * doc/posix-functions/vsnprintf.texi: Likewise.
25886
25887 2008-04-19  Bruno Haible  <bruno@clisp.org>
25888
25889         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
25890         from 0.0058 to less than 10^-7.
25891
25892 2008-04-19  Bruno Haible  <bruno@clisp.org>
25893
25894         Fix rounding when a precision is given.
25895         * lib/vasnprintf.c (is_borderline): New function.
25896         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
25897         9...9x.
25898         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
25899         %e, %g.
25900         * tests/test-vasprintf-posix.c (test_function): Likewise.
25901         * tests/test-snprintf-posix.h (test_function): Likewise.
25902         * tests/test-sprintf-posix.h (test_function): Likewise.
25903         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
25904         * tests/test-printf-posix.h (test_function): Likewise.
25905         * tests/test-printf-posix.output: Update.
25906         Reported by John Darrington <john@darrington.wattle.id.au> via
25907         Ben Pfaff <blp@cs.stanford.edu>.
25908
25909 2008-04-18  Simon Josefsson  <simon@josefsson.org>
25910
25911         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
25912         Suggested by Bruno Haible <bruno@clisp.org>.
25913
25914 2008-04-17  Bruno Haible  <bruno@clisp.org>
25915
25916         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
25917         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
25918         implementation.
25919         Patch by Bruce Merry <bmerry@gmail.com>.
25920
25921 2008-04-17  Simon Josefsson  <simon@josefsson.org>
25922
25923         * doc/posix-functions/strftime.texi (strftime): Mention that %e
25924         doesn't work under Windows.
25925
25926 2008-04-16  Bruno Haible  <bruno@clisp.org>
25927
25928         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
25929         New macros.
25930         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
25931         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
25932         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
25933         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
25934         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
25935         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
25936         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
25937         macros.
25938         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
25939         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
25940         Northern Sotho, Uighur.
25941
25942 2008-04-16  Bruno Haible  <bruno@clisp.org>
25943
25944         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
25945         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
25946         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
25947         Reported by Daniel Bergström <daniel@octocode.com>.
25948
25949 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
25950             Bruno Haible  <bruno@clisp.org>
25951
25952         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
25953         function.
25954         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
25955         New functions, mostly extracted from gl_locale_name_default.
25956         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
25957
25958 2008-04-16  Eric Blake  <ebb9@byu.net>
25959
25960         Adjust strtod detection to catch glibc 2.7 bug.
25961         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
25962         Reported by John Gatewood Ham.
25963
25964 2008-04-16  Bruno Haible  <bruno@clisp.org>
25965
25966         Add tentative support for Linux libc5.
25967         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
25968         * lib/fpurge.c (fpurge): Likewise.
25969         * lib/freadable.c (freadable): Likewise.
25970         * lib/freadahead.c (freadahead): Likewise.
25971         * lib/freading.c (freading): Likewise.
25972         * lib/freadptr.c (freadptr): Likewise.
25973         * lib/freadseek.c (freadptrinc): Likewise.
25974         * lib/fseeko.c (rpl_fseeko): Likewise.
25975         * lib/fseterr.c (fseterr): Likewise.
25976         * lib/fwritable.c (fwritable): Likewise.
25977         * lib/fwriting.c (fwriting): Likewise.
25978         Reported by Alain Guibert <alguibert+bts@free.fr>.
25979
25980 2008-04-15  Bruno Haible  <bruno@clisp.org>
25981
25982         * modules/mathl (configure.ac): Define module indicator.
25983
25984 2008-04-15  Bruno Haible  <bruno@clisp.org>
25985
25986         * lib/logl.c (logl): Remove unused variables.
25987
25988 2008-04-15  Bruno Haible  <bruno@clisp.org>
25989
25990         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
25991         fails.
25992
25993 2008-04-15  Bruno Haible  <bruno@clisp.org>
25994
25995         * lib/trim.c (trim2): Fix argument of isspace() macro.
25996
25997 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
25998
25999         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
26000         to 0.
26001         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
26002
26003 2008-04-14  Bruno Haible  <bruno@clisp.org>
26004
26005         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
26006         AC_LANG_PROGRAM argument.
26007         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
26008         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
26009         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
26010         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
26011         * m4/math_h.m4 (gl_MATH_H): Likewise.
26012         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
26013         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
26014         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
26015         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
26016         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
26017         * m4/regex.m4 (gl_REGEX): Likewise.
26018         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
26019         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
26020         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
26021         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
26022         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
26023         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
26024         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
26025         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
26026
26027 2008-04-14  Jim Meyering  <meyering@redhat.com>
26028
26029         test-strtod: fix typos: s/abs/fabs/
26030         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
26031
26032 2008-04-13  Bruno Haible  <bruno@clisp.org>
26033
26034         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
26035         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
26036         module is also used and while not building the reloc-wrapper.
26037
26038 2008-04-13  Bruno Haible  <bruno@clisp.org>
26039
26040         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
26041
26042 2008-04-13  Bruno Haible  <bruno@clisp.org>
26043
26044         Fix AIX compilation failure introduced on 2008-04-02.
26045         * tests/test-frexp.c (exp): Undefine before redefining.
26046         * tests/test-frexpl.c (exp): Likewise.
26047
26048 2008-04-13  Bruno Haible  <bruno@clisp.org>
26049
26050         Work around a HP-UX stdio bug.
26051         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
26052         * tests/test-ftello.c (main): Likewise.
26053         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
26054         * doc/posix-functions/ftello.texi: Likewise.
26055
26056 2008-04-13  Bruno Haible  <bruno@clisp.org>
26057
26058         Make test-signbit pass on HP-UX/hppa.
26059         * tests/test-signbit.c (minus_zerol): New variable.
26060         (test_signbitl): Use it.
26061
26062 2008-04-13  Bruno Haible  <bruno@clisp.org>
26063
26064         Make truncl work on OSF/1 4.0.
26065         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
26066         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
26067         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
26068         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
26069         HAVE_DECL_TRUNCL.
26070         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
26071         HAVE_DECL_TRUNCL.
26072         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
26073
26074 2008-04-13  Bruno Haible  <bruno@clisp.org>
26075
26076         * lib/unictype.h: Remove trailing comma from enumeration definitions.
26077
26078 2008-04-13  Bruno Haible  <bruno@clisp.org>
26079
26080         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
26081         expression, so as to avoid HP-UX 11 cc compiler bug.
26082
26083 2008-04-13  Bruno Haible  <bruno@clisp.org>
26084
26085         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
26086
26087 2008-04-13  Bruno Haible  <bruno@clisp.org>
26088
26089         * lib/git-merge-changelog.c: Remove empty declaration outside of
26090         functions.
26091
26092 2008-04-13  Bruno Haible  <bruno@clisp.org>
26093
26094         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
26095
26096 2008-04-13  Bruno Haible  <bruno@clisp.org>
26097
26098         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
26099         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
26100         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
26101         also if it exists but lacks definitions of the SHUT_* macros.
26102         * modules/sys_socket (Description): Update.
26103         Reported by Elbert Pol <e.pol@chello.nl>.
26104
26105 2008-04-13  Bruno Haible  <bruno@clisp.org>
26106
26107         * lib/localcharset.c (OS2): Don't redefine if already defined.
26108         Reported by Elbert Pol <e.pol@chello.nl>.
26109
26110 2008-04-13  Bruno Haible  <bruno@clisp.org>
26111
26112         * lib/binary-io.h [__EMX__]: Include <io.h>.
26113         Reported by Elbert Pol <e.pol@chello.nl>.
26114
26115 2008-04-12  Bruno Haible  <bruno@clisp.org>
26116
26117         * lib/fpucw.h: Enable the definitions also for x86_64.
26118         Needed for NetBSD/x86_64.
26119         Reported by Thomas Klausner <tk@giga.or.at>.
26120
26121 2008-04-12  Bruno Haible  <bruno@clisp.org>
26122
26123         * tests/test-strtod.c: Include isnand.h.
26124         (main): Use isnand instead of isnan.
26125         Reported by Jim Meyering.
26126
26127 2008-04-12  Bruno Haible  <bruno@clisp.org>
26128
26129         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
26130         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
26131
26132 2008-04-12  Jim Meyering  <meyering@redhat.com>
26133
26134         * m4/math_h.m4 (gl_MATH_H): Fix typos.
26135
26136 2008-04-12  Bruno Haible  <bruno@clisp.org>
26137
26138         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
26139         Reported by Elbert Pol <e.pol@chello.nl>.
26140
26141 2008-04-12  Eric Blake  <ebb9@byu.net>
26142
26143         Work around Solaris 10 math.h bug.
26144         * m4/math_h.m4 (gl_MATH_H): Check for bug.
26145         (gl_MATH_H_DEFAULTS): Set up default.
26146         * modules/math (Makefile.am): Replace new indicators.
26147         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
26148         * tests/test-math.c (main): Test this.
26149         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
26150         * doc/posix-headers/math.texi (math.h): Mention bug.
26151         Reported by Nelson H. F. Beebe and Jim Meyering.
26152
26153 2008-04-11  Bruno Haible  <bruno@clisp.org>
26154
26155         Adapt to future versions of Apple GCC.
26156         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
26157         Reported by Peter O'Gorman <peter@pogma.com>.
26158
26159 2008-04-11  Bruno Haible  <bruno@clisp.org>
26160
26161         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
26162
26163 2008-04-11  Bruno Haible  <bruno@clisp.org>
26164
26165         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
26166
26167         * modules/getaddrinfo-tests (Makefile.am): Define
26168         test_getaddrinfo_LDADD.
26169
26170 2008-04-11  Bruno Haible  <bruno@clisp.org>
26171
26172         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
26173         (init): Fix syntax error.
26174         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
26175         is declared.
26176
26177 2008-04-11  Bruno Haible  <bruno@clisp.org>
26178
26179         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
26180         * modules/glob (Depends-on): Add stdbool.
26181
26182 2008-04-11  Bruno Haible  <bruno@clisp.org>
26183
26184         * lib/trim.c: Include <string.h>.
26185
26186 2008-04-11  Eric Blake  <ebb9@byu.net>
26187
26188         Avoid compile failure on OS/2.
26189         * lib/regex_internal.h (internal_function): Disable optimization
26190         on OS/2 (__EMX__), where it caused compiler error.
26191         Reported by Elbert Pol.
26192
26193 2008-04-11  Bruno Haible  <bruno@clisp.org>
26194
26195         Flush the standard error stream before aborting. Needed on mingw.
26196         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
26197         * tests/test-array_list.c (ASSERT): Likewise.
26198         * tests/test-array_oset.c (ASSERT): Likewise.
26199         * tests/test-avltree_list.c (ASSERT): Likewise.
26200         * tests/test-avltree_oset.c (ASSERT): Likewise.
26201         * tests/test-avltreehash_list.c (ASSERT): Likewise.
26202         * tests/test-binary-io.c (ASSERT): Likewise.
26203         * tests/test-byteswap.c (ASSERT): Likewise.
26204         * tests/test-c-ctype.c (ASSERT): Likewise.
26205         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
26206         * tests/test-c-strcasestr.c (ASSERT): Likewise.
26207         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
26208         * tests/test-c-strstr.c (ASSERT): Likewise.
26209         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
26210         * tests/test-canonicalize.c (ASSERT): Likewise.
26211         * tests/test-carray_list.c (ASSERT): Likewise.
26212         * tests/test-ceilf1.c (ASSERT): Likewise.
26213         * tests/test-ceilf2.c (ASSERT): Likewise.
26214         * tests/test-ceill.c (ASSERT): Likewise.
26215         * tests/test-count-one-bits.c (ASSERT): Likewise.
26216         * tests/test-fbufmode.c (ASSERT): Likewise.
26217         * tests/test-fflush2.c (ASSERT): Likewise.
26218         * tests/test-floorf1.c (ASSERT): Likewise.
26219         * tests/test-floorf2.c (ASSERT): Likewise.
26220         * tests/test-floorl.c (ASSERT): Likewise.
26221         * tests/test-fopen.c (ASSERT): Likewise.
26222         * tests/test-fpending.c (ASSERT): Likewise.
26223         * tests/test-fprintf-posix.c (ASSERT): Likewise.
26224         * tests/test-fpurge.c (ASSERT): Likewise.
26225         * tests/test-freadable.c (ASSERT): Likewise.
26226         * tests/test-freadahead.c (ASSERT): Likewise.
26227         * tests/test-freading.c (ASSERT): Likewise.
26228         * tests/test-freadptr.c (ASSERT): Likewise.
26229         * tests/test-freadptr2.c (ASSERT): Likewise.
26230         * tests/test-freadseek.c (ASSERT): Likewise.
26231         * tests/test-freopen.c (ASSERT): Likewise.
26232         * tests/test-frexp.c (ASSERT): Likewise.
26233         * tests/test-frexpl.c (ASSERT): Likewise.
26234         * tests/test-fseek.c (ASSERT): Likewise.
26235         * tests/test-fseeko.c (ASSERT): Likewise.
26236         * tests/test-fstrcmp.c (ASSERT): Likewise.
26237         * tests/test-ftell.c (ASSERT): Likewise.
26238         * tests/test-ftello.c (ASSERT): Likewise.
26239         * tests/test-func.c (ASSERT): Likewise.
26240         * tests/test-fwritable.c (ASSERT): Likewise.
26241         * tests/test-fwriting.c (ASSERT): Likewise.
26242         * tests/test-getdelim.c (ASSERT): Likewise.
26243         * tests/test-getline.c (ASSERT): Likewise.
26244         * tests/test-i-ring.c (ASSERT): Likewise.
26245         * tests/test-iconv-utf.c (ASSERT): Likewise.
26246         * tests/test-iconv.c (ASSERT): Likewise.
26247         * tests/test-isfinite.c (ASSERT): Likewise.
26248         * tests/test-isnand.c (ASSERT): Likewise.
26249         * tests/test-isnanf.c (ASSERT): Likewise.
26250         * tests/test-isnanl.h (ASSERT): Likewise.
26251         * tests/test-ldexpl.c (ASSERT): Likewise.
26252         * tests/test-linked_list.c (ASSERT): Likewise.
26253         * tests/test-linkedhash_list.c (ASSERT): Likewise.
26254         * tests/test-localename.c (ASSERT): Likewise.
26255         * tests/test-lseek.c (ASSERT): Likewise.
26256         * tests/test-mbscasecmp.c (ASSERT): Likewise.
26257         * tests/test-mbscasestr1.c (ASSERT): Likewise.
26258         * tests/test-mbscasestr2.c (ASSERT): Likewise.
26259         * tests/test-mbscasestr3.c (ASSERT): Likewise.
26260         * tests/test-mbscasestr4.c (ASSERT): Likewise.
26261         * tests/test-mbschr.c (ASSERT): Likewise.
26262         * tests/test-mbscspn.c (ASSERT): Likewise.
26263         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
26264         * tests/test-mbspbrk.c (ASSERT): Likewise.
26265         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
26266         * tests/test-mbsrchr.c (ASSERT): Likewise.
26267         * tests/test-mbsspn.c (ASSERT): Likewise.
26268         * tests/test-mbsstr1.c (ASSERT): Likewise.
26269         * tests/test-mbsstr2.c (ASSERT): Likewise.
26270         * tests/test-mbsstr3.c (ASSERT): Likewise.
26271         * tests/test-memchr2.c (ASSERT): Likewise.
26272         * tests/test-memmem.c (ASSERT): Likewise.
26273         * tests/test-open.c (ASSERT): Likewise.
26274         * tests/test-printf-frexp.c (ASSERT): Likewise.
26275         * tests/test-printf-frexpl.c (ASSERT): Likewise.
26276         * tests/test-printf-posix.c (ASSERT): Likewise.
26277         * tests/test-quotearg.c (ASSERT): Likewise.
26278         * tests/test-rbtree_list.c (ASSERT): Likewise.
26279         * tests/test-rbtree_oset.c (ASSERT): Likewise.
26280         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
26281         * tests/test-round1.c (ASSERT): Likewise.
26282         * tests/test-roundf1.c (ASSERT): Likewise.
26283         * tests/test-roundl.c (ASSERT): Likewise.
26284         * tests/test-signbit.c (ASSERT): Likewise.
26285         * tests/test-sleep.c (ASSERT): Likewise.
26286         * tests/test-snprintf-posix.c (ASSERT): Likewise.
26287         * tests/test-snprintf.c (ASSERT): Likewise.
26288         * tests/test-sprintf-posix.c (ASSERT): Likewise.
26289         * tests/test-stat-time.c (ASSERT): Likewise.
26290         * tests/test-strcasestr.c (ASSERT): Likewise.
26291         * tests/test-strerror.c (ASSERT): Likewise.
26292         * tests/test-striconv.c (ASSERT): Likewise.
26293         * tests/test-striconveh.c (ASSERT): Likewise.
26294         * tests/test-striconveha.c (ASSERT): Likewise.
26295         * tests/test-strsignal.c (ASSERT): Likewise.
26296         * tests/test-strstr.c (ASSERT): Likewise.
26297         * tests/test-strtod.c (ASSERT): Likewise.
26298         * tests/test-trunc1.c (ASSERT): Likewise.
26299         * tests/test-trunc2.c (ASSERT): Likewise.
26300         * tests/test-truncf1.c (ASSERT): Likewise.
26301         * tests/test-truncf2.c (ASSERT): Likewise.
26302         * tests/test-truncl.c (ASSERT): Likewise.
26303         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
26304         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
26305         * tests/test-vasnprintf.c (ASSERT): Likewise.
26306         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
26307         * tests/test-vasprintf.c (ASSERT): Likewise.
26308         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
26309         * tests/test-vprintf-posix.c (ASSERT): Likewise.
26310         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
26311         * tests/test-vsnprintf.c (ASSERT): Likewise.
26312         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
26313         * tests/test-wcwidth.c (ASSERT): Likewise.
26314         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
26315         * tests/test-xprintf-posix.c (ASSERT): Likewise.
26316         * tests/test-xvasprintf.c (ASSERT): Likewise.
26317         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
26318         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
26319         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
26320         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
26321         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
26322         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
26323         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
26324         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
26325         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
26326         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
26327         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
26328         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
26329         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
26330         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
26331         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
26332         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
26333         * tests/unictype/test-block_list.c (ASSERT): Likewise.
26334         * tests/unictype/test-block_of.c (ASSERT): Likewise.
26335         * tests/unictype/test-block_test.c (ASSERT): Likewise.
26336         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
26337         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
26338         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
26339         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
26340         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
26341         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
26342         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
26343         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
26344         * tests/unictype/test-combining.c (ASSERT): Likewise.
26345         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
26346         * tests/unictype/test-digit.c (ASSERT): Likewise.
26347         * tests/unictype/test-mirror.c (ASSERT): Likewise.
26348         * tests/unictype/test-numeric.c (ASSERT): Likewise.
26349         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
26350         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
26351         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
26352         * tests/unictype/test-scripts.c (ASSERT): Likewise.
26353         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
26354         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
26355         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
26356         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
26357         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
26358         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
26359         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
26360         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
26361         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
26362         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
26363         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
26364         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
26365         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
26366         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
26367         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
26368         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
26369         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
26370         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
26371         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
26372         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
26373         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
26374         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
26375         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
26376         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
26377         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
26378         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
26379         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
26380         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
26381         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
26382         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
26383         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
26384         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
26385         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
26386         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
26387         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
26388         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
26389         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
26390         Reported by Eric Blake.
26391
26392 2008-04-11  Bruno Haible  <bruno@clisp.org>
26393
26394         * lib/wchar.in.h: Tweak comment.
26395
26396 2008-04-11  Bruno Haible  <bruno@clisp.org>
26397
26398         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
26399         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
26400         gl_COMMON.
26401         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
26402
26403 2008-04-11  Bruno Haible  <bruno@clisp.org>
26404
26405         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
26406
26407 2008-04-11  Simon Josefsson  <simon@josefsson.org>
26408
26409         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
26410         of attempting to use non-existing /dev/*random.  Based on patch
26411         from Adam Strzelecki <ono@java.pl> in
26412         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
26413
26414 2008-04-08  Bruno Haible  <bruno@clisp.org>
26415
26416         Add tentative support for emx+gcc.
26417         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
26418         * lib/fpurge.c (fpurge): Likewise.
26419         * lib/freadable.c (freadable): Likewise.
26420         * lib/freadahead.c (freadahead): Likewise.
26421         * lib/freading.c (freading): Likewise.
26422         * lib/freadptr.c (freadptr): Likewise.
26423         * lib/freadseek.c (freadptrinc): Likewise.
26424         * lib/fseeko.c (rpl_fseeko): Likewise.
26425         * lib/fseterr.c (fseterr): Likewise.
26426         * lib/fwritable.c (fwritable): Likewise.
26427         * lib/fwriting.c (fwriting): Likewise.
26428         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
26429
26430 2008-04-09  Eric Blake  <ebb9@byu.net>
26431
26432         Avoid some autoconf warnings.
26433         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
26434         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
26435         * m4/afs.m4 (gl_AFS): Likewise.
26436         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
26437         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
26438         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
26439         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
26440         (gl_INTEGER_TYPE_SUFFIX): Likewise.
26441         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
26442         (AC_CHECK_DECLS_ONCE): Likewise.
26443         Rename file...
26444         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
26445         gnulib-tool requires autoconf 2.59 or better.
26446         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
26447
26448 2008-04-08  Eric Blake  <ebb9@byu.net>
26449
26450         Use 'git describe --match' if present (added in git 1.5.5).
26451         * build-aux/git-version-gen: Limit result to tags that match 'v*'
26452         if possible.
26453
26454 2008-04-08  Bruno Haible  <bruno@clisp.org>
26455
26456         Add tentative support for OpenServer.
26457         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
26458         _ptr, _cnt.
26459         * lib/fpurge.c (fpurge): Likewise.
26460         * lib/freadable.c (freadable): Likewise.
26461         * lib/freadahead.c (freadahead): Likewise.
26462         * lib/freading.c (freading): Likewise.
26463         * lib/freadptr.c (freadptr): Likewise.
26464         * lib/freadseek.c (freadptrinc): Likewise.
26465         * lib/fseeko.c (rpl_fseeko): Likewise.
26466         * lib/fseterr.c (fseterr): Likewise.
26467         * lib/fwritable.c (fwritable): Likewise.
26468         * lib/fwriting.c (fwriting): Likewise.
26469         Reported by Roger Cornelius <rac@tenzing.org> and
26470         Brian K. White <brian@aljex.com>.
26471
26472 2008-04-06  Jim Meyering  <meyering@redhat.com>
26473
26474         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
26475
26476 2008-04-06  Bruno Haible  <bruno@clisp.org>
26477
26478         Avoid possible error with non-ASCII bytes in UTF-8 locales.
26479         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
26480         * tests/test-printf-posix.sh: Likewise.
26481         * tests/test-vfprintf-posix.sh: Likewise.
26482         * tests/test-vprintf-posix.sh: Likewise.
26483         * tests/test-xprintf-posix.sh: Likewise.
26484
26485 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26486
26487         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
26488         hide error from 'ls', needed on OS/2.
26489         Report by Elbert Pol <elbert.pol@gmail.com>.
26490
26491 2008-04-04  Eric Blake  <ebb9@byu.net>
26492
26493         Make test-fseeko.c failures meaningful.
26494         * tests/test-fseeko.c: Print line number on failure.
26495         * tests/test-fseek.c: Likewise.
26496         Reported by Nelson H. F. Beebe.
26497
26498         Improve strtod bug detection check.
26499         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
26500         required for Solaris 10.
26501         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
26502
26503 2008-04-04  Bruno Haible  <bruno@clisp.org>
26504
26505         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
26506         by m4/setenv.m4.
26507
26508 2008-04-03  Eric Blake  <ebb9@byu.net>
26509
26510         Ensure sane .version contents.
26511         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
26512         version string.
26513         * build-aux/git-version-gen: Improve documentation.
26514
26515         Make GNU make output nicer.
26516         * top/GNUmakefile [!_have-Makefile]: Add dependency on
26517         MAKECMDGOALS to enforce message for all command line targets.  Set
26518         srcdir for use in maint.mk.
26519
26520         Another maintainer tweak.
26521         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
26522         a target that regenerates version.
26523
26524 2008-04-03  Jim Meyering  <meyering@redhat.com>
26525
26526         vc-list-files: don't cause coreutils "make po-check" failure
26527         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
26528
26529 2008-04-03  Eric Blake  <ebb9@byu.net>
26530
26531         Allow VPATH usage of vc-list-files.
26532         * build-aux/vc-list-files (scriptversion): Add timestamp.
26533         (options): Add --help, --version, -C.
26534         (CVS): Support installed cvsu.
26535
26536 2008-04-02  Bruno Haible  <bruno@clisp.org>
26537
26538         Avoid some "statement with no effect" warnings from gcc.
26539         * tests/test-wctype.c (main): Explicitly ignore unused values.
26540         Reported by Jim Meyering.
26541
26542 2008-04-02  Jim Meyering  <meyering@redhat.com>
26543
26544         Avoid some warnings from "gcc -Wshadow".
26545         * tests/test-frexp.c (exp): Define to a different identifier.
26546         * tests/test-frexpl.c (exp): Likewise.
26547
26548 2008-04-03  Jim Meyering  <meyering@redhat.com>
26549
26550         bootstrap: remove dangling *.[ch] symlinks from lib
26551         * build-aux/bootstrap [dangling symlink removal]: Move find's
26552         -depth option to precede all others, to avoid a warning.
26553         Remove *.[ch] files too, and from "$source_base" (usually lib/).
26554
26555 2008-04-02  Bruno Haible  <bruno@clisp.org>
26556
26557         Avoid some warnings from "gcc -Wshadow".
26558         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
26559         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
26560         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
26561         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
26562         Reported by Jim Meyering.
26563
26564 2008-04-01  Bruno Haible  <bruno@clisp.org>
26565
26566         Fix test to work on IRIX 6.5 with cc.
26567         * tests/test-math.c (numeric_equal): New function.
26568         (main): Use it.
26569
26570 2008-04-01  Bruno Haible  <bruno@clisp.org>
26571
26572         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
26573
26574 2008-04-01  Bruno Haible  <bruno@clisp.org>
26575
26576         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
26577         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
26578         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
26579         (Depends-on): Remove math.
26580
26581         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
26582         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
26583         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
26584         (Depends-on): Remove math.
26585
26586         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
26587         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
26588         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
26589         (Depends-on): Remove math.
26590         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
26591         (Depends-on): Remove math.
26592
26593         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
26594         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
26595         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
26596         (Depends-on): Remove math.
26597         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
26598         (Depends-on): Remove math.
26599
26600         * tests/test-round1.c: Include nan.h.
26601         (main): Use NaNd instead of NAN.
26602         * modules/round-tests (Files): Add tests/nan.h.
26603
26604         * tests/test-trunc1.c: Include nan.h.
26605         (main): Use NaNd instead of NAN.
26606         * modules/trunc-tests (Files): Add tests/nan.h.
26607
26608         * tests/test-roundf1.c: Include nan.h.
26609         (main): Use NaNf instead of NAN.
26610         * modules/roundf-tests (Files): Add tests/nan.h.
26611
26612         * tests/test-truncf1.c: Include nan.h.
26613         (main): Use NaNf instead of NAN.
26614         * modules/truncf-tests (Files): Add tests/nan.h.
26615
26616         * tests/test-ceilf1.c: Include nan.h.
26617         (main): Use NaNf instead of NAN.
26618         * modules/ceilf-tests (Files): Add tests/nan.h.
26619
26620         * tests/test-floorf1.c: Include nan.h.
26621         (main): Use NaNf instead of NAN.
26622         * modules/floorf-tests (Files): Add tests/nan.h.
26623
26624         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
26625         (main): Use NaNf instead of NAN.
26626         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
26627
26628         * tests/test-isnand.c: Include nan.h instead of <math.h>.
26629         (main): Use NaNd instead of NAN.
26630         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
26631
26632         * tests/test-frexp.c: Include nan.h.
26633         (main): Use NaNd instead of NAN.
26634         * modules/frexp-tests (Files): Add tests/nan.h.
26635
26636         * lib/isnan.c: Don't include <math.h>.
26637         (FUNC): Don't use NAN macro.
26638         * modules/isnand-nolibm (Depends-on): Remove math.
26639         * modules/isnanf-nolibm (Depends-on): Remove math.
26640         * modules/isnanl (Depends-on): Remove math.
26641         * modules/isnanl-nolibm (Depends-on): Remove math.
26642
26643         * tests/nan.h: New file.
26644
26645 2008-04-01  Eric Blake  <ebb9@byu.net>
26646
26647         Fix typos.
26648         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
26649         values to be the right type.
26650
26651         For now, cater to gnulib strtod inaccuracies.
26652         * tests/test-strtod.c (main): Allow 1-ulp error on expected
26653         fractional results.  While not as nice from a QoI perspective, it
26654         is a quicker patch than correctly implementing decimal to binary
26655         rounding.
26656
26657 2008-03-31  Eric Blake  <ebb9@byu.net>
26658
26659         Guarantee a definition of NAN.
26660         * lib/math.in.h (NAN): Define if missing.
26661         * tests/test-math.c (main): Test it.
26662         * doc/posix-headers/math.texi (math.h): Document this.
26663         * lib/isnan.c (rpl_isnand): Use it.
26664         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
26665         * tests/test-floorf1.c (NaN): Likewise.
26666         * tests/test-frexp.c (NaN): Likewise.
26667         * tests/test-isnand.c (NaN): Likewise.
26668         * tests/test-isnanf.c (NaN): Likewise.
26669         * tests/test-round1.c (NaN): Likewise.
26670         * tests/test-roundf1.c (NaN): Likewise.
26671         * tests/test-snprintf-posix.h (NaN): Likewise.
26672         * tests/test-sprintf-posix.h (NaN): Likewise.
26673         * tests/test-trunc1.c (NaN): Likewise.
26674         * tests/test-truncf1.c (NaN): Likewise.
26675         * tests/test-vasnprintf-posix.c (NaN): Likewise.
26676         * tests/test-vasprintf-posix.c (NaN): Likewise.
26677         * modules/isnand-nolibm (Depends-on): Add math.
26678         * modules/isnanf-nolibm (Depends-on): Likewise.
26679         * modules/isnanl (Depends-on): Likewise.
26680         * modules/isnanl-nolibm (Depends-on): Likewise.
26681         * modules/snprintf-posix-tests (Depends-on): Likewise.
26682         * modules/sprintf-posix-tests (Depends-on): Likewise.
26683         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
26684         * modules/vsprintf-posix-tests (Depends-on): Likewise.
26685         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
26686         * modules/vasprintf-posix-tests (Depends-on): Likewise.
26687
26688 2008-03-31  Bruno Haible  <bruno@clisp.org>
26689
26690         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
26691         * doc/posix-functions/strtod.texi: Likewise.
26692
26693 2008-03-31  Bruno Haible  <bruno@clisp.org>
26694
26695         * tests/test-strtod.c (main): Don't use C99 syntax.
26696
26697 2008-03-31  Bruno Haible  <bruno@clisp.org>
26698
26699         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
26700         Reported by Eric Blake.
26701
26702 2008-03-31  Jim Meyering  <meyering@redhat.com>
26703
26704         Don't compare actual signbit return values.
26705         * tests/test-strtod.c (main): Rather, compare only their
26706         zero/non-zero nature.
26707
26708 2008-03-31  Eric Blake  <ebb9@byu.net>
26709
26710         More strtod documentation.
26711         * doc/posix-functions/strtod.texi (strtod): Interpret more test
26712         failures as distinct bugs.
26713
26714 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
26715
26716         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
26717         Problem reported by Erik Benada in
26718         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
26719
26720 2008-03-30  Bruno Haible  <bruno@clisp.org>
26721
26722         * tests/test-strtod.c: Add comments about which assertion fails on which
26723         platform.
26724         * doc/posix-functions/strtod.texi: Add info about many more platforms.
26725
26726 2008-03-30  Eric Blake  <ebb9@byu.net>
26727
26728         Test signbit behavior on zeros.
26729         * tests/test-signbit.c (test_signbitf): Add tests for zero.
26730         (test_signbitd, test_signbitl): Likewise.
26731
26732         More strtod touchups.
26733         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
26734         sign of negative underflow, for now.  Use .5, not .1.
26735         * doc/posix-functions/strtod.texi (strtod): Mention these
26736         limitations.
26737         Reported by Jim Meyering.
26738
26739 2008-03-30  Bruno Haible  <bruno@clisp.org>
26740
26741         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
26742         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
26743
26744 2008-03-30  Bruno Haible  <bruno@clisp.org>
26745
26746         Avoid failure when attempting to return empty iconv results on some
26747         platforms.
26748         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
26749         allocation, don't report ENOMEM when the resulting string is empty.
26750
26751 2008-03-30  Bruno Haible  <bruno@clisp.org>
26752
26753         Fix buffer overrun.
26754         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
26755         Don't consider the width for tmp_length. Check count against tmp_length
26756         before doing the padding. Ensure enough allocation during padding.
26757
26758 2008-03-30  Eric Blake  <ebb9@byu.net>
26759
26760         strtod touchups.
26761         * lib/strtod.c (strtod): Avoid compiler warnings.
26762         Reported by Jim Meyering.
26763
26764 2008-03-30  Bruno Haible  <bruno@clisp.org>
26765
26766         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
26767         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
26768         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
26769         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
26770         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
26771         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
26772         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
26773         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
26774
26775         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
26776         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
26777         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
26778         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
26779         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
26780         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
26781         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
26782         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
26783
26784         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
26785         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
26786         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
26787         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
26788         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
26789         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
26790         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
26791         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
26792
26793         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
26794         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
26795
26796         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
26797         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
26798
26799         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
26800         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
26801
26802         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
26803         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
26804         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
26805
26806         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
26807         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
26808         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
26809
26810         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
26811         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
26812         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
26813
26814         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
26815         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
26816         * modules/vasprintf (Depends-on): Add EOVERFLOW.
26817
26818         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
26819         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
26820         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
26821         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
26822         (Depends-on): Add EOVERFLOW.
26823         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
26824         (Depends-on): Add EOVERFLOW.
26825         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
26826         (Depends-on): Add EOVERFLOW.
26827         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
26828         (Depends-on): Add EOVERFLOW.
26829         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
26830         (Depends-on): Add EOVERFLOW.
26831         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
26832         (Depends-on): Add EOVERFLOW.
26833         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
26834         (Depends-on): Add EOVERFLOW.
26835         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
26836         (Depends-on): Add EOVERFLOW.
26837
26838         * lib/sprintf.c (EOVERFLOW): Remove fallback.
26839         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
26840         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
26841
26842         * lib/snprintf.c (EOVERFLOW): Remove fallback.
26843         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
26844         * modules/snprintf (Depends-on): Add EOVERFLOW.
26845
26846         * lib/poll.c (EOVERFLOW): Remove fallback.
26847         * modules/poll (Depends-on): Add EOVERFLOW.
26848
26849         * lib/getugroups.c (EOVERFLOW): Remove fallback.
26850         * modules/getugroups (Depends-on): Add EOVERFLOW.
26851
26852         * lib/getdelim.c (EOVERFLOW): Remove fallback.
26853         * modules/getdelim (Depends-on): Add EOVERFLOW.
26854
26855         * lib/ftell.c (EOVERFLOW): Remove fallback.
26856         * modules/ftell (Depends-on): Add EOVERFLOW.
26857
26858         * lib/fprintf.c (EOVERFLOW): Remove fallback.
26859         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
26860         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
26861
26862         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
26863
26864         * modules/EOVERFLOW-tests: New file.
26865         * tests/test-EOVERFLOW.c: New file.
26866
26867         * modules/EOVERFLOW: New file.
26868         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
26869
26870 2008-03-30  Bruno Haible  <bruno@clisp.org>
26871
26872         Fix bug introduced on 2007-06-10.
26873         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
26874         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
26875
26876 2008-03-30  Bruno Haible  <bruno@clisp.org>
26877
26878         Improve freadseek's efficiency after ungetc.
26879         * lib/freadseek.c: Include freadahead.h.
26880         (freadptrinc): New function, extracted from freadseek.
26881         (freadseek): Use it in a loop. Use freadahead to determine the number
26882         of loop iterations.
26883         * modules/freadseek (Depends-on): Add freadahead.
26884         (configure.ac): Require AC_C_INLINE.
26885
26886 2008-03-30  Bruno Haible  <bruno@clisp.org>
26887
26888         * lib/freadseek.c (freadseek): Don't ignore the return value of
26889         freadptr.
26890
26891 2008-03-29  Eric Blake  <ebb9@byu.net>
26892
26893         Add hex float support.
26894         * modules/strtod (Depends-on): Add c-ctype.
26895         (Link): Mention POW_LIB.
26896         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
26897         whitespace between 'e' and exponent.
26898         * tests/test-strtod.c (main): Enable hex float tests.
26899         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
26900         now provides.
26901
26902         Document various strtod bugs, with some fixes.
26903         * doc/posix-functions/strtod.texi (strtod): Document bugs with
26904         "-0x", "inf", "nan", and hex constants.
26905         * doc/posix-functions/atof.texi (atof): Likewise.
26906         * modules/stdlib (Makefile.am): Support strtod.
26907         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
26908         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
26909         detect additional strtod bugs.
26910         * lib/stdlib.in.h (rpl_strtod): Add declarations.
26911         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
26912         bool where appropriate.  Parse 'inf' and 'nan'.
26913         * tests/test-strtod.c: New file.
26914         * modules/strtod (Depends-on): Add stdbool, stdlib.
26915         (configure.ac): Turn on module indicator.
26916         * modules/strtod-tests: New module.
26917
26918 2008-03-29  Eric Blake  <ebb9@byu.net>
26919
26920         Fix ftell on mingw.
26921         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
26922         * modules/ftell-tests (Depends-on): Add binary-io.
26923         * modules/ftello-tests (Depends-on): Likewise.
26924         * tests/test-ftell.c (main): Enhance test to cover behavior after
26925         ungetc.  Enforce binary mode.
26926         * tests/test-ftello.c (main): Likewise.
26927
26928         Pass test-freadseek on cygwin.
26929         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
26930         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
26931         ungetc buffer.
26932
26933         * tests/test-fflush2.c (main): Fix typo.
26934
26935 2008-03-29  Bruno Haible  <bruno@clisp.org>
26936
26937         * tests/test-fflush2.c (main): Temporarily disable the contents of
26938         this test.
26939         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
26940         Reported by Eric Blake.
26941
26942 2008-03-28  Simon Josefsson  <simon@josefsson.org>
26943
26944         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
26945         (GC_SHA224_DIGEST_SIZE): Add.
26946
26947         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
26948         (gc_hash_digest_length): Likewise.
26949         (gc_hash_buffer): Likewise.
26950
26951 2008-03-25  Bruno Haible  <bruno@clisp.org>
26952
26953         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
26954         detail which gettext release to use.
26955         Reported by Simon Josefsson.
26956
26957 2008-03-26  Jim Meyering  <meyering@redhat.com>
26958
26959         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
26960         * modules/gnumakefile (clean-GNUmakefile): Also, use
26961         test ... && ... || : syntax rather than if-then ... fi.
26962
26963         gnumakefile: Don't double-quote-expand $(VPATH) value.
26964         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
26965
26966 2008-03-24  Eric Blake  <ebb9@byu.net>
26967
26968         Alter GNUmakefile to install into top directory.
26969         * modules/maintainer-makefile: Split, and add dependency...
26970         * modules/gnumakefile: to this new module.
26971         * build-aux/GNUmakefile: Move...
26972         * top/GNUmakefile: ...here.
26973         * build-aux/maint.mk: Move...
26974         * top/maint.mk: ...here.
26975         * MODULES.html.sh (Support for maintaining...): Document new
26976         module.
26977
26978 2008-03-23  Bruno Haible  <bruno@clisp.org>
26979
26980         * gnulib-tool: New options --vc-files, --no-vc-files.
26981         (func_usage): Document them.
26982         (vc_files): New variable.
26983         (func_import): Consider vc_files.
26984         (func_create_testdir): Set vc_files to empty.
26985         Suggested by Jim Meyering and Karl Berry.
26986
26987 2008-03-23  Bruno Haible  <bruno@clisp.org>
26988
26989         Fix regex compilation error on HP-UX 11.
26990         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
26991         * modules/regex (Files): Add m4/mbstate_t.m4.
26992         Reported by Ton Voon <ton.voon@altinity.com>.
26993
26994 2008-03-23  Bruno Haible  <bruno@clisp.org>
26995
26996         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
26997
26998 2008-03-23  Eric Blake  <ebb9@byu.net>
26999             Bruno Haible  <bruno@clisp.org>
27000
27001         Install files from top/ in the destination directory.
27002         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
27003         augmentation also for the files from top/.
27004         (func_import, func_create_testdir): Rewrite file names:
27005         top/filename -> filename.
27006
27007 2008-03-23  Bruno Haible  <bruno@clisp.org>
27008
27009         Tweak "gnulib --version" output.
27010         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
27011
27012 2008-03-23  Bruno Haible  <bruno@clisp.org>
27013
27014         Tweak "gnulib --version" output.
27015         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
27016         rather than contents of ChangeLog, when possible.
27017
27018 2008-03-21  Eric Blake  <ebb9@byu.net>
27019
27020         More --version tweaks.
27021         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
27022         date of last ChangeLog entry.
27023
27024 2008-03-21  Jim Meyering  <meyering@redhat.com>
27025
27026         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
27027
27028 2008-03-20  Eric Blake  <ebb9@byu.net>
27029
27030         VPATH fix.
27031         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
27032
27033 2008-03-20  Simon Josefsson  <simon@josefsson.org>
27034
27035         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
27036         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
27037
27038 2008-03-20  Eric Blake  <ebb9@byu.net>
27039
27040         Sync GNUmakefile with coreutils.
27041         * build-aux/GNUmakefile (have-Makefile): Rename...
27042         (_have-Makefile): ...to this, for namespace consideration.
27043         (GNUmakefile.cfg): Include, if present.
27044         (_autoreconf): Define a default.
27045         (_is-dist-target): New rule for rebuilds to pick up intra-release
27046         version.
27047         (maint-cfg.mk): Rename...
27048         (cfg.mk): ...to this.
27049
27050 2008-03-18  Jim Meyering  <meyering@redhat.com>
27051
27052         New script and module: mktempd
27053         * MODULES.html.sh (maint+release support): Add mktempd.
27054         * build-aux/mktempd: New file.
27055         * modules/mktempd: New file.
27056
27057 2008-03-15  Jim Meyering  <meyering@redhat.com>
27058
27059         Undo last change.
27060         * lib/sha1.c, lib/md5.c: 63 != ~63.
27061         Reported by Andreas Schwab.
27062
27063         sha1.c, md5.c: Hoist a redundant expression.
27064         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
27065         "ctx->buflen" only once, before calling *_process_block.
27066         * lib/md5.c (md5_process_bytes): Likewise.
27067
27068 2008-03-14  Eric Blake  <ebb9@byu.net>
27069
27070         Bump copyright year in files generated by gnulib-tool.
27071         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
27072         gnulib-tool, rather than hard-coding it.
27073
27074         Fix 'gnulib-tool --version' output to work with git.
27075         * gnulib-tool (func_gnulib_dir): New function, extracted from...
27076         (startup): ...here.
27077         (func_version): Use it to invoke git-version-gen, rather than
27078         relying on CVS keyword expansion.  Modernize wording.
27079         (cvsdatestamp, last_checkin_date, version): Kill unused
27080         variables.
27081
27082 2008-03-12  Jim Meyering  <meyering@redhat.com>
27083
27084         Recognize optional cast of the argument to free.
27085         * build-aux/useless-if-before-free: Update regexps.
27086
27087         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
27088
27089 2008-03-11  Bruno Haible  <bruno@clisp.org>
27090
27091         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
27092         by a single package.
27093         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
27094         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
27095         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
27096         Reported by Sam Steingold <sds@gnu.org>.
27097
27098 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
27099
27100         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
27101         repositories.
27102
27103 2008-03-11  Bruno Haible  <bruno@clisp.org>
27104
27105         Avoid conflicts between local macro definitions.
27106         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
27107         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
27108
27109 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
27110             Bruno Haible  <bruno@clisp.org>
27111
27112         Make va_copy work with some version of xlc on AIX 5.1.
27113         * lib/stdarg.in.h: New file.
27114         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
27115         On AIX, use a <stdarg.h> file substitute.
27116         * modules/stdarg (Files): Add lib/stdarg.in.h.
27117         (Depends-on): Add include_next.
27118         (Makefile.am): Build a stdarg.h substitute if requested.
27119         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
27120
27121 2008-03-10  Bruno Haible  <bruno@clisp.org>
27122
27123         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
27124         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
27125         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
27126
27127 2008-03-10  Bruno Haible  <bruno@clisp.org>
27128
27129         * modules/stdlib (Depends-on): Add include_next, remove
27130         absolute-header.
27131
27132 2008-03-09  Bruno Haible  <bruno@clisp.org>
27133
27134         * lib/freadahead.h (freadahead): Document more precisely.
27135         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
27136         the sum of both buffer sizes.
27137         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
27138         * NEWS: Document the change.
27139
27140 2008-03-09  Bruno Haible  <bruno@clisp.org>
27141
27142         Extend freadptr to return also the buffer size.
27143         * lib/freadptr.h (freadptr): Add sizep argument.
27144         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
27145         (freadptr): Add sizep argument. Determine buffer size like freadahead
27146         does.
27147         * tests/test-freadptr.c: Don't include freadahead.h.
27148         (main): Adapt for new calling convention of freadptr.
27149         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
27150         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
27151         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
27152         tests/test-freadptr2.sh.
27153         (Depends): Remove freadahead.
27154         (TESTS): Add test-freadptr2.sh.
27155         (check_PROGRAMS): Add test-freadptr2.
27156
27157 2008-03-09  Bruno Haible  <bruno@clisp.org>
27158
27159         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
27160         Report and solution by Simon Josefsson.
27161
27162 2008-03-06  Bruno Haible  <bruno@clisp.org>
27163
27164         Make fflush after ungetc work on BSD platforms.
27165         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
27166         * tests/test-fflush2.c: New file.
27167         * tests/test-fflush2.sh: New file.
27168         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
27169         tests/test-fflush2.c.
27170         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
27171         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
27172
27173 2008-03-06  Eric Blake  <ebb9@byu.net>
27174
27175         Likewise for ftello.
27176         * modules/ftello (Dependencies): Add extensions.
27177         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
27178
27179 2008-03-06  Bruno Haible  <bruno@clisp.org>
27180
27181         * modules/fseeko (Dependencies): Add extensions.
27182         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
27183         Needed on glibc systems.
27184
27185 2008-03-06  Bruno Haible  <bruno@clisp.org>
27186
27187         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
27188         email address.
27189         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
27190
27191 2008-03-06  Bruno Haible  <bruno@clisp.org>
27192
27193         * users.txt: Add libgnupdf.
27194
27195 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
27196
27197         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
27198         (Header File Substitutes, Function Substitutes,
27199         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
27200         (Build robot for gnulib): Fix typo.
27201
27202 2008-03-06  Bruno Haible  <bruno@clisp.org>
27203
27204         * doc/gnulib-tool.texi (VCS Issues): Small updates.
27205         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
27206
27207 2008-03-06  Bruno Haible  <bruno@clisp.org>
27208
27209         * doc/func.texi: New file, extracted from doc/gnulib.texi.
27210         * doc/gnulib.texi: Include it.
27211
27212 2008-03-06  Simon Josefsson  <simon@josefsson.org>
27213
27214         * modules/func (License): Change license to unlimited; there was
27215         no LGPL parts in the module anyway.
27216
27217 2008-03-06  Simon Josefsson  <simon@josefsson.org>
27218
27219         * modules/__func__: Renamed to modules/func.
27220         * modules/__func__-tests: Renamed to modules/func-tests.
27221         * tests/test-__func__.c: Renamed to tests/test-func.c.
27222         * m4/__func__.m4: Renamed to m4/func.m4.
27223         * doc/gnulib.texi (__func__): Section renamed to func.
27224         Suggested by Eric Blake <ebb9@byu.net>.
27225
27226 2008-03-06  Simon Josefsson  <simon@josefsson.org>
27227
27228         * doc/gnulib.texi (__func__): Use C99 terminology when talking
27229         about __func__.  Make example self-contained.  Suggested by Eric
27230         Blake <ebb9@byu.net>.
27231
27232         * tests/test-__func__.c (main): Avoid extraneous () around __func.
27233         Suggested by Eric Blake <ebb9@byu.net>.
27234
27235 2008-03-06  Simon Josefsson  <simon@josefsson.org>
27236
27237         * modules/__func__: New file.
27238         * modules/__func__-tests: New file.
27239         * tests/test-__func__.c: New file.
27240         * m4/__func__.m4: New file.
27241         * doc/gnulib.texi (__func__): Document __func__ module.
27242
27243 2008-03-05  Simon Josefsson  <simon@josefsson.org>
27244
27245         * modules/byteswap (License): Re-license as LGPLv2+.
27246
27247 2008-03-05  Simon Josefsson  <simon@josefsson.org>
27248
27249         * doc/Makefile: Add pdf target.
27250
27251 2008-03-05  Simon Josefsson  <simon@josefsson.org>
27252
27253         * modules/inline (License): Use 'unlimited', since there are only
27254         *.m4 files in this module.
27255
27256 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
27257             Bruno Haible  <bruno@clisp.org>
27258
27259         Add support for HP C 7.1 on OpenVMS 8.3.
27260         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
27261
27262 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
27263
27264         Update VMS specifics.
27265         * lib/getopt.c [VMS]: Remove include of unixlib.h.
27266
27267 2008-03-02  Jim Meyering  <meyering@redhat.com>
27268
27269         Remove the last dependency on the "free" module.
27270         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
27271         Reported by Bob Proulx.
27272
27273         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
27274
27275         Remove useless "if" tests before free.  Deprecate "free" module.
27276         * doc/posix-functions/free.texi: Mention that this
27277         module is no longer useful.
27278         * modules/free (Notice): Say this module is obsolete.
27279         * modules/readutmp (Depends-on): Remove free.
27280         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
27281         * lib/putenv.c (putenv): Likewise.
27282         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
27283         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
27284         * tests/test-c-strcasestr.c (main): Likewise.
27285         * tests/test-c-strstr.c (main): Likewise.
27286         * tests/test-mbscasestr1.c (main): Likewise.
27287         * tests/test-mbscasestr2.c (main): Likewise.
27288         * tests/test-mbsstr1.c (main): Likewise.
27289         * tests/test-mbsstr2.c (main): Likewise.
27290         * tests/test-memmem.c (main): Likewise.
27291         * tests/test-strcasestr.c (main): Likewise.
27292         * tests/test-striconv.c (main): Likewise.
27293         * tests/test-striconveh.c (main): Likewise.
27294         * tests/test-striconveha.c (main): Likewise.
27295         * tests/test-strstr.c (main): Likewise.
27296
27297         * build-aux/git-version-gen: Adjust a comment and the Usage string.
27298
27299         bootstrap: sync from coreutils again
27300         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
27301
27302 2008-03-01  Jim Meyering  <meyering@redhat.com>
27303
27304         bootstrap: sync from coreutils
27305         * build-aux/bootstrap (update_po_files): Copy a .po file into place
27306         also when the target doesn't exist.
27307
27308 2008-03-01  Eric Blake  <ebb9@byu.net>
27309
27310         Fix bugs in last patch.
27311         * lib/memchr2.c (memchr2): Fix typo.
27312         * tests/test-memchr2.c: Test previous bug, and don't use GNU
27313         extension.
27314         Reported by Bruce Korb.
27315
27316         New module 'memchr2'.
27317         * modules/memchr2: New file.
27318         * modules/memchr2-tests: Likewise.
27319         * lib/memchr2.h: Likewise.
27320         * lib/memchr2.c: Likewise, based on memchr.c.
27321         * tests/test-memchr2.c: New test.
27322         * MODULES.html.sh (String handling): Add memchr2.
27323
27324 2008-02-29  Bruno Haible  <bruno@clisp.org>
27325
27326         * modules/freadseek-tests: New file.
27327         * tests/test-freadseek.sh: New file.
27328         * tests/test-freadseek.c: New file.
27329
27330         New module 'freadseek'.
27331         * modules/freadseek: New file.
27332         * lib/freadseek.h: New file.
27333         * lib/freadseek.c: New file.
27334         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
27335
27336 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
27337
27338         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
27339         wydawca.
27340
27341         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
27342         program_invocation_name and program_invocation_short_name are
27343         present.
27344
27345 2008-02-28  Bruno Haible  <bruno@clisp.org>
27346
27347         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
27348         * tests/test-freadptr.sh: Also test non-seekable stdin.
27349
27350 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
27351
27352         * build-aux/bootstrap (source_base, m4_base)
27353         (doc_base, tests_base): New variables.
27354         (gnulib_tool_options): Do not hardcode base directories, use
27355         the above variables instead.
27356
27357 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
27358
27359         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
27360
27361 2008-02-28  Bruno Haible  <bruno@clisp.org>
27362
27363         * modules/freadptr-tests: New file.
27364         * tests/test-freadptr.sh: New file.
27365         * tests/test-freadptr.c: New file.
27366
27367         New module 'freadptr'.
27368         * modules/freadptr: New file.
27369         * lib/freadptr.h: New file.
27370         * lib/freadptr.c: New file.
27371         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
27372
27373 2008-02-26  Karl Berry  <karl@freefriends.org>
27374
27375         Sync from Libtool:
27376         * libltdl/argz.c (argz_add, argz_count): New functions.
27377         * libltdl/argz.in.h: Declare them.
27378         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
27379
27380 2008-02-22  Bruno Haible  <bruno@clisp.org>
27381
27382         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
27383         is a pointer type.  Needed for HP-UX 10.
27384         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
27385         * doc/posix-functions/gmtime_r.texi: Likewise.
27386         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
27387
27388 2008-02-24  Bruno Haible  <bruno@clisp.org>
27389
27390         * modules/environ-tests: New file.
27391         * tests/test-environ.c: New file.
27392
27393         New module 'environ'.
27394         * modules/environ: New file.
27395         * lib/unistd.in.h (environ): New declaration.
27396         * m4/environ.m4: New file.
27397         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
27398         after use.
27399         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
27400         HAVE_DECL_ENVIRON.
27401         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
27402         HAVE_DECL_ENVIRON.
27403         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
27404         wrong claim that 'environ' is missing on some systems.
27405         * modules/execute (Depends-on): Add environ.
27406         * lib/execute.c (environ): Remove fallback declaration.
27407         * modules/pipe (Depends-on): Add environ.
27408         * lib/pipe.c (environ): Remove fallback declaration.
27409         * modules/setenv (Depends-on): Add environ.
27410         * lib/setenv.c (environ): Remove fallback declaration.
27411         * modules/unsetenv (Depends-on): Add environ.
27412         * lib/unsetenv.c (environ): Remove fallback declaration.
27413         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
27414         m4/environ.m4.
27415         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
27416         (gl_PREREQ_UNSETENV): Likewise.
27417
27418 2008-02-24  Bruno Haible  <bruno@clisp.org>
27419
27420         * doc/posix-functions/environ.texi: Document the MacOS X problem.
27421
27422 2008-02-20  Bob Proulx  <bob@proulx.com>
27423
27424         Enable use of older two part flavor 'git describe'.
27425         * build-aux/git-version-gen: If using the older two part flavor of
27426         git version then recreate the third part now present in the
27427         newer three part flavor of git describe.
27428
27429 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
27430
27431         * lib/fts.c (fts_build): Typo correction to comment.
27432
27433 2008-02-17  Bruno Haible  <bruno@clisp.org>
27434
27435         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
27436         generating no-op conflicts.
27437
27438 2008-02-17  Bruno Haible  <bruno@clisp.org>
27439
27440         Speed up by 10%.
27441         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
27442         result_entries, rather than an index-based loop.
27443
27444 2008-02-17  Bruno Haible  <bruno@clisp.org>
27445
27446         Speed up by 25%.
27447         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
27448         'hashcode_cached'.
27449         (entry_create): New function.
27450         (entry_hashcode): Use the cached hashcode if possible.
27451         (read_changelog_file, try_split_merged_entry): Use entry_create.
27452
27453 2008-02-17  Bruno Haible  <bruno@clisp.org>
27454
27455         Speed up from O(n^2) to O(n) for long ChangeLog files.
27456         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
27457         (read_changelog_file): Change implementation of entries_reversed list
27458         to rbtreehash.
27459         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
27460
27461 2008-02-17  Bruno Haible  <bruno@clisp.org>
27462
27463         New option --split-merged-entry.
27464         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
27465         (find_paragraph_end, try_split_merged_entry): New functions.
27466         (long_options): Add option --split-merged-entry.
27467         (usage): Document option --split-merged-entry.
27468         (main): Implement option --split-merged-entry.
27469         Reported by Eric Blake.
27470
27471 2008-02-17  Bruno Haible  <bruno@clisp.org>
27472
27473         * lib/git-merge-changelog.c: Include c-strstr.h.
27474         (main): Support the "git pull --rebase" situation.
27475         * modules/git-merge-changelog (Depends-on): Add c-strstr.
27476         Reported by Eric Blake.
27477
27478 2008-02-16  Eric Blake  <ebb9@byu.net>
27479
27480         Avoid doubling \ in common case of "c-maybe" quoting style.
27481         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
27482         eliding outer quotes.
27483         * lib/quotearg.h: Document this.
27484         * tests/test-quotearg.c (result_strings, inputs, results_g)
27485         (flag_results, locale_results): Test it by adding a new string to
27486         each test group.
27487         (compare_strings): Test new string.
27488
27489 2008-02-13  Eric Blake  <ebb9@byu.net>
27490
27491         Avoid trigraph quoting in default output.
27492         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
27493         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
27494         unless explicitly requested.
27495         * tests/test-quotearg.c (flag_results, main): Add additional tests.
27496
27497 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
27498
27499         Don't rely on signed integer overflowing to negative value.
27500         * lib/getugroups.c (getugroups): Include <limits.h>.
27501         Instead, compare against INT_MAX, and increment only if the test passes.
27502
27503 2008-02-13  Jim Meyering  <meyering@redhat.com>
27504         and Eric Blake  <ebb9@byu.net>
27505
27506         Avoid shadowing warning and compile errors on Linux.
27507         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
27508         forwarding macros on Linux.
27509         (dcgettext): Define a stub, for Linux.
27510         (results_g, main): Avoid warnings.
27511
27512 2008-02-12  Eric Blake  <ebb9@byu.net>
27513
27514         Silence warning in last patch.
27515         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
27516
27517         Quotearg part 4: add tests, fix c-maybe colon quoting.
27518         * lib/quotearg.h: Improve documentation.
27519         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
27520         escapes when adding outer quotes.  When quoting trigraphs, use
27521         valid C notation.  When quoting NUL, omit extra characters if next
27522         character is not digit.  Alter prototype.
27523         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
27524         callers.
27525         * modules/quotearg-tests: New module.
27526         * tests/test-quotearg.c: New test.
27527
27528 2008-02-07  Eric Blake  <ebb9@byu.net>
27529
27530         Quotearg part 3: add flag to control outer quote elision.
27531         * lib/quotearg.h (c_maybe_quoting_style): New style.
27532         (enum quoting_flags): Better documentation of flags.
27533         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
27534         c-maybe style.
27535         (quotearg_buffer_restyled): Handle new flag to elide outer
27536         quotes.
27537
27538         Quotearg part 2: add flag that can control NUL elision.
27539         * lib/quotearg.h (set_quoting_flags): New prototype.
27540         * lib/quotearg.c (struct quoting_options): Add flag field.
27541         (set_quoting_flags): New function.
27542         (quotearg_buffer_restyled): Add flags parameter.
27543         (quotearg_alloc_mem): Set the flag if length cannot be returned.
27544         (quotearg_n_options): Set the flag, since length cannot be
27545         returned.
27546         (quoting_options_from_style): Default flags correctly.
27547
27548         Quotearg part 1: more wrappers, restore quotearg_char state.
27549         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
27550         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
27551         (quotearg_colon_mem): New wrappers.
27552         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
27553         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
27554         functions.
27555         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
27556         (quotearg_colon_mem): New functions.
27557
27558 2008-02-11  Bruno Haible  <bruno@clisp.org>
27559
27560         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
27561         library in the current directory: it does not work with parallel make.
27562         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27563
27564 2008-02-11  Bruno Haible  <bruno@clisp.org>
27565
27566         * .gitattributes: New file.
27567
27568 2008-02-11  Jim Meyering  <meyering@redhat.com>
27569
27570         useless-if-before-free: Fix reversed exit values.
27571         * build-aux/useless-if-before-free: Use correct values
27572         for EXIT_MATCH and EXIT_NO_MATCH.
27573
27574         * build-aux/useless-if-before-free: Close stdout carefully.
27575
27576 2008-02-10  Bruno Haible  <bruno@clisp.org>
27577
27578         New module 'git-merge-changelog'.
27579         * modules/git-merge-changelog: New file.
27580         * lib/git-merge-changelog.c: New file.
27581
27582 2008-02-10  Jim Meyering  <meyering@redhat.com>
27583
27584         useless-if-before-free: New option: --list (-l).
27585
27586         useless-if-before-free: Don't exit immediately upon open failure.
27587         * build-aux/useless-if-before-free: Exit 2 for errors.
27588         Upon failure to open a file, don't exit immediately.
27589         Rather, just warn and continue with any remaining files.
27590
27591 2008-02-10  Bruno Haible  <bruno@clisp.org>
27592
27593         New abstract list operation 'node_set_value'.
27594         * lib/gl_list.h (gl_list_node_set_value): New function.
27595         (struct gl_list_implementation): New field node_set_value.
27596         * lib/gl_list.c (gl_list_node_set_value): New function.
27597         * lib/gl_array_list.c (gl_array_node_set_value): New function.
27598         (gl_array_list_implementation): Update.
27599         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
27600         (gl_carray_list_implementation): Update.
27601         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
27602         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
27603         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
27604         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
27605         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
27606         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
27607         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
27608         Update.
27609         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
27610         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
27611         (gl_sublist_list_implementation): Update.
27612
27613 2008-02-10  Bruno Haible  <bruno@clisp.org>
27614
27615         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
27616         Needed when ELEMENT is #defined to 'some_type *'.
27617
27618 2008-02-10  Jim Meyering  <meyering@redhat.com>
27619
27620         New script and module: useless-if-before-free
27621         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
27622         * build-aux/useless-if-before-free: New file.
27623         * modules/useless-if-before-free: New file.
27624
27625         * build-aux/gitlog-to-changelog: Use committer date, not author date.
27626
27627         xstrtol_error: Fix typo.
27628         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
27629         s/exit_failure/exit_status/.
27630
27631 2008-02-09  Jim Meyering  <meyering@redhat.com>
27632
27633         New script and module: gitlog-to-changelog
27634         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
27635         * modules/gitlog-to-changelog: New file.
27636         * build-aux/gitlog-to-changelog: New file.
27637
27638 2008-02-08  Jim Meyering  <meyering@redhat.com>
27639
27640         Avoid two "parameter unused" warnings.
27641         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
27642         Mark "st" as used.
27643
27644         Use "git COMMAND", not "git-COMMAND".
27645         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
27646         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
27647         * build-aux/git-version-gen: Use "git status", not "git-status".
27648
27649 2008-02-07  Bruno Haible  <bruno@clisp.org>
27650
27651         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
27652         Avoids a crash on Windows Vista.
27653         Reported by Adam Strzelecki <ono@java.pl> via
27654         Simon Josefsson <simon@josefsson.org>.
27655
27656 2008-02-06  Bruno Haible  <bruno@clisp.org>
27657
27658         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
27659         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
27660         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
27661         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
27662         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
27663         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
27664         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
27665         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
27666         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
27667         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
27668         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
27669         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
27670         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
27671         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
27672         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
27673         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
27674         left-adjust flag.
27675         * tests/test-snprintf-posix.h (test_function): Likewise.
27676         * tests/test-sprintf-posix.h (test_function): Likewise.
27677         * tests/test-vasprintf-posix.c (test_function): Likewise.
27678         * doc/posix-functions/fprintf.texi: Update.
27679         * doc/posix-functions/printf.texi: Update.
27680         * doc/posix-functions/snprintf.texi: Update.
27681         * doc/posix-functions/sprintf.texi: Update.
27682         * doc/posix-functions/vfprintf.texi: Update.
27683         * doc/posix-functions/vprintf.texi: Update.
27684         * doc/posix-functions/vsnprintf.texi: Update.
27685         * doc/posix-functions/vsprintf.texi: Update.
27686         Reported by Peter Fales <psfales@alcatel-lucent.com>.
27687
27688 2008-02-06  Bruno Haible  <bruno@clisp.org>
27689
27690         Fix bug introduced on 2008-01-26.
27691         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
27692
27693 2008-02-06  Bruno Haible  <bruno@clisp.org>
27694
27695         Fix bug introduced on 2007-06-10.
27696         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
27697         !NEED_PRINTF_FLAG_ZERO.
27698
27699 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
27700
27701         getloadavg: use libperfstat on AIX5
27702         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
27703
27704 2008-02-03  Bruno Haible  <bruno@clisp.org>
27705
27706         * lib/diffseq.h: Add comments about required #includes.
27707         Reported by Michael Biggs <gnulib@doubleplum.net>.
27708
27709 2008-02-01  Bruno Haible  <bruno@clisp.org>
27710
27711         * users.txt: Add gnuit.
27712
27713 2008-01-31  Bruno Haible  <bruno@clisp.org>
27714
27715         * lib/md4.c (set_uint32): Mark as inline.
27716         * lib/md5.c (set_uint32): Likewise.
27717         * lib/sha1.c (set_uint32): Likewise.
27718         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
27719         * m4/md5.m4 (gl_MD5): Likewise.
27720         * m4/sha1.m4 (gl_SHA1): Likewise.
27721
27722 2008-01-31  Jim Meyering  <meyering@redhat.com>
27723
27724         Use "sizeof VAR", rather than a literal "4".
27725         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
27726         * lib/md4.c (md4_read_ctx): Likewise.
27727         * lib/sha1.c (sha1_read_ctx): Likewise.
27728
27729 2008-01-31  Simon Josefsson  <simon@josefsson.org>
27730
27731         * tests/test-sha1.c: New file, based on test-md5.c.
27732
27733         * modules/crypto/sha1-tests: New file.
27734
27735 2008-01-31  Simon Josefsson  <simon@josefsson.org>
27736
27737         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
27738
27739 2008-01-31  Jim Meyering  <meyering@redhat.com>
27740
27741         Prefer "sizeof v" over the equivalent "4".
27742         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
27743         * lib/md5.c (set_uint32): Likewise.
27744         * lib/sha1.c (set_uint32): Likewise.
27745
27746 2008-01-31  Simon Josefsson  <simon@josefsson.org>
27747
27748         * lib/sha1.c (set_uint32): Mark function as static.
27749
27750 2008-01-31  Simon Josefsson  <simon@josefsson.org>
27751
27752         md2: clarify comments to say that alignment is not required.
27753         * lib/md2.h: Remove warning about alignment in comment.
27754         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
27755         never been required.
27756
27757 2008-01-31  Simon Josefsson  <simon@josefsson.org>
27758
27759         md4: adapt alignment constraint fix from sha1.
27760         * lib/md4.c (set_uint32): New function, from sha1.c
27761         (md4_read_ctx): Use it.
27762         (md4_finish_ctx): Doc fix.
27763         * lib/md4.h: Doc fix.
27764
27765 2008-01-31  Simon Josefsson  <simon@josefsson.org>
27766
27767         md5: adapt alignment constraint fix from sha1.
27768         * lib/md5.c (set_uint32): New function, from sha1.c
27769         (md5_read_ctx): Use it.
27770         (md5_finish_ctx): Doc fix.
27771         * lib/md5.h: Doc fix.
27772
27773 2008-01-30  Peter Palfrader  <weasel@debian.org>
27774
27775         sha1: remove the result buffer alignment constraint
27776         * lib/sha1.c (set_uint32): New function.
27777         (sha1_read_ctx): Rewrite to remove the result buffer alignment
27778         constraint.
27779         (sha1_finish_ctx): Remove comment warning about alignment constraint.
27780         * lib/sha1.h: Likewise.
27781
27782 2008-01-30  Andreas Schwab  <schwab@suse.de>
27783             Bruno Haible  <bruno@clisp.org>
27784
27785         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
27786         correct definition of LDBL_MIN_EXP.
27787
27788 2008-01-30  Karl Berry  <karl@gnu.org>
27789
27790         * config/srclist-update: try to preserve x bit on updates.
27791         * config/srclistvars.sh: update for karl.
27792
27793 2008-01-29  Jim Meyering  <meyering@redhat.com>
27794
27795         vasnprintf.c: Avoid warning about unused label
27796         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
27797         "overflow" label definition and associated code with the
27798         same cpp condition that guards the sole use of that label.
27799
27800 2008-01-26  Bruno Haible  <bruno@clisp.org>
27801
27802         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
27803         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
27804         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
27805         * lib/isnanl-nolibm.h (isnanl): Likewise.
27806         Reported by Paul Eggert <eggert@cs.ucla.edu>.
27807
27808 2008-01-26  Bruno Haible  <bruno@clisp.org>
27809
27810         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
27811         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
27812
27813 2008-01-26  Bruno Haible  <bruno@clisp.org>
27814
27815         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
27816         GCC >= 4.0 built-in.
27817         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
27818
27819 2008-01-26  Bruno Haible  <bruno@clisp.org>
27820
27821         Rename isnan, applicable to 'double' only, to isnand.
27822         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
27823         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
27824         (configure.ac): Update.
27825         (Include): Replace "isnan.h" with "isnand.h".
27826         * m4/isnand.m4: Renamed from m4/isnan.m4.
27827         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
27828         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
27829         instead of isnan.c.
27830         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
27831         instead of HAVE_ISNAN_IN_LIBC.
27832         (isnand): Renamed from isnan.
27833         * lib/isnand.c: New file.
27834         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
27835         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
27836         (Makefile.am): Update.
27837         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
27838         Include isnand.h instead of isnan.h.
27839         (main): Test isnand instead of isnan.
27840         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
27841         isnan-nolibm.
27842         * modules/frexp (Depends-on): Likewise.
27843         * modules/frexp-tests (Depends-on): Likewise.
27844         * modules/frexp-nolibm (Depends-on): Likewise.
27845         * modules/frexp-nolibm-tests (Depends-on): Likewise.
27846         * modules/isfinite (Depends-on): Likewise.
27847         * modules/round-tests (Depends-on): Likewise.
27848         * modules/signbit (Depends-on): Likewise.
27849         * modules/signbit-tests (Depends-on): Likewise.
27850         * modules/snprintf-posix (Depends-on): Likewise.
27851         * modules/sprintf-posix (Depends-on): Likewise.
27852         * modules/trunc-tests (Depends-on): Likewise.
27853         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
27854         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
27855         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
27856         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
27857         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
27858         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
27859         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
27860         * modules/vasnprintf-posix (Depends-on): Likewise.
27861         * modules/vasprintf-posix (Depends-on): Likewise.
27862         * modules/vfprintf-posix (Depends-on): Likewise.
27863         * modules/vsnprintf-posix (Depends-on): Likewise.
27864         * modules/vsprintf-posix (Depends-on): Likewise.
27865         * lib/frexp.c: Include isnand.h instead of isnan.h.
27866         (ISNAN): Set to isnand instead of isnan.
27867         * lib/isfinite.c: Include isnand.h instead of isnan.h.
27868         (gl_isfinited): Use isnand instead of isnan.
27869         * lib/signbitd.c: Include isnand.h instead of isnan.h.
27870         (gl_signbitd): Use isnand instead of isnan.
27871         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
27872         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
27873         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
27874         (main): Use isnand instead of isnan.
27875         * tests/test-round1.c: Include isnand.h.
27876         (main): Use isnand instead of isnan.
27877         * tests/test-round2.c: Include isnand.h instead of isnan.h.
27878         (ISNAN): Set to isnand instead of isnan.
27879         * tests/test-trunc1.c: Include isnand.h.
27880         (main): Use isnand instead of isnan.
27881         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
27882         (equal): Use isnand instead of isnan.
27883         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
27884         isnand-nolibm.
27885         * NEWS: Mention the change.
27886
27887 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
27888             Bruno Haible  <bruno@clisp.org>
27889
27890         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
27891         the GCC builtins for signbits are present and set
27892         REPLACE_SIGNBIT_USING_GCC if so.
27893         * lib/math.in.h (signbit): Define using GCC builtins if
27894         REPLACE_SIGNBIT_USING_GCC is set.
27895         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
27896         REPLACE_SIGNBIT_USING_GCC.
27897         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
27898
27899 2008-01-25  Jim Meyering  <meyering@redhat.com>
27900
27901         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
27902         * lib/poll.c: Include <config.h>, not "config.h".
27903         * tests/test-getaddrinfo.c: Likewise.
27904
27905 2008-01-25  Simon Josefsson  <simon@josefsson.org>
27906
27907         * modules/sockets-tests: New file.
27908
27909 2008-01-24  Simon Josefsson  <simon@josefsson.org>
27910
27911         * modules/sockets: New module, can be used to call WSA_Startup and
27912         WSA_Cleanup when needed.
27913
27914         * lib/sockets.h, lib/sockets.c: New files.
27915
27916         * m4/sockets.m4: New file.
27917
27918         * tests/test-sockets.c: New file.
27919
27920 2008-01-19  Bruno Haible  <bruno@clisp.org>
27921
27922         * doc/posix-headers: Renamed from doc/headers.
27923         * doc/posix-functions: Renamed from doc/functions.
27924         * doc/gnulib.texi: Update.
27925
27926 2008-01-19  Bruno Haible  <bruno@clisp.org>
27927
27928         * doc/glibc-functions/strcasestr.texi: Include contents of
27929         doc/functions/strcasestr.texi, fixing the list of platforms.
27930         * doc/functions/strcasestr.texi: Remove file.
27931
27932 2008-01-19  Bruno Haible  <bruno@clisp.org>
27933
27934         * doc/glibc-functions/memmem.texi: Include contents of
27935         doc/functions/memmem.texi.
27936         * doc/functions/memmem.texi: Remove file.
27937
27938 2008-01-18  Bruno Haible  <bruno@clisp.org>
27939
27940         * doc/glibc-functions/*.texi: New files.
27941         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
27942         to use the new files.
27943
27944 2008-01-17  Bruno Haible  <bruno@clisp.org>
27945
27946         * tests/test-gethostname.c (main): Fix printf statement.
27947
27948 2008-01-17  Simon Josefsson  <simon@josefsson.org>
27949
27950         * modules/gethostname-tests: New file.
27951
27952         * tests/test-gethostname.c: New file.
27953
27954 2008-01-17  Simon Josefsson  <simon@josefsson.org>
27955
27956         * lib/gethostname.c: Include string.h unconditionally, strncpy is
27957         used by the UNAME case.  Reported by Bruno Haible
27958         <bruno@clisp.org>.
27959
27960 2008-01-17  Eric Blake  <ebb9@byu.net>
27961
27962         Convert c-strcasestr to be more efficient.
27963         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
27964         (Depends-on): Add c-strcase, remove malloca, strnlen.
27965         * tests/test-c-strcasestr.c (main): Enhance test.
27966         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
27967
27968 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
27969
27970         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
27971         Use it in creating po/Makevars.
27972
27973 2008-01-15  Simon Josefsson  <simon@josefsson.org>
27974
27975         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
27976         Applications that requires it should initialize libgcrypt
27977         manually.
27978
27979 2008-01-16  Simon Josefsson  <simon@josefsson.org>
27980
27981         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
27982
27983 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
27984
27985         Fix problem with getdate on mingw32 reported by Simon Josefsson
27986         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
27987         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
27988         tzname", when deciding whether to declare tzname.
27989         * lib/strftime.c (tzname): Likewise.
27990
27991 2008-01-15  Bruno Haible  <bruno@clisp.org>
27992
27993         Work around a MacOS X 10.5 bug in frexpl().
27994         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
27995         * doc/functions/frexpl.texi: Document the bug.
27996         Reported by Elias Pipping <pipping@gentoo.org>.
27997
27998 2008-01-14  Eric Blake  <ebb9@byu.net>
27999
28000         Touch up previous patch.
28001         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
28002         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
28003
28004         Convert strcasestr module to use Two-Way algorithm.
28005         * modules/strcasestr-simple: New module, based on the old
28006         strcasestr, but with Two-Way rather than KMP.
28007         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
28008         * lib/string.in.h (rpl_strcasestr): Declare.
28009         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
28010         performance.
28011         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
28012         * modules/string (Makefile.am): Support strcasestr.
28013         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
28014         * modules/strcasestr-tests (Depends-on): Check for alarm.
28015         * tests/test-strcasestr.c: Augment test.
28016         * lib/str-two-way.h: Clean up stray macro.
28017         * NEWS: Document new module.
28018         * MODULES.html.sh (string handling): Likewise.
28019         * doc/functions/strcasestr.texi: New file.
28020         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
28021         here, since it is not a POSIX function.
28022
28023 2008-01-14  Colin Watson  <cjwatson@debian.org>
28024             Bruno Haible  <bruno@clisp.org>
28025
28026         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
28027         works fine; if not, set REPLACE_STRSIGNAL.
28028         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
28029         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
28030         REPLACE_STRSIGNAL.
28031         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
28032         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
28033         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
28034
28035 2008-01-14  Bruno Haible  <bruno@clisp.org>
28036
28037         * modules/strsignal (Include): Change to <string.h>.
28038
28039 2008-01-14  Colin Watson  <cjwatson@debian.org>
28040
28041         * modules/argp (Notice): Add a notice recommending to change
28042         XGETTEXT_OPTIONS.
28043         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
28044
28045 2008-01-13  Colin Watson  <cjwatson@debian.org>
28046
28047         * modules/strsignal-tests: New file.
28048         * tests/test-strsignal.c: New file.
28049
28050         * lib/strsignal.c: New file, from glibc with modifications.
28051         * lib/siglist.h: New file, from glibc with modifications.
28052         * lib/string.in.h (strsignal): New declaration.
28053         * m4/strsignal.m4: New file.
28054         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
28055         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
28056         * modules/strsignal: New file.
28057         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
28058         HAVE_DECL_STRSIGNAL.
28059
28060 2008-01-13  Bruno Haible  <bruno@clisp.org>
28061
28062         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
28063         locale encoding is not ASCII. Needed for OpenBSD 4.0.
28064         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
28065         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
28066
28067 2008-01-13  Bruno Haible  <bruno@clisp.org>
28068
28069         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
28070         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
28071         * lib/argp.h (__attribute__): Likewise.
28072         * lib/c-stack.c (__attribute__): Likewise.
28073         * lib/error.h (__attribute__): Likewise.
28074         * lib/fts.c (__attribute__): Likewise.
28075         * lib/openat.h (__attribute__): Likewise.
28076         * lib/stdio.in.h (__attribute__): Likewise.
28077         * lib/string.in.h (__attribute__): Likewise.
28078         * lib/utimens.c (__attribute__): Likewise.
28079         * lib/vasnprintf.h (__attribute__): Likewise.
28080         * lib/xalloc.h (__attribute__): Likewise.
28081         * lib/xprintf.h (__attribute__): Likewise.
28082         * lib/xstrtol.h (__attribute__): Likewise.
28083         * lib/xvasprintf.h (__attribute__): Likewise.
28084
28085 2008-01-12  Bruno Haible  <bruno@clisp.org>
28086
28087         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
28088         * doc/glibc-headers/a.out.texi: New file.
28089         * doc/glibc-headers/aliases.texi: New file.
28090         * doc/glibc-headers/alloca.texi: New file.
28091         * doc/glibc-headers/ar.texi: New file.
28092         * doc/glibc-headers/argp.texi: New file.
28093         * doc/glibc-headers/argz.texi: New file.
28094         * doc/glibc-headers/byteswap.texi: New file.
28095         * doc/glibc-headers/crypt.texi: New file.
28096         * doc/glibc-headers/endian.texi: New file.
28097         * doc/glibc-headers/envz.texi: New file.
28098         * doc/glibc-headers/err.texi: New file.
28099         * doc/glibc-headers/error.texi: New file.
28100         * doc/glibc-headers/execinfo.texi: New file.
28101         * doc/glibc-headers/fpu_control.texi: New file.
28102         * doc/glibc-headers/fstab.texi: New file.
28103         * doc/glibc-headers/fts.texi: New file.
28104         * doc/glibc-headers/getopt.texi: New file.
28105         * doc/glibc-headers/ieee754.texi: New file.
28106         * doc/glibc-headers/ifaddrs.texi: New file.
28107         * doc/glibc-headers/libintl.texi: New file.
28108         * doc/glibc-headers/mcheck.texi: New file.
28109         * doc/glibc-headers/mntent.texi: New file.
28110         * doc/glibc-headers/obstack.texi: New file.
28111         * doc/glibc-headers/paths.texi: New file.
28112         * doc/glibc-headers/printf.texi: New file.
28113         * doc/glibc-headers/pty.texi: New file.
28114         * doc/glibc-headers/resolv.texi: New file.
28115         * doc/glibc-headers/shadow.texi: New file.
28116         * doc/glibc-headers/sysexits.texi: New file.
28117         * doc/glibc-headers/ttyent.texi: New file.
28118
28119 2008-01-12  Jim Meyering  <meyering@redhat.com>
28120
28121         announce-gen: emit Gnulib's git-based version string.
28122         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
28123         New option --gnulib-version=V, where V is expected to be
28124         the output of running git describe in the gnulib directory.
28125         (get_tool_versions): Request feedback on xdelta.  I suspect it's
28126         not useful, and plan to stop publishing an xdelta file with each
28127         coreutils release.
28128
28129         * build-aux/announce-gen: Also check for lzma-compressed files.
28130
28131 2008-01-11  Bruno Haible  <bruno@clisp.org>
28132
28133         * tests/test-memmem.c (main): Increase maximum allowed time.
28134         * tests/test-strstr.c (main): Likewise.
28135
28136 2008-01-11  Bruno Haible  <bruno@clisp.org>
28137
28138         * doc/functions/memmem.texi: Add more precisions about platforms.
28139         * doc/functions/strstr.texi: Likewise.
28140
28141 2008-01-10  Eric Blake  <ebb9@byu.net>
28142
28143         * m4/strstr.m4: Delete cruft from copy-n-paste.
28144         Reported by Bruno Haible.
28145
28146 2008-01-10  Bruno Haible  <bruno@clisp.org>
28147
28148         Make c-strstr rely on strstr.
28149         * lib/c-strstr.c: Don't include str-kmp.h.
28150         (c_strstr): Define in terms of strstr.
28151         * modules/c-strstr (Files): Remove lib/str-kmp.h.
28152         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
28153
28154 2008-01-10  Bruno Haible  <bruno@clisp.org>
28155
28156         * doc/gnulib.texi (String Functions in C Locale): New section.
28157         * doc/c-ctype.texi: New file.
28158         * doc/c-strcase.texi: New file.
28159         * doc/c-strcaseeq.texi: New file.
28160         * doc/c-strcasestr.texi: New file.
28161         * doc/c-strstr.texi: New file.
28162         * doc/c-strtod.texi: New file.
28163         * doc/c-strtold.texi: New file.
28164
28165 2008-01-10  Eric Blake  <ebb9@byu.net>
28166
28167         * lib/relocatable.h: Fix a comment.
28168
28169 2008-01-10  Eric Blake  <ebb9@byu.net>
28170
28171         Share two-way algorithm.
28172         * lib/str-two-way.h: New file, merged from...
28173         * lib/memmem.c: ...here...
28174         * lib/strstr.c: ...and here.
28175         * modules/memmem (Files): Use it.
28176         * modules/strstr (Files): Likewise.
28177
28178         Avoid quadratic strstr implementations.
28179         * lib/strstr.c: New file.
28180         * m4/strstr.m4: Likewise.
28181         * modules/strstr: Likewise.
28182         * modules/strstr-tests: Likewise.
28183         * tests/test-strstr.c: Likewise.
28184         * lib/string.in.h (rpl_strstr): Declare.
28185         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
28186         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
28187         * modules/string (Makefile.am): Likewise.
28188         * MODULES.html.sh (string handling): Mention new module.
28189         * doc/functions/strstr.texi (strstr): Document the bug.
28190
28191 2008-01-10  Bruno Haible  <bruno@clisp.org>
28192
28193         * lib/relocatable.h (relocate): State whether result is freshly
28194         allocated or not.
28195         * lib/relocatable.c (relocate): Return a freshly allocated string
28196         instead of a pointer to a privately held string.
28197         Reported by Sylvain Beucler <beuc@gnu.org>.
28198
28199 2008-01-10  Colin Watson  <cjwatson@debian.org>
28200
28201         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
28202         s/S_ISNLK/S_ISLNK/.
28203
28204 2008-01-09  Bruno Haible  <bruno@clisp.org>
28205
28206         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
28207         and other files.
28208         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
28209         if it's only a guess.
28210         * modules/memmem: Simplify by depending on memmem-simple.
28211
28212 2008-01-09  Bruno Haible  <bruno@clisp.org>
28213
28214         Work around OpenBSD 4.0 tdelete() bug.
28215         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
28216         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
28217         macros and don't redefine the enum values.
28218         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
28219         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
28220         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
28221
28222 2008-01-09  Bruno Haible  <bruno@clisp.org>
28223
28224         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
28225         (main): Don't perform the tests if setlocale did not install a UTF-8
28226         locale. Needed on OpenBSD 4.0.
28227         * modules/wcwidth-tests (Depends-on): Add localcharset.
28228
28229 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
28230
28231         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
28232         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
28233         * NEWS: announce this.
28234         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
28235
28236 2008-01-09  Simon Josefsson  <simon@josefsson.org>
28237         and Eric Blake  <ebb9@byu.net>
28238
28239         Add memmem-simple module.
28240         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
28241         (gl_FUNC_MEMMEM): Separate performance from presence checks.
28242         * modules/memmem-simple: New file.
28243         * modules/memmem (Description): Tweak.
28244         * MODULES.html.sh (string handling): Mention new module.
28245         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
28246         addressed by memmem-simple.
28247         * NEWS: Document the difference.
28248
28249 2008-01-09  Eric Blake  <ebb9@byu.net>
28250
28251         Give gcc some memmem optimization hints.
28252         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
28253         (strcasestr): Declare as pure.
28254         * modules/memmem (Maintainer): Claim my implementation.
28255
28256 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28257
28258         Support AIX 6.1 and higher.
28259         * build-aux/config.libpath: Likewise.
28260         * build-aux/config.rpath: Likewise.
28261
28262 2008-01-08  Jim Meyering  <meyering@redhat.com>
28263             Bruno Haible  <bruno@clisp.org>
28264
28265         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
28266         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
28267         Reported by Peter Fales in
28268         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
28269
28270 2008-01-08  Bruno Haible  <bruno@clisp.org>
28271
28272         * modules/unictype/category-of (Depends-on): Add
28273         unictype/category-none.
28274         * modules/unictype/category-and-tests (Depends-on): Add
28275         unictype/category-{L,N,Lu,Nd}.
28276         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
28277         * modules/unictype/category-or-tests (Depends-on): Add
28278         unictype/category-{L,N}.
28279         * modules/unictype/category-name-tests (Depends-on): Add
28280         unictype/category-{Z,Nl}.
28281         Reported by Simon Josefsson.
28282
28283 2008-01-08  Bruno Haible  <bruno@clisp.org>
28284
28285         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
28286         convention better.
28287         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
28288         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
28289         Reported by Peter Miller <millerp@canb.auug.org.au>.
28290
28291 2008-01-08  Eric Blake  <ebb9@byu.net>
28292
28293         Rewrite memmem to guarantee linear complexity without malloc.
28294         * lib/memmem.c (memmem): Use Two-Way rather than
28295         Knuth-Morris-Pratt, to allow O(1) space usage.
28296         (critical_factorization, two_way_short_needle)
28297         (two_way_long_needle): New functions.
28298         (knuth_morris_pratt): Delete.
28299         * modules/memmem (Depends-on): No longer need malloca or stdbool.
28300         Add stdint.
28301         * tests/test-memmem.c (main): Add tests for periodic needle and
28302         sublinear performance.
28303         * doc/functions/memmem.texi (memmem): Document other deficiencies
28304         in cygwin and older glibc.
28305
28306 2008-01-08  Bruno Haible  <bruno@clisp.org>
28307
28308         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
28309         augmentation.
28310
28311 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
28312
28313         Add a configure time option: --disable-acl.
28314         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
28315         AC_ARG_ENABLE(acl).
28316
28317 2008-01-06  Simon Josefsson  <simon@josefsson.org>
28318
28319         * tests/test-localename.c: Don't include obsolete "setenv.h".
28320
28321         * modules/localename-tests (Depends-on): Need unsetenv.
28322
28323 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28324
28325         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
28326
28327 2008-01-06  Colin Watson  <cjwatson@debian.org>
28328
28329         * users.txt: Add man-db.
28330
28331 2008-01-07  Bruno Haible  <bruno@clisp.org>
28332
28333         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
28334         previous section name.
28335
28336 2008-01-07  Bruno Haible  <bruno@clisp.org>
28337
28338         * lib/progname.c (set_program_name): Don't strip off a leading
28339         "lt-" prefix outside a .libs directory.
28340         Suggested by Paul Eggert.
28341
28342 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
28343             Bruno Haible  <bruno@clisp.org>
28344
28345         Improve memory cleanup in 'relocatable' module.
28346         * lib/relocatable.h (compute_curr_prefix): Change return type to
28347         'char *'.
28348         * lib/relocatable.c (compute_curr_prefix): Change return type to
28349         'char *'. Free curr_installdir after use.
28350         (relocate): Free curr_prefix_better after use.
28351         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
28352
28353 2008-01-01  Bruno Haible  <bruno@clisp.org>
28354
28355         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
28356         failure on older glibc systems.
28357         Reported by Peter Fales <psfales@alcatel-lucent.com>.
28358
28359 2008-01-05  Eric Blake  <ebb9@byu.net>
28360
28361         Avoid quadratic system memmem.
28362         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
28363         Reported by Ralf Wildenhues.
28364
28365         Fix memmem test for mingw.
28366         * modules/memmem-tests (configure.ac): Check for alarm.
28367         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
28368         it.
28369         * doc/functions/memmem.texi: New file.
28370         * doc/gnulib.texi (Function Substitutes): Add memmem.
28371         Reported by Bruno Haible.
28372
28373 2008-01-04  Bruno Haible  <bruno@clisp.org>
28374
28375         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
28376         Require gl_HEADER_STRINGS_H_DEFAULTS, not
28377         gl_HEADER_STRING_H_DEFAULTS.
28378
28379 2008-01-04  Eric Blake  <ebb9@byu.net>
28380
28381         Shorten duration of memmem test.
28382         * tests/test-memmem.c (main): Use alarm to declare failure if test
28383         is taking too long.
28384         Reported by Ralf Wildenhues.
28385
28386 2007-12-21  Simon Josefsson  <simon@josefsson.org>
28387
28388         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
28389         string, needed by strerror.
28390
28391 2008-01-03  Colin Watson  <cjwatson@debian.org>
28392             Bruno Haible  <bruno@clisp.org>
28393
28394         * doc/gnulib-tool.texi (Localization): New section.
28395
28396 2008-01-02  Bruno Haible  <bruno@clisp.org>
28397
28398         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
28399         variables to 'unsigned char *' type.
28400         Reported by Paul Eggert.
28401
28402 2008-01-02  Jim Meyering  <jim@meyering.net>
28403
28404         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
28405
28406 2007-12-31  Jim Meyering  <jim@meyering.net>
28407
28408         Avoid use of private FTS type name.
28409         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
28410
28411 2007-12-30  Karl Berry  <karl@gnu.org>
28412
28413         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
28414         work around defect in Texinfo and/or the standalone Info browser.
28415
28416 2007-12-30  Bruno Haible  <bruno@clisp.org>
28417
28418         Unify 5 copies of the KMP code.
28419         * lib/str-kmp.h: New file.
28420         * lib/c-strcasestr.c: Include str-kmp.h.
28421         (knuth_morris_pratt): Remove function.
28422         (c_strcasestr): Update.
28423         * lib/c-strstr.c: Include str-kmp.h.
28424         (knuth_morris_pratt): Remove function.
28425         (c_strcasestr): Update.
28426         * lib/mbscasestr.c: Include str-kmp.h.
28427         (knuth_morris_pratt_unibyte): Remove function.
28428         * lib/mbsstr.c: Include str-kmp.h.
28429         (knuth_morris_pratt_unibyte): Remove function.
28430         * lib/strcasestr.c: Include str-kmp.h.
28431         (knuth_morris_pratt): Remove function.
28432         (strcasestr): Update.
28433         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
28434         * modules/c-strstr (Files): Likewise.
28435         * modules/mbscasestr (Files): Likewise.
28436         * modules/mbsstr (Files): Likewise.
28437         * modules/strcasestr (Files): Likewise.
28438         Suggested by Paul Eggert.
28439
28440 2007-12-30  Bruno Haible  <bruno@clisp.org>
28441
28442         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
28443         defined.
28444
28445 2007-12-30  Bruno Haible  <bruno@clisp.org>
28446
28447         * lib/xmalloca.h: Include xalloc.h.
28448         (xnmalloca): New macro.
28449
28450 2007-12-30  Bruno Haible  <bruno@clisp.org>
28451
28452         * lib/malloca.h (nmalloca): New macro.
28453         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
28454         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
28455         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
28456         knuth_morris_pratt_multibyte): Likewise.
28457         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
28458         knuth_morris_pratt_multibyte): Likewise.
28459         * lib/memmem.c (knuth_morris_pratt): Likewise.
28460         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
28461
28462 2007-12-25  Bruno Haible  <bruno@clisp.org>
28463
28464         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
28465         * lib/glob.c: Don't include openat.h.
28466         (link_exists2_p): Add back the code that deals with the
28467         !GLOB_ALTDIRFUNC case.
28468         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
28469         let it do the filename concatenation.
28470         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
28471         * modules/glob (Depends-on): Remove openat.
28472
28473 2007-12-31  Bruno Haible  <bruno@clisp.org>
28474
28475         * modules/dirfd (License): Change to LGPLv2+.
28476         Approved by Jim Meyering.
28477
28478 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
28479
28480         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
28481         when multiplying M by sizeof (size_t).
28482
28483 2007-12-10  Martin Lambers  <marlam@marlam.de>
28484
28485         Override getpagesize on mingw.
28486         * lib/getpagesize.c: New file.
28487         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
28488         * modules/getpagesize (Files): Add lib/getpagesize.c.
28489         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
28490         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28491         REPLACE_GETPAGESIZE.
28492         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
28493
28494 2007-12-25  Bruno Haible  <bruno@clisp.org>
28495
28496         * modules/localcharset (Notice): New field.
28497         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
28498         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
28499
28500 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
28501             Bruno Haible  <bruno@clisp.org>
28502
28503         Avoid using the syntax symbol() in formatted documentation.
28504         * MODULES.html.sh (func_module): When replacing symbol() with a
28505         hyperlink, remove the parentheses. Show an error if some remain.
28506         Recognize and render the '...' syntax.
28507         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
28508         Rework. Add paragraph about GCC's inlining.
28509         * doc/alloca.texi: Likewise.
28510         * doc/error.texi: Remove parentheses from symbol reference.
28511         * doc/gnulib-intro.texi: Likewise.
28512         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
28513         * modules/fnmatch (Description): Reword to say "the ... function".
28514         * modules/full-read (Description): Likewise.
28515         * modules/full-write (Description): Likewise.
28516         * modules/safe-read (Description): Likewise.
28517         * modules/safe-write (Description): Likewise.
28518         * modules/strchrnul (Description): Likewise.
28519         * modules/trim (Description): Likewise.
28520         * modules/error (Description): Remove parentheses from symbol
28521         references.
28522         * modules/verror (Description): Likewise.
28523         Reported by Karl Berry.
28524
28525 2007-12-25  Bruno Haible  <bruno@clisp.org>
28526
28527         Fixup after 2007-10-16 commit.
28528         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
28529
28530 2007-12-24  Bruno Haible  <bruno@clisp.org>
28531
28532         Make --enable-relocatable work with DESTDIR.
28533         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
28534         to compute installdir from destprog.
28535         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
28536         also set the RELOC_DESTDIR variable.
28537         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
28538
28539 2007-12-24  Bruno Haible  <bruno@clisp.org>
28540
28541         Fix link error due to xalloc_die().
28542         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
28543         of xreadlink.
28544         * lib/relocwrapper.c: Update comments.
28545         * build-aux/install-reloc: Remove xreadlink.c from file list.
28546         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
28547         xreadlink.c.
28548         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
28549
28550 2007-12-24  Bruno Haible  <bruno@clisp.org>
28551
28552         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
28553         * lib/setenv.h: Remove file.
28554         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
28555         lib/setenv.h.
28556         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
28557         (Depends-on): Add stdlib.
28558         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
28559         gl_FUNC_UNSETENV.
28560         (Include): Replace setenv.h with <stdlib.h>.
28561         * modules/unsetenv: New file.
28562         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
28563         * lib/unsetenv.c: Include <stdlib.h> first.
28564         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
28565         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
28566         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
28567         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
28568         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
28569         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
28570         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
28571         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
28572         * doc/functions/unsetenv.texi: Update.
28573         * modules/xsetenv (Depends-on): Add unsetenv.
28574         * modules/getdate (Depends-on): Likewise.
28575         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
28576         * lib/xsetenv.c: Don't include setenv.h.
28577         * lib/getdate.y: Likewise.
28578         * lib/relocwrapper.c: Likewise.
28579         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
28580         (Depends-on): Add stdlib.
28581         * NEWS: Mention the changes.
28582         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
28583
28584 2007-12-23  Bruno Haible  <bruno@clisp.org>
28585
28586         * lib/memmem.c (memmem): Use lowercase variable names. Tab
28587         indentation.
28588
28589 2007-12-23  Bruno Haible  <bruno@clisp.org>
28590
28591         * lib/c-strcasestr.c: Add more comments.
28592         * lib/c-strstr.c: Likewise.
28593         * lib/mbscasestr.c: Likewise.
28594         * lib/mbsstr.c: Likewise.
28595         * lib/strcasestr.c: Likewise.
28596         * lib/memmem.c: Likewise.
28597
28598 2007-12-23  Bruno Haible  <bruno@clisp.org>
28599
28600         * tests/test-memmem.c: Include <string.h> first.
28601
28602 2007-12-22  Bruno Haible  <bruno@clisp.org>
28603
28604         * gnulib-tool (func_create_testdir): Change $auxdir while generating
28605         the contents of $testsbase.
28606         Reported by Ralf Wildenhues.
28607
28608 2007-12-22  Bruno Haible  <bruno@clisp.org>
28609
28610         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
28611         two variables local_ldadd_before, local_ldadd_last.
28612
28613 2007-12-20  Eric Blake  <ebb9@byu.net>
28614
28615         Work around circular library issue when cross-compiling.
28616         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
28617         that progname.o does not need to pull in rpl_memcmp.
28618
28619 2007-12-19  Eric Blake  <ebb9@byu.net>
28620
28621         Fix memmem to avoid O(n^2) worst-case complexity.
28622         * lib/memmem.c (knuth_morris_pratt): New function.
28623         (memmem): Use it if first few naive iterations fail.
28624         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
28625         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
28626         * modules/memchr (License): Likewise.
28627         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
28628         malloca.
28629         * tests/test-memmem.c: Rewrite, borrowing ideas from
28630         test-mbsstr1.c; the old version wouldn't even compile!
28631         * modules/memmem-tests: New file.
28632         * lib/string.in.h (rpl_memmem): Add declaration.
28633         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
28634         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
28635         REPLACE_MEMMEM.
28636
28637 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
28638
28639         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
28640         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
28641         before any system include files, and undef after them all.  This
28642         should fix a problem on VMS reported by John E. Malmberg in
28643         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
28644
28645 2007-12-17  Eric Blake  <ebb9@byu.net>
28646
28647         Revert addition of verify, for BSD/OS.
28648         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
28649         can't handle large files, for the sake of obsolete platforms.
28650         * modules/fseeko (Depends-on): Remove verify.
28651         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
28652         * doc/functions/ftello.texi (ftello): Likewise.
28653         * doc/functions/fgetpos.texi (fgetpos): Likewise.
28654         Reported by Larry Jones.
28655
28656 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
28657
28658         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
28659         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
28660
28661 2007-12-17  Jim Meyering  <meyering@redhat.com>
28662
28663         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
28664         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
28665         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
28666         * modules/getcwd (Depends-on): Add openat.
28667         Reported by Petr Salinger.
28668
28669 2007-12-17  Bruno Haible  <bruno@clisp.org>
28670
28671         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
28672         avoid a segmentation fault of the configure test on x86_64 systems.
28673
28674 2007-12-15  Jim Meyering  <meyering@redhat.com>
28675
28676         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
28677
28678 2007-12-13  Eric Blake  <ebb9@byu.net>
28679
28680         Another fseek test.
28681         * tests/test-fseek.c (main): Also test ungetc handling.
28682         * tests/test-fseeko.c (main): Likewise.
28683         * modules/fseeko (Depends-on): Add verify.
28684         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
28685         large.
28686         Reported by Larry Jones.
28687
28688         Fix fseeko on mingw.
28689         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
28690         seek.
28691
28692         Beef up fseek tests.
28693         * tests/test-fseek.c (main): Also test eof handling.
28694         * tests/test-fseeko.c (main): Likewise.
28695         Reported by Larry Jones.
28696
28697 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
28698
28699         Fix fseeko on BSD-based platforms.
28700         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
28701         successful seek.
28702
28703 2007-12-12  Eric Blake  <ebb9@byu.net>
28704
28705         Allow circular dependency of separate libtests.a
28706         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
28707         when use_libtests.
28708
28709 2007-12-11  Eric Blake  <ebb9@byu.net>
28710
28711         Fix bug with -0.0L in previous patch.
28712         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
28713         * tests/test-isnan.c (main): Also test on zeroes.
28714         * tests/test-isnanf.c (main): Likewise.
28715         * tests/test-isnanl.h (main): Likewise.
28716
28717         Detect pseudo-denormals on x86 even when cross-compiling.
28718         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
28719         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
28720         invalid bit patterns that happen to satisfy ==.
28721
28722         Avoid link failures with separate libtests.a.
28723         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
28724         last, to satisfy circular dependencies.
28725
28726 2007-12-11  Eric Blake  <ebb9@byu.net>
28727         and Bruno Haible  <bruno@clisp.org>
28728
28729         Fix OpenBSD 4.0 <float.h> handling of long double.
28730         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
28731         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
28732         * doc/headers/float.texi (float.h): Document OpenBSD bug.
28733
28734 2007-12-11  Jim Meyering  <meyering@redhat.com>
28735
28736         * users.txt: Add libvirt.
28737
28738         Support versions of autoconf prior to 2.59c.
28739         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
28740         if it is not already defined.
28741
28742 2007-12-09  Bruno Haible  <bruno@clisp.org>
28743
28744         Let 'gnulib-tool --import' collect sources needed for the tests in
28745         tests/ rather than in lib/.
28746         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
28747         argument. If true, add rules to generate libtests.a, and put libtests.a
28748         into $(LDADD). Consider source files in subdirectories and set
28749         uses_subdirs.
28750         (func_emit_initmacro_start, func_emit_initmacro_end,
28751         func_emit_initmacro_done): Pass all arguments explicitly.
28752         (func_import): Determine two module lists main_modules,
28753         testsrelated_modules. Determine use_libtests. Determine two variables
28754         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
28755         instead of just sed_transform_lib_file. Determine two variables
28756         main_files and testsrelated_files. Compute 'files' as the union of
28757         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
28758         func_add_or_update. In the generated gnulib-comp.m4, collect the
28759         object files for tests/ in different variables than those for lib/.
28760         Substitute LIBTESTS_LIBDEPS.
28761         (func_create_testdir): Combine the uses_subdirs results from
28762         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
28763
28764 2007-12-09  Bruno Haible  <bruno@clisp.org>
28765
28766         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
28767         the build-aux directory.
28768
28769 2007-12-09  Bruno Haible  <bruno@clisp.org>
28770
28771         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
28772         introduced on 2006-09-09.
28773
28774 2007-12-07  Jim Meyering  <meyering@redhat.com>
28775
28776         Let these macros work also with autoconf-2.59.
28777         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
28778         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
28779         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
28780
28781 2007-12-06  Jim Meyering  <meyering@redhat.com>
28782
28783         Avoid a configure-time syntax error in gl_FUNC_ACL.
28784         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
28785         function in each branch, before testing the cache variable.
28786
28787 2007-12-04  Eric Blake  <ebb9@byu.net>
28788
28789         Make scripts executable.
28790         * build-aux/config.guess: Add execute permissions.
28791         * build-aux/config.sub: Likewise.
28792         * build-aux/gendocs.sh: Likewise.
28793
28794         Fix frexp on mingw.
28795         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
28796         cross-compiling.
28797         * doc/functions/frexp.texi (frexp): Document the bug.
28798
28799         Make cygwin fseeko check more reliable.
28800         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
28801         version numbers, rather than unrelated feature check.
28802         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
28803         * doc/functions/ftello.texi (ftello): Likewise.
28804         Reported by Bruno Haible.
28805
28806         * m4/strerror.m4: Bump version number.
28807
28808 2007-12-03  Bruno Haible  <bruno@clisp.org>
28809
28810         * doc/functions/mprotect.texi: Mention the mingw problem.
28811
28812 2007-12-03  Eric Blake  <ebb9@byu.net>
28813
28814         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
28815         REPLACE_STRERROR is initialized before this macro.
28816
28817 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
28818
28819         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
28820         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
28821         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
28822         put -lsec in even for programs other than 'ls'.  This fixes a problem
28823         for gettext reported by Bruno Haible in
28824         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
28825         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
28826         Add support for Solaris 10.  This isn't efficient, but should get the
28827         job done for now.
28828
28829 2007-12-03  James Youngman  <jay@gnu.org>
28830
28831         * doc/regexprops-generic.texi: change "an close-group" to "a
28832         close-group" and "illegal" to "not allowed".
28833
28834 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28835
28836         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
28837         pr_byname.h. Needed for the rare case when the maintainer has done
28838         "make maintainer-clean" in the source directory and then attempts a
28839         build outside the source directory.
28840         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
28841         scripts_byname.h.
28842
28843 2007-12-02  Martin Lambers <marlam@marlam.de>
28844             Bruno Haible  <bruno@clisp.org>
28845
28846         * lib/getpagesize.h: Remove file.
28847         * lib/unistd.in.h: Include declaration of getpagesize here.
28848         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
28849         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
28850         HAVE_SYS_PARAM_H.
28851         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
28852         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
28853         * modules/getpagesize (Files): Remove lib/getpagesize.h.
28854         (Depends-on): Add unistd.
28855         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
28856         (Include): Use <unistd.h> instead of getpagesize.h.
28857         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
28858         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
28859         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
28860         gl_GETPAGESIZE invocation, already handled by module dependency.
28861         * lib/pagealign_alloc.c: Don't include getpagesize.h.
28862
28863 2007-12-02  Bruno Haible  <bruno@clisp.org>
28864
28865         * modules/strings-tests: New file.
28866         * tests/test-strings.c: New file.
28867
28868         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
28869         * lib/strings.in.h: New file.
28870         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
28871         * m4/strings_h.m4: New file.
28872         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
28873         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
28874         * modules/strings: New file.
28875         * modules/string (Makefile.am): Update.
28876         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
28877         Reported by Karl Berry.
28878
28879 2007-12-01  Eric Blake  <ebb9@byu.net>
28880
28881         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
28882         accomodate fix in cygwin 1.5.25.
28883
28884 2007-12-01  Jim Meyering  <meyering@redhat.com>
28885
28886         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
28887         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
28888         that would inhibit utf8-optimization of a regexp containing line-
28889         or buffer-anchors, e.g., `^', `$'.
28890
28891 2007-11-30  Bruno Haible  <bruno@clisp.org>
28892
28893         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
28894         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
28895         glthread_recursive_lock_init.
28896         * lib/lock.c (glthread_recursive_lock_init)
28897         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
28898         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
28899
28900 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
28901
28902         New function qset_acl, like set_acl but with syscall semantics.
28903         * lib/acl.h (qset_acl): New decl.
28904         * lib/acl.c (qset_acl): New function.
28905         (set_acl): Use new function.  Use more-consistent diagnostics.
28906
28907 2007-11-28  Jim Meyering  <meyering@redhat.com>
28908
28909         * modules/physmem (License): Change from GPL to LGPLv2+.
28910
28911 2007-11-26  Bruno Haible  <bruno@clisp.org>
28912
28913         * lib/vasnprintf.c (decode_long_double): Don't abort if the
28914         'long double' type has excess precision.
28915         Reported by Jim Meyering in
28916         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
28917
28918 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28919
28920         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
28921         Sync from <http://gnu.org/licenses>.
28922         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
28923         with license text from same location.
28924         * doc/maintain.texi, doc/standards.texi:  Sync from
28925         <http://savannah.gnu.org/projects/gnustandards>.
28926
28927 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
28928         and Jim Meyering  <meyering@redhat.com>
28929
28930         Adjust getdate' grammar to accept a slightly more regular language.
28931         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
28932         Before, the former was rejected.
28933         * lib/getdate.y (digits_to_date_time): New function, factored
28934         out of ...
28935         (number): ...here.  Just call digits_to_date_time.
28936         (hybrid): New non-terminal to handle an <unsigned number,
28937         signed relative offset> sequence consistently.
28938
28939 2007-11-18  Jim Meyering  <meyering@redhat.com>
28940
28941         Pull my changes from coreutils:
28942         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
28943         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
28944         use of $gnulib_tool_option_extras, so that it's separated from the
28945         preceding argument.
28946
28947         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
28948         * build-aux/bootstrap (cp_mark_as_generated): Create any required
28949         parent destination directories before copying a file into place.
28950
28951 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
28952
28953         bootstrap: work also with 4-argument variant of AC_INIT
28954         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
28955
28956 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
28957
28958         Port test-getaddrinfo to Solaris.
28959         Problem reported by Bruno Haible in
28960         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
28961         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
28962         explanation of setting 'hints'.
28963         Don't reject an implementation merely because it returns EAI_SERVICE.
28964         (EAI_SERVICE): Define to 0 if not defined.
28965
28966 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
28967
28968         The license of gnu-make and posix-shell is now "GPLed build tool".
28969         * modules/gnu-make (License): Likewise.
28970         * modules/posix-shell (License): Likewise.
28971
28972         New module posix-shell, for determining a POSIX shell
28973         or perhaps something that is close enough to a POSIX shell.
28974         * m4/posix-shell.m4: New file.
28975         * modules/posix-shell: New file.
28976
28977         * MODULES.html.sh: Mention new module.
28978
28979         New module gnu-make, for determining whether we're using GNU Make.
28980         * m4/gnu-make.m4: New file.
28981         * modules/gnu-make: New file.
28982         * MODULES.html.sh: Mention new module.
28983
28984 2007-11-14  Jim Meyering  <meyering@redhat.com>
28985
28986         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
28987         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
28988         use this macro to create a function _definition_.
28989         Remove useless "#undef ARGMATCH_DIE".
28990
28991 2007-11-14  Bruno Haible  <bruno@clisp.org>
28992
28993         * lib/config.charset: Update for OpenBSD 4.1.
28994         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
28995
28996 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
28997
28998         Document 64-bit #if problems in stdint.texi.
28999         * doc/headers/stdint.texi (stdint.h): Mention problems with
29000         64-bit-#if, and how to work around them.
29001
29002         Don't insist on 'long long int' support in the preprocessor.  It
29003         breaks too many things.  For example, PRIdMAX still uses a 'long
29004         long int' format with the latest Sun compiler, even though
29005         HAVE_LONG_LONG_INT isn't defined due to that compiler's
29006         preprocessor problem.  This causes the latest coreutils to dump
29007         core on Solaris 10 sparc with the Sun C compiler.
29008         Instead, fix the 2007-10-16 problem in a different way, by evaluating
29009         the troublesome expressions at configure-time, not at #if-time.
29010         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
29011         preprocessor.
29012         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
29013         compile-time C checks, done at 'configure'-time.
29014         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
29015         * modules/inttypes (Makefile): Substitute the new symbols that
29016         gl_INTTYPES_H now generates.
29017         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
29018
29019 2007-11-12  Bruno Haible  <bruno@clisp.org>
29020
29021         Tests for Unicode character classification functions.
29022
29023         * modules/unictype/bidicategory-byname-tests: New file.
29024         * modules/unictype/bidicategory-name-tests: New file.
29025         * modules/unictype/bidicategory-of-tests: New file.
29026         * modules/unictype/bidicategory-test-tests: New file.
29027         * modules/unictype/block-list-tests: New file.
29028         * modules/unictype/block-of-tests: New file.
29029         * modules/unictype/block-test-tests: New file.
29030         * modules/unictype/category-C-tests: New file.
29031         * modules/unictype/category-Cc-tests: New file.
29032         * modules/unictype/category-Cf-tests: New file.
29033         * modules/unictype/category-Cn-tests: New file.
29034         * modules/unictype/category-Co-tests: New file.
29035         * modules/unictype/category-Cs-tests: New file.
29036         * modules/unictype/category-L-tests: New file.
29037         * modules/unictype/category-Ll-tests: New file.
29038         * modules/unictype/category-Lm-tests: New file.
29039         * modules/unictype/category-Lo-tests: New file.
29040         * modules/unictype/category-Lt-tests: New file.
29041         * modules/unictype/category-Lu-tests: New file.
29042         * modules/unictype/category-M-tests: New file.
29043         * modules/unictype/category-Mc-tests: New file.
29044         * modules/unictype/category-Me-tests: New file.
29045         * modules/unictype/category-Mn-tests: New file.
29046         * modules/unictype/category-N-tests: New file.
29047         * modules/unictype/category-Nd-tests: New file.
29048         * modules/unictype/category-Nl-tests: New file.
29049         * modules/unictype/category-No-tests: New file.
29050         * modules/unictype/category-P-tests: New file.
29051         * modules/unictype/category-Pc-tests: New file.
29052         * modules/unictype/category-Pd-tests: New file.
29053         * modules/unictype/category-Pe-tests: New file.
29054         * modules/unictype/category-Pf-tests: New file.
29055         * modules/unictype/category-Pi-tests: New file.
29056         * modules/unictype/category-Po-tests: New file.
29057         * modules/unictype/category-Ps-tests: New file.
29058         * modules/unictype/category-S-tests: New file.
29059         * modules/unictype/category-Sc-tests: New file.
29060         * modules/unictype/category-Sk-tests: New file.
29061         * modules/unictype/category-Sm-tests: New file.
29062         * modules/unictype/category-So-tests: New file.
29063         * modules/unictype/category-Z-tests: New file.
29064         * modules/unictype/category-Zl-tests: New file.
29065         * modules/unictype/category-Zp-tests: New file.
29066         * modules/unictype/category-Zs-tests: New file.
29067         * modules/unictype/category-and-not-tests: New file.
29068         * modules/unictype/category-and-tests: New file.
29069         * modules/unictype/category-byname-tests: New file.
29070         * modules/unictype/category-name-tests: New file.
29071         * modules/unictype/category-none-tests: New file.
29072         * modules/unictype/category-of-tests: New file.
29073         * modules/unictype/category-or-tests: New file.
29074         * modules/unictype/category-test-withtable-tests: New file.
29075         * modules/unictype/combining-class-tests: New file.
29076         * modules/unictype/ctype-alnum-tests: New file.
29077         * modules/unictype/ctype-alpha-tests: New file.
29078         * modules/unictype/ctype-blank-tests: New file.
29079         * modules/unictype/ctype-cntrl-tests: New file.
29080         * modules/unictype/ctype-digit-tests: New file.
29081         * modules/unictype/ctype-graph-tests: New file.
29082         * modules/unictype/ctype-lower-tests: New file.
29083         * modules/unictype/ctype-print-tests: New file.
29084         * modules/unictype/ctype-punct-tests: New file.
29085         * modules/unictype/ctype-space-tests: New file.
29086         * modules/unictype/ctype-upper-tests: New file.
29087         * modules/unictype/ctype-xdigit-tests: New file.
29088         * modules/unictype/decimal-digit-tests: New file.
29089         * modules/unictype/digit-tests: New file.
29090         * modules/unictype/mirror-tests: New file.
29091         * modules/unictype/numeric-tests: New file.
29092         * modules/unictype/property-alphabetic-tests: New file.
29093         * modules/unictype/property-ascii-hex-digit-tests: New file.
29094         * modules/unictype/property-bidi-arabic-digit-tests: New file.
29095         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
29096         * modules/unictype/property-bidi-block-separator-tests: New file.
29097         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
29098         * modules/unictype/property-bidi-common-separator-tests: New file.
29099         * modules/unictype/property-bidi-control-tests: New file.
29100         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
29101         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
29102         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
29103         * modules/unictype/property-bidi-european-digit-tests: New file.
29104         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
29105         * modules/unictype/property-bidi-left-to-right-tests: New file.
29106         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
29107         * modules/unictype/property-bidi-other-neutral-tests: New file.
29108         * modules/unictype/property-bidi-pdf-tests: New file.
29109         * modules/unictype/property-bidi-segment-separator-tests: New file.
29110         * modules/unictype/property-bidi-whitespace-tests: New file.
29111         * modules/unictype/property-byname-tests: New file.
29112         * modules/unictype/property-combining-tests: New file.
29113         * modules/unictype/property-composite-tests: New file.
29114         * modules/unictype/property-currency-symbol-tests: New file.
29115         * modules/unictype/property-dash-tests: New file.
29116         * modules/unictype/property-decimal-digit-tests: New file.
29117         * modules/unictype/property-default-ignorable-code-point-tests: New file.
29118         * modules/unictype/property-deprecated-tests: New file.
29119         * modules/unictype/property-diacritic-tests: New file.
29120         * modules/unictype/property-extender-tests: New file.
29121         * modules/unictype/property-format-control-tests: New file.
29122         * modules/unictype/property-grapheme-base-tests: New file.
29123         * modules/unictype/property-grapheme-extend-tests: New file.
29124         * modules/unictype/property-grapheme-link-tests: New file.
29125         * modules/unictype/property-hex-digit-tests: New file.
29126         * modules/unictype/property-hyphen-tests: New file.
29127         * modules/unictype/property-id-continue-tests: New file.
29128         * modules/unictype/property-id-start-tests: New file.
29129         * modules/unictype/property-ideographic-tests: New file.
29130         * modules/unictype/property-ids-binary-operator-tests: New file.
29131         * modules/unictype/property-ids-trinary-operator-tests: New file.
29132         * modules/unictype/property-ignorable-control-tests: New file.
29133         * modules/unictype/property-iso-control-tests: New file.
29134         * modules/unictype/property-join-control-tests: New file.
29135         * modules/unictype/property-left-of-pair-tests: New file.
29136         * modules/unictype/property-line-separator-tests: New file.
29137         * modules/unictype/property-logical-order-exception-tests: New file.
29138         * modules/unictype/property-lowercase-tests: New file.
29139         * modules/unictype/property-math-tests: New file.
29140         * modules/unictype/property-non-break-tests: New file.
29141         * modules/unictype/property-not-a-character-tests: New file.
29142         * modules/unictype/property-numeric-tests: New file.
29143         * modules/unictype/property-other-alphabetic-tests: New file.
29144         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
29145         * modules/unictype/property-other-grapheme-extend-tests: New file.
29146         * modules/unictype/property-other-id-continue-tests: New file.
29147         * modules/unictype/property-other-id-start-tests: New file.
29148         * modules/unictype/property-other-lowercase-tests: New file.
29149         * modules/unictype/property-other-math-tests: New file.
29150         * modules/unictype/property-other-uppercase-tests: New file.
29151         * modules/unictype/property-paired-punctuation-tests: New file.
29152         * modules/unictype/property-paragraph-separator-tests: New file.
29153         * modules/unictype/property-pattern-syntax-tests: New file.
29154         * modules/unictype/property-pattern-white-space-tests: New file.
29155         * modules/unictype/property-private-use-tests: New file.
29156         * modules/unictype/property-punctuation-tests: New file.
29157         * modules/unictype/property-quotation-mark-tests: New file.
29158         * modules/unictype/property-radical-tests: New file.
29159         * modules/unictype/property-sentence-terminal-tests: New file.
29160         * modules/unictype/property-soft-dotted-tests: New file.
29161         * modules/unictype/property-space-tests: New file.
29162         * modules/unictype/property-terminal-punctuation-tests: New file.
29163         * modules/unictype/property-test-tests: New file.
29164         * modules/unictype/property-titlecase-tests: New file.
29165         * modules/unictype/property-unassigned-code-value-tests: New file.
29166         * modules/unictype/property-unified-ideograph-tests: New file.
29167         * modules/unictype/property-uppercase-tests: New file.
29168         * modules/unictype/property-variation-selector-tests: New file.
29169         * modules/unictype/property-white-space-tests: New file.
29170         * modules/unictype/property-xid-continue-tests: New file.
29171         * modules/unictype/property-xid-start-tests: New file.
29172         * modules/unictype/property-zero-width-tests: New file.
29173         * modules/unictype/scripts-tests: New file.
29174         * modules/unictype/syntax-c-ident-tests: New file.
29175         * modules/unictype/syntax-c-whitespace-tests: New file.
29176         * modules/unictype/syntax-java-ident-tests: New file.
29177         * modules/unictype/syntax-java-whitespace-tests: New file.
29178         * tests/unictype/test-bidi_byname.c: New file.
29179         * tests/unictype/test-bidi_name.c: New file.
29180         * tests/unictype/test-bidi_of.c: New file.
29181         * tests/unictype/test-bidi_test.c: New file.
29182         * tests/unictype/test-block_list.c: New file.
29183         * tests/unictype/test-block_of.c: New file.
29184         * tests/unictype/test-block_test.c: New file.
29185         * tests/unictype/test-categ_and.c: New file.
29186         * tests/unictype/test-categ_and_not.c: New file.
29187         * tests/unictype/test-categ_byname.c: New file.
29188         * tests/unictype/test-categ_name.c: New file.
29189         * tests/unictype/test-categ_none.c: New file.
29190         * tests/unictype/test-categ_of.c: New file.
29191         * tests/unictype/test-categ_or.c: New file.
29192         * tests/unictype/test-categ_test_withtable.c: New file.
29193         * tests/unictype/test-combining.c: New file.
29194         * tests/unictype/test-decdigit.c: New file.
29195         * tests/unictype/test-digit.c: New file.
29196         * tests/unictype/test-mirror.c: New file.
29197         * tests/unictype/test-numeric.c: New file.
29198         * tests/unictype/test-pr_byname.c: New file.
29199         * tests/unictype/test-pr_test.c: New file.
29200         * tests/unictype/test-predicate-part1.h: New file.
29201         * tests/unictype/test-predicate-part2.h: New file.
29202         * tests/unictype/test-scripts.c: New file.
29203         * tests/unictype/test-sy_c_ident.c: New file.
29204         * tests/unictype/test-sy_java_ident.c: New file.
29205
29206         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
29207         for Unicode 5.0.0.
29208         * tests/unictype/test-categ_Cc.c: Likewise.
29209         * tests/unictype/test-categ_Cf.c: Likewise.
29210         * tests/unictype/test-categ_Cn.c: Likewise.
29211         * tests/unictype/test-categ_Co.c: Likewise.
29212         * tests/unictype/test-categ_Cs.c: Likewise.
29213         * tests/unictype/test-categ_L.c: Likewise.
29214         * tests/unictype/test-categ_Ll.c: Likewise.
29215         * tests/unictype/test-categ_Lm.c: Likewise.
29216         * tests/unictype/test-categ_Lo.c: Likewise.
29217         * tests/unictype/test-categ_Lt.c: Likewise.
29218         * tests/unictype/test-categ_Lu.c: Likewise.
29219         * tests/unictype/test-categ_M.c: Likewise.
29220         * tests/unictype/test-categ_Mc.c: Likewise.
29221         * tests/unictype/test-categ_Me.c: Likewise.
29222         * tests/unictype/test-categ_Mn.c: Likewise.
29223         * tests/unictype/test-categ_N.c: Likewise.
29224         * tests/unictype/test-categ_Nd.c: Likewise.
29225         * tests/unictype/test-categ_Nl.c: Likewise.
29226         * tests/unictype/test-categ_No.c: Likewise.
29227         * tests/unictype/test-categ_P.c: Likewise.
29228         * tests/unictype/test-categ_Pc.c: Likewise.
29229         * tests/unictype/test-categ_Pd.c: Likewise.
29230         * tests/unictype/test-categ_Pe.c: Likewise.
29231         * tests/unictype/test-categ_Pf.c: Likewise.
29232         * tests/unictype/test-categ_Pi.c: Likewise.
29233         * tests/unictype/test-categ_Po.c: Likewise.
29234         * tests/unictype/test-categ_Ps.c: Likewise.
29235         * tests/unictype/test-categ_S.c: Likewise.
29236         * tests/unictype/test-categ_Sc.c: Likewise.
29237         * tests/unictype/test-categ_Sk.c: Likewise.
29238         * tests/unictype/test-categ_Sm.c: Likewise.
29239         * tests/unictype/test-categ_So.c: Likewise.
29240         * tests/unictype/test-categ_Z.c: Likewise.
29241         * tests/unictype/test-categ_Zl.c: Likewise.
29242         * tests/unictype/test-categ_Zp.c: Likewise.
29243         * tests/unictype/test-categ_Zs.c: Likewise.
29244         * tests/unictype/test-ctype_alnum.c: Likewise.
29245         * tests/unictype/test-ctype_alpha.c: Likewise.
29246         * tests/unictype/test-ctype_blank.c: Likewise.
29247         * tests/unictype/test-ctype_cntrl.c: Likewise.
29248         * tests/unictype/test-ctype_digit.c: Likewise.
29249         * tests/unictype/test-ctype_graph.c: Likewise.
29250         * tests/unictype/test-ctype_lower.c: Likewise.
29251         * tests/unictype/test-ctype_print.c: Likewise.
29252         * tests/unictype/test-ctype_punct.c: Likewise.
29253         * tests/unictype/test-ctype_space.c: Likewise.
29254         * tests/unictype/test-ctype_upper.c: Likewise.
29255         * tests/unictype/test-ctype_xdigit.c: Likewise.
29256         * tests/unictype/test-decdigit.h: Likewise.
29257         * tests/unictype/test-digit.h: Likewise.
29258         * tests/unictype/test-numeric.h: Likewise.
29259         * tests/unictype/test-pr_alphabetic.c: Likewise.
29260         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
29261         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
29262         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
29263         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
29264         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
29265         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
29266         * tests/unictype/test-pr_bidi_control.c: Likewise.
29267         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
29268         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
29269         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
29270         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
29271         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
29272         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
29273         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
29274         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
29275         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
29276         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
29277         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
29278         * tests/unictype/test-pr_combining.c: Likewise.
29279         * tests/unictype/test-pr_composite.c: Likewise.
29280         * tests/unictype/test-pr_currency_symbol.c: Likewise.
29281         * tests/unictype/test-pr_dash.c: Likewise.
29282         * tests/unictype/test-pr_decimal_digit.c: Likewise.
29283         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
29284         * tests/unictype/test-pr_deprecated.c: Likewise.
29285         * tests/unictype/test-pr_diacritic.c: Likewise.
29286         * tests/unictype/test-pr_extender.c: Likewise.
29287         * tests/unictype/test-pr_format_control.c: Likewise.
29288         * tests/unictype/test-pr_grapheme_base.c: Likewise.
29289         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
29290         * tests/unictype/test-pr_grapheme_link.c: Likewise.
29291         * tests/unictype/test-pr_hex_digit.c: Likewise.
29292         * tests/unictype/test-pr_hyphen.c: Likewise.
29293         * tests/unictype/test-pr_id_continue.c: Likewise.
29294         * tests/unictype/test-pr_id_start.c: Likewise.
29295         * tests/unictype/test-pr_ideographic.c: Likewise.
29296         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
29297         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
29298         * tests/unictype/test-pr_ignorable_control.c: Likewise.
29299         * tests/unictype/test-pr_iso_control.c: Likewise.
29300         * tests/unictype/test-pr_join_control.c: Likewise.
29301         * tests/unictype/test-pr_left_of_pair.c: Likewise.
29302         * tests/unictype/test-pr_line_separator.c: Likewise.
29303         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
29304         * tests/unictype/test-pr_lowercase.c: Likewise.
29305         * tests/unictype/test-pr_math.c: Likewise.
29306         * tests/unictype/test-pr_non_break.c: Likewise.
29307         * tests/unictype/test-pr_not_a_character.c: Likewise.
29308         * tests/unictype/test-pr_numeric.c: Likewise.
29309         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
29310         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
29311         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
29312         * tests/unictype/test-pr_other_id_continue.c: Likewise.
29313         * tests/unictype/test-pr_other_id_start.c: Likewise.
29314         * tests/unictype/test-pr_other_lowercase.c: Likewise.
29315         * tests/unictype/test-pr_other_math.c: Likewise.
29316         * tests/unictype/test-pr_other_uppercase.c: Likewise.
29317         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
29318         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
29319         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
29320         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
29321         * tests/unictype/test-pr_private_use.c: Likewise.
29322         * tests/unictype/test-pr_punctuation.c: Likewise.
29323         * tests/unictype/test-pr_quotation_mark.c: Likewise.
29324         * tests/unictype/test-pr_radical.c: Likewise.
29325         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
29326         * tests/unictype/test-pr_soft_dotted.c: Likewise.
29327         * tests/unictype/test-pr_space.c: Likewise.
29328         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
29329         * tests/unictype/test-pr_titlecase.c: Likewise.
29330         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
29331         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
29332         * tests/unictype/test-pr_uppercase.c: Likewise.
29333         * tests/unictype/test-pr_variation_selector.c: Likewise.
29334         * tests/unictype/test-pr_white_space.c: Likewise.
29335         * tests/unictype/test-pr_xid_continue.c: Likewise.
29336         * tests/unictype/test-pr_xid_start.c: Likewise.
29337         * tests/unictype/test-pr_zero_width.c: Likewise.
29338         * tests/unictype/test-sy_c_whitespace.c: Likewise.
29339         * tests/unictype/test-sy_java_whitespace.c: Likewise.
29340
29341 2007-11-12  Bruno Haible  <bruno@clisp.org>
29342
29343         Unicode character classification functions.
29344         * lib/unictype.h: New file.
29345         * modules/unictype/base: New file.
29346         * modules/unictype/category-L: New file.
29347         * modules/unictype/category-Lu: New file.
29348         * modules/unictype/category-Ll: New file.
29349         * modules/unictype/category-Lt: New file.
29350         * modules/unictype/category-Lm: New file.
29351         * modules/unictype/category-Lo: New file.
29352         * modules/unictype/category-M: New file.
29353         * modules/unictype/category-Mn: New file.
29354         * modules/unictype/category-Mc: New file.
29355         * modules/unictype/category-Me: New file.
29356         * modules/unictype/category-N: New file.
29357         * modules/unictype/category-Nd: New file.
29358         * modules/unictype/category-Nl: New file.
29359         * modules/unictype/category-No: New file.
29360         * modules/unictype/category-P: New file.
29361         * modules/unictype/category-Pc: New file.
29362         * modules/unictype/category-Pd: New file.
29363         * modules/unictype/category-Ps: New file.
29364         * modules/unictype/category-Pe: New file.
29365         * modules/unictype/category-Pi: New file.
29366         * modules/unictype/category-Pf: New file.
29367         * modules/unictype/category-Po: New file.
29368         * modules/unictype/category-S: New file.
29369         * modules/unictype/category-Sm: New file.
29370         * modules/unictype/category-Sc: New file.
29371         * modules/unictype/category-Sk: New file.
29372         * modules/unictype/category-So: New file.
29373         * modules/unictype/category-Z: New file.
29374         * modules/unictype/category-Zs: New file.
29375         * modules/unictype/category-Zl: New file.
29376         * modules/unictype/category-Zp: New file.
29377         * modules/unictype/category-C: New file.
29378         * modules/unictype/category-Cc: New file.
29379         * modules/unictype/category-Cf: New file.
29380         * modules/unictype/category-Cs: New file.
29381         * modules/unictype/category-Co: New file.
29382         * modules/unictype/category-Cn: New file.
29383         * modules/unictype/category-or: New file.
29384         * modules/unictype/category-of: New file.
29385         * modules/unictype/category-test: New file.
29386         * modules/unictype/category-test-withtable: New file.
29387         * modules/unictype/category-byname: New file.
29388         * modules/unictype/category-none: New file.
29389         * modules/unictype/category-and: New file.
29390         * modules/unictype/category-and-not: New file.
29391         * modules/unictype/category-name: New file.
29392         * modules/unictype/combining-class: New file.
29393         * modules/unictype/category-all: New file.
29394         * modules/unictype/bidicategory-all: New file.
29395         * modules/unictype/bidicategory-byname: New file.
29396         * modules/unictype/bidicategory-name: New file.
29397         * modules/unictype/bidicategory-of: New file.
29398         * modules/unictype/bidicategory-test: New file.
29399         * modules/unictype/decimal-digit: New file.
29400         * modules/unictype/digit: New file.
29401         * modules/unictype/numeric: New file.
29402         * modules/unictype/mirror: New file.
29403         * modules/unictype/property-white-space: New file.
29404         * modules/unictype/property-alphabetic: New file.
29405         * modules/unictype/property-other-alphabetic: New file.
29406         * modules/unictype/property-not-a-character: New file.
29407         * modules/unictype/property-default-ignorable-code-point: New file.
29408         * modules/unictype/property-other-default-ignorable-code-point: New
29409         file.
29410         * modules/unictype/property-deprecated: New file.
29411         * modules/unictype/property-logical-order-exception: New file.
29412         * modules/unictype/property-variation-selector: New file.
29413         * modules/unictype/property-private-use: New file.
29414         * modules/unictype/property-unassigned-code-value: New file.
29415         * modules/unictype/property-uppercase: New file.
29416         * modules/unictype/property-other-uppercase: New file.
29417         * modules/unictype/property-lowercase: New file.
29418         * modules/unictype/property-other-lowercase: New file.
29419         * modules/unictype/property-titlecase: New file.
29420         * modules/unictype/property-soft-dotted: New file.
29421         * modules/unictype/property-id-start: New file.
29422         * modules/unictype/property-other-id-start: New file.
29423         * modules/unictype/property-id-continue: New file.
29424         * modules/unictype/property-other-id-continue: New file.
29425         * modules/unictype/property-xid-start: New file.
29426         * modules/unictype/property-xid-continue: New file.
29427         * modules/unictype/property-pattern-white-space: New file.
29428         * modules/unictype/property-pattern-syntax: New file.
29429         * modules/unictype/property-join-control: New file.
29430         * modules/unictype/property-grapheme-base: New file.
29431         * modules/unictype/property-grapheme-extend: New file.
29432         * modules/unictype/property-other-grapheme-extend: New file.
29433         * modules/unictype/property-grapheme-link: New file.
29434         * modules/unictype/property-bidi-control: New file.
29435         * modules/unictype/property-bidi-left-to-right: New file.
29436         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
29437         * modules/unictype/property-bidi-arabic-right-to-left: New file.
29438         * modules/unictype/property-bidi-european-digit: New file.
29439         * modules/unictype/property-bidi-eur-num-separator: New file.
29440         * modules/unictype/property-bidi-eur-num-terminator: New file.
29441         * modules/unictype/property-bidi-arabic-digit: New file.
29442         * modules/unictype/property-bidi-common-separator: New file.
29443         * modules/unictype/property-bidi-block-separator: New file.
29444         * modules/unictype/property-bidi-segment-separator: New file.
29445         * modules/unictype/property-bidi-whitespace: New file.
29446         * modules/unictype/property-bidi-non-spacing-mark: New file.
29447         * modules/unictype/property-bidi-boundary-neutral: New file.
29448         * modules/unictype/property-bidi-pdf: New file.
29449         * modules/unictype/property-bidi-embedding-or-override: New file.
29450         * modules/unictype/property-bidi-other-neutral: New file.
29451         * modules/unictype/property-hex-digit: New file.
29452         * modules/unictype/property-ascii-hex-digit: New file.
29453         * modules/unictype/property-ideographic: New file.
29454         * modules/unictype/property-unified-ideograph: New file.
29455         * modules/unictype/property-radical: New file.
29456         * modules/unictype/property-ids-binary-operator: New file.
29457         * modules/unictype/property-ids-trinary-operator: New file.
29458         * modules/unictype/property-zero-width: New file.
29459         * modules/unictype/property-space: New file.
29460         * modules/unictype/property-non-break: New file.
29461         * modules/unictype/property-iso-control: New file.
29462         * modules/unictype/property-format-control: New file.
29463         * modules/unictype/property-dash: New file.
29464         * modules/unictype/property-hyphen: New file.
29465         * modules/unictype/property-punctuation: New file.
29466         * modules/unictype/property-line-separator: New file.
29467         * modules/unictype/property-paragraph-separator: New file.
29468         * modules/unictype/property-quotation-mark: New file.
29469         * modules/unictype/property-sentence-terminal: New file.
29470         * modules/unictype/property-terminal-punctuation: New file.
29471         * modules/unictype/property-currency-symbol: New file.
29472         * modules/unictype/property-math: New file.
29473         * modules/unictype/property-other-math: New file.
29474         * modules/unictype/property-paired-punctuation: New file.
29475         * modules/unictype/property-left-of-pair: New file.
29476         * modules/unictype/property-combining: New file.
29477         * modules/unictype/property-composite: New file.
29478         * modules/unictype/property-decimal-digit: New file.
29479         * modules/unictype/property-numeric: New file.
29480         * modules/unictype/property-diacritic: New file.
29481         * modules/unictype/property-extender: New file.
29482         * modules/unictype/property-ignorable-control: New file.
29483         * modules/unictype/property-test: New file.
29484         * modules/unictype/property-byname: New file.
29485         * modules/unictype/property-all: New file.
29486         * modules/unictype/scripts: New file.
29487         * modules/unictype/scripts-all: New file.
29488         * modules/unictype/block-of: New file.
29489         * modules/unictype/block-test: New file.
29490         * modules/unictype/block-list: New file.
29491         * modules/unictype/block-all: New file.
29492         * modules/unictype/syntax-c-whitespace: New file.
29493         * modules/unictype/syntax-java-whitespace: New file.
29494         * modules/unictype/syntax-c-ident: New file.
29495         * modules/unictype/syntax-java-ident: New file.
29496         * modules/unictype/ctype-alnum: New file.
29497         * modules/unictype/ctype-alpha: New file.
29498         * modules/unictype/ctype-cntrl: New file.
29499         * modules/unictype/ctype-digit: New file.
29500         * modules/unictype/ctype-graph: New file.
29501         * modules/unictype/ctype-lower: New file.
29502         * modules/unictype/ctype-print: New file.
29503         * modules/unictype/ctype-punct: New file.
29504         * modules/unictype/ctype-space: New file.
29505         * modules/unictype/ctype-upper: New file.
29506         * modules/unictype/ctype-xdigit: New file.
29507         * modules/unictype/ctype-blank: New file.
29508         * lib/unictype/bidi_byname.c: New file.
29509         * lib/unictype/bidi_name.c: New file.
29510         * lib/unictype/bidi_of.c: New file.
29511         * lib/unictype/bidi_test.c: New file.
29512         * lib/unictype/bitmap.h: New file.
29513         * lib/unictype/block_test.c: New file.
29514         * lib/unictype/blocks.c: New file.
29515         * lib/unictype/categ_C.c: New file.
29516         * lib/unictype/categ_Cc.c: New file.
29517         * lib/unictype/categ_Cf.c: New file.
29518         * lib/unictype/categ_Cn.c: New file.
29519         * lib/unictype/categ_Co.c: New file.
29520         * lib/unictype/categ_Cs.c: New file.
29521         * lib/unictype/categ_L.c: New file.
29522         * lib/unictype/categ_Ll.c: New file.
29523         * lib/unictype/categ_Lm.c: New file.
29524         * lib/unictype/categ_Lo.c: New file.
29525         * lib/unictype/categ_Lt.c: New file.
29526         * lib/unictype/categ_Lu.c: New file.
29527         * lib/unictype/categ_M.c: New file.
29528         * lib/unictype/categ_Mc.c: New file.
29529         * lib/unictype/categ_Me.c: New file.
29530         * lib/unictype/categ_Mn.c: New file.
29531         * lib/unictype/categ_N.c: New file.
29532         * lib/unictype/categ_Nd.c: New file.
29533         * lib/unictype/categ_Nl.c: New file.
29534         * lib/unictype/categ_No.c: New file.
29535         * lib/unictype/categ_P.c: New file.
29536         * lib/unictype/categ_Pc.c: New file.
29537         * lib/unictype/categ_Pd.c: New file.
29538         * lib/unictype/categ_Pe.c: New file.
29539         * lib/unictype/categ_Pf.c: New file.
29540         * lib/unictype/categ_Pi.c: New file.
29541         * lib/unictype/categ_Po.c: New file.
29542         * lib/unictype/categ_Ps.c: New file.
29543         * lib/unictype/categ_S.c: New file.
29544         * lib/unictype/categ_Sc.c: New file.
29545         * lib/unictype/categ_Sk.c: New file.
29546         * lib/unictype/categ_Sm.c: New file.
29547         * lib/unictype/categ_So.c: New file.
29548         * lib/unictype/categ_Z.c: New file.
29549         * lib/unictype/categ_Zl.c: New file.
29550         * lib/unictype/categ_Zp.c: New file.
29551         * lib/unictype/categ_Zs.c: New file.
29552         * lib/unictype/categ_and.c: New file.
29553         * lib/unictype/categ_and_not.c: New file.
29554         * lib/unictype/categ_byname.c: New file.
29555         * lib/unictype/categ_name.c: New file.
29556         * lib/unictype/categ_none.c: New file.
29557         * lib/unictype/categ_of.c: New file.
29558         * lib/unictype/categ_or.c: New file.
29559         * lib/unictype/categ_test.c: New file.
29560         * lib/unictype/combining.c: New file.
29561         * lib/unictype/ctype_alnum.c: New file.
29562         * lib/unictype/ctype_alpha.c: New file.
29563         * lib/unictype/ctype_blank.c: New file.
29564         * lib/unictype/ctype_cntrl.c: New file.
29565         * lib/unictype/ctype_digit.c: New file.
29566         * lib/unictype/ctype_graph.c: New file.
29567         * lib/unictype/ctype_lower.c: New file.
29568         * lib/unictype/ctype_print.c: New file.
29569         * lib/unictype/ctype_punct.c: New file.
29570         * lib/unictype/ctype_space.c: New file.
29571         * lib/unictype/ctype_upper.c: New file.
29572         * lib/unictype/ctype_xdigit.c: New file.
29573         * lib/unictype/decdigit.c: New file.
29574         * lib/unictype/digit.c: New file.
29575         * lib/unictype/identsyntaxmap.h: New file.
29576         * lib/unictype/mirror.c: New file.
29577         * lib/unictype/numeric.c: New file.
29578         * lib/unictype/pr_alphabetic.c: New file.
29579         * lib/unictype/pr_ascii_hex_digit.c: New file.
29580         * lib/unictype/pr_bidi_arabic_digit.c: New file.
29581         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
29582         * lib/unictype/pr_bidi_block_separator.c: New file.
29583         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
29584         * lib/unictype/pr_bidi_common_separator.c: New file.
29585         * lib/unictype/pr_bidi_control.c: New file.
29586         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
29587         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
29588         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
29589         * lib/unictype/pr_bidi_european_digit.c: New file.
29590         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
29591         * lib/unictype/pr_bidi_left_to_right.c: New file.
29592         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
29593         * lib/unictype/pr_bidi_other_neutral.c: New file.
29594         * lib/unictype/pr_bidi_pdf.c: New file.
29595         * lib/unictype/pr_bidi_segment_separator.c: New file.
29596         * lib/unictype/pr_bidi_whitespace.c: New file.
29597         * lib/unictype/pr_byname.c: New file.
29598         * lib/unictype/pr_byname.gperf: New file.
29599         * lib/unictype/pr_combining.c: New file.
29600         * lib/unictype/pr_composite.c: New file.
29601         * lib/unictype/pr_currency_symbol.c: New file.
29602         * lib/unictype/pr_dash.c: New file.
29603         * lib/unictype/pr_decimal_digit.c: New file.
29604         * lib/unictype/pr_default_ignorable_code_point.c: New file.
29605         * lib/unictype/pr_deprecated.c: New file.
29606         * lib/unictype/pr_diacritic.c: New file.
29607         * lib/unictype/pr_extender.c: New file.
29608         * lib/unictype/pr_format_control.c: New file.
29609         * lib/unictype/pr_grapheme_base.c: New file.
29610         * lib/unictype/pr_grapheme_extend.c: New file.
29611         * lib/unictype/pr_grapheme_link.c: New file.
29612         * lib/unictype/pr_hex_digit.c: New file.
29613         * lib/unictype/pr_hyphen.c: New file.
29614         * lib/unictype/pr_id_continue.c: New file.
29615         * lib/unictype/pr_id_start.c: New file.
29616         * lib/unictype/pr_ideographic.c: New file.
29617         * lib/unictype/pr_ids_binary_operator.c: New file.
29618         * lib/unictype/pr_ids_trinary_operator.c: New file.
29619         * lib/unictype/pr_ignorable_control.c: New file.
29620         * lib/unictype/pr_iso_control.c: New file.
29621         * lib/unictype/pr_join_control.c: New file.
29622         * lib/unictype/pr_left_of_pair.c: New file.
29623         * lib/unictype/pr_line_separator.c: New file.
29624         * lib/unictype/pr_logical_order_exception.c: New file.
29625         * lib/unictype/pr_lowercase.c: New file.
29626         * lib/unictype/pr_math.c: New file.
29627         * lib/unictype/pr_non_break.c: New file.
29628         * lib/unictype/pr_not_a_character.c: New file.
29629         * lib/unictype/pr_numeric.c: New file.
29630         * lib/unictype/pr_other_alphabetic.c: New file.
29631         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
29632         * lib/unictype/pr_other_grapheme_extend.c: New file.
29633         * lib/unictype/pr_other_id_continue.c: New file.
29634         * lib/unictype/pr_other_id_start.c: New file.
29635         * lib/unictype/pr_other_lowercase.c: New file.
29636         * lib/unictype/pr_other_math.c: New file.
29637         * lib/unictype/pr_other_uppercase.c: New file.
29638         * lib/unictype/pr_paired_punctuation.c: New file.
29639         * lib/unictype/pr_paragraph_separator.c: New file.
29640         * lib/unictype/pr_pattern_syntax.c: New file.
29641         * lib/unictype/pr_pattern_white_space.c: New file.
29642         * lib/unictype/pr_private_use.c: New file.
29643         * lib/unictype/pr_punctuation.c: New file.
29644         * lib/unictype/pr_quotation_mark.c: New file.
29645         * lib/unictype/pr_radical.c: New file.
29646         * lib/unictype/pr_sentence_terminal.c: New file.
29647         * lib/unictype/pr_soft_dotted.c: New file.
29648         * lib/unictype/pr_space.c: New file.
29649         * lib/unictype/pr_terminal_punctuation.c: New file.
29650         * lib/unictype/pr_test.c: New file.
29651         * lib/unictype/pr_titlecase.c: New file.
29652         * lib/unictype/pr_unassigned_code_value.c: New file.
29653         * lib/unictype/pr_unified_ideograph.c: New file.
29654         * lib/unictype/pr_uppercase.c: New file.
29655         * lib/unictype/pr_variation_selector.c: New file.
29656         * lib/unictype/pr_white_space.c: New file.
29657         * lib/unictype/pr_xid_continue.c: New file.
29658         * lib/unictype/pr_xid_start.c: New file.
29659         * lib/unictype/pr_zero_width.c: New file.
29660         * lib/unictype/scripts.c: New file.
29661         * lib/unictype/sy_c_ident.c: New file.
29662         * lib/unictype/sy_c_whitespace.c: New file.
29663         * lib/unictype/sy_java_ident.c: New file.
29664         * lib/unictype/sy_java_whitespace.c: New file.
29665
29666         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
29667         Unicode 5.0.0.
29668         * lib/unictype/blocks.h: Likewise.
29669         * lib/unictype/categ_C.h: Likewise.
29670         * lib/unictype/categ_Cc.h: Likewise.
29671         * lib/unictype/categ_Cf.h: Likewise.
29672         * lib/unictype/categ_Cn.h: Likewise.
29673         * lib/unictype/categ_Co.h: Likewise.
29674         * lib/unictype/categ_Cs.h: Likewise.
29675         * lib/unictype/categ_L.h: Likewise.
29676         * lib/unictype/categ_Ll.h: Likewise.
29677         * lib/unictype/categ_Lm.h: Likewise.
29678         * lib/unictype/categ_Lo.h: Likewise.
29679         * lib/unictype/categ_Lt.h: Likewise.
29680         * lib/unictype/categ_Lu.h: Likewise.
29681         * lib/unictype/categ_M.h: Likewise.
29682         * lib/unictype/categ_Mc.h: Likewise.
29683         * lib/unictype/categ_Me.h: Likewise.
29684         * lib/unictype/categ_Mn.h: Likewise.
29685         * lib/unictype/categ_N.h: Likewise.
29686         * lib/unictype/categ_Nd.h: Likewise.
29687         * lib/unictype/categ_Nl.h: Likewise.
29688         * lib/unictype/categ_No.h: Likewise.
29689         * lib/unictype/categ_P.h: Likewise.
29690         * lib/unictype/categ_Pc.h: Likewise.
29691         * lib/unictype/categ_Pd.h: Likewise.
29692         * lib/unictype/categ_Pe.h: Likewise.
29693         * lib/unictype/categ_Pf.h: Likewise.
29694         * lib/unictype/categ_Pi.h: Likewise.
29695         * lib/unictype/categ_Po.h: Likewise.
29696         * lib/unictype/categ_Ps.h: Likewise.
29697         * lib/unictype/categ_S.h: Likewise.
29698         * lib/unictype/categ_Sc.h: Likewise.
29699         * lib/unictype/categ_Sk.h: Likewise.
29700         * lib/unictype/categ_Sm.h: Likewise.
29701         * lib/unictype/categ_So.h: Likewise.
29702         * lib/unictype/categ_Z.h: Likewise.
29703         * lib/unictype/categ_Zl.h: Likewise.
29704         * lib/unictype/categ_Zp.h: Likewise.
29705         * lib/unictype/categ_Zs.h: Likewise.
29706         * lib/unictype/categ_of.h: Likewise.
29707         * lib/unictype/combining.h: Likewise.
29708         * lib/unictype/ctype_alnum.h: Likewise.
29709         * lib/unictype/ctype_alpha.h: Likewise.
29710         * lib/unictype/ctype_blank.h: Likewise.
29711         * lib/unictype/ctype_cntrl.h: Likewise.
29712         * lib/unictype/ctype_digit.h: Likewise.
29713         * lib/unictype/ctype_graph.h: Likewise.
29714         * lib/unictype/ctype_lower.h: Likewise.
29715         * lib/unictype/ctype_print.h: Likewise.
29716         * lib/unictype/ctype_punct.h: Likewise.
29717         * lib/unictype/ctype_space.h: Likewise.
29718         * lib/unictype/ctype_upper.h: Likewise.
29719         * lib/unictype/ctype_xdigit.h: Likewise.
29720         * lib/unictype/decdigit.h: Likewise.
29721         * lib/unictype/digit.h: Likewise.
29722         * lib/unictype/mirror.h: Likewise.
29723         * lib/unictype/numeric.h: Likewise.
29724         * lib/unictype/pr_alphabetic.h: Likewise.
29725         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
29726         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
29727         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
29728         * lib/unictype/pr_bidi_block_separator.h: Likewise.
29729         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
29730         * lib/unictype/pr_bidi_common_separator.h: Likewise.
29731         * lib/unictype/pr_bidi_control.h: Likewise.
29732         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
29733         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
29734         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
29735         * lib/unictype/pr_bidi_european_digit.h: Likewise.
29736         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
29737         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
29738         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
29739         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
29740         * lib/unictype/pr_bidi_pdf.h: Likewise.
29741         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
29742         * lib/unictype/pr_bidi_whitespace.h: Likewise.
29743         * lib/unictype/pr_combining.h: Likewise.
29744         * lib/unictype/pr_composite.h: Likewise.
29745         * lib/unictype/pr_currency_symbol.h: Likewise.
29746         * lib/unictype/pr_dash.h: Likewise.
29747         * lib/unictype/pr_decimal_digit.h: Likewise.
29748         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
29749         * lib/unictype/pr_deprecated.h: Likewise.
29750         * lib/unictype/pr_diacritic.h: Likewise.
29751         * lib/unictype/pr_extender.h: Likewise.
29752         * lib/unictype/pr_format_control.h: Likewise.
29753         * lib/unictype/pr_grapheme_base.h: Likewise.
29754         * lib/unictype/pr_grapheme_extend.h: Likewise.
29755         * lib/unictype/pr_grapheme_link.h: Likewise.
29756         * lib/unictype/pr_hex_digit.h: Likewise.
29757         * lib/unictype/pr_hyphen.h: Likewise.
29758         * lib/unictype/pr_id_continue.h: Likewise.
29759         * lib/unictype/pr_id_start.h: Likewise.
29760         * lib/unictype/pr_ideographic.h: Likewise.
29761         * lib/unictype/pr_ids_binary_operator.h: Likewise.
29762         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
29763         * lib/unictype/pr_ignorable_control.h: Likewise.
29764         * lib/unictype/pr_iso_control.h: Likewise.
29765         * lib/unictype/pr_join_control.h: Likewise.
29766         * lib/unictype/pr_left_of_pair.h: Likewise.
29767         * lib/unictype/pr_line_separator.h: Likewise.
29768         * lib/unictype/pr_logical_order_exception.h: Likewise.
29769         * lib/unictype/pr_lowercase.h: Likewise.
29770         * lib/unictype/pr_math.h: Likewise.
29771         * lib/unictype/pr_non_break.h: Likewise.
29772         * lib/unictype/pr_not_a_character.h: Likewise.
29773         * lib/unictype/pr_numeric.h: Likewise.
29774         * lib/unictype/pr_other_alphabetic.h: Likewise.
29775         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
29776         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
29777         * lib/unictype/pr_other_id_continue.h: Likewise.
29778         * lib/unictype/pr_other_id_start.h: Likewise.
29779         * lib/unictype/pr_other_lowercase.h: Likewise.
29780         * lib/unictype/pr_other_math.h: Likewise.
29781         * lib/unictype/pr_other_uppercase.h: Likewise.
29782         * lib/unictype/pr_paired_punctuation.h: Likewise.
29783         * lib/unictype/pr_paragraph_separator.h: Likewise.
29784         * lib/unictype/pr_pattern_syntax.h: Likewise.
29785         * lib/unictype/pr_pattern_white_space.h: Likewise.
29786         * lib/unictype/pr_private_use.h: Likewise.
29787         * lib/unictype/pr_punctuation.h: Likewise.
29788         * lib/unictype/pr_quotation_mark.h: Likewise.
29789         * lib/unictype/pr_radical.h: Likewise.
29790         * lib/unictype/pr_sentence_terminal.h: Likewise.
29791         * lib/unictype/pr_soft_dotted.h: Likewise.
29792         * lib/unictype/pr_space.h: Likewise.
29793         * lib/unictype/pr_terminal_punctuation.h: Likewise.
29794         * lib/unictype/pr_titlecase.h: Likewise.
29795         * lib/unictype/pr_unassigned_code_value.h: Likewise.
29796         * lib/unictype/pr_unified_ideograph.h: Likewise.
29797         * lib/unictype/pr_uppercase.h: Likewise.
29798         * lib/unictype/pr_variation_selector.h: Likewise.
29799         * lib/unictype/pr_white_space.h: Likewise.
29800         * lib/unictype/pr_xid_continue.h: Likewise.
29801         * lib/unictype/pr_xid_start.h: Likewise.
29802         * lib/unictype/pr_zero_width.h: Likewise.
29803         * lib/unictype/scripts.h: Likewise.
29804         * lib/unictype/scripts_byname.gperf: Likewise.
29805         * lib/unictype/sy_c_ident.h: Likewise.
29806         * lib/unictype/sy_c_whitespace.h: Likewise.
29807         * lib/unictype/sy_java_ident.h: Likewise.
29808         * lib/unictype/sy_java_whitespace.h: Likewise.
29809
29810         * lib/unictype/Makefile: New file.
29811         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
29812         glibc.
29813         * lib/unictype/3level.h: New file, copied from glibc.
29814         * lib/unictype/3levelbit.h: New file.
29815
29816 2007-11-11  Bruno Haible  <bruno@clisp.org>
29817
29818         * modules/gperf: New file.
29819         * modules/iconv_open (Depends-on): Add it.
29820         (Makefile.am): Remove the GPERF definition.
29821
29822 2007-11-11  Bruno Haible  <bruno@clisp.org>
29823
29824         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
29825         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
29826
29827 2007-11-11  Bruno Haible  <bruno@clisp.org>
29828
29829         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
29830         (usage): Remove function.
29831
29832 2007-11-11  Bruno Haible  <bruno@clisp.org>
29833
29834         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
29835         gl_FUNC_CEILF_LIBS.
29836         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
29837         gl_FUNC_CEIL_LIBS.
29838         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
29839         gl_FUNC_CEILL_LIBS.
29840         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
29841         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
29842         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
29843
29844 2007-11-11  Bruno Haible  <bruno@clisp.org>
29845
29846         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
29847         roundf were declared but do not exist on functions.
29848         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
29849         roundl were declared but do not exist on functions.
29850         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
29851         HAVE_FLOORL_AND_CEILL, respectively.
29852         Needed for Sun C on Solaris 10.
29853
29854 2007-11-11  Bruno Haible  <bruno@clisp.org>
29855
29856         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
29857         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
29858         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
29859         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
29860         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
29861         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
29862         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
29863         HAVE_DECL_ROUNDF.
29864         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
29865         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
29866         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
29867         of HAVE_DECL_ROUND*.
29868         * modules/math (Makefile.am): Update.
29869
29870 2007-11-10  Bruno Haible  <bruno@clisp.org>
29871
29872         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
29873         ptrdiff_t as m4/intl.m4.
29874
29875 2007-11-10  Jim Meyering  <meyering@redhat.com>
29876
29877         Avoid link failure for the argmatch test.
29878         * tests/test-argmatch.c (usage): Define function to avoid a link
29879         failure: argmatch_die requires a usage function.
29880
29881 2007-11-09  Bruno Haible  <bruno@clisp.org>
29882
29883         * doc/functions/snprintf.texi: Mention BeOS deficiency.
29884         * doc/functions/vsnprintf.texi: Likewise.
29885         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
29886         with a size argument < 2.
29887
29888 2007-11-09  Bruno Haible  <bruno@clisp.org>
29889
29890         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
29891         buffer. Fixes an inefficiency introduced on 2007-11-03.
29892
29893 2007-11-09  Bruno Haible  <bruno@clisp.org>
29894
29895         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
29896         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
29897
29898 2007-11-08  Jim Meyering  <meyering@redhat.com>
29899
29900         Change cache variable name prefix "jm_" to "gl_" everywhere.
29901         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
29902         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
29903         * m4/uptime.m4: s/gl_/jm_/
29904
29905 2007-11-07  Bruno Haible  <bruno@clisp.org>
29906
29907         Update to GNU gettext 0.17.
29908         * m4/intl.m4: Update to GNU gettext 0.17.
29909         * m4/po.m4: Likewise.
29910         * modules/gettext (Files): Remove m4/ulonglong.m4.
29911         (configure.ac): Require gettext infrastructure from version 0.17.
29912
29913 2007-11-06  Bruno Haible  <bruno@clisp.org>
29914
29915         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
29916         symbolic values are not defined in a public header.
29917         * lib/freadable.c (freadable) [QNX]: Likewise.
29918         * lib/freadahead.c (freadahead) [QNX]: Likewise.
29919         * lib/freading.c (freading) [QNX]: Likewise.
29920         * lib/fseterr.c (fseterr) [QNX]: Likewise.
29921         * lib/fwritable.c (fwritable) [QNX]: Likewise.
29922         * lib/fwriting.c (fwriting) [QNX]: Likewise.
29923         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
29924         Reported by Alain Magloire.
29925
29926         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
29927
29928 2007-11-05  Bruno Haible  <bruno@clisp.org>
29929
29930         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
29931         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
29932         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
29933         Reported by Eric Blake.
29934
29935 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29936             Bruno Haible  <bruno@clisp.org>
29937
29938         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
29939         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
29940         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
29941         (malloc): Undefine also before including <stdlib.h>.
29942         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
29943         Needed on OSF/1 4.0.
29944
29945 2007-11-05  Jim Meyering  <meyering@redhat.com>
29946
29947         git-version-gen: sync from coreutils.
29948         * build-aux/git-version-gen: Add comments.
29949         Change the first '-' to '.' in the snapshot version string,
29950         e.g., 6.9-377-08144 -> 6.9.377-08144
29951         Remove first parameter.
29952         Don't declare a version "-dirty" merely because a time
29953         stamp has changed.
29954
29955 2007-11-04  Bruno Haible  <bruno@clisp.org>
29956
29957         * lib/lock.h: Protect all macro definitions containing an 'if'
29958         statement through a "do { ... } while (0)".
29959         * lib/tls.h: Likewise.
29960
29961 2007-11-04  Bruno Haible  <bruno@clisp.org>
29962
29963         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
29964
29965 2007-11-04  Bruno Haible  <bruno@clisp.org>
29966
29967         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
29968         * modules/fprintf-posix (Depends-on): Add nocrash.
29969         * modules/snprintf-posix (Depends-on): Likewise.
29970         * modules/sprintf-posix (Depends-on): Likewise.
29971         * modules/vasnprintf-posix (Depends-on): Likewise.
29972         * modules/vasprintf-posix (Depends-on): Likewise.
29973         * modules/vfprintf-posix (Depends-on): Likewise.
29974         * modules/vsnprintf-posix (Depends-on): Likewise.
29975         * modules/vsprintf-posix (Depends-on): Likewise.
29976         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
29977         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
29978         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
29979         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
29980         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
29981         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
29982         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
29983
29984 2007-11-04  Bruno Haible  <bruno@clisp.org>
29985
29986         * modules/nocrash: New file.
29987         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
29988         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
29989
29990 2007-11-04  Bruno Haible  <bruno@clisp.org>
29991
29992         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
29993         precision handling.
29994         * tests/test-vasprintf-posix.c (test_function): Likewise.
29995         * tests/test-snprintf-posix.h (test_function): Likewise.
29996         * tests/test-sprintf-posix.h (test_function): Likewise.
29997
29998         Fix *printf behaviour for large precisions on mingw and BeOS.
29999         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
30000         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
30001         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
30002         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
30003         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
30004         gl_PRINTF_PRECISION and test its result. Invoke
30005         gl_PREREQ_VASNPRINTF_PRECISION.
30006         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
30007         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
30008         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
30009         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
30010         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
30011         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
30012         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
30013         * doc/functions/fprintf.texi: Update.
30014         * doc/functions/printf.texi: Update.
30015         * doc/functions/snprintf.texi: Update.
30016         * doc/functions/sprintf.texi: Update.
30017         * doc/functions/vfprintf.texi: Update.
30018         * doc/functions/vprintf.texi: Update.
30019         * doc/functions/vsnprintf.texi: Update.
30020         * doc/functions/vsprintf.texi: Update.
30021
30022 2007-11-04  Bruno Haible  <bruno@clisp.org>
30023
30024         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
30025
30026 2007-11-04  Bruno Haible  <bruno@clisp.org>
30027
30028         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
30029         Reported by Sylvain Beucler <beuc@gnu.org>.
30030
30031 2007-11-03  Bruno Haible  <bruno@clisp.org>
30032
30033         * tests/test-fprintf-posix2.sh: New file.
30034         * tests/test-fprintf-posix2.c: New file.
30035         * modules/fprintf-posix-tests (Files): Add them.
30036         (TESTS): Add test-fprintf-posix2.sh.
30037         (configure.ac): Check for getrlimit and setrlimit.
30038         (check_PROGRAMS): Add test-fprintf-posix2.
30039
30040         * tests/test-printf-posix2.sh: New file.
30041         * tests/test-printf-posix2.c: New file.
30042         * modules/printf-posix-tests (Files): Add them.
30043         (TESTS): Add test-printf-posix2.sh.
30044         (configure.ac): Check for getrlimit and setrlimit.
30045         (check_PROGRAMS): Add test-printf-posix2.
30046
30047         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
30048         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
30049         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
30050         (decode_double): New function, copied from decode_long_double.
30051         (scale10_round_decimal_decoded): New function, extracted from
30052         scale10_round_decimal_long_double.
30053         (scale10_round_decimal_long_double): Use it.
30054         (scale10_round_decimal_double): New function.
30055         (floorlog10): New function.
30056         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
30057         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
30058         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
30059         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
30060         gl_PRINTF_ENOMEM and test its result. Invoke
30061         gl_PREREQ_VASNPRINTF_ENOMEM.
30062         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
30063         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
30064         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
30065         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
30066         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
30067         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
30068         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
30069         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
30070         * modules/snprintf-posix (Depends-on): Likewise.
30071         * modules/sprintf-posix (Depends-on): Likewise.
30072         * modules/vasnprintf-posix (Depends-on): Likewise.
30073         * modules/vasprintf-posix (Depends-on): Likewise.
30074         * modules/vfprintf-posix (Depends-on): Likewise.
30075         * modules/vsnprintf-posix (Depends-on): Likewise.
30076         * modules/vsprintf-posix (Depends-on): Likewise.
30077         * doc/functions/fprintf.texi: Update.
30078         * doc/functions/printf.texi: Update.
30079         * doc/functions/snprintf.texi: Update.
30080         * doc/functions/sprintf.texi: Update.
30081         * doc/functions/vfprintf.texi: Update.
30082         * doc/functions/vprintf.texi: Update.
30083         * doc/functions/vsnprintf.texi: Update.
30084         * doc/functions/vsprintf.texi: Update.
30085
30086 2007-11-03  Bruno Haible  <bruno@clisp.org>
30087
30088         * modules/frexp-nolibm-tests: New file.
30089
30090         * modules/frexp-nolibm: New file.
30091         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
30092
30093 2007-11-03  Bruno Haible  <bruno@clisp.org>
30094
30095         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
30096         value is C99 compliant.
30097         Needed for OSF/1 5.1.
30098
30099 2007-11-03  Bruno Haible  <bruno@clisp.org>
30100
30101         Fix out-of-memory handling of vasnprintf.
30102         * lib/printf-parse.c: Include <errno.h>.
30103         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
30104         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
30105         is already set.
30106
30107 2007-11-02  Eric Blake  <ebb9@byu.net>
30108
30109         Fix tests on cygwin.
30110         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
30111
30112 2007-11-01  Bruno Haible  <bruno@clisp.org>
30113
30114         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
30115         warning.
30116         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
30117         needed for POSIX compatibility.
30118
30119 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
30120
30121         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
30122         for compatibility with GNU.
30123
30124 2007-11-01  Bruno Haible  <bruno@clisp.org>
30125
30126         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
30127         (putenv): Renamed from rpl_putenv. Change argument type from
30128         'const char *' to 'char *'.
30129         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
30130         of defining putenv in config.h, just set REPLACE_PUTENV.
30131         * modules/putenv (Depends-on): Add stdlib.
30132         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
30133         (Include): Use <stdlib.h>.
30134         * lib/stdlib.in.h (putenv): New declaration.
30135         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
30136         REPLACE_PUTENV.
30137         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
30138         REPLACE_PUTENV.
30139         Needed for MacOS X 10.5.0.
30140         Reported by Peter O'Gorman <peter@pogma.com>.
30141
30142 2007-11-01  Jim Meyering  <meyering@redhat.com>
30143
30144         Treat an empty date string exactly like "0".
30145         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
30146         if the remaining date string (to be parsed) is empty, use "0".
30147         Reported by Mischa Molhoek and discussed in this thread:
30148         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
30149
30150 2007-10-31  Bruno Haible  <bruno@clisp.org>
30151
30152         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
30153         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
30154         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
30155         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
30156         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
30157         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
30158
30159 2007-10-31  Bruno Haible  <bruno@clisp.org>
30160
30161         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
30162         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
30163         (AC_TYPE_LONG_LONG_INT): Use it.
30164         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
30165         it as well.
30166         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
30167         to m4/longlong.m4.
30168         * modules/stdint (Files): Remove m4/ulonglong.m4.
30169         * modules/strtoull (Files): Use m4/longlong.m4 instead of
30170         m4/ulonglong.m4.
30171         * modules/strtoumax (Files): Likewise.
30172
30173 2007-10-30  Bruno Haible  <bruno@clisp.org>
30174
30175         * modules/xvasprintf-posix: New file.
30176         Suggested by Eric Blake.
30177
30178 2007-10-30  Bruno Haible  <bruno@clisp.org>
30179
30180         * modules/xprintf-posix-tests: New file.
30181         * tests/test-xprintf-posix.sh: New file.
30182         * tests/test-xprintf-posix.c: New file.
30183         * tests/test-xfprintf-posix.c: New file.
30184
30185         * modules/xprintf-posix: New file.
30186
30187 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30188
30189         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
30190         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
30191         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
30192
30193 2007-10-29  Bruno Haible  <bruno@clisp.org>
30194
30195         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
30196         contain the special marker '_cv_'.
30197         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
30198         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
30199         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
30200         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
30201         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
30202         Reported by Ralf Wildenhues.
30203
30204 2007-10-29  Bruno Haible  <bruno@clisp.org>
30205
30206         * gnulib-tool (func_import): When --lgpl is not specified, set
30207         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
30208         GPLv3.
30209         Reported by Simon Josefsson.
30210
30211 2007-10-28  Bruno Haible  <bruno@clisp.org>
30212
30213         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
30214         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
30215         HAVE_DECL_ISFINITE.
30216         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
30217         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
30218         HAVE_DECL_ISFINITE.
30219
30220 2007-10-28  Bruno Haible  <bruno@clisp.org>
30221
30222         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
30223         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
30224
30225 2007-10-28  Bruno Haible  <bruno@clisp.org>
30226
30227         Fix link errors with Sun C 5.0 on Solaris 10.
30228         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
30229         function is declared but not present in the compiler's libm.
30230         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
30231         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
30232         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
30233         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
30234         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
30235         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
30236         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
30237         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
30238         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
30239         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
30240         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
30241         HAVE_DECL_FLOORL.
30242
30243 2007-10-28  Bruno Haible  <bruno@clisp.org>
30244
30245         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
30246         gl_FUNC_FLOORL. Cache the result.
30247         (gl_FUNC_FLOORL): Use it.
30248         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
30249         gl_FUNC_CEILL. Cache the result.
30250         (gl_FUNC_CEILL): Use it.
30251
30252         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
30253         gl_FUNC_FLOOR. Cache the result.
30254         (gl_FUNC_FLOOR): Use it.
30255         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
30256         gl_FUNC_CEIL. Cache the result.
30257         (gl_FUNC_CEIL): Use it.
30258
30259         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
30260         gl_FUNC_FLOORF. Cache the result.
30261         (gl_FUNC_FLOORF): Use it.
30262         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
30263         gl_FUNC_CEILF. Cache the result.
30264         (gl_FUNC_CEILF): Use it.
30265
30266 2007-10-28  Bruno Haible  <bruno@clisp.org>
30267
30268         * gnulib-tool: Allow specifying the LGPL version number through
30269         --lgpl=2 or --lgpl=3.
30270         (func_usage): Document --lgpl with argument.
30271         Handle --lgpl=... arguments.
30272         (func_import): Recognize also gl_LGPL calls with an argument. When
30273         --lgpl=2 is used and the module's license is just LGPL, report an
30274         error. Set sed_transform_lib_file according to the lgpl variable. In
30275         the generated files, use --lgpl or gl_LGPL invocations with argument,
30276         if necessary.
30277         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
30278         an LGPv2+ license.
30279         * doc/gnulib-tool.texi (Modified imports): Update explanation of
30280         gl_LGPL macro.
30281
30282 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30283             Bruno Haible  <bruno@clisp.org>
30284
30285         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
30286         (u16_uctomb_aux): Likewise.
30287         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
30288         !HAVE_INLINE.
30289         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
30290
30291 2007-10-28  Bruno Haible  <bruno@clisp.org>
30292
30293         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
30294         Invoke AM_GETTEXT_OPTION if it exists.
30295         * modules/vasprintf: Likewise.
30296         * modules/verror: Likewise.
30297         * modules/xprintf: Likewise.
30298         * modules/xvasprintf: Likewise.
30299
30300 2007-10-27  Ben Pfaff  <blp@gnu.org>
30301
30302         * lib/math.in.h: Define isfinite macro and prototypes for
30303         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
30304         implementations.
30305         * m4/math_h.m4: New substitutions for isfinite module.
30306         * lib/isfinite.c: New file.
30307         * m4/isfinite.m4: New file.
30308         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
30309         * modules/isfinite: New file.
30310         * modules/isfinite-tests: New file.
30311         * tests/tests-isfinite.c: New file.
30312         * doc/functions/isfinite.texi: Mention isfinite module.
30313         * MODULES.html.sh: Mention new module.
30314
30315 2007-10-27  Ben Pfaff  <blp@gnu.org>
30316
30317         Ralf Wildenhues reported that Tru64 4.0D declares the round
30318         functions but does not have definitions.
30319         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
30320         cannot be found in any library, set the output variable to
30321         "missing" instead of "".
30322         * m4/round.m4: Also use our substitute if we cannot find round in
30323         any library, even if it is declared.
30324         * m4/roundf.m4: Likewise for roundf.
30325         * m4/roundl.m4: Likewise for roundl.
30326         * lib/math.in.h: Undefine roundf, round, roundl before defining
30327         their replacements, to allow for hypothetical systems where these
30328         may be defined as macros but not available in libraries.
30329
30330 2007-10-27  Bruno Haible  <bruno@clisp.org>
30331
30332         * doc/gnulib.texi: Invoke @firstparagraphindent.
30333         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
30334         changes in gnulib.
30335         (Source changes): New section.
30336
30337 2007-10-26  Bruno Haible  <bruno@clisp.org>
30338
30339         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
30340         borrowed from autoconf.
30341
30342 2007-10-26  Bruno Haible  <bruno@clisp.org>
30343
30344         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
30345         strerror returned the empty string. Needed on HP-UX 11.00.
30346
30347 2007-10-24  Micah Cowan  <micah@cowan.name>
30348
30349         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
30350         * build-aux/bootstrap: Remove support for now-unnecessary option,
30351         --cvs-user, and envvars CVS_USER, CVS_RSH.
30352
30353 2007-10-24  Jim Meyering  <meyering@redhat.com>
30354
30355         Avoid diagnostics from sha1sum when there is no cached checksum.
30356         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
30357         if the po.s1 file hasn't been created yet.
30358
30359         * build-aux/bootstrap: Sync from coreutils:
30360         2007-10-24  Jim Meyering  <meyering@redhat.com>
30361         Get gnulib from the git repository, not from an obsolete cvs one.
30362         * build-aux/bootstrap: Suggestion from Micah Cowan.
30363         2007-10-04  Jim Meyering  <jim@meyering.net>
30364         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
30365         (update_po_files): Work also when there are no .po files in po/.
30366
30367 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
30368
30369         * README: Append ".git" to git and cg examples.
30370         Problem reported by Benoit Sigoure.
30371
30372 2007-10-23  Micah Cowan  <micah@cowan.name>
30373
30374         * users.txt: Add wget.
30375
30376 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30377
30378         Fix linking of some unistdio tests on FreeBSD.
30379         * modules/unistdio/u16-vsnprintf-tests
30380         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
30381         * modules/unistdio/u16-vsprintf-tests
30382         (test_u16_vsnprintf1_LDADD): Likewise.
30383         * modules/unistdio/u32-vsnprintf-tests
30384         (test_u32_vsnprintf1_LDADD): Likewise.
30385         * modules/unistdio/u32-vsprintf-tests
30386         (test_u32_vsprintf1_LDADD): Likewise.
30387         * modules/unistdio/u8-vsnprintf-tests
30388         (test_u8_vsnprintf1_LDADD): Likewise.
30389         * modules/unistdio/u8-vsprintf-tests
30390         (test_u8_vsprintf1_LDADD): Likewise.
30391         * modules/unistdio/ulc-vsnprintf-tests
30392         (test_ulc_vsnprintf1_LDADD): Likewise.
30393         * modules/unistdio/ulc-vsprintf-tests
30394         (test_ulc_vsprintf1_LDADD): Likewise.
30395
30396         Fix linking of some uniconv tests on FreeBSD.
30397         * modules/uniconv/u16-conv-from-enc-tests
30398         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
30399         * modules/uniconv/u16-conv-to-enc-tests
30400         (test_u16_conv_to_enc_LDADD): Likewise.
30401         * modules/uniconv/u16-strconv-from-enc-tests
30402         (test_u16_strconv_from_enc_LDADD): Likewise.
30403         * modules/uniconv/u16-strconv-to-enc-tests
30404         (test_u16_strconv_to_enc_LDADD): Likewise.
30405         * modules/uniconv/u32-conv-from-enc-tests
30406         (test_u32_conv_from_enc_LDADD): Likewise.
30407         * modules/uniconv/u32-conv-to-enc-tests
30408         (test_u32_conv_to_enc_LDADD): Likewise.
30409         * modules/uniconv/u32-strconv-from-enc-tests
30410         (test_u32_strconv_from_enc_LDADD): Likewise.
30411         * modules/uniconv/u32-strconv-to-enc-tests
30412         (test_u32_strconv_to_enc_LDADD): Likewise.
30413         * modules/uniconv/u8-conv-from-enc-tests
30414         (test_u8_conv_from_enc_LDADD): Likewise.
30415         * modules/uniconv/u8-conv-to-enc-tests
30416         (test_u8_conv_to_enc_LDADD): Likewise.
30417         * modules/uniconv/u8-strconv-from-enc-tests
30418         (test_u8_strconv_from_enc_LDADD): Likewise.
30419         * modules/uniconv/u8-strconv-to-enc-tests
30420         (test_u8_strconv_to_enc_LDADD): Likewise.
30421
30422 2007-10-22  Bruno Haible  <bruno@clisp.org>
30423
30424         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
30425         size.
30426
30427 2007-10-22  Eric Blake  <ebb9@byu.net>
30428
30429         Tweak x*printf documentation.
30430         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
30431         variable name and comments.
30432         Suggested by Bruno Haible.
30433
30434 2007-10-22  Bruno Haible  <bruno@clisp.org>
30435
30436         * lib/acl.c (copy_acl): Fix file name in comment.
30437
30438 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
30439
30440         Fix Tru64 problem with stdbool.h.
30441         * lib/stdbool.in.h (false, true):
30442         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
30443         Don't declare as an enum in this situation; it runs afoul of Tru64.
30444         Problem reported by Steven M. Schweda in
30445         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
30446
30447 2007-10-22  Eric Blake  <ebb9@byu.net>
30448
30449         Also wrap vf?printf.
30450         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
30451         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
30452         (xvprintf, xvfprintf): New functions.
30453
30454 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30455
30456         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
30457         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
30458
30459         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
30460         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
30461
30462 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
30463
30464         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
30465         by Bruno Haible.
30466
30467 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30468
30469         * lib/getloadavg.c
30470         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
30471         Undef `sys' after including sys/table.h, for Tru64 4.0D.
30472
30473         * tests/test-i-ring.c: Work for C89.
30474
30475 2007-10-22  Bruno Haible  <bruno@clisp.org>
30476
30477         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
30478         -1u, in preprocessor expression, so that we don't test for the bug
30479         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
30480         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
30481
30482 2007-10-22  Eric Blake  <ebb9@byu.net>
30483
30484         * tests/test-yesno.sh: Silence stderr during test.
30485
30486 2007-10-22  Simon Josefsson  <simon@josefsson.org>
30487
30488         * modules/crypto/gc-camellia: New file.
30489
30490         * m4/gc-camellia.m4: New file.
30491
30492         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
30493
30494         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
30495
30496 2007-10-22  Simon Josefsson  <simon@josefsson.org>
30497
30498         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
30499         --help to stdout.  Reported by sms@antinode.org (Steven
30500         M. Schweda).
30501
30502 2007-10-22  Simon Josefsson  <simon@josefsson.org>
30503
30504         * users.txt: Fix link to libksba.
30505
30506 2007-10-21  Ben Pfaff  <blp@gnu.org>
30507
30508         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
30509         round.c roundf implementation that depends on floorf and ceilf to
30510         be tested unconditionally.
30511
30512 2007-10-21  Ben Pfaff  <blp@gnu.org>
30513
30514         * m4/check-libm-func.m4: Removed.
30515         * m4/check-math-lib.m4: New file.
30516         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
30517         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
30518         definition and lack of AC_LIBOBJ([roundf]).
30519         * m4/roundl.m4: Ditto, and similarly for roundl.
30520         * modules/round: Reference new m4 file.
30521         * modules/roundf: Ditto.
30522         * modules/roundl: Ditto.
30523         * tests/test-round2.c (main): Use ROUND instead of round.
30524         Bug report from Bruno Haible.
30525
30526 2007-10-21  Bruno Haible  <bruno@clisp.org>
30527
30528         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
30529         context.
30530
30531 2007-10-21  Bruno Haible  <bruno@clisp.org>
30532
30533         * tests/test-wcwidth.c (main): Allow negative result for some control
30534         characters.
30535
30536         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
30537         Needed on OSF/1 5.1.
30538
30539 2007-10-21  Bruno Haible  <bruno@clisp.org>
30540
30541         * tests/test-floorf1.c: Include isnanf.h.
30542         (main): Use isnanf() instead of isnan().
30543         * tests/test-ceilf1.c: Include isnanf.h.
30544         (main): Use isnanf() instead of isnan().
30545         * tests/test-truncf1.c: Include isnanf.h.
30546         (main): Use isnanf() instead of isnan().
30547         * tests/test-roundf1.c: Include isnanf.h.
30548         (main): Use isnanf() instead of isnan().
30549
30550 2007-10-21  Eric Blake  <ebb9@byu.net>
30551
30552         * users.txt: Update URL for m4.
30553
30554 2007-10-21  Bruno Haible  <bruno@clisp.org>
30555
30556         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
30557
30558 2007-10-21  Bruno Haible  <bruno@clisp.org>
30559
30560         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
30561         Git's management files if the CVS files are not present.
30562
30563 2007-10-20  Bruno Haible  <bruno@clisp.org>
30564
30565         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
30566         gcc-3.4.x.
30567
30568 2007-10-20  Ben Pfaff  <blp@gnu.org>
30569
30570         * lib/math.in.h: Declare round, roundf, roundl if we are providing
30571         implementations.
30572         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
30573         * lib/round.c: New file.
30574         * lib/roundf.c: New file.
30575         * lib/roundl.c: New file.
30576         * m4/round.m4: New file.
30577         * m4/roundf.m4: New file.
30578         * m4/roundl.m4: New file.
30579         * m4/check-libm-func-m4: New file.
30580         * modules/math: Replace round, roundf, roundl related @VARS@ in
30581         math.in.h.
30582         * modules/round: New file.
30583         * modules/round-tests: New file.
30584         * modules/roundf: New file.
30585         * modules/roundf-tests: New file.
30586         * modules/roundl: New file.
30587         * modules/roundl-tests: New file.
30588         * tests/test-round1.c: New file.
30589         * tests/test-round2.c: New file.
30590         * tests/test-roundf1.c: New file.
30591         * tests/test-roundf2.c: New file.
30592         * tests/test-roundl.c: New file.
30593         * doc/functions/round.texi: Mention round module.
30594         * doc/functions/roundf.texi: Mention roundf module.
30595         * doc/functions/roundl.texi: Mention roundl module.
30596         * MODULES.html.sh: Mention new modules.
30597         Thanks to Bruno Haible for suggestions.
30598
30599 2007-10-20  Jim Meyering  <meyering@redhat.com>
30600
30601         * lib/xprintf.c: Include <config.h> unconditionally.
30602
30603         Change xprintf's license to GPL.
30604         * modules/xprintf (License): s/LGPL/GPL/, since this module
30605         depends on modules (exit and exitfail) which are GPL.
30606         Suggestion from Bruno Haible.
30607
30608         xprintf fixes.
30609         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
30610         Use a clearer diagnostic.
30611         Patch from Bruno Haible.
30612
30613 2007-10-20  Bruno Haible  <bruno@clisp.org>
30614
30615         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
30616         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
30617         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30618
30619 2007-10-20  Bruno Haible  <bruno@clisp.org>
30620
30621         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
30622         precision in the comparison result > x - 1 or similar.
30623         * tests/test-ceilf2.c (correct_result_p): Likewise.
30624         * tests/test-truncf2.c (correct_result_p): Likewise.
30625         * tests/test-trunc2.c (correct_result_p): Likewise.
30626         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30627
30628 2007-10-20  Bruno Haible  <bruno@clisp.org>
30629
30630         * modules/ceil: New file.
30631         * m4/ceil.m4: New file.
30632         * doc/functions/ceil.texi: Mention the 'ceil' module.
30633
30634 2007-10-20  Bruno Haible  <bruno@clisp.org>
30635
30636         * modules/floor: New file.
30637         * m4/floor.m4: New file.
30638         * doc/functions/floor.texi: Mention the 'floor' module.
30639
30640 2007-10-20  Bruno Haible  <bruno@clisp.org>
30641
30642         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
30643         of %a.
30644         * modules/floorf-tests (Depends-on): Likewise.
30645         * modules/truncf-tests (Depends-on): Likewise.
30646         * modules/trunc-tests (Depends-on): Likewise.
30647         Reported by Ben Pfaff.
30648
30649 2007-10-19  Jim Meyering  <meyering@redhat.com>
30650
30651         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
30652         Don't bother testing specific errno values.  Just test ferror.
30653
30654         New module: xprintf
30655         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
30656
30657 2007-10-19  Bruno Haible  <bruno@clisp.org>
30658
30659         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
30660         syntax.
30661         * modules/javaexec (Makefile.am): Likewise.
30662         * modules/relocatable-prog (Makefile.am): Likewise.
30663         Suggested by Jim Meyering.
30664
30665 2007-10-18  Bruno Haible  <bruno@clisp.org>
30666
30667         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
30668         Reported by Jim Meyering.
30669
30670 2007-10-18  Eric Blake  <ebb9@byu.net>
30671
30672         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
30673
30674 2007-10-18  Bruno Haible  <bruno@clisp.org>
30675
30676         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
30677         the format string into writable memory. Needed in Fortify conditions.
30678
30679 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
30680             Bruno Haible  <bruno@clisp.org>
30681
30682         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
30683         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
30684         * modules/trim (Depends-on): Add mbchar.
30685         (configure.ac): Add gl_FUNC_MBRTOWC.
30686         (Makefile.am): Augment lib_SOURCES.
30687
30688 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
30689
30690         Modify glob.c to use fstatat and dirfd, to simplify it.
30691         Suggested by Eric Blake.
30692         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
30693         Don't include <stdbool.h>; not used.
30694         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
30695         (link_exists_p): Simplify implementation, since we can now assume
30696         dirfd and fstatat.
30697         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
30698
30699 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30700
30701         * gnulib-tool (func_get_dependencies): Fix sed script to
30702         match only tests.
30703
30704 2007-10-17  Bruno Haible  <bruno@clisp.org>
30705
30706         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
30707         allow locale names without encoding suffix.
30708         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
30709         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
30710
30711 2007-10-16  Bruno Haible  <bruno@clisp.org>
30712
30713         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
30714         * lib/getgroups.c (getgroups): Likewise.
30715         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
30716
30717 2007-10-16  Bruno Haible  <bruno@clisp.org>
30718
30719         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
30720         * modules/malloc-posix (License): Likewise.
30721         * modules/realloc-posix (License): Likewise.
30722         * modules/calloc-posix (License): Likewise.
30723         * modules/intprops (License): Change from GPL to LGPL, with
30724         Paul Eggert's approval.
30725
30726 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
30727
30728         Merge glibc changes into lib/glob.c.
30729
30730         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
30731         2007-10-15 04:59:03 UTC.  Here are the changes:
30732
30733         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
30734
30735         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
30736
30737         * lib/glob.c: Add some branch prediction throughout.
30738
30739         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
30740
30741         [BZ #5103]
30742         * lib/glob.c (glob): Recognize patterns starting \/.
30743
30744         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
30745
30746         [BZ #3996]
30747         * lib/glob.c (attribute_hidden): Define if not defined.
30748         (glob): Unescape dirname, filename or username when needed and not
30749         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
30750         is NULL.  Handle unescaped [ in pattern without closing ].
30751         Don't pass GLOB_CHECK down to recursive glob for directories.
30752         (__glob_pattern_type): New function.
30753         (__glob_pattern_p): Implement using __glob_pattern_type.
30754         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
30755         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
30756         Remove unreachable code.
30757
30758         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
30759
30760         * lib/glob.c (glob_in_dir): Add some comments and asserts to
30761         explain why there are no leaks.
30762
30763         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
30764
30765         [BZ #3253]
30766         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
30767         time, rather allocate increasingly bigger arrays of pointers, if
30768         possible with alloca, if too large with malloc.
30769
30770 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
30771
30772         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
30773         Problem reported by H.Merijn Brand in
30774         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
30775         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
30776         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
30777
30778 2007-10-15  Bruno Haible  <bruno@clisp.org>
30779
30780         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
30781         with explicit rpl_ prefix.
30782         * lib/fopen.c (fopen): Likewise.
30783         * lib/freopen.c (freopen): Likewise.
30784         * lib/iconv.c (iconv): Likewise.
30785         * lib/iconv_close.c (iconv_close): Likewise.
30786
30787 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30788
30789         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
30790
30791 2007-10-15  Bruno Haible  <bruno@clisp.org>
30792
30793         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
30794         <stddef.h> instead of <stdlib.h> since we only need NULL.
30795         Reported by Ben Pfaff <blp@cs.stanford.edu>.
30796
30797 2007-10-15  Bruno Haible  <bruno@clisp.org>
30798
30799         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
30800         Replace paragraph talking about LIBOBJS.
30801         Reported by Colin Watson <cjwatson@debian.org>.
30802
30803 2007-10-15  Bruno Haible  <bruno@clisp.org>
30804
30805         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
30806         <stdlib.h> before using NULL.
30807
30808 2007-10-15  Simon Josefsson  <simon@josefsson.org>
30809
30810         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
30811         Reported by Albert Chin <china@thewrittenword.com>.
30812
30813 2007-10-14  Bruno Haible  <bruno@clisp.org>
30814
30815         * modules/iconv_open-utf-tests: New file.
30816         * tests/test-iconv-utf.c: New file.
30817
30818         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
30819         * modules/iconv_open-utf: New file.
30820         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
30821         (iconv, iconv_close): New declarations.
30822         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
30823         be defined.
30824         (iconv_open): Add special handling of conversion between UTF-8 and
30825         UTF-{16,32}{BE,LE}.
30826         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
30827         * lib/iconv_close.c: New file.
30828         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
30829         gl_FUNC_ICONV_OPEN.
30830         (gl_FUNC_ICONV_OPEN): Use it.
30831         (gl_FUNC_ICONV_OPEN_UTF): New macro.
30832         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
30833         and REPLACE_ICONV_UTF.
30834         * modules/iconv_open (Depends-on): Add c-strcase.
30835         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
30836         ICONV_CONST.
30837         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
30838
30839 2007-10-13  Albert Chin  <china@thewrittenword.com>
30840             Bruno Haible  <bruno@clisp.org>
30841
30842         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
30843         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
30844
30845 2007-10-13  Bruno Haible  <bruno@clisp.org>
30846
30847         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
30848         defined, use the ISO C99 inline semantics.
30849         * lib/argp.h (ARGP_EI): Likewise.
30850
30851 2007-10-13  Bruno Haible  <bruno@clisp.org>
30852
30853         Handle 'inline' change in gcc 4.3.0.
30854         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
30855         argp_fmtstream_write, argp_fmtstream_set_lmargin,
30856         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
30857         argp_fmtstream_point): Disable 'extern' declaration if the function
30858         definition is going to be provided inline.
30859         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
30860         semantics, not the ISO C99 inline semantics.
30861         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
30862         'extern' declaration if the function definition is going to be provided
30863         inline.
30864         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
30865         the GNU C inline semantics, not the ISO C99 inline semantics. With
30866         GCC 4.2, avoid a warning.
30867
30868 2007-10-13  Bruno Haible  <bruno@clisp.org>
30869
30870         * lib/freading.h (freading): Enable the use of __freading for
30871         glibc >= 2.7.
30872         * lib/freading.c (freading): Likewise.
30873
30874 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
30875
30876         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
30877         "warning: C99 inline functions are not supported; using GNU89".
30878
30879 2007-10-12  Bruno Haible  <bruno@clisp.org>
30880
30881         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
30882         of 2.
30883         * tests/test-ceilf2.c: New file.
30884         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
30885
30886         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
30887         * modules/ceilf-tests: Update.
30888
30889 2007-10-12  Bruno Haible  <bruno@clisp.org>
30890
30891         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
30892         of 2.
30893         * tests/test-floorf2.c: New file.
30894         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
30895
30896         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
30897         * modules/floorf-tests: Update.
30898
30899 2007-10-12  Bruno Haible  <bruno@clisp.org>
30900
30901         * tests/test-trunc2.c: New file.
30902         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
30903
30904         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
30905         * modules/trunc-tests: Update.
30906
30907 2007-10-12  Bruno Haible  <bruno@clisp.org>
30908
30909         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
30910         of 2.
30911         * tests/test-truncf2.c: New file.
30912         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
30913
30914         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
30915         * modules/truncf-tests: Update.
30916
30917 2007-10-11  Eric Blake  <ebb9@byu.net>
30918
30919         Don't claim strerror is broken on Interix.
30920         * doc/functions/strerror.texi (strerror): Known broken systems are
30921         now Solaris 8, and not Interix.
30922         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
30923         Interix on cross-compile.
30924         Reported by Martin Koeppe in
30925         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
30926
30927 2007-10-11  Bruno Haible  <bruno@clisp.org>
30928
30929         * modules/i-ring-tests: New file.
30930         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
30931         instead of assert.
30932
30933 2007-10-11  Bruno Haible  <bruno@clisp.org>
30934
30935         * modules/filenamecat-tests: New file.
30936         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
30937         * lib/filenamecat.c: Remove test code.
30938
30939 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
30940
30941         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
30942
30943         * lib/strerror.c: Include <string.h> always, to test interface,
30944         and to remove the need for the dummy.
30945         Include intprops.h to compute width instead of doing it ourselves
30946         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
30947         (strerror): Define it to return NULL if there's no system strerror.
30948         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
30949         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
30950         ancient pre-strerror Unix systems well any more.  Saying "unknown
30951         system error" is enough.
30952         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
30953         simpler strerror.c implementation.
30954         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
30955         Simplify the tests to reflect the simpler strerror implementation.
30956         * modules/strerror (Depends-on): Add intprops.
30957
30958 2007-10-09  Eric Blake  <ebb9@byu.net>
30959
30960         Silence test-fpending.
30961         * modules/fpending-tests (Files): Add wrapper script.
30962         * tests/test-fpending.sh: New file.
30963
30964 2007-10-09  Bruno Haible  <bruno@clisp.org>
30965
30966         * MODULES.html.sh (func_module): Don't create a hyperlink for
30967         function names like 'printf_frexp'.
30968         (Misc): Add crc, memxor.
30969         (Characteristics of floating types): New section.
30970         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
30971         isnanf-nolibm, signbit, trunc, truncf, truncl.
30972         (Enhancements for ISO C 99 functions): New subsection Input/output.
30973         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
30974         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
30975         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
30976         (Compatibility checks for POSIX:2001 functions): Add clock-time.
30977         (Enhancements for POSIX:2001 functions): Add chdir-long.
30978         (File system functions): Add areadlink, chdir-safer, read-file.
30979         Remove cycle-check.
30980         (File system as inode set): New section.
30981         (Date and time): Add gethrxtime.
30982         (Multithreading): Add openmp.
30983         (Internationalization functions): Add localename.
30984         (Unicode string functions): Add unistr/u*-mbsnlen.
30985         (Support for maintaining and releasing projects): Add git-version-gen.
30986         (Lone files): Remove directories.
30987
30988 2007-10-08  Ben Pfaff  <blp@gnu.org>
30989
30990         * lib/xmalloca.h: Fix typo in comment.
30991
30992 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
30993
30994         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
30995         when avoiding problems with integer overflow.  Use a portable test
30996         instead.
30997
30998 2007-10-08  Simon Josefsson  <simon@josefsson.org>
30999
31000         * modules/dummy (License): Change to LGPLv2+.
31001         * modules/float (License): Likewise
31002         * modules/realloc (License): Likewise
31003         * modules/stdlib (License): Likewise
31004
31005 2007-10-07  Bruno Haible  <bruno@clisp.org>
31006
31007         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
31008         * floor.c (TWO_MANT_DIG): Likewise.
31009         * ceil.c (TWO_MANT_DIG): Likewise.
31010         Reported by Ben Pfaff.
31011
31012 2007-10-07  Bruno Haible  <bruno@clisp.org>
31013
31014         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
31015         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
31016         * lib/frexp.c (FUNC): Likewise.
31017         * lib/printf-frexp.h (printf_frexp): Likewise.
31018         * lib/printf-frexpl.h (printf_frexpl): Likewise.
31019         * lib/printf-frexp.c (FUNC): Likewise.
31020         Suggested by Jim Meyering.
31021
31022 2007-10-07  Jim Meyering  <meyering@redhat.com>
31023
31024         Make xnanosleep's integer overflow test more robust.
31025         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
31026         so that gcc-4.3.0 doesn't optimize away this test for overflow.
31027
31028 2007-10-07  Bruno Haible  <bruno@clisp.org>
31029
31030         * NEWS: Mention the license change.
31031
31032         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
31033         abbreviations in the modules files.
31034
31035         Change copyright notice from GPLv2+ to GPLv3+.
31036         * README: Change copyright notice.
31037         * MODULES.html.sh: Likewise.
31038         * build-aux/bootstrap.conf: Likewise.
31039         * build-aux/config.libpath: Likewise.
31040         * build-aux/csharpcomp.sh.in: Likewise.
31041         * build-aux/csharpexec.sh.in: Likewise.
31042         * build-aux/install-reloc: Likewise.
31043         * build-aux/javacomp.sh.in: Likewise.
31044         * build-aux/javaexec.sh.in: Likewise.
31045         * build-aux/ldd.sh.in: Likewise.
31046         * build-aux/reloc-ldflags: Likewise.
31047         * build-aux/relocatable.sh.in: Likewise.
31048         * build-aux/x-to-1.in: Likewise.
31049         * check-module: Likewise.
31050         * config/srclistvars.sh: Likewise.
31051         * gnulib-tool: Likewise.
31052         * lib/acl-internal.h: Likewise.
31053         * lib/acl.c: Likewise.
31054         * lib/acl.h: Likewise.
31055         * lib/acl_entries.c: Likewise.
31056         * lib/areadlink-with-size.c: Likewise.
31057         * lib/areadlink.c: Likewise.
31058         * lib/areadlink.h: Likewise.
31059         * lib/argmatch.c: Likewise.
31060         * lib/argmatch.h: Likewise.
31061         * lib/argp-ba.c: Likewise.
31062         * lib/argp-eexst.c: Likewise.
31063         * lib/argp-fmtstream.c: Likewise.
31064         * lib/argp-fmtstream.h: Likewise.
31065         * lib/argp-fs-xinl.c: Likewise.
31066         * lib/argp-help.c: Likewise.
31067         * lib/argp-namefrob.h: Likewise.
31068         * lib/argp-parse.c: Likewise.
31069         * lib/argp-pin.c: Likewise.
31070         * lib/argp-pv.c: Likewise.
31071         * lib/argp-pvh.c: Likewise.
31072         * lib/argp-xinl.c: Likewise.
31073         * lib/argp.h: Likewise.
31074         * lib/at-func.c: Likewise.
31075         * lib/atanl.c: Likewise.
31076         * lib/backupfile.c: Likewise.
31077         * lib/backupfile.h: Likewise.
31078         * lib/basename.c: Likewise.
31079         * lib/binary-io.h: Likewise.
31080         * lib/byteswap.in.h: Likewise.
31081         * lib/c-stack.c: Likewise.
31082         * lib/c-stack.h: Likewise.
31083         * lib/c-strcasestr.c: Likewise.
31084         * lib/c-strcasestr.h: Likewise.
31085         * lib/c-strstr.c: Likewise.
31086         * lib/c-strstr.h: Likewise.
31087         * lib/c-strtod.c: Likewise.
31088         * lib/calloc.c: Likewise.
31089         * lib/canon-host.c: Likewise.
31090         * lib/canon-host.h: Likewise.
31091         * lib/canonicalize-lgpl.c: Likewise.
31092         * lib/canonicalize.c: Likewise.
31093         * lib/canonicalize.h: Likewise.
31094         * lib/ceil.c: Likewise.
31095         * lib/ceilf.c: Likewise.
31096         * lib/ceill.c: Likewise.
31097         * lib/chdir-long.c: Likewise.
31098         * lib/chdir-long.h: Likewise.
31099         * lib/chdir-safer.c: Likewise.
31100         * lib/chdir-safer.h: Likewise.
31101         * lib/chown.c: Likewise.
31102         * lib/classpath.c: Likewise.
31103         * lib/classpath.h: Likewise.
31104         * lib/clean-temp.c: Likewise.
31105         * lib/clean-temp.h: Likewise.
31106         * lib/cloexec.c: Likewise.
31107         * lib/close-stream.c: Likewise.
31108         * lib/closein.c: Likewise.
31109         * lib/closein.h: Likewise.
31110         * lib/closeout.c: Likewise.
31111         * lib/closeout.h: Likewise.
31112         * lib/concat-filename.c: Likewise.
31113         * lib/copy-file.c: Likewise.
31114         * lib/copy-file.h: Likewise.
31115         * lib/count-one-bits.h: Likewise.
31116         * lib/crc.c: Likewise.
31117         * lib/crc.h: Likewise.
31118         * lib/creat-safer.c: Likewise.
31119         * lib/csharpcomp.c: Likewise.
31120         * lib/csharpcomp.h: Likewise.
31121         * lib/csharpexec.c: Likewise.
31122         * lib/csharpexec.h: Likewise.
31123         * lib/cycle-check.c: Likewise.
31124         * lib/cycle-check.h: Likewise.
31125         * lib/diacrit.c: Likewise.
31126         * lib/diacrit.h: Likewise.
31127         * lib/diffseq.h: Likewise.
31128         * lib/dirchownmod.c: Likewise.
31129         * lib/dirent.in.h: Likewise.
31130         * lib/dirfd.c: Likewise.
31131         * lib/dirfd.h: Likewise.
31132         * lib/dirname.c: Likewise.
31133         * lib/dirname.h: Likewise.
31134         * lib/dummy.c: Likewise.
31135         * lib/dup-safer.c: Likewise.
31136         * lib/dup2.c: Likewise.
31137         * lib/eealloc.h: Likewise.
31138         * lib/error.c: Likewise.
31139         * lib/error.h: Likewise.
31140         * lib/euidaccess.c: Likewise.
31141         * lib/exclude.c: Likewise.
31142         * lib/exclude.h: Likewise.
31143         * lib/execute.c: Likewise.
31144         * lib/execute.h: Likewise.
31145         * lib/exitfail.c: Likewise.
31146         * lib/exitfail.h: Likewise.
31147         * lib/expl.c: Likewise.
31148         * lib/fatal-signal.c: Likewise.
31149         * lib/fatal-signal.h: Likewise.
31150         * lib/fbufmode.c: Likewise.
31151         * lib/fbufmode.h: Likewise.
31152         * lib/fchdir.c: Likewise.
31153         * lib/fchmodat.c: Likewise.
31154         * lib/fchownat.c: Likewise.
31155         * lib/fcntl--.h: Likewise.
31156         * lib/fcntl-safer.h: Likewise.
31157         * lib/fcntl.in.h: Likewise.
31158         * lib/fd-safer.c: Likewise.
31159         * lib/fflush.c: Likewise.
31160         * lib/file-has-acl.c: Likewise.
31161         * lib/file-set.c: Likewise.
31162         * lib/file-type.c: Likewise.
31163         * lib/file-type.h: Likewise.
31164         * lib/fileblocks.c: Likewise.
31165         * lib/filemode.c: Likewise.
31166         * lib/filemode.h: Likewise.
31167         * lib/filename.h: Likewise.
31168         * lib/filenamecat.c: Likewise.
31169         * lib/filenamecat.h: Likewise.
31170         * lib/findprog.c: Likewise.
31171         * lib/findprog.h: Likewise.
31172         * lib/float.in.h: Likewise.
31173         * lib/floor.c: Likewise.
31174         * lib/floorf.c: Likewise.
31175         * lib/floorl.c: Likewise.
31176         * lib/fopen-safer.c: Likewise.
31177         * lib/fopen.c: Likewise.
31178         * lib/fpending.c: Likewise.
31179         * lib/fpending.h: Likewise.
31180         * lib/fprintf.c: Likewise.
31181         * lib/fprintftime.h: Likewise.
31182         * lib/fpucw.h: Likewise.
31183         * lib/fpurge.c: Likewise.
31184         * lib/fpurge.h: Likewise.
31185         * lib/freadable.c: Likewise.
31186         * lib/freadable.h: Likewise.
31187         * lib/freadahead.c: Likewise.
31188         * lib/freadahead.h: Likewise.
31189         * lib/freading.c: Likewise.
31190         * lib/freading.h: Likewise.
31191         * lib/free.c: Likewise.
31192         * lib/freopen.c: Likewise.
31193         * lib/frexp.c: Likewise.
31194         * lib/frexpl.c: Likewise.
31195         * lib/fseek.c: Likewise.
31196         * lib/fseterr.c: Likewise.
31197         * lib/fseterr.h: Likewise.
31198         * lib/fstatat.c: Likewise.
31199         * lib/fstrcmp.c: Likewise.
31200         * lib/fstrcmp.h: Likewise.
31201         * lib/fsusage.c: Likewise.
31202         * lib/fsusage.h: Likewise.
31203         * lib/ftell.c: Likewise.
31204         * lib/ftello.c: Likewise.
31205         * lib/fts-cycle.c: Likewise.
31206         * lib/fts.c: Likewise.
31207         * lib/fts_.h: Likewise.
31208         * lib/full-read.c: Likewise.
31209         * lib/full-read.h: Likewise.
31210         * lib/full-write.c: Likewise.
31211         * lib/full-write.h: Likewise.
31212         * lib/fwritable.c: Likewise.
31213         * lib/fwritable.h: Likewise.
31214         * lib/fwriteerror.c: Likewise.
31215         * lib/fwriteerror.h: Likewise.
31216         * lib/fwriting.c: Likewise.
31217         * lib/fwriting.h: Likewise.
31218         * lib/gcd.c: Likewise.
31219         * lib/gcd.h: Likewise.
31220         * lib/getcwd.c: Likewise.
31221         * lib/getdate.h: Likewise.
31222         * lib/getdate.y: Likewise.
31223         * lib/getdomainname.c: Likewise.
31224         * lib/getdomainname.h: Likewise.
31225         * lib/getgroups.c: Likewise.
31226         * lib/gethostname.c: Likewise.
31227         * lib/gethrxtime.c: Likewise.
31228         * lib/gethrxtime.h: Likewise.
31229         * lib/getloadavg.c: Likewise.
31230         * lib/getndelim2.c: Likewise.
31231         * lib/getndelim2.h: Likewise.
31232         * lib/getnline.c: Likewise.
31233         * lib/getnline.h: Likewise.
31234         * lib/getopt.c: Likewise.
31235         * lib/getopt.in.h: Likewise.
31236         * lib/getopt1.c: Likewise.
31237         * lib/getopt_int.h: Likewise.
31238         * lib/getpagesize.h: Likewise.
31239         * lib/getsubopt.c: Likewise.
31240         * lib/gettime.c: Likewise.
31241         * lib/getugroups.c: Likewise.
31242         * lib/getugroups.h: Likewise.
31243         * lib/getusershell.c: Likewise.
31244         * lib/gl_anyavltree_list1.h: Likewise.
31245         * lib/gl_anyavltree_list2.h: Likewise.
31246         * lib/gl_anyhash_list1.h: Likewise.
31247         * lib/gl_anyhash_list2.h: Likewise.
31248         * lib/gl_anylinked_list1.h: Likewise.
31249         * lib/gl_anylinked_list2.h: Likewise.
31250         * lib/gl_anyrbtree_list1.h: Likewise.
31251         * lib/gl_anyrbtree_list2.h: Likewise.
31252         * lib/gl_anytree_list1.h: Likewise.
31253         * lib/gl_anytree_list2.h: Likewise.
31254         * lib/gl_anytree_oset.h: Likewise.
31255         * lib/gl_anytreehash_list1.h: Likewise.
31256         * lib/gl_anytreehash_list2.h: Likewise.
31257         * lib/gl_array_list.c: Likewise.
31258         * lib/gl_array_list.h: Likewise.
31259         * lib/gl_array_oset.c: Likewise.
31260         * lib/gl_array_oset.h: Likewise.
31261         * lib/gl_avltree_list.c: Likewise.
31262         * lib/gl_avltree_list.h: Likewise.
31263         * lib/gl_avltree_oset.c: Likewise.
31264         * lib/gl_avltree_oset.h: Likewise.
31265         * lib/gl_avltreehash_list.c: Likewise.
31266         * lib/gl_avltreehash_list.h: Likewise.
31267         * lib/gl_carray_list.c: Likewise.
31268         * lib/gl_carray_list.h: Likewise.
31269         * lib/gl_linked_list.c: Likewise.
31270         * lib/gl_linked_list.h: Likewise.
31271         * lib/gl_linkedhash_list.c: Likewise.
31272         * lib/gl_linkedhash_list.h: Likewise.
31273         * lib/gl_list.c: Likewise.
31274         * lib/gl_list.h: Likewise.
31275         * lib/gl_oset.c: Likewise.
31276         * lib/gl_oset.h: Likewise.
31277         * lib/gl_rbtree_list.c: Likewise.
31278         * lib/gl_rbtree_list.h: Likewise.
31279         * lib/gl_rbtree_oset.c: Likewise.
31280         * lib/gl_rbtree_oset.h: Likewise.
31281         * lib/gl_rbtreehash_list.c: Likewise.
31282         * lib/gl_rbtreehash_list.h: Likewise.
31283         * lib/gl_sublist.c: Likewise.
31284         * lib/gl_sublist.h: Likewise.
31285         * lib/group-member.c: Likewise.
31286         * lib/group-member.h: Likewise.
31287         * lib/hard-locale.c: Likewise.
31288         * lib/hard-locale.h: Likewise.
31289         * lib/hash-pjw.c: Likewise.
31290         * lib/hash-pjw.h: Likewise.
31291         * lib/hash-triple.c: Likewise.
31292         * lib/hash.c: Likewise.
31293         * lib/hash.h: Likewise.
31294         * lib/human.c: Likewise.
31295         * lib/human.h: Likewise.
31296         * lib/i-ring.c: Likewise.
31297         * lib/i-ring.h: Likewise.
31298         * lib/idcache.c: Likewise.
31299         * lib/imaxabs.c: Likewise.
31300         * lib/imaxdiv.c: Likewise.
31301         * lib/inet_pton.c: Likewise.
31302         * lib/inet_pton.h: Likewise.
31303         * lib/intprops.h: Likewise.
31304         * lib/inttostr.c: Likewise.
31305         * lib/inttostr.h: Likewise.
31306         * lib/inttypes.in.h: Likewise.
31307         * lib/isapipe.c: Likewise.
31308         * lib/isdir.c: Likewise.
31309         * lib/isnan.c: Likewise.
31310         * lib/isnan.h: Likewise.
31311         * lib/isnanf.c: Likewise.
31312         * lib/isnanf.h: Likewise.
31313         * lib/isnanl-nolibm.h: Likewise.
31314         * lib/isnanl.c: Likewise.
31315         * lib/isnanl.h: Likewise.
31316         * lib/javacomp.c: Likewise.
31317         * lib/javacomp.h: Likewise.
31318         * lib/javaexec.c: Likewise.
31319         * lib/javaexec.h: Likewise.
31320         * lib/javaversion.c: Likewise.
31321         * lib/javaversion.h: Likewise.
31322         * lib/javaversion.java: Likewise.
31323         * lib/lbrkprop.h: Likewise.
31324         * lib/lchmod.h: Likewise.
31325         * lib/lchown.c: Likewise.
31326         * lib/ldexpl.c: Likewise.
31327         * lib/linebreak.c: Likewise.
31328         * lib/linebreak.h: Likewise.
31329         * lib/linebuffer.c: Likewise.
31330         * lib/linebuffer.h: Likewise.
31331         * lib/locale.in.h: Likewise.
31332         * lib/logl.c: Likewise.
31333         * lib/long-options.c: Likewise.
31334         * lib/long-options.h: Likewise.
31335         * lib/lstat.c: Likewise.
31336         * lib/lstat.h: Likewise.
31337         * lib/math.in.h: Likewise.
31338         * lib/mbchar.c: Likewise.
31339         * lib/mbchar.h: Likewise.
31340         * lib/mbfile.h: Likewise.
31341         * lib/mbiter.h: Likewise.
31342         * lib/mbscasecmp.c: Likewise.
31343         * lib/mbscasestr.c: Likewise.
31344         * lib/mbschr.c: Likewise.
31345         * lib/mbscspn.c: Likewise.
31346         * lib/mbslen.c: Likewise.
31347         * lib/mbsncasecmp.c: Likewise.
31348         * lib/mbsnlen.c: Likewise.
31349         * lib/mbspbrk.c: Likewise.
31350         * lib/mbspcasecmp.c: Likewise.
31351         * lib/mbsrchr.c: Likewise.
31352         * lib/mbssep.c: Likewise.
31353         * lib/mbsspn.c: Likewise.
31354         * lib/mbsstr.c: Likewise.
31355         * lib/mbstok_r.c: Likewise.
31356         * lib/mbswidth.c: Likewise.
31357         * lib/mbswidth.h: Likewise.
31358         * lib/mbuiter.h: Likewise.
31359         * lib/memcasecmp.c: Likewise.
31360         * lib/memcasecmp.h: Likewise.
31361         * lib/memchr.c: Likewise.
31362         * lib/memcmp.c: Likewise.
31363         * lib/memcoll.c: Likewise.
31364         * lib/memcoll.h: Likewise.
31365         * lib/memcpy.c: Likewise.
31366         * lib/memrchr.c: Likewise.
31367         * lib/mkancesdirs.c: Likewise.
31368         * lib/mkdir-p.c: Likewise.
31369         * lib/mkdir-p.h: Likewise.
31370         * lib/mkdir.c: Likewise.
31371         * lib/mkdirat.c: Likewise.
31372         * lib/mkdtemp.c: Likewise.
31373         * lib/mkstemp-safer.c: Likewise.
31374         * lib/mkstemp.c: Likewise.
31375         * lib/modechange.c: Likewise.
31376         * lib/modechange.h: Likewise.
31377         * lib/mountlist.c: Likewise.
31378         * lib/mountlist.h: Likewise.
31379         * lib/mpsort.c: Likewise.
31380         * lib/nanosleep.c: Likewise.
31381         * lib/obstack.c: Likewise.
31382         * lib/obstack.h: Likewise.
31383         * lib/open-safer.c: Likewise.
31384         * lib/open.c: Likewise.
31385         * lib/openat-die.c: Likewise.
31386         * lib/openat-priv.h: Likewise.
31387         * lib/openat-proc.c: Likewise.
31388         * lib/openat.c: Likewise.
31389         * lib/openat.h: Likewise.
31390         * lib/pagealign_alloc.c: Likewise.
31391         * lib/pagealign_alloc.h: Likewise.
31392         * lib/physmem.c: Likewise.
31393         * lib/physmem.h: Likewise.
31394         * lib/pipe-safer.c: Likewise.
31395         * lib/pipe.c: Likewise.
31396         * lib/pipe.h: Likewise.
31397         * lib/posixtm.c: Likewise.
31398         * lib/posixtm.h: Likewise.
31399         * lib/posixver.c: Likewise.
31400         * lib/printf-frexp.c: Likewise.
31401         * lib/printf-frexp.h: Likewise.
31402         * lib/printf-frexpl.c: Likewise.
31403         * lib/printf-frexpl.h: Likewise.
31404         * lib/printf.c: Likewise.
31405         * lib/progname.c: Likewise.
31406         * lib/progname.h: Likewise.
31407         * lib/progreloc.c: Likewise.
31408         * lib/putenv.c: Likewise.
31409         * lib/quote.c: Likewise.
31410         * lib/quote.h: Likewise.
31411         * lib/quotearg.c: Likewise.
31412         * lib/quotearg.h: Likewise.
31413         * lib/raise.c: Likewise.
31414         * lib/readline.c: Likewise.
31415         * lib/readline.h: Likewise.
31416         * lib/readlink.c: Likewise.
31417         * lib/readtokens.c: Likewise.
31418         * lib/readtokens.h: Likewise.
31419         * lib/readtokens0.c: Likewise.
31420         * lib/readtokens0.h: Likewise.
31421         * lib/readutmp.c: Likewise.
31422         * lib/readutmp.h: Likewise.
31423         * lib/realloc.c: Likewise.
31424         * lib/relocwrapper.c: Likewise.
31425         * lib/rename-dest-slash.c: Likewise.
31426         * lib/rename.c: Likewise.
31427         * lib/rmdir.c: Likewise.
31428         * lib/rpmatch.c: Likewise.
31429         * lib/safe-read.c: Likewise.
31430         * lib/safe-read.h: Likewise.
31431         * lib/safe-write.c: Likewise.
31432         * lib/safe-write.h: Likewise.
31433         * lib/same-inode.h: Likewise.
31434         * lib/same.c: Likewise.
31435         * lib/same.h: Likewise.
31436         * lib/save-cwd.c: Likewise.
31437         * lib/save-cwd.h: Likewise.
31438         * lib/savedir.c: Likewise.
31439         * lib/savedir.h: Likewise.
31440         * lib/savewd.c: Likewise.
31441         * lib/savewd.h: Likewise.
31442         * lib/search.in.h: Likewise.
31443         * lib/setenv.c: Likewise.
31444         * lib/setenv.h: Likewise.
31445         * lib/settime.c: Likewise.
31446         * lib/sh-quote.c: Likewise.
31447         * lib/sh-quote.h: Likewise.
31448         * lib/sig2str.c: Likewise.
31449         * lib/sig2str.h: Likewise.
31450         * lib/signal.in.h: Likewise.
31451         * lib/signbitd.c: Likewise.
31452         * lib/signbitf.c: Likewise.
31453         * lib/signbitl.c: Likewise.
31454         * lib/sigprocmask.c: Likewise.
31455         * lib/sincosl.c: Likewise.
31456         * lib/sleep.c: Likewise.
31457         * lib/sprintf.c: Likewise.
31458         * lib/sqrtl.c: Likewise.
31459         * lib/stat-time.h: Likewise.
31460         * lib/stdio--.h: Likewise.
31461         * lib/stdio-safer.h: Likewise.
31462         * lib/stdlib--.h: Likewise.
31463         * lib/stdlib-safer.h: Likewise.
31464         * lib/stdlib.in.h: Likewise.
31465         * lib/stpcpy.c: Likewise.
31466         * lib/stpncpy.c: Likewise.
31467         * lib/strchrnul.c: Likewise.
31468         * lib/strcspn.c: Likewise.
31469         * lib/strerror.c: Likewise.
31470         * lib/strftime.c: Likewise.
31471         * lib/strftime.h: Likewise.
31472         * lib/striconveh.c: Likewise.
31473         * lib/striconveh.h: Likewise.
31474         * lib/striconveha.c: Likewise.
31475         * lib/striconveha.h: Likewise.
31476         * lib/stripslash.c: Likewise.
31477         * lib/strnlen1.c: Likewise.
31478         * lib/strnlen1.h: Likewise.
31479         * lib/strtod.c: Likewise.
31480         * lib/strtoimax.c: Likewise.
31481         * lib/strtok_r.c: Likewise.
31482         * lib/strtol.c: Likewise.
31483         * lib/strtoll.c: Likewise.
31484         * lib/strtoul.c: Likewise.
31485         * lib/strtoull.c: Likewise.
31486         * lib/sysexits.in.h: Likewise.
31487         * lib/tempname.c: Likewise.
31488         * lib/tempname.h: Likewise.
31489         * lib/timespec.h: Likewise.
31490         * lib/tls.c: Likewise.
31491         * lib/tls.h: Likewise.
31492         * lib/tmpdir.c: Likewise.
31493         * lib/tmpdir.h: Likewise.
31494         * lib/tmpfile-safer.c: Likewise.
31495         * lib/tmpfile.c: Likewise.
31496         * lib/trigl.c: Likewise.
31497         * lib/trigl.h: Likewise.
31498         * lib/trim.c: Likewise.
31499         * lib/trim.h: Likewise.
31500         * lib/trunc.c: Likewise.
31501         * lib/truncf.c: Likewise.
31502         * lib/truncl.c: Likewise.
31503         * lib/tsearch.c: Likewise.
31504         * lib/unicodeio.c: Likewise.
31505         * lib/unicodeio.h: Likewise.
31506         * lib/unistd--.h: Likewise.
31507         * lib/unistd-safer.h: Likewise.
31508         * lib/unistdio/ulc-fprintf.c: Likewise.
31509         * lib/unistdio/ulc-vfprintf.c: Likewise.
31510         * lib/unlinkdir.c: Likewise.
31511         * lib/unlinkdir.h: Likewise.
31512         * lib/unlocked-io.h: Likewise.
31513         * lib/unsetenv.c: Likewise.
31514         * lib/userspec.c: Likewise.
31515         * lib/utime.c: Likewise.
31516         * lib/utimecmp.c: Likewise.
31517         * lib/utimecmp.h: Likewise.
31518         * lib/utimens.c: Likewise.
31519         * lib/verify.h: Likewise.
31520         * lib/verror.c: Likewise.
31521         * lib/verror.h: Likewise.
31522         * lib/version-etc-fsf.c: Likewise.
31523         * lib/version-etc.c: Likewise.
31524         * lib/version-etc.h: Likewise.
31525         * lib/vfprintf.c: Likewise.
31526         * lib/vprintf.c: Likewise.
31527         * lib/vsprintf.c: Likewise.
31528         * lib/w32spawn.h: Likewise.
31529         * lib/wait-process.c: Likewise.
31530         * lib/wait-process.h: Likewise.
31531         * lib/wcwidth.c: Likewise.
31532         * lib/write-any-file.c: Likewise.
31533         * lib/xalloc-die.c: Likewise.
31534         * lib/xalloc.h: Likewise.
31535         * lib/xasprintf.c: Likewise.
31536         * lib/xgetcwd.c: Likewise.
31537         * lib/xgetcwd.h: Likewise.
31538         * lib/xgetdomainname.c: Likewise.
31539         * lib/xgetdomainname.h: Likewise.
31540         * lib/xgethostname.c: Likewise.
31541         * lib/xmalloc.c: Likewise.
31542         * lib/xmalloca.c: Likewise.
31543         * lib/xmalloca.h: Likewise.
31544         * lib/xmemcoll.c: Likewise.
31545         * lib/xnanosleep.c: Likewise.
31546         * lib/xreadlink.c: Likewise.
31547         * lib/xreadlink.h: Likewise.
31548         * lib/xsetenv.c: Likewise.
31549         * lib/xsetenv.h: Likewise.
31550         * lib/xstriconv.c: Likewise.
31551         * lib/xstriconv.h: Likewise.
31552         * lib/xstrndup.c: Likewise.
31553         * lib/xstrndup.h: Likewise.
31554         * lib/xstrtod.c: Likewise.
31555         * lib/xstrtod.h: Likewise.
31556         * lib/xstrtol-error.c: Likewise.
31557         * lib/xstrtol.c: Likewise.
31558         * lib/xstrtol.h: Likewise.
31559         * lib/xtime.h: Likewise.
31560         * lib/xvasprintf.c: Likewise.
31561         * lib/xvasprintf.h: Likewise.
31562         * lib/yesno.c: Likewise.
31563         * lib/yesno.h: Likewise.
31564         * posix-modules: Likewise.
31565         * tests/test-alloca-opt.c: Likewise.
31566         * tests/test-arcfour.c: Likewise.
31567         * tests/test-arctwo.c: Likewise.
31568         * tests/test-argmatch.c: Likewise.
31569         * tests/test-argp-2.sh: Likewise.
31570         * tests/test-argp.c: Likewise.
31571         * tests/test-arpa_inet.c: Likewise.
31572         * tests/test-array_list.c: Likewise.
31573         * tests/test-array_oset.c: Likewise.
31574         * tests/test-atexit.c: Likewise.
31575         * tests/test-avltree_list.c: Likewise.
31576         * tests/test-avltree_oset.c: Likewise.
31577         * tests/test-avltreehash_list.c: Likewise.
31578         * tests/test-base64.c: Likewise.
31579         * tests/test-binary-io.c: Likewise.
31580         * tests/test-byteswap.c: Likewise.
31581         * tests/test-c-ctype.c: Likewise.
31582         * tests/test-c-strcasecmp.c: Likewise.
31583         * tests/test-c-strcasestr.c: Likewise.
31584         * tests/test-c-strncasecmp.c: Likewise.
31585         * tests/test-c-strstr.c: Likewise.
31586         * tests/test-canonicalize-lgpl.c: Likewise.
31587         * tests/test-canonicalize.c: Likewise.
31588         * tests/test-carray_list.c: Likewise.
31589         * tests/test-ceilf.c: Likewise.
31590         * tests/test-ceill.c: Likewise.
31591         * tests/test-count-one-bits.c: Likewise.
31592         * tests/test-crc.c: Likewise.
31593         * tests/test-dirname.c: Likewise.
31594         * tests/test-fbufmode.c: Likewise.
31595         * tests/test-fcntl.c: Likewise.
31596         * tests/test-fflush.c: Likewise.
31597         * tests/test-floorf.c: Likewise.
31598         * tests/test-floorl.c: Likewise.
31599         * tests/test-fopen.c: Likewise.
31600         * tests/test-fprintf-posix.c: Likewise.
31601         * tests/test-fprintf-posix.h: Likewise.
31602         * tests/test-fpurge.c: Likewise.
31603         * tests/test-freadable.c: Likewise.
31604         * tests/test-freadahead.c: Likewise.
31605         * tests/test-freading.c: Likewise.
31606         * tests/test-freopen.c: Likewise.
31607         * tests/test-frexp.c: Likewise.
31608         * tests/test-frexpl.c: Likewise.
31609         * tests/test-fseek.c: Likewise.
31610         * tests/test-fseeko.c: Likewise.
31611         * tests/test-fseterr.c: Likewise.
31612         * tests/test-fstrcmp.c: Likewise.
31613         * tests/test-ftell.c: Likewise.
31614         * tests/test-ftello.c: Likewise.
31615         * tests/test-fwritable.c: Likewise.
31616         * tests/test-fwriting.c: Likewise.
31617         * tests/test-getaddrinfo.c: Likewise.
31618         * tests/test-getpass.c: Likewise.
31619         * tests/test-gettimeofday.c: Likewise.
31620         * tests/test-hmac-md5.c: Likewise.
31621         * tests/test-hmac-sha1.c: Likewise.
31622         * tests/test-iconv.c: Likewise.
31623         * tests/test-iconvme.c: Likewise.
31624         * tests/test-inttypes.c: Likewise.
31625         * tests/test-isnan.c: Likewise.
31626         * tests/test-isnanf.c: Likewise.
31627         * tests/test-isnanl-nolibm.c: Likewise.
31628         * tests/test-isnanl.c: Likewise.
31629         * tests/test-isnanl.h: Likewise.
31630         * tests/test-ldexpl.c: Likewise.
31631         * tests/test-linked_list.c: Likewise.
31632         * tests/test-linkedhash_list.c: Likewise.
31633         * tests/test-locale.c: Likewise.
31634         * tests/test-localename.c: Likewise.
31635         * tests/test-lock.c: Likewise.
31636         * tests/test-lseek.c: Likewise.
31637         * tests/test-malloca.c: Likewise.
31638         * tests/test-math.c: Likewise.
31639         * tests/test-mbscasecmp.c: Likewise.
31640         * tests/test-mbscasestr1.c: Likewise.
31641         * tests/test-mbscasestr2.c: Likewise.
31642         * tests/test-mbscasestr3.c: Likewise.
31643         * tests/test-mbscasestr4.c: Likewise.
31644         * tests/test-mbschr.c: Likewise.
31645         * tests/test-mbscspn.c: Likewise.
31646         * tests/test-mbsncasecmp.c: Likewise.
31647         * tests/test-mbspbrk.c: Likewise.
31648         * tests/test-mbspcasecmp.c: Likewise.
31649         * tests/test-mbsrchr.c: Likewise.
31650         * tests/test-mbsspn.c: Likewise.
31651         * tests/test-mbsstr1.c: Likewise.
31652         * tests/test-mbsstr2.c: Likewise.
31653         * tests/test-mbsstr3.c: Likewise.
31654         * tests/test-md5.c: Likewise.
31655         * tests/test-memmem.c: Likewise.
31656         * tests/test-netinet_in.c: Likewise.
31657         * tests/test-open.c: Likewise.
31658         * tests/test-printf-frexp.c: Likewise.
31659         * tests/test-printf-frexpl.c: Likewise.
31660         * tests/test-printf-posix.c: Likewise.
31661         * tests/test-printf-posix.h: Likewise.
31662         * tests/test-rbtree_list.c: Likewise.
31663         * tests/test-rbtree_oset.c: Likewise.
31664         * tests/test-rbtreehash_list.c: Likewise.
31665         * tests/test-read-file.c: Likewise.
31666         * tests/test-rijndael.c: Likewise.
31667         * tests/test-search.c: Likewise.
31668         * tests/test-signbit.c: Likewise.
31669         * tests/test-sleep.c: Likewise.
31670         * tests/test-snprintf-posix.c: Likewise.
31671         * tests/test-snprintf-posix.h: Likewise.
31672         * tests/test-snprintf.c: Likewise.
31673         * tests/test-sprintf-posix.c: Likewise.
31674         * tests/test-sprintf-posix.h: Likewise.
31675         * tests/test-stat-time.c: Likewise.
31676         * tests/test-stdbool.c: Likewise.
31677         * tests/test-stdint.c: Likewise.
31678         * tests/test-stdio.c: Likewise.
31679         * tests/test-stdlib.c: Likewise.
31680         * tests/test-stpncpy.c: Likewise.
31681         * tests/test-strcasestr.c: Likewise.
31682         * tests/test-striconv.c: Likewise.
31683         * tests/test-striconveh.c: Likewise.
31684         * tests/test-striconveha.c: Likewise.
31685         * tests/test-string.c: Likewise.
31686         * tests/test-sys_select.c: Likewise.
31687         * tests/test-sys_socket.c: Likewise.
31688         * tests/test-sys_stat.c: Likewise.
31689         * tests/test-sys_time.c: Likewise.
31690         * tests/test-sysexits.c: Likewise.
31691         * tests/test-time.c: Likewise.
31692         * tests/test-tls.c: Likewise.
31693         * tests/test-trunc.c: Likewise.
31694         * tests/test-truncf.c: Likewise.
31695         * tests/test-truncl.c: Likewise.
31696         * tests/test-unistd.c: Likewise.
31697         * tests/test-vasnprintf-posix.c: Likewise.
31698         * tests/test-vasnprintf-posix2.c: Likewise.
31699         * tests/test-vasnprintf.c: Likewise.
31700         * tests/test-vasprintf-posix.c: Likewise.
31701         * tests/test-vasprintf.c: Likewise.
31702         * tests/test-verify.c: Likewise.
31703         * tests/test-vfprintf-posix.c: Likewise.
31704         * tests/test-vprintf-posix.c: Likewise.
31705         * tests/test-vsnprintf-posix.c: Likewise.
31706         * tests/test-vsnprintf.c: Likewise.
31707         * tests/test-vsprintf-posix.c: Likewise.
31708         * tests/test-wchar.c: Likewise.
31709         * tests/test-wctype.c: Likewise.
31710         * tests/test-wcwidth.c: Likewise.
31711         * tests/test-xstrtol.c: Likewise.
31712         * tests/test-xvasprintf.c: Likewise.
31713         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
31714         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
31715         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
31716         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
31717         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
31718         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
31719         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
31720         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
31721         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
31722         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
31723         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
31724         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
31725         * tests/uniname/test-uninames.c: Likewise.
31726         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
31727         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
31728         * tests/unistdio/test-u16-printf1.h: Likewise.
31729         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
31730         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
31731         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
31732         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
31733         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
31734         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
31735         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
31736         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
31737         * tests/unistdio/test-u32-printf1.h: Likewise.
31738         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
31739         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
31740         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
31741         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
31742         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
31743         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
31744         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
31745         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
31746         * tests/unistdio/test-u8-printf1.h: Likewise.
31747         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
31748         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
31749         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
31750         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
31751         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
31752         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
31753         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
31754         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
31755         * tests/unistdio/test-ulc-printf1.h: Likewise.
31756         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
31757         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
31758         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
31759         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
31760         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
31761         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
31762         * tests/uniwidth/test-u16-strwidth.c: Likewise.
31763         * tests/uniwidth/test-u16-width.c: Likewise.
31764         * tests/uniwidth/test-u32-strwidth.c: Likewise.
31765         * tests/uniwidth/test-u32-width.c: Likewise.
31766         * tests/uniwidth/test-u8-strwidth.c: Likewise.
31767         * tests/uniwidth/test-u8-width.c: Likewise.
31768         * tests/uniwidth/test-uc_width.c: Likewise.
31769         * config/srclist-update: Likewise.
31770         (fixlicense): Update to GPLv3+.
31771
31772         Change copyright notice from LGPLv2.1+ to LGPLv3+.
31773         * tests/test-tsearch.c: Change copyright notice.
31774
31775         Change copyright notice from LGPLv2.0+ to LGPLv3+.
31776         * lib/c-strcaseeq.h: Change copyright notice.
31777         * lib/streq.h: Likewise.
31778         * lib/uniconv.h: Likewise.
31779         * lib/uniconv/u-conv-from-enc.h: Likewise.
31780         * lib/uniconv/u-conv-to-enc.h: Likewise.
31781         * lib/uniconv/u-strconv-from-enc.h: Likewise.
31782         * lib/uniconv/u-strconv-to-enc.h: Likewise.
31783         * lib/uniconv/u16-conv-from-enc.c: Likewise.
31784         * lib/uniconv/u16-conv-to-enc.c: Likewise.
31785         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
31786         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
31787         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
31788         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
31789         * lib/uniconv/u32-conv-from-enc.c: Likewise.
31790         * lib/uniconv/u32-conv-to-enc.c: Likewise.
31791         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
31792         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
31793         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
31794         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
31795         * lib/uniconv/u8-conv-from-enc.c: Likewise.
31796         * lib/uniconv/u8-conv-to-enc.c: Likewise.
31797         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
31798         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
31799         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
31800         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
31801         * lib/uniname.h: Likewise.
31802         * lib/uniname/uniname.c: Likewise.
31803         * lib/unistdio.h: Likewise.
31804         * lib/unistdio/u-asnprintf.h: Likewise.
31805         * lib/unistdio/u-asprintf.h: Likewise.
31806         * lib/unistdio/u-printf-args.c: Likewise.
31807         * lib/unistdio/u-printf-args.h: Likewise.
31808         * lib/unistdio/u-printf-parse.h: Likewise.
31809         * lib/unistdio/u-snprintf.h: Likewise.
31810         * lib/unistdio/u-sprintf.h: Likewise.
31811         * lib/unistdio/u-vasprintf.h: Likewise.
31812         * lib/unistdio/u-vsnprintf.h: Likewise.
31813         * lib/unistdio/u-vsprintf.h: Likewise.
31814         * lib/unistdio/u16-asnprintf.c: Likewise.
31815         * lib/unistdio/u16-asprintf.c: Likewise.
31816         * lib/unistdio/u16-printf-parse.c: Likewise.
31817         * lib/unistdio/u16-snprintf.c: Likewise.
31818         * lib/unistdio/u16-sprintf.c: Likewise.
31819         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
31820         * lib/unistdio/u16-u16-asprintf.c: Likewise.
31821         * lib/unistdio/u16-u16-snprintf.c: Likewise.
31822         * lib/unistdio/u16-u16-sprintf.c: Likewise.
31823         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
31824         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
31825         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
31826         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
31827         * lib/unistdio/u16-vasnprintf.c: Likewise.
31828         * lib/unistdio/u16-vasprintf.c: Likewise.
31829         * lib/unistdio/u16-vsnprintf.c: Likewise.
31830         * lib/unistdio/u16-vsprintf.c: Likewise.
31831         * lib/unistdio/u32-asnprintf.c: Likewise.
31832         * lib/unistdio/u32-asprintf.c: Likewise.
31833         * lib/unistdio/u32-printf-parse.c: Likewise.
31834         * lib/unistdio/u32-snprintf.c: Likewise.
31835         * lib/unistdio/u32-sprintf.c: Likewise.
31836         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
31837         * lib/unistdio/u32-u32-asprintf.c: Likewise.
31838         * lib/unistdio/u32-u32-snprintf.c: Likewise.
31839         * lib/unistdio/u32-u32-sprintf.c: Likewise.
31840         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
31841         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
31842         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
31843         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
31844         * lib/unistdio/u32-vasnprintf.c: Likewise.
31845         * lib/unistdio/u32-vasprintf.c: Likewise.
31846         * lib/unistdio/u32-vsnprintf.c: Likewise.
31847         * lib/unistdio/u32-vsprintf.c: Likewise.
31848         * lib/unistdio/u8-asnprintf.c: Likewise.
31849         * lib/unistdio/u8-asprintf.c: Likewise.
31850         * lib/unistdio/u8-printf-parse.c: Likewise.
31851         * lib/unistdio/u8-snprintf.c: Likewise.
31852         * lib/unistdio/u8-sprintf.c: Likewise.
31853         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
31854         * lib/unistdio/u8-u8-asprintf.c: Likewise.
31855         * lib/unistdio/u8-u8-snprintf.c: Likewise.
31856         * lib/unistdio/u8-u8-sprintf.c: Likewise.
31857         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
31858         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
31859         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
31860         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
31861         * lib/unistdio/u8-vasnprintf.c: Likewise.
31862         * lib/unistdio/u8-vasprintf.c: Likewise.
31863         * lib/unistdio/u8-vsnprintf.c: Likewise.
31864         * lib/unistdio/u8-vsprintf.c: Likewise.
31865         * lib/unistdio/ulc-asnprintf.c: Likewise.
31866         * lib/unistdio/ulc-asprintf.c: Likewise.
31867         * lib/unistdio/ulc-printf-parse.c: Likewise.
31868         * lib/unistdio/ulc-snprintf.c: Likewise.
31869         * lib/unistdio/ulc-sprintf.c: Likewise.
31870         * lib/unistdio/ulc-vasnprintf.c: Likewise.
31871         * lib/unistdio/ulc-vasprintf.c: Likewise.
31872         * lib/unistdio/ulc-vsnprintf.c: Likewise.
31873         * lib/unistdio/ulc-vsprintf.c: Likewise.
31874         * lib/unistr.h: Likewise.
31875         * lib/unistr/u-cpy-alloc.h: Likewise.
31876         * lib/unistr/u-cpy.h: Likewise.
31877         * lib/unistr/u-endswith.h: Likewise.
31878         * lib/unistr/u-move.h: Likewise.
31879         * lib/unistr/u-set.h: Likewise.
31880         * lib/unistr/u-startswith.h: Likewise.
31881         * lib/unistr/u-stpcpy.h: Likewise.
31882         * lib/unistr/u-stpncpy.h: Likewise.
31883         * lib/unistr/u-strcat.h: Likewise.
31884         * lib/unistr/u-strcpy.h: Likewise.
31885         * lib/unistr/u-strcspn.h: Likewise.
31886         * lib/unistr/u-strdup.h: Likewise.
31887         * lib/unistr/u-strlen.h: Likewise.
31888         * lib/unistr/u-strncat.h: Likewise.
31889         * lib/unistr/u-strncpy.h: Likewise.
31890         * lib/unistr/u-strnlen.h: Likewise.
31891         * lib/unistr/u-strpbrk.h: Likewise.
31892         * lib/unistr/u-strspn.h: Likewise.
31893         * lib/unistr/u-strstr.h: Likewise.
31894         * lib/unistr/u-strtok.h: Likewise.
31895         * lib/unistr/u16-check.c: Likewise.
31896         * lib/unistr/u16-chr.c: Likewise.
31897         * lib/unistr/u16-cmp.c: Likewise.
31898         * lib/unistr/u16-cpy-alloc.c: Likewise.
31899         * lib/unistr/u16-cpy.c: Likewise.
31900         * lib/unistr/u16-endswith.c: Likewise.
31901         * lib/unistr/u16-mblen.c: Likewise.
31902         * lib/unistr/u16-mbsnlen.c: Likewise.
31903         * lib/unistr/u16-mbtouc-aux.c: Likewise.
31904         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
31905         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
31906         * lib/unistr/u16-mbtouc.c: Likewise.
31907         * lib/unistr/u16-mbtoucr.c: Likewise.
31908         * lib/unistr/u16-move.c: Likewise.
31909         * lib/unistr/u16-next.c: Likewise.
31910         * lib/unistr/u16-prev.c: Likewise.
31911         * lib/unistr/u16-set.c: Likewise.
31912         * lib/unistr/u16-startswith.c: Likewise.
31913         * lib/unistr/u16-stpcpy.c: Likewise.
31914         * lib/unistr/u16-stpncpy.c: Likewise.
31915         * lib/unistr/u16-strcat.c: Likewise.
31916         * lib/unistr/u16-strchr.c: Likewise.
31917         * lib/unistr/u16-strcmp.c: Likewise.
31918         * lib/unistr/u16-strcpy.c: Likewise.
31919         * lib/unistr/u16-strcspn.c: Likewise.
31920         * lib/unistr/u16-strdup.c: Likewise.
31921         * lib/unistr/u16-strlen.c: Likewise.
31922         * lib/unistr/u16-strmblen.c: Likewise.
31923         * lib/unistr/u16-strmbtouc.c: Likewise.
31924         * lib/unistr/u16-strncat.c: Likewise.
31925         * lib/unistr/u16-strncmp.c: Likewise.
31926         * lib/unistr/u16-strncpy.c: Likewise.
31927         * lib/unistr/u16-strnlen.c: Likewise.
31928         * lib/unistr/u16-strpbrk.c: Likewise.
31929         * lib/unistr/u16-strrchr.c: Likewise.
31930         * lib/unistr/u16-strspn.c: Likewise.
31931         * lib/unistr/u16-strstr.c: Likewise.
31932         * lib/unistr/u16-strtok.c: Likewise.
31933         * lib/unistr/u16-to-u32.c: Likewise.
31934         * lib/unistr/u16-to-u8.c: Likewise.
31935         * lib/unistr/u16-uctomb-aux.c: Likewise.
31936         * lib/unistr/u16-uctomb.c: Likewise.
31937         * lib/unistr/u32-check.c: Likewise.
31938         * lib/unistr/u32-chr.c: Likewise.
31939         * lib/unistr/u32-cmp.c: Likewise.
31940         * lib/unistr/u32-cpy-alloc.c: Likewise.
31941         * lib/unistr/u32-cpy.c: Likewise.
31942         * lib/unistr/u32-endswith.c: Likewise.
31943         * lib/unistr/u32-mblen.c: Likewise.
31944         * lib/unistr/u32-mbsnlen.c: Likewise.
31945         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
31946         * lib/unistr/u32-mbtouc.c: Likewise.
31947         * lib/unistr/u32-mbtoucr.c: Likewise.
31948         * lib/unistr/u32-move.c: Likewise.
31949         * lib/unistr/u32-next.c: Likewise.
31950         * lib/unistr/u32-prev.c: Likewise.
31951         * lib/unistr/u32-set.c: Likewise.
31952         * lib/unistr/u32-startswith.c: Likewise.
31953         * lib/unistr/u32-stpcpy.c: Likewise.
31954         * lib/unistr/u32-stpncpy.c: Likewise.
31955         * lib/unistr/u32-strcat.c: Likewise.
31956         * lib/unistr/u32-strchr.c: Likewise.
31957         * lib/unistr/u32-strcmp.c: Likewise.
31958         * lib/unistr/u32-strcpy.c: Likewise.
31959         * lib/unistr/u32-strcspn.c: Likewise.
31960         * lib/unistr/u32-strdup.c: Likewise.
31961         * lib/unistr/u32-strlen.c: Likewise.
31962         * lib/unistr/u32-strmblen.c: Likewise.
31963         * lib/unistr/u32-strmbtouc.c: Likewise.
31964         * lib/unistr/u32-strncat.c: Likewise.
31965         * lib/unistr/u32-strncmp.c: Likewise.
31966         * lib/unistr/u32-strncpy.c: Likewise.
31967         * lib/unistr/u32-strnlen.c: Likewise.
31968         * lib/unistr/u32-strpbrk.c: Likewise.
31969         * lib/unistr/u32-strrchr.c: Likewise.
31970         * lib/unistr/u32-strspn.c: Likewise.
31971         * lib/unistr/u32-strstr.c: Likewise.
31972         * lib/unistr/u32-strtok.c: Likewise.
31973         * lib/unistr/u32-to-u16.c: Likewise.
31974         * lib/unistr/u32-to-u8.c: Likewise.
31975         * lib/unistr/u32-uctomb.c: Likewise.
31976         * lib/unistr/u8-check.c: Likewise.
31977         * lib/unistr/u8-chr.c: Likewise.
31978         * lib/unistr/u8-cmp.c: Likewise.
31979         * lib/unistr/u8-cpy-alloc.c: Likewise.
31980         * lib/unistr/u8-cpy.c: Likewise.
31981         * lib/unistr/u8-endswith.c: Likewise.
31982         * lib/unistr/u8-mblen.c: Likewise.
31983         * lib/unistr/u8-mbsnlen.c: Likewise.
31984         * lib/unistr/u8-mbtouc-aux.c: Likewise.
31985         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
31986         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
31987         * lib/unistr/u8-mbtouc.c: Likewise.
31988         * lib/unistr/u8-mbtoucr.c: Likewise.
31989         * lib/unistr/u8-move.c: Likewise.
31990         * lib/unistr/u8-next.c: Likewise.
31991         * lib/unistr/u8-prev.c: Likewise.
31992         * lib/unistr/u8-set.c: Likewise.
31993         * lib/unistr/u8-startswith.c: Likewise.
31994         * lib/unistr/u8-stpcpy.c: Likewise.
31995         * lib/unistr/u8-stpncpy.c: Likewise.
31996         * lib/unistr/u8-strcat.c: Likewise.
31997         * lib/unistr/u8-strchr.c: Likewise.
31998         * lib/unistr/u8-strcmp.c: Likewise.
31999         * lib/unistr/u8-strcpy.c: Likewise.
32000         * lib/unistr/u8-strcspn.c: Likewise.
32001         * lib/unistr/u8-strdup.c: Likewise.
32002         * lib/unistr/u8-strlen.c: Likewise.
32003         * lib/unistr/u8-strmblen.c: Likewise.
32004         * lib/unistr/u8-strmbtouc.c: Likewise.
32005         * lib/unistr/u8-strncat.c: Likewise.
32006         * lib/unistr/u8-strncmp.c: Likewise.
32007         * lib/unistr/u8-strncpy.c: Likewise.
32008         * lib/unistr/u8-strnlen.c: Likewise.
32009         * lib/unistr/u8-strpbrk.c: Likewise.
32010         * lib/unistr/u8-strrchr.c: Likewise.
32011         * lib/unistr/u8-strspn.c: Likewise.
32012         * lib/unistr/u8-strstr.c: Likewise.
32013         * lib/unistr/u8-strtok.c: Likewise.
32014         * lib/unistr/u8-to-u16.c: Likewise.
32015         * lib/unistr/u8-to-u32.c: Likewise.
32016         * lib/unistr/u8-uctomb-aux.c: Likewise.
32017         * lib/unistr/u8-uctomb.c: Likewise.
32018         * lib/unitypes.h: Likewise.
32019         * lib/uniwidth.h: Likewise.
32020         * lib/uniwidth/cjk.h: Likewise.
32021         * lib/uniwidth/u16-strwidth.c: Likewise.
32022         * lib/uniwidth/u16-width.c: Likewise.
32023         * lib/uniwidth/u32-strwidth.c: Likewise.
32024         * lib/uniwidth/u32-width.c: Likewise.
32025         * lib/uniwidth/u8-strwidth.c: Likewise.
32026         * lib/uniwidth/u8-width.c: Likewise.
32027         * lib/uniwidth/width.c: Likewise.
32028
32029 2007-10-07  Bruno Haible  <bruno@clisp.org>
32030
32031         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
32032         The file is still under LGPL (see modules/inttypes).
32033
32034 2007-10-06  Bruno Haible  <bruno@clisp.org>
32035
32036         * modules/trunc (Dependencies): Add 'extensions'.
32037         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
32038         Reported by Ben Pfaff <blp@gnu.org>.
32039
32040 2007-10-06  Bruno Haible  <bruno@clisp.org>
32041
32042         * modules/freopen-tests: New file.
32043         * tests/test-freopen.c: New file.
32044
32045         * modules/fopen-tests: New file.
32046         * tests/test-fopen.c: New file.
32047
32048         * modules/fopen: New file.
32049         * lib/fopen.c: New file.
32050         * m4/fopen.m4: New file.
32051         * modules/freopen: New file.
32052         * lib/freopen.c: New file.
32053         * m4/freopen.m4: New file.
32054         * lib/stdio.in.h (fopen, freopen): New declarations.
32055         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
32056         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
32057         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
32058         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
32059         * doc/functions/fopen.texi: Mention the 'fopen' module.
32060         * doc/functions/freopen.texi: Mention the 'freopen' module.
32061
32062 2007-10-06  Bruno Haible  <bruno@clisp.org>
32063
32064         * modules/open-tests: New file.
32065         * tests/test-open.c: New file.
32066
32067         * modules/open: New file.
32068         * lib/open.c: New file.
32069         * m4/open.m4: New file.
32070         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
32071         lib/open.c does.
32072         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
32073         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
32074         macros.
32075         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
32076         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
32077         REPLACE_OPEN.
32078         * doc/functions/open.texi: Mention the 'open' module.
32079
32080 2007-10-04  Bruno Haible  <bruno@clisp.org>
32081
32082         * modules/ceill-tests: New file.
32083         * tests/test-ceill.c: New file.
32084
32085         * modules/ceill: New file.
32086         * lib/ceill.c: Replace entire file.
32087         * m4/ceill.m4: New file.
32088         * lib/math.in.h (ceill): Replace declaration.
32089         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
32090         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
32091         * doc/functions/ceill.texi: Mention the 'ceill' module.
32092         * modules/mathl (Files): Remove lib/ceill.c.
32093         (Depends-on): Add ceill.
32094
32095 2007-10-04  Bruno Haible  <bruno@clisp.org>
32096
32097         * modules/ceilf-tests: New file.
32098         * tests/test-ceilf.c: New file.
32099
32100         * modules/ceilf: New file.
32101         * lib/ceil.c: New file.
32102         * lib/ceilf.c: New file.
32103         * m4/ceilf.m4: New file.
32104         * lib/math.in.h (ceilf): New declaration.
32105         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
32106         HAVE_DECL_CEILF.
32107         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
32108         HAVE_DECL_CEILF.
32109         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
32110
32111 2007-10-04  Bruno Haible  <bruno@clisp.org>
32112
32113         * modules/floorl-tests: New file.
32114         * tests/test-floorl.c: New file.
32115
32116         * modules/floorl: New file.
32117         * lib/floorl.c: Replace entire file.
32118         * m4/floorl.m4: New file.
32119         * lib/math.in.h (floorl): Replace declaration.
32120         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
32121         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
32122         * doc/functions/floorl.texi: Mention the 'floorl' module.
32123         * modules/mathl (Files): Remove lib/floorl.c.
32124         (Depends-on): Add floorl.
32125
32126 2007-10-04  Bruno Haible  <bruno@clisp.org>
32127
32128         * modules/floorf-tests: New file.
32129         * tests/test-floorf.c: New file.
32130
32131         * modules/floorf: New file.
32132         * lib/floor.c: New file.
32133         * lib/floorf.c: New file.
32134         * m4/floorf.m4: New file.
32135         * lib/math.in.h (floorf): New declaration.
32136         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
32137         HAVE_DECL_FLOORF.
32138         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
32139         HAVE_DECL_FLOORF.
32140         * doc/functions/floorf.texi: Mention the 'floorf' module.
32141
32142 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
32143             Bruno Haible  <bruno@clisp.org>
32144
32145         Advertise for the Git server instead of the CVS server.
32146         * doc/gnulib-intro.texi (Steady Development): Mention the Git
32147         repository instead of the CVS one.
32148         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
32149         about all VCS systems generically.
32150         * doc/gnulib.texi (Introduction): Capitalize `Git'.
32151
32152 2007-10-04  Bruno Haible  <bruno@clisp.org>
32153
32154         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
32155         means.
32156         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
32157
32158 2007-10-04  Bruno Haible  <bruno@clisp.org>
32159
32160         * modules/truncl-tests: New file.
32161         * tests/test-truncl.c: New file.
32162
32163         * modules/truncl: New file.
32164         * lib/truncl.c: New file.
32165         * m4/truncl.m4: New file.
32166         * lib/math.in.h (truncl): New declaration.
32167         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
32168         HAVE_DECL_TRUNCL.
32169         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
32170         HAVE_DECL_TRUNCL.
32171         * doc/functions/truncl.texi: Mention the 'truncl' module.
32172
32173 2007-10-04  Bruno Haible  <bruno@clisp.org>
32174
32175         * modules/truncf-tests: New file.
32176         * tests/test-truncf.c: New file.
32177
32178         * modules/truncf: New file.
32179         * lib/trunc.c: Make paramerizable through USE_* macros.
32180         * lib/truncf.c: New file.
32181         * m4/truncf.m4: New file.
32182         * lib/math.in.h (truncf): New declaration.
32183         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
32184         HAVE_DECL_TRUNCF.
32185         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
32186         HAVE_DECL_TRUNCF.
32187         * doc/functions/truncf.texi: Mention the 'truncf' module.
32188
32189 2007-10-03  Bruno Haible  <bruno@clisp.org>
32190
32191         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
32192         augmentation also for tests modules.
32193         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
32194         * modules/atexit-tests (Makefile.am): Likewise.
32195         * modules/binary-io-tests (Makefile.am): Likewise.
32196         * modules/c-strcase-tests (Makefile.am): Likewise.
32197         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
32198         * modules/canonicalize-tests (Makefile.am): Likewise.
32199         * modules/closein-tests (Makefile.am): Likewise.
32200         * modules/fprintf-posix-tests (Makefile.am): Likewise.
32201         * modules/freadahead-tests (Makefile.am): Likewise.
32202         * modules/fseek-tests (Makefile.am): Likewise.
32203         * modules/fseeko-tests (Makefile.am): Likewise.
32204         * modules/ftell-tests (Makefile.am): Likewise.
32205         * modules/ftello-tests (Makefile.am): Likewise.
32206         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
32207         * modules/isnanl-tests (Makefile.am): Likewise.
32208         * modules/lseek-tests (Makefile.am): Likewise.
32209         * modules/mbscasecmp-tests (Makefile.am): Likewise.
32210         * modules/mbscasestr-tests (Makefile.am): Likewise.
32211         * modules/mbschr-tests (Makefile.am): Likewise.
32212         * modules/mbscspn-tests (Makefile.am): Likewise.
32213         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
32214         * modules/mbspbrk-tests (Makefile.am): Likewise.
32215         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
32216         * modules/mbsrchr-tests (Makefile.am): Likewise.
32217         * modules/mbsspn-tests (Makefile.am): Likewise.
32218         * modules/mbsstr-tests (Makefile.am): Likewise.
32219         * modules/printf-posix-tests (Makefile.am): Likewise.
32220         * modules/snprintf-posix-tests (Makefile.am): Likewise.
32221         * modules/sprintf-posix-tests (Makefile.am): Likewise.
32222         * modules/tsearch-tests (Makefile.am): Likewise.
32223         * modules/uniname/uniname-tests (Makefile.am): Likewise.
32224         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
32225         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
32226         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
32227         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
32228         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
32229         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
32230         * modules/vprintf-posix-tests (Makefile.am): Likewise.
32231         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
32232         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
32233         * modules/xstrtoimax-tests (Makefile.am): Likewise.
32234         * modules/xstrtol-tests (Makefile.am): Likewise.
32235         * modules/xstrtoumax-tests (Makefile.am): Likewise.
32236         * modules/yesno-tests (Makefile.am): Likewise.
32237
32238 2007-10-03  Bruno Haible  <bruno@clisp.org>
32239
32240         * modules/trunc-tests: New file.
32241         * tests/test-trunc.c: New file.
32242
32243         * modules/trunc: New file.
32244         * lib/trunc.c: New file.
32245         * m4/trunc.m4: New file.
32246         * lib/math.in.h (trunc): New declaration.
32247         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
32248         HAVE_DECL_TRUNC.
32249         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
32250         HAVE_DECL_TRUNC.
32251         * doc/functions/trunc.texi: Mention the 'trunc' module.
32252
32253 2007-10-03  Bruno Haible  <bruno@clisp.org>
32254
32255         * tests/test-fpending.c: New file, mostly copied
32256         from coreutils/lib/t-fpending.c.
32257         * modules/fpending-tests: New file.
32258
32259 2007-10-03  Bruno Haible  <bruno@clisp.org>
32260
32261         Port the stdio extensions to QNX (untested).
32262         * lib/fseterr.c (fseterr): Add support for QNX.
32263         * lib/fbufmode.c (fbufmode): Likewise.
32264         * lib/freadable.c (freadable): Likewise.
32265         * lib/fwritable.c (fwritable): Likewise.
32266         * lib/freading.c (freading): Likewise.
32267         * lib/fwriting.c (fwriting): Likewise.
32268         * lib/freadahead.c (freadahed): Likewise.
32269         * lib/fpurge.c (fpurge): Likewise.
32270         * lib/fseeko.c (rpl_fseeko): Likewise.
32271
32272 2007-10-03  Bruno Haible  <bruno@clisp.org>
32273             Jim Meyering  <jim@meyering.net>
32274             Eric Blake  <ebb9@byu.net>
32275
32276         * doc/relocatable.texi: Use @command instead of @program.
32277
32278 2007-10-02  Jim Meyering  <jim@meyering.net>
32279
32280         Perform one more "_.h" -> ".in.h" substitution.
32281         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
32282         instead of unistd_.h here, too.
32283
32284 2007-10-01  Bruno Haible  <bruno@clisp.org>
32285
32286         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
32287         Needed for the alloca-opt module.
32288
32289 2007-09-30  Bruno Haible  <bruno@clisp.org>
32290
32291         * lib/alloca.in.h: Renamed from lib/alloca_.h.
32292         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
32293         alloca_.h.
32294         * lib/argz.in.h: Renamed from lib/argz_.h.
32295         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
32296         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
32297         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
32298         byteswap_.h.
32299         * lib/dirent.in.h: Renamed from lib/dirent_.h.
32300         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
32301         dirent_.h.
32302         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
32303         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
32304         fcntl_.h.
32305         * lib/float.in.h: Renamed from lib/float_.h.
32306         * modules/float (Files, Makefile.am): Use float.in.h instead of
32307         float_.h.
32308         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
32309         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
32310         fnmatch_.h.
32311         * lib/getopt.in.h: Renamed from lib/getopt_.h.
32312         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
32313         getopt_.h.
32314         * lib/glob.in.h: Renamed from lib/glob_.h.
32315         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
32316         * lib/iconv.in.h: Renamed from lib/iconv_.h.
32317         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
32318         iconv_.h.
32319         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
32320         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
32321         inttypes_.h.
32322         * lib/locale.in.h: Renamed from lib/locale_.h.
32323         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
32324         locale_.h.
32325         * lib/math.in.h: Renamed from lib/math_.h.
32326         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
32327         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
32328         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
32329         of netinet_in_.h. Add dependency.
32330         * lib/poll.in.h: Renamed from lib/poll_.h.
32331         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
32332         * lib/search.in.h: Renamed from lib/search_.h.
32333         * modules/search (Files, Makefile.am): Use search.in.h instead of
32334         search_.h.
32335         * lib/signal.in.h: Renamed from lib/signal_.h.
32336         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
32337         _signal.h.
32338         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
32339         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
32340         stdbool_.h.
32341         * lib/stdint.in.h: Renamed from lib/stdint_.h.
32342         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
32343         stdint_.h.
32344         * lib/stdio.in.h: Renamed from lib/stdio_.h.
32345         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
32346         stdio_.h.
32347         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
32348         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
32349         stdlib_.h.
32350         * lib/string.in.h: Renamed from lib/string_.h.
32351         * modules/string (Files, Makefile.am): Use string.in.h instead of
32352         string_.h.
32353         * doc/gnulib-tool.texi (Initial import): Update.
32354         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
32355         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
32356         of sys_select_.h. Add dependency.
32357         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
32358         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
32359         of sys_socket_.h.
32360         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
32361         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
32362         sys_stat_.h.
32363         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
32364         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
32365         sys_time_.h.
32366         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
32367         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
32368         sysexits_.h.
32369         * lib/time.in.h: Renamed from lib/time_.h.
32370         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
32371         * lib/unistd.in.h: Renamed from lib/unistd_.h.
32372         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
32373         unistd_.h.
32374         * lib/wchar.in.h: Renamed from lib/wchar_.h.
32375         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
32376         wchar_.h.
32377         * lib/wctype.in.h: Renamed from lib/wctype_.h.
32378         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
32379         wctype_.h.
32380         * build-aux/bootstrap (slurp): Update.
32381         * lib/.cppi-disable: Update.
32382
32383 2007-09-30  Bruno Haible  <bruno@clisp.org>
32384
32385         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
32386         Needed on BeOS.
32387
32388 2007-09-30  Bruno Haible  <bruno@clisp.org>
32389
32390         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
32391
32392 2007-09-29  Bruno Haible  <bruno@clisp.org>
32393
32394         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
32395
32396 2007-09-29  Bruno Haible  <bruno@clisp.org>
32397
32398         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
32399         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
32400         * build-aux/install-reloc: Compile also areadlink.c.
32401         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
32402
32403 2007-09-29  Bruno Haible  <bruno@clisp.org>
32404
32405         * gnulib-tool (func_emit_initmacro_done): Indentation.
32406
32407 2007-09-29  Bruno Haible  <bruno@clisp.org>
32408
32409         * README: Add CVS checkout update instructions.
32410         Info from Bob Proulx <bob@proulx.com>.
32411
32412 2007-09-28  Eric Blake  <ebb9@byu.net>
32413
32414         Provide move-if-change.
32415         * build-aux/move-if-change: New file, based on best practice
32416         rather than any canonical upstream location.
32417
32418 2007-09-28  Jim Meyering  <jim@meyering.net>
32419
32420         Fix canonicalize loop-detection corner case.
32421         Do not attempt to stat the symlink values stored via seen_triple.
32422         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
32423         on linux-2.6.18, (but not 2.6.22).
32424         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
32425         triple_compare.  The former compares dev,ino,filename, while the latter
32426         would actually stat dirname(filename) when dev and ino were equal.
32427         * lib/hash-triple.c: Install <string.h>.
32428         (STREQ): Define.
32429         (triple_compare_ino_str): New function.
32430         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
32431
32432 2007-09-28  Eric Blake  <ebb9@byu.net>
32433
32434         Enforce that AC_REPLACE_FUNCS files exist.
32435         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
32436         override check for typos.
32437
32438         Fix test-closein on Solaris 10.
32439         * tests/test-closein.c (main): Don't assume stdin can be inherited
32440         closed on all systems.
32441         * tests/test-closein.sh: Likewise.
32442         Reported by Piotr Tarnowski.
32443
32444 2007-09-28  Jim Meyering  <jim@meyering.net>
32445
32446         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
32447
32448 2007-09-27  Jim Meyering  <jim@meyering.net>
32449
32450         canonicalize: Avoid a false-positive cycle failure.
32451         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
32452         Sort.  Remove cycle-check.
32453         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
32454         not cycle-check.h.
32455         (seen_triple): New function.
32456         (canonicalize_filename_mode): Use it instead of cycle-check.
32457         * tests/test-canonicalize.c: Add a test for this bug.
32458         * tests/test-canonicalize.sh: Set up and run the test.
32459
32460         New module, file-set, from coreutils.
32461         * modules/file-set: Define it.
32462         * lib/file-set.c, lib/file-set.h: Implement.
32463
32464         New module, hash-triple, from coreutils.
32465         * modules/hash-triple: Define it.
32466         * lib/hash-triple.c, lib/hash-triple.h: Implement.
32467
32468 2007-09-25  Eric Blake  <ebb9@byu.net>
32469
32470         Fix strerror on Interix.
32471         * lib/string_.h (strerror): Declare replacement.
32472         * doc/functions/strerror.texi (strerror): Document the Interix
32473         shortcoming.
32474         * modules/string (Makefile.am): Support new hooks.
32475         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
32476         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
32477         gl_FUNC_STRERROR_SEPARATE.
32478         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
32479         * lib/strerror.c (rpl_strerror): Provide replacement.
32480         * modules/strerror (Depends-on): Add string.
32481         (configure.ac): Detect use of module.
32482         * tests/test-strerror.c: New file.
32483         * modules/strerror-tests: New test module.
32484         * modules/argp (Depends-on): Add strerror.
32485         * modules/error (Depends-on): Likewise.
32486         Reported by Martin Koeppe.
32487
32488 2007-09-24  Bruno Haible  <bruno@clisp.org>
32489
32490         * README: Update git instructions.
32491
32492 2007-09-24  Eric Blake  <ebb9@byu.net>
32493
32494         Revert fpending breakage from 2007-09-08.
32495         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
32496         __fpending.c.
32497
32498 2007-09-24  Jim Meyering  <jim@meyering.net>
32499
32500         filenamecat.c: Add a test.
32501         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
32502         showing how the function works when DIR is the empty string.
32503
32504 2007-09-21  Simon Josefsson  <simon@josefsson.org>
32505
32506         * tests/test-canonicalize.sh: Turn on executable bit.
32507
32508 2007-09-19  Eric Blake  <ebb9@byu.net>
32509
32510         * README: Update CVS instructions.
32511
32512 2007-09-18  Bruno Haible  <bruno@clisp.org>
32513
32514         * modules/areadlink: New file.
32515         * lib/areadlink.h (areadlink): New declaration.
32516         * lib/areadlink.c: New file, based on lib/xreadlink.c.
32517
32518 2007-09-17  Jim Meyering  <jim@meyering.net>
32519
32520         * lib/savewd.c (ESTALE) [!defined]: Define.
32521         Reported to be required on Interix by Martin Koeppe.
32522
32523 2007-09-17  Bruno Haible  <bruno@clisp.org>
32524
32525         * gnulib-tool (func_version): Use $version.
32526
32527 2007-09-16  Bruno Haible  <bruno@clisp.org>
32528
32529         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
32530         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
32531         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
32532         Reported by Greg Schafer <gschafer@zip.com.au>.
32533
32534 2007-09-15  Bruno Haible  <bruno@clisp.org>
32535
32536         * gnulib-tool (sed): Try a little harder to make bash understand the
32537         alias.
32538         Reported by Bruce Korb <bruce.korb@gmail.com>.
32539
32540 2007-09-13  Eric Blake  <ebb9@byu.net>
32541
32542         * ChangeLog: Remove conflict markers.
32543
32544 2007-09-13  Simon Josefsson  <simon@josefsson.org>
32545
32546         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
32547         Reported by Bruno Haible <bruno@clisp.org>.
32548
32549 2007-09-12  Bruno Haible  <bruno@clisp.org>
32550
32551         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
32552         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
32553         is not defined.
32554
32555 2007-09-12  Eric Blake  <ebb9@byu.net>
32556
32557         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
32558         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
32559         Autoconf definition.
32560         * modules/euidaccess (Depends-on): Add extensions, for
32561         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
32562         * modules/fnmatch (Depends-on): Likewise.
32563         * modules/getaddrinfo (Depends-on): Likewise.
32564         * modules/getdelim (Depends-on): Likewise.
32565         * modules/getline (Depends-on): Likewise.
32566         * modules/getsubopt (Depends-on): Likewise.
32567         * modules/gettext (Depends-on): Likewise.
32568         * modules/group-member (Depends-on): Likewise.
32569         * modules/mbchar (Depends-on): Likewise.
32570         * modules/memmem (Depends-on): Likewise.
32571         * modules/mempcpy (Depends-on): Likewise.
32572         * modules/memrchr (Depends-on): Likewise.
32573         * modules/pagealign_alloc (Depends-on): Likewise.
32574         * modules/readutmp (Depends-on): Likewise.
32575         * modules/stpcpy (Depends-on): Likewise.
32576         * modules/stpncpy (Depends-on): Likewise.
32577         * modules/strchrnul (Depends-on): Likewise.
32578         * modules/strndup (Depends-on): Likewise.
32579         * modules/strsep (Depends-on): Likewise.
32580         * modules/strverscmp (Depends-on): Likewise.
32581         * modules/vasprintf (Depends-on): Likewise.
32582         * modules/wcwidth (Depends-on): Likewise.
32583         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
32584         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
32585         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
32586         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
32587         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
32588         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
32589         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
32590         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
32591         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
32592         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
32593         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
32594         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
32595         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
32596         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
32597         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
32598         * m4/readutmp.m4 (gl_READUTMP): Likewise.
32599         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
32600         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
32601         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
32602         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
32603         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
32604         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
32605         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
32606         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
32607         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
32608         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
32609         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
32610         so that lock.m4 can be used in gettext without extensions module.
32611
32612 2007-09-11  Bruno Haible  <bruno@clisp.org>
32613
32614         * m4/isc-posix.m4: Remove file.
32615         Suggested by Eric Blake.
32616
32617 2007-09-11  Eric Blake  <ebb9@byu.net>
32618
32619         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
32620
32621 2007-09-10  Bruno Haible  <bruno@clisp.org>
32622
32623         * posix-modules: Fix typo in error message.
32624         Reported by Matt <mkraai@beckman.com>.
32625
32626 2007-09-09  Bruno Haible  <bruno@clisp.org>
32627
32628         * doc/functions/getdelim.texi: Update list of platforms lacking the
32629         function.
32630         * doc/functions/getline.texi: Likewise.
32631
32632 2007-09-09  Jim Meyering  <jim@meyering.net>
32633
32634         * lib/hash.c (hash_initialize): Detect calloc failure.
32635         Reported by Bruno Haible.
32636
32637 2007-09-09  Bruno Haible  <bruno@clisp.org>
32638
32639         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
32640         malloc or realloc fails.
32641
32642 2007-09-09  Bruno Haible  <bruno@clisp.org>
32643
32644         * modules/getcwd (Depends-on): Add malloc-posix.
32645         * modules/glob (Depends-on): Likewise.
32646         * modules/putenv (Depends-on): Likewise.
32647         * modules/strdup (Depends-on): Likewise.
32648         * modules/getdelim (Depends-on): Add realloc-posix.
32649         * modules/read-file (Depends-on): Likewise.
32650
32651 2007-09-09  Bruno Haible  <bruno@clisp.org>
32652
32653         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
32654         (gl_FUNC_MALLOC_POSIX): Require it.
32655         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
32656         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
32657         * modules/realloc (Files): Add m4/malloc.m4.
32658         * modules/calloc (Files): Likewise.
32659
32660 2007-09-09  Bruno Haible  <bruno@clisp.org>
32661
32662         * modules/malloc-posix: New file.
32663         * modules/malloc (Depends-on): Add malloc-posix.
32664         * lib/malloc.c: Include errno.h.
32665         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
32666         and a POSIX-compatible malloc into a single function. Set ENOMEM
32667         when returning NULL.
32668         * m4/malloc.m4: New file.
32669         * doc/functions/malloc.texi: Mention the malloc-posix module.
32670         * lib/stdlib_.h (malloc): New declaration.
32671         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
32672         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
32673         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
32674         and HAVE_MALLOC_POSIX.
32675
32676 2007-09-09  Bruno Haible  <bruno@clisp.org>
32677
32678         * modules/realloc-posix: New file.
32679         * modules/realloc (Depends-on): Add realloc-posix.
32680         * lib/realloc.c: Include errno.h.
32681         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
32682         and a POSIX-compatible realloc into a single function. Set ENOMEM
32683         when returning NULL.
32684         * m4/realloc.m4: New file.
32685         * doc/functions/realloc.texi: Mention the realloc-posix module.
32686         * lib/stdlib_.h (realloc): New declaration.
32687         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
32688         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
32689         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
32690         and HAVE_REALLOC_POSIX.
32691
32692 2007-09-09  Bruno Haible  <bruno@clisp.org>
32693
32694         * modules/calloc-posix: New file.
32695         * modules/calloc (Depends-on): Add calloc-posix.
32696         * lib/calloc.c: Include errno.h.
32697         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
32698         and a POSIX-compatible calloc into a single function. Set ENOMEM
32699         when returning NULL.
32700         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
32701         * doc/functions/calloc.texi: Mention the calloc-posix module.
32702         * lib/stdlib_.h (calloc): New declaration.
32703         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
32704         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
32705         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
32706         and HAVE_CALLOC_POSIX.
32707
32708 2007-09-09  Bruno Haible  <bruno@clisp.org>
32709
32710         Allow for modules to show an arbitrary notice.
32711         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
32712         * gnulib-tool: New option --extract-notice.
32713         (func_usage): Document it.
32714         (sed_extract_prog): Update.
32715         (func_get_notice): New function.
32716         (func_modules_notice): New function.
32717         (func_import, func_create_testdir): Invoke it.
32718         Suggested by Jim Meyering.
32719
32720 2007-09-09  Bruno Haible  <bruno@clisp.org>
32721
32722         * gnulib-tool: New options --verbose, --quiet.
32723         (func_usage): Document them.
32724         (verbose): New variable.
32725         (func_execute_command): New function.
32726         (func_import): Don't show the module list and the file list if
32727         $verbose < 0.
32728         (func_create_testdir): Likewise. Use func_execute_command.
32729         (func_create_megatestdir): Use func_execute_command.
32730
32731 2007-09-08  Bruno Haible  <bruno@clisp.org>
32732
32733         * gnulib-tool (func_import): Prefer rsync over wget when available,
32734         for fetching the PO files.
32735
32736 2007-09-08  Bruno Haible  <bruno@clisp.org>
32737
32738         * posix-modules: New file. Portions copied from gnulib-tool.
32739         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
32740
32741 2007-09-08  Jim Meyering  <jim@meyering.net>
32742
32743         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
32744         * lib/fpending.h: Rename from __fpending.h.
32745         * lib/fpending.c: Rename from __fpending.c.
32746         Include "fpending.h", not "__fpending.h".
32747         * lib/__fpending.h, lib/__fpending.c: Remove files.
32748         * modules/fpending (Files): Reflect new file names.
32749         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
32750
32751 2007-09-08  Bruno Haible  <bruno@clisp.org>
32752
32753         * m4/inttypes-h.m4: Remove stub file.
32754
32755 2007-09-07  Simon Josefsson  <simon@josefsson.org>
32756
32757         * doc/headers/stdint.texi: Discuss #include_next issue.
32758
32759 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
32760
32761         * build-aux/bootstrap: Remove obsolete comment about wget --help.
32762
32763 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32764
32765         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
32766         in variable name.
32767
32768 2007-09-03  Jim Meyering  <jim@meyering.net>
32769
32770         New module: git-version-gen.
32771         * modules/git-version-gen: New file.
32772
32773         Import changes from coreutils for bootstrap script.
32774
32775         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
32776
32777         bootstrap: uses rsync to download the .po files
32778         * build-aux/bootstrap (po_download_command_format): New global.
32779         (download_po_files): Use rsync.
32780         (update_po_files): Don't remove .po files after download,
32781         so future rsync runs can take advantage of the copies.
32782
32783         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
32784
32785         Solve the unnecessary-.po-file-regeneration problem once and for all.
32786         * build-aux/bootstrap (download_po_files): New function, renamed from
32787         get_translations.  Now, downloads, but doesn't update LINGUAS.
32788         (update_po_files): New function.
32789
32790         bootstrap: Ignore more.
32791         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
32792         uniwidth to e.g., lib/.gitignore.
32793         (slurp): Handle the sys_stat_.h -> sys mapping, too.
32794
32795         * build-aux/bootstrap: New setting: vc_ignore.
32796         (insert_sorted_if_absent): Create $file if absent.
32797         Adapt to new, possibly empty, list: $vc_ignore.
32798
32799         bootstrap: generate more ignorable names
32800         * build-aux/bootstrap (slurp): When generating ignorable names,
32801         also map .sin to .sed, .gperf to .c, and .y to .c.
32802
32803 2007-09-03  Jim Meyering  <jim@meyering.net>
32804
32805         * build-aux/git-version-gen: New file, from coreutils.  For details, see
32806         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
32807
32808 2007-09-02  Bruno Haible  <bruno@clisp.org>
32809
32810         Fix mis-recognition of 'mcs' on QNX 6.
32811         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
32812         output contains the string "Mono".
32813         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
32814         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
32815
32816 2007-09-01  Bruno Haible  <bruno@clisp.org>
32817
32818         Fix collision between uniwidth/* and linebreak modules.
32819         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
32820         u32_width): Remove declarations.
32821         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
32822         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
32823         streq3, streq2, streq1, streq0): Remove functions.
32824         (STREQ): Remove macro.
32825         (is_cjk_encoding): Remove function.
32826         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
32827         (uc_width, u8_width, u16_width, u32_width): Remove functions.
32828         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
32829         * NEWS: Document the change.
32830
32831 2007-09-01  Bruno Haible  <bruno@clisp.org>
32832
32833         * lib/streq.h: Add double-inclusion guard.
32834
32835 2007-09-01  Karl Berry  <karl@gnu.org>
32836
32837         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
32838
32839 2007-08-28  Jim Meyering  <jim@meyering.net>
32840
32841         Rename mreadlink_with_size to areadlink_with_size.
32842         * NEWS: Document the change.
32843         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
32844         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
32845         * lib/mreadlink.h: Rename this to...
32846         * lib/areadlink.h: ...this.
32847         * modules/mreadlink-with-size: Rename this to...
32848         * modules/areadlink-with-size: ...this.
32849         * lib/canonicalize.c: Reflect the renaming.
32850         * modules/canonicalize: Likewise.
32851
32852 2007-08-26  Bruno Haible  <bruno@clisp.org>
32853
32854         * gnulib-tool (func_import): When deciding which files to remove,
32855         consider also dangling symbolic links.
32856         Reported by Eric Blake.
32857
32858 2007-08-26  Bruno Haible  <bruno@clisp.org>
32859
32860         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
32861
32862 2007-08-23  Simon Josefsson  <simon@josefsson.org>
32863
32864         * lib/readline.c: Don't include getline.h, the prototype is now
32865         found in stdio.h.
32866
32867 2007-08-23  Jim Meyering  <jim@meyering.net>
32868
32869         Getdelim touchup.
32870         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
32871         around the funlockfile call, since funlockfile never sets errno.
32872         Don't set errno upon failed realloc.
32873
32874 2007-08-22  Eric Blake  <ebb9@byu.net>
32875
32876         Getline touchups.
32877         * lib/getdelim.c (getdelim): Revert regression that required *n to
32878         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
32879         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
32880         getdelim, rather than whether implementation is missing.
32881         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
32882         * lib/stdio_.h (getline): Also declare if replacement is
32883         required.
32884         * doc/functions/getdelim.texi: New file.
32885         * doc/functions/getline.texi: Likewise.
32886         * doc/gnulib.texi (Function Substitutes): Add new files.
32887         Reported by Bruno Haible.
32888
32889 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
32890
32891         * users.txt: Add Guile.
32892
32893 2007-08-22  Eric Blake  <ebb9@byu.net>
32894
32895         * tests/test-getdelim.c (main): Use remove, not unlink.
32896         * tests/test-getline.c (main): Likewise.
32897
32898         Move getline and getdelim into stdio.h, per POSIX 200x.
32899         * modules/getline (Files): Remove getline.h.
32900         (Depends-on): Add stdio.
32901         (configure.ac): Add module indicator.
32902         * modules/getdelim (Files): Remove getdelim.h.
32903         (Depends-on): Add stdio.
32904         (configure.ac): Add module indicator.
32905         * modules/stdio (Makefile.am): Work with new indicators.
32906         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
32907         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
32908         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
32909         * lib/getdelim.h: Delete.
32910         * lib/getline.h: Delete.
32911         * lib/stdio_.h (getdelim, getline): Declare.
32912         * modules/getdelim-tests: New module.
32913         * modules/getline-tests: Likewise.
32914         * tests/test-getdelim.c: New file.
32915         * tests/test-getline.c: Likewise.
32916         * NEWS: Document the change.
32917         * lib/getline.c: Update choice of header.
32918         * lib/csharpcomp.c: Likewise.
32919         * lib/getpass.c: Likewise.
32920         * lib/javacomp.c: Likewise.
32921         * lib/javaversion.c: Likewise.
32922         * lib/yesno.c: Likewise.
32923         * lib/getdelim.c: Likewise.
32924         (getdelim): Set errno on failure, and avoid memory leak.
32925
32926 2007-08-19  Bruno Haible  <bruno@clisp.org>
32927
32928         * modules/closein (Depends-on): Add freadahead.
32929         * lib/closein.c: Include freadahead.h.
32930         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
32931         is zero.
32932
32933 2007-08-19  Bruno Haible  <bruno@clisp.org>
32934
32935         * modules/freadahead-tests: New file.
32936         * tests/test-freadahead.sh: New file.
32937         * tests/test-freadahead.c: New file.
32938
32939         * modules/freadahead: New file.
32940         * lib/freadahead.h: New file.
32941         * lib/freadahead.c: New file.
32942         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
32943         fbufmode, fpurge, freadable, fwritable.
32944
32945 2007-08-19  Eric Blake  <ebb9@byu.net>
32946
32947         Test yesno in combination with closein.
32948         * lib/yesno.c (yesno): Document use of stdin.
32949         * modules/yesno-tests (Files): New module.
32950         * tests/test-yesno.c (main): New file.
32951         * tests/test-yesno.sh: Likewise.
32952
32953 2007-08-19  Bruno Haible  <bruno@clisp.org>
32954
32955         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
32956         * lib/fseeko.c (rpl_fseeko): Likewise.
32957         * lib/fseterr.c (fseterr): Likewise.
32958
32959 2007-08-19  Bruno Haible  <bruno@clisp.org>
32960
32961         * tests/test-lseek.c (main): Disable a test for BeOS.
32962         * doc/functions/lseek.texi: Document the BeOS bug.
32963
32964 2007-08-19  Bruno Haible  <bruno@clisp.org>
32965             Eric Blake  <ebb9@byu.net>
32966
32967         * lib/lseek.c: Include <sys/stat.h>.
32968         (rpl_lseek): Add workaround code also for Unix platforms.
32969         Needed for BeOS.
32970         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
32971         * doc/functions/lseek.texi: Document BeOS definiency.
32972
32973 2007-08-18  Bruno Haible  <bruno@clisp.org>
32974
32975         * modules/fstrcmp-tests: New file.
32976         * tests/test-fstrcmp.c: New file.
32977
32978 2007-08-18  Bruno Haible  <bruno@clisp.org>
32979
32980         * modules/fstrcmp: New file, from GNU gettext with modifications.
32981         * lib/fstrcmp.h: New file, from GNU gettext.
32982         * lib/fstrcmp.c: New file, from GNU gettext.
32983         * MODULES.html.sh (String handling): Add fstrcmp.
32984
32985 2007-08-18  Bruno Haible  <bruno@clisp.org>
32986
32987         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
32988         'bool'.
32989         (diag, compareseq): Remove const from the ctxt argument.
32990         (USE_HEURISTIC): Undefine at the end.
32991
32992 2007-08-18  Jim Meyering  <jim@meyering.net>
32993
32994         New file: lib/idcache.h
32995         * NEWS: Mention the addition.
32996         * modules/idcache (Files): Add lib/idcache.h
32997         * lib/idcache.c: Include "idcache.h".
32998         Don't include <sys/types.h>.
32999         Add a FIXME comment.
33000         Move file-scoped "static" declarations to the top.
33001         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
33002
33003 2007-08-17  Bruno Haible  <bruno@clisp.org>
33004         and Paul Eggert  <eggert@cs.ucla.edu>
33005
33006         * MODULES.html.sh: Add diffseq.
33007         * modules/diffseq: New file.
33008         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
33009         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
33010
33011 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
33012
33013         Import changes from coreutils for bootstrap script.
33014
33015         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
33016
33017         * build-aux/bootstrap (slurp): Work even in environments where
33018         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
33019         current code does not slurp files whose names start with ".", and
33020         this looks like it might be a troublesome area.
33021
33022         2007-07-11  Jim Meyering  <jim@meyering.net>
33023
33024         If there's a GPL vN copyright comment, require that N == 3.
33025
33026         2007-07-08  Jim Meyering  <jim@meyering.net>
33027
33028         Run the coreutils-specific code only if tests/Makefile.am.in exists.
33029         * build-aux/bootstrap (mam_template): Move definition out of loop.
33030
33031         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
33032
33033         * build-aux/bootstrap (symlink_to_dir): Rename function from
33034         symlink_to_gnulib.  Add a directory parameter.  Update all
33035         callers.
33036         (cp_mark_as_generated): Also check for -- and link to -- files in
33037         gl/.
33038
33039         2007-07-08  Jim Meyering  <jim@meyering.net>
33040
33041         Adapt to deeper hierarchy in gnulib.
33042         * build-aux/bootstrap (symlink_to_dir): If the destination
33043         directory doesn't exist, create it. This is required at least for
33044         "lib/uniwidth/cjk.h".
33045
33046         2007-05-15  Jim Meyering  <jim@meyering.net>
33047
33048         * build-aux/bootstrap: Now that generated Makefile.am files
33049         are no longer under version control, they must be created at
33050         bootstrap time.
33051
33052 2007-08-14  Ben Pfaff  <blp@gnu.org>
33053
33054         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
33055
33056 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
33057
33058         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
33059         given the changes below.
33060         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
33061         even on hosts that have padding bits beyond the supported 64.
33062
33063 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
33064
33065         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
33066         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
33067         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
33068         depends on it.
33069         (xstrtol_error): Remove.
33070         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
33071         but with a different signature.
33072         (ATTRIBUTE_NORETURN, __attribute__): New macros.
33073         * lib/xstrtol-error.c: Include exitfail.h.
33074         (xstrtol_fatal): New function, with a different signature from the
33075         old xstrtol_error, so that the caller need not worry about passing
33076         in an exit status, or about storage management of the option argument.
33077         (xstrtol_error): Now a static function.  Redo signature to
33078         implement xstrtol_fatal.  Output the correct number of hyphens in
33079         front of the option so that the caller need not worry about
33080         storage management.
33081         (N_): New macro.
33082         (_): Remove; not used now.
33083         * modules/xstrtol: Depend on getopt.
33084         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
33085         of old STRTOL_FATAL_ERROR macro.
33086         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
33087         of test program.
33088         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
33089         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
33090
33091 2007-08-08  Eric Blake  <ebb9@byu.net>
33092
33093         * lib/xstrtol-error.c: Add missing include.
33094
33095         Move xstrtol messages into gnulib domain, when --pobase is used.
33096         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
33097         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
33098         * modules/xstrtol (Files): Distribute new file.
33099         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
33100         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
33101         * tests/test-xstrtol.c: ...into new file.
33102         * tests/test-xstrtoul.c: Also test xstrtoul.
33103         * tests/test-xstrtoimax.c: Also test xstrtoimax.
33104         * tests/test-xstrtoumax.c: Also test xstrtoumax.
33105         * tests/test-xstrtol.sh: Drive the tests.
33106         * tests/test-xstrtoimax.sh: Likewise.
33107         * tests/test-xstrtoumax.sh: Likewise.
33108         * modules/xstrtol-tests: New module.
33109         * modules/xstrtoimax-tests: Likewise.
33110         * modules/xstrtoumax-tests: Likewise.
33111
33112 2007-08-08  Jim Meyering  <jim@meyering.net>
33113
33114         New function: mfile_name_concat.
33115         * lib/filenamecat.c (mfile_name_concat): New function, just like
33116         file_name_concat, but return NULL upon failure rather than exiting
33117         with a diagnostic.
33118         * lib/filenamecat.h: Declare it.
33119
33120 2007-08-07  Bruno Haible  <bruno@clisp.org>
33121
33122         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
33123         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
33124         warning from gcc.
33125         Reported by Eric Blake.
33126
33127 2007-08-07  Simon Josefsson  <simon@josefsson.org>
33128
33129         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
33130         * modules/crypto/arcfour (License): Likewise.
33131         * modules/crypto/des-tests (License): Likewise.
33132         * modules/crypto/gc-arctwo-tests (License): Likewise.
33133         * modules/crypto/gc-des-tests (License): Likewise.
33134         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
33135         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
33136         * modules/crypto/gc-md2-tests (License): Likewise.
33137         * modules/crypto/gc-md4-tests (License): Likewise.
33138         * modules/crypto/gc-md5-tests (License): Likewise.
33139         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
33140         * modules/crypto/gc-rijndael-tests (License): Likewise.
33141         * modules/crypto/gc-sha1-tests (License): Likewise.
33142         * modules/crypto/gc-tests (License): Likewise.
33143         * modules/crypto/hmac-md5 (License): Likewise.
33144         * modules/crypto/hmac-sha1 (License): Likewise.
33145         * modules/crypto/md2-tests (License): Likewise.
33146         * modules/crypto/md4-tests (License): Likewise.
33147         * modules/crypto/md5 (License): Likewise.
33148         * modules/crypto/rijndael (License): Likewise.
33149         * modules/crypto/sha1 (License): Likewise.
33150         * modules/memxor (License): Likewise.
33151
33152 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
33153         and Bruno Haible  <bruno@clisp.org>
33154
33155         * NEWS: Describe interface changes to human, xstrtol.
33156         * lib/human.h: Include <xstrtol.h>.
33157         (human_options): Return enum strtol_error, not int.  Remove
33158         bool arg; take int * instead.
33159         * lib/human.c: Don't include "gettext.h".
33160         (_): Remove; no longer used.
33161         Don't include <xstrtol.h>, since human.h does it.
33162         (human_options): Adjust to abovementioned interface changes.
33163         Do not report error to stderr; that's now the caller's
33164         responsibility.
33165         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
33166         interface change.
33167         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
33168         Str, Argument_type_string.  All uses changed.  Put " argument"
33169         in diagnostics to make them clearer.  Change wording of suffix
33170         message for clarity.
33171         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
33172         Argument_type_string.
33173         (STRTOL_FATAL_WARN): Remove; no longer used.
33174         * modules/human (Depends-on): Remove gettext-h.
33175
33176 2007-08-06  Simon Josefsson  <simon@josefsson.org>
33177
33178         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
33179
33180 2007-07-31  Bruno Haible  <bruno@clisp.org>
33181
33182         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
33183         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
33184         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
33185
33186 2007-07-31  Bruno Haible  <bruno@clisp.org>
33187
33188         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
33189         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
33190
33191 2007-07-30  Bruno Haible  <bruno@clisp.org>
33192
33193         * modules/base64 (License): Use the synonymous term "LGPLv2+".
33194         * modules/c-ctype (License): Likewise.
33195         * modules/c-strcase (License): Likewise.
33196         * modules/check-version (License): Likewise.
33197         * modules/iconv (License): Likewise.
33198         * modules/iconv_open (License): Likewise.
33199         * modules/read-file (License): Likewise.
33200         * modules/striconv (License): Likewise.
33201         * modules/strverscmp (License): Likewise.
33202         * modules/vasprintf (License): Likewise.
33203         * modules/crypto/des (License): Likewise.
33204         * modules/crypto/gc (License): Likewise.
33205         * modules/crypto/gc-arcfour (License): Likewise.
33206         * modules/crypto/gc-arctwo (License): Likewise.
33207         * modules/crypto/gc-des (License): Likewise.
33208         * modules/crypto/gc-hmac-md5 (License): Likewise.
33209         * modules/crypto/gc-hmac-sha1 (License): Likewise.
33210         * modules/crypto/gc-md2 (License): Likewise.
33211         * modules/crypto/gc-md4 (License): Likewise.
33212         * modules/crypto/gc-md5 (License): Likewise.
33213         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
33214         * modules/crypto/gc-random (License): Likewise.
33215         * modules/crypto/gc-rijndael (License): Likewise.
33216         * modules/crypto/gc-sha1 (License): Likewise.
33217         * modules/crypto/md2 (License): Likewise.
33218         * modules/crypto/md4 (License): Likewise.
33219
33220 2007-07-30  Jim Meyering  <jim@meyering.net>
33221
33222         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
33223         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
33224         it has valid stat data.  This bug would cause du not to count the
33225         sizes of inaccessible directories.
33226         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
33227         in <http://bugzilla.redhat.com/250077>.
33228
33229 2007-07-25  Peter O'Gorman  <peter@pogma.com>
33230             Bruno Haible  <bruno@clisp.org>
33231
33232         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
33233         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
33234         #include_next, gives a diagnostic about it, but reports no error in
33235         the exit code.
33236         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
33237
33238 2007-07-24  Ben Pfaff  <blp@gnu.org>
33239
33240         Improve name: "count-one-bits" is better than "popcount".
33241         * MODULES.html.sh: Update name.
33242         * lib/popcount.h: Renamed lib/count-one-bits.h.
33243         (popcount): Renamed count_one_bits.
33244         (popcountl): Renamed count_one_bits_l.
33245         (popcountll): Renamed count_one_bits_ll.
33246         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
33247         * modules/popcount: Renamed module/count-one-bits.
33248         * modules/popcount-tests: Renamed module/count-one-bits-tests.
33249         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
33250
33251 2007-07-23  Ben Pfaff  <blp@gnu.org>
33252
33253         * lib/popcount.h (popcount32): Reduce size of constants, to allow
33254         better code generation, and add U to large constants to avoid
33255         warnings, in non-GCC case.
33256         Suggested by Bruno Haible.
33257
33258 2007-07-23  Ben Pfaff  <blp@gnu.org>
33259
33260         * lib/popcount.h: Use verify_true instead of if...abort.
33261         * modules/popcount: Depend on verify module.
33262         Suggested by Jim Meyering.
33263
33264 2007-07-23  Bruno Haible  <bruno@clisp.org>
33265
33266         * gnulib-tool (func_import): Create a .cvsignore file also when the
33267         directory is not yet in CVS but the toplevel directory is. When
33268         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
33269         Reported by Karl Berry.
33270
33271 2007-07-22  Ben Pfaff  <blp@gnu.org>
33272
33273         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
33274         case.
33275         Suggested by Eric Blake.
33276
33277 2007-07-22  Ben Pfaff  <blp@gnu.org>
33278
33279         New module: popcount.
33280         * MODULES.html.sh: Add popcount.
33281         * modules/popcount: New file.
33282         * modules/popcount-tests: New file.
33283         * tests/test-popcount.c: New file.
33284         * lib/popcount.h: New file.
33285         * m4/popcount.m4: New file.
33286
33287 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
33288
33289         * build-aux/announce-gen: Update to GPLv3.
33290
33291         * build-aux/config.guess: Update from config.
33292
33293 2007-07-21  Bruno Haible  <bruno@clisp.org>
33294
33295         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
33296         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
33297
33298 2007-07-20  Jim Meyering  <jim@meyering.net>
33299
33300         * check-module: Diagnose a self-dependency.
33301
33302 2007-07-19  Bruno Haible  <bruno@clisp.org>
33303
33304         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
33305         empty.
33306         Reported by Eric Blake.
33307
33308 2007-07-18  Bruno Haible  <bruno@clisp.org>
33309
33310         * gnulib-tool: New options --po-base, --po-domain.
33311         (func_usage): Document them.
33312         (pobase, po_domain): New variables.
33313         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
33314         DEFAULT_TEXT_DOMAIN.
33315         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
33316         (func_import): Consider pobase and po_domain. Create a po/ directory.
33317         (func_create_testdir): Set pobase and po_domain to empty.
33318         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
33319         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
33320
33321 2007-07-18  Bruno Haible  <bruno@clisp.org>
33322
33323         * gnulib-tool (func_get_automake_snippet): Synthesize also an
33324         EXTRA_DIST augmentation for files in build-aux/.
33325
33326 2007-07-16  Bruno Haible  <bruno@clisp.org>
33327
33328         * modules/lseek (License): Use the synonymous term "LGPLv2+".
33329         * modules/getdelim (License): Likewise.
33330
33331 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33332
33333         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
33334         * modules/d-type (License): Likewise.
33335         * modules/extensions (License): Likewise.
33336         * modules/fnmatch (License): Likewise.
33337         * modules/fseeko (License): Likewise.
33338         * modules/getaddrinfo (License): Likewise.
33339         * modules/getline (License): Likewise.
33340         * modules/getlogin_r (License): Likewise.
33341         * modules/getpass (License): Likewise.
33342         * modules/gettimeofday (License): Likewise.
33343         * modules/glob (License): Likewise.
33344         * modules/inet_ntop (License): Likewise.
33345         * modules/malloc (License): Likewise.
33346         * modules/malloca (License): Likewise.
33347         * modules/memmem (License): Likewise.
33348         * modules/mempcpy (License): Likewise.
33349         * modules/memset (License): Likewise.
33350         * modules/minmax (License): Likewise.
33351         * modules/mktime (License): Likewise.
33352         * modules/netinet_in (License): Likewise.
33353         * modules/pathmax (License): Likewise.
33354         * modules/poll (License): Likewise.
33355         * modules/regex (License): Likewise.
33356         * modules/snprintf (License): Likewise.
33357         * modules/stdbool (License): Likewise.
33358         * modules/stdint (License): Likewise.
33359         * modules/stdio (License): Likewise.
33360         * modules/strcase (License): Likewise.
33361         * modules/strcasestr (License): Likewise.
33362         * modules/strdup (License): Likewise.
33363         * modules/string (License): Likewise.
33364         * modules/strndup (License): Likewise.
33365         * modules/strnlen (License): Likewise.
33366         * modules/strpbrk (License): Likewise.
33367         * modules/strptime (License): Likewise.
33368         * modules/strsep (License): Likewise.
33369         * modules/sys_select (License): Likewise.
33370         * modules/sys_socket (License): Likewise.
33371         * modules/sys_stat (License): Likewise.
33372         * modules/sys_time (License): Likewise.
33373         * modules/time (License): Likewise.
33374         * modules/time_r (License): Likewise.
33375         * modules/timegm (License): Likewise.
33376         * modules/unistd (License): Likewise.
33377         * modules/vsnprintf (License): Likewise.
33378         * modules/wctype (License): Likewise.
33379
33380 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33381
33382         * modules/argz (License): LGPLv2+.
33383
33384 2007-07-15  Karl Berry  <karl@gnu.org>
33385
33386         * doc/gnulib.texi: revise node structure per new fdl.texi.
33387
33388 2007-07-14  Bruno Haible  <bruno@clisp.org>
33389
33390         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
33391         the output file.
33392         * lib/uniname/uninames.h: Regenerated.
33393
33394 2007-07-14  Karl Berry  <karl@gnu.org>
33395
33396         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
33397         omitting sectioning and index commands.
33398
33399 2007-07-13  Bruno Haible  <bruno@clisp.org>
33400
33401         New gnulib-tool option --more-symlinks.
33402         * gnulib-tool (func_usage): Document --more-symlinks.
33403         (do_copyrights): New variable.
33404         Recognize option --more-symlinks.
33405         (func_import): Don't add a copyright notice transform to
33406         sed_transform_lib_file if do_copyrights is empty.
33407
33408 2007-07-13  Bruno Haible  <bruno@clisp.org>
33409
33410         * lib/vasnprintf.c (decimal_point_char): Define also if
33411         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
33412         && !NEED_PRINTF_DIRECTIVE_A.
33413         Reported by Clemens Koller <clemens.koller@anagramm.de> via
33414         Gary V. Vaughan <gary@gnu.org>.
33415
33416 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
33417
33418         * lib/inttypes_.h: Undo previous change, since it was fixed
33419         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
33420
33421 2007-07-13  Bruno Haible  <bruno@clisp.org>
33422
33423         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
33424         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
33425
33426 2007-07-13  Jim Meyering  <jim@meyering.net>
33427
33428         df: Don't fail for Tru64's "file-on-file mount".
33429         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
33430         so we fall through and use statfs instead.  Details here:
33431         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
33432         Reported by Albert Chin.
33433
33434 2007-07-13  Bruno Haible  <bruno@clisp.org>
33435
33436         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
33437         * modules/configmake (License): Likewise.
33438         * modules/gettext (License): Likewise.
33439         * modules/gettext-h (License): Likewise.
33440         * modules/include_next (License): Likewise.
33441         * modules/link-warning (License): Likewise.
33442         * modules/localcharset (License): Likewise.
33443         * modules/localename (License): Likewise.
33444         * modules/lock (License): Likewise.
33445         * modules/relocatable-lib-lgpl (License): Likewise.
33446         * modules/size_max (License): Likewise.
33447         * modules/vasnprintf (License): Likewise.
33448         * modules/wchar (License): Likewise.
33449         * modules/xsize (License): Likewise.
33450
33451 2007-07-13  Bruno Haible  <bruno@clisp.org>
33452
33453         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
33454         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
33455
33456 2007-07-12  Bruno Haible  <bruno@clisp.org>
33457
33458         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
33459         in the modules files.
33460
33461 2007-07-11  Karl Berry  <karl@gnu.org>
33462
33463         * MODULES.html.sh (func_module): use
33464          sed -e '\|^'"${includefile}"'$|d'
33465          instead of /.../d, to avoid errors on $includefile's containing /.
33466
33467 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
33468
33469         * gnulib-tool (func_import): Avoid duplication of --avoid
33470         statements
33471         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
33472         names to `_' in variable names.
33473
33474 2007-07-10  Eric Blake  <ebb9@byu.net>
33475
33476         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
33477         * NEWS: Document this change.
33478
33479 2007-07-08  Bruno Haible  <bruno@clisp.org>
33480
33481         Update to Unicode 5.0.
33482         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
33483         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
33484         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
33485         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
33486         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
33487         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
33488         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
33489         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
33490         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
33491         U+10A3F, U+1D242..U+1D244.
33492         (nonspacing_table_ind): Update.
33493         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
33494         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
33495
33496 2007-07-08  Bruno Haible  <bruno@clisp.org>
33497
33498         Update to Unicode 5.0.
33499         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
33500         code transform. Extend the name index field of unicode_name_to_code and
33501         unicode_code_to_name from 16 to 24 bits.
33502         * lib/uniname/uniname.c (unicode_character_name,
33503         unicode_name_character): Add the range 0x12xxx to the code transform.
33504         * lib/uniname/uninames.h: Regenerated.
33505         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
33506
33507 2007-07-07  Bruno Haible  <bruno@clisp.org>
33508
33509         * modules/wcwidth-tests: New file.
33510         * tests/test-wcwidth.c: New file.
33511
33512         Work around MacOS X wcwidth() bug.
33513         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
33514         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
33515         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
33516         original wcwidth in non-UTF-8 locales.
33517         * modules/wcwidth (Depends-on): Add localcharset, streq,
33518         uniwidth/width.
33519         * doc/functions/wcwidth.texi: Update.
33520
33521 2007-07-07  Bruno Haible  <bruno@clisp.org>
33522
33523         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
33524         (wcwidth): New declaration.
33525         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
33526         macros.
33527         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
33528         here. Prepare for creating <wchar.h> unconditionally.
33529         * modules/wchar (Depends-on): Add link-warning.
33530         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
33531         REPLACE_WCWIDTH, and GL_LINK_WARNING.
33532         * lib/wcwidth.h: Remove file.
33533         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
33534         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
33535         * modules/wcwidth (Files): Remove lib/wcwidth.h.
33536         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
33537         (Include): Replace wcwidth.h with <wchar.h>.
33538         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
33539         * lib/mbchar.h: Don't include wcwidth.h.
33540         * lib/mbswidth.c: Likewise.
33541         * NEWS: Mention the change.
33542
33543 2007-07-07  Bruno Haible  <bruno@clisp.org>
33544
33545         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
33546         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
33547         definition with an external declaration.
33548         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
33549         defined as a function. Remove AC_C_INLINE requirement.
33550         * modules/wcwidth (Files): Add lib/wcwidth.c.
33551         (Makefile.am): Remove redundant statement.
33552
33553 2007-07-07  Bruno Haible  <bruno@clisp.org>
33554
33555         * MODULES.html.sh (Unicode string functions): Add the new modules.
33556
33557         * tests/uniwidth/test-u32-strwidth.c: New file.
33558         * modules/uniwidth/u32-strwidth-tests: New file.
33559
33560         * lib/uniwidth/u32-strwidth.c: New file.
33561         * modules/uniwidth/u32-strwidth: New file.
33562
33563         * tests/uniwidth/test-u16-strwidth.c: New file.
33564         * modules/uniwidth/u16-strwidth-tests: New file.
33565
33566         * lib/uniwidth/u16-strwidth.c: New file.
33567         * modules/uniwidth/u16-strwidth: New file.
33568
33569         * tests/uniwidth/test-u8-strwidth.c: New file.
33570         * modules/uniwidth/u8-strwidth-tests: New file.
33571
33572         * lib/uniwidth/u8-strwidth.c: New file.
33573         * modules/uniwidth/u8-strwidth: New file.
33574
33575         * tests/uniwidth/test-u32-width.c: New file.
33576         * modules/uniwidth/u32-width-tests: New file.
33577
33578         * lib/uniwidth/u32-width.c: New file.
33579         * modules/uniwidth/u32-width: New file.
33580
33581         * tests/uniwidth/test-u16-width.c: New file.
33582         * modules/uniwidth/u16-width-tests: New file.
33583
33584         * lib/uniwidth/u16-width.c: New file.
33585         * modules/uniwidth/u16-width: New file.
33586
33587         * tests/uniwidth/test-u8-width.c: New file.
33588         * modules/uniwidth/u8-width-tests: New file.
33589
33590         * lib/uniwidth/u8-width.c: New file.
33591         * modules/uniwidth/u8-width: New file.
33592
33593         * tests/uniwidth/test-uc_width.c: New file.
33594         * modules/uniwidth/width-tests: New file.
33595
33596         * lib/uniwidth/width.c: New file, from GNU libiconv.
33597         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
33598         * modules/uniwidth/width: New file.
33599
33600         * lib/uniwidth.h: New file, from GNU libiconv.
33601         * modules/uniwidth/base: New file.
33602
33603 2007-07-07  Bruno Haible  <bruno@clisp.org>
33604
33605         * lib/uniname.h: New file, from GNU gettext.
33606         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
33607         * lib/uniname/uninames.h: New file, from GNU gettext.
33608         * lib/uniname/uniname.c: New file, from GNU gettext.
33609         * tests/uniname/test-uninames.sh: New file.
33610         * tests/uniname/test-uninames.c: New file, from GNU gettext.
33611         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
33612         * modules/uniname/base: New file.
33613         * modules/uniname/uniname: New file.
33614         * modules/uniname/uniname-tests: New file.
33615         * MODULES.html.sh (Unicode string functions): Add the new modules.
33616
33617 2007-07-06  Bruno Haible  <bruno@clisp.org>
33618
33619         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
33620
33621 2007-07-06  Bruno Haible  <bruno@clisp.org>
33622
33623         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
33624         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
33625         includes <cygwin/sys_time.h> which includes <sys/select.h> which
33626         include <sys/time.h>.
33627         Reported by Eric Blake.
33628
33629 2007-07-06  Eric Blake  <ebb9@byu.net>
33630
33631         Fix testing canonicalize on cygwin.
33632         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
33633         Revert patch from 2007-06-19.
33634         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
33635         canonicalize module is also in use.
33636         * tests/test-canonicalize.c: New file.
33637         * tests/test-canonicalize.sh: Likewise.
33638         * modules/canonicalize-tests: Likewise.
33639
33640 2007-07-06  Jim Meyering  <jim@meyering.net>
33641
33642         * lib/getugroups.c (getugroups): Detect getgrent failure.
33643         Adjust comment to reflect reality: this function may return -1.
33644
33645 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
33646
33647         * build-aux/bootstrap (TP_URL,get_translations): Update to use
33648         the new TP address.
33649         (usage): Fix typo
33650         (gnulib_mk): New variable.
33651
33652 2007-07-05  Jim Meyering  <jim@meyering.net>
33653
33654         Don't let endgrent clobber errno, no matter how improbable.
33655         * lib/getugroups.c (getugroups): Save and restore errno around
33656         endgrent call.
33657
33658         Close the group DB even when failing with 2^31 or more members.
33659         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
33660
33661 2007-07-04  Jim Meyering  <jim@meyering.net>
33662
33663         * lib/getugroups.h: New file.
33664         * lib/getugroups.c: Include "getugroups.h".
33665         Remove uses of "register" keyword.
33666         Move local variable, "cp", down into scope where used.
33667         Give "username" parameter the "const" attribute.
33668         * modules/getugroups (Files): Add lib/getugroups.h
33669
33670 2007-07-04  Karl Berry  <karl@gnu.org>
33671
33672         * MODULES.html.sh (func_all_modules): Complete rename of
33673         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
33674
33675 2007-07-02  Bruno Haible  <bruno@clisp.org>
33676
33677         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
33678         mode, when inttypes.h comes from gnulib.
33679         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
33680
33681 2007-07-02  Simon Josefsson  <simon@josefsson.org>
33682
33683         * NEWS: Mention lgpl module name change.
33684
33685         * modules/lgpl-2.1: Renamed from lgpl.
33686
33687         * NEWS: Mention gpl module name change.
33688
33689         * modules/gpl-3.0: New file, based on gpl-2.0.
33690
33691         * modules/gpl-2.0: Renamed from gpl.
33692
33693         * modules/gpl: Fix filename, doc/gpl.texi is now found at
33694         doc/gpl-2.0.texi.
33695
33696 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
33697
33698         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
33699         #define __STDC_LIMIT_MACROS temporarily while including
33700         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
33701         Problem reported by Joel E. Denny in
33702         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
33703
33704 2007-07-01  Bruno Haible  <bruno@clisp.org>
33705
33706         * lib/unistdio.h: New file.
33707         * lib/unistdio/u-asnprintf.h: New file.
33708         * lib/unistdio/u-asprintf.h: New file.
33709         * lib/unistdio/u-printf-args.c: New file.
33710         * lib/unistdio/u-printf-args.h: New file.
33711         * lib/unistdio/u-printf-parse.h: New file.
33712         * lib/unistdio/u-snprintf.h: New file.
33713         * lib/unistdio/u-sprintf.h: New file.
33714         * lib/unistdio/u-vasprintf.h: New file.
33715         * lib/unistdio/u-vsnprintf.h: New file.
33716         * lib/unistdio/u-vsprintf.h: New file.
33717         * lib/unistdio/ulc-asnprintf.c: New file.
33718         * lib/unistdio/ulc-asprintf.c: New file.
33719         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
33720         * lib/unistdio/ulc-printf-parse.c: New file.
33721         * lib/unistdio/ulc-snprintf.c: New file.
33722         * lib/unistdio/ulc-sprintf.c: New file.
33723         * lib/unistdio/ulc-vasnprintf.c: New file.
33724         * lib/unistdio/ulc-vasprintf.c: New file.
33725         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
33726         * lib/unistdio/ulc-vsnprintf.c: New file.
33727         * lib/unistdio/ulc-vsprintf.c: New file.
33728         * lib/unistdio/u8-asnprintf.c: New file.
33729         * lib/unistdio/u8-asprintf.c: New file.
33730         * lib/unistdio/u8-printf-parse.c: New file.
33731         * lib/unistdio/u8-snprintf.c: New file.
33732         * lib/unistdio/u8-sprintf.c: New file.
33733         * lib/unistdio/u8-vasnprintf.c: New file.
33734         * lib/unistdio/u8-vasprintf.c: New file.
33735         * lib/unistdio/u8-vsnprintf.c: New file.
33736         * lib/unistdio/u8-vsprintf.c: New file.
33737         * lib/unistdio/u8-u8-asnprintf.c: New file.
33738         * lib/unistdio/u8-u8-asprintf.c: New file.
33739         * lib/unistdio/u8-u8-snprintf.c: New file.
33740         * lib/unistdio/u8-u8-sprintf.c: New file.
33741         * lib/unistdio/u8-u8-vasnprintf.c: New file.
33742         * lib/unistdio/u8-u8-vasprintf.c: New file.
33743         * lib/unistdio/u8-u8-vsnprintf.c: New file.
33744         * lib/unistdio/u8-u8-vsprintf.c: New file.
33745         * lib/unistdio/u16-asnprintf.c: New file.
33746         * lib/unistdio/u16-asprintf.c: New file.
33747         * lib/unistdio/u16-printf-parse.c: New file.
33748         * lib/unistdio/u16-snprintf.c: New file.
33749         * lib/unistdio/u16-sprintf.c: New file.
33750         * lib/unistdio/u16-vasnprintf.c: New file.
33751         * lib/unistdio/u16-vasprintf.c: New file.
33752         * lib/unistdio/u16-vsnprintf.c: New file.
33753         * lib/unistdio/u16-vsprintf.c: New file.
33754         * lib/unistdio/u16-u16-asnprintf.c: New file.
33755         * lib/unistdio/u16-u16-asprintf.c: New file.
33756         * lib/unistdio/u16-u16-snprintf.c: New file.
33757         * lib/unistdio/u16-u16-sprintf.c: New file.
33758         * lib/unistdio/u16-u16-vasnprintf.c: New file.
33759         * lib/unistdio/u16-u16-vasprintf.c: New file.
33760         * lib/unistdio/u16-u16-vsnprintf.c: New file.
33761         * lib/unistdio/u16-u16-vsprintf.c: New file.
33762         * lib/unistdio/u32-asnprintf.c: New file.
33763         * lib/unistdio/u32-asprintf.c: New file.
33764         * lib/unistdio/u32-printf-parse.c: New file.
33765         * lib/unistdio/u32-snprintf.c: New file.
33766         * lib/unistdio/u32-sprintf.c: New file.
33767         * lib/unistdio/u32-vasnprintf.c: New file.
33768         * lib/unistdio/u32-vasprintf.c: New file.
33769         * lib/unistdio/u32-vsnprintf.c: New file.
33770         * lib/unistdio/u32-vsprintf.c: New file.
33771         * lib/unistdio/u32-u32-asnprintf.c: New file.
33772         * lib/unistdio/u32-u32-asprintf.c: New file.
33773         * lib/unistdio/u32-u32-snprintf.c: New file.
33774         * lib/unistdio/u32-u32-sprintf.c: New file.
33775         * lib/unistdio/u32-u32-vasnprintf.c: New file.
33776         * lib/unistdio/u32-u32-vasprintf.c: New file.
33777         * lib/unistdio/u32-u32-vsnprintf.c: New file.
33778         * lib/unistdio/u32-u32-vsprintf.c: New file.
33779         * tests/unistdio/test-ulc-asnprintf1.c: New file.
33780         * tests/unistdio/test-ulc-asnprintf1.h: New file.
33781         * tests/unistdio/test-ulc-printf1.h: New file.
33782         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
33783         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
33784         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
33785         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
33786         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
33787         * tests/unistdio/test-ulc-vasprintf1.c: New file.
33788         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
33789         * tests/unistdio/test-ulc-vsprintf1.c: New file.
33790         * tests/unistdio/test-u8-asnprintf1.c: New file.
33791         * tests/unistdio/test-u8-asnprintf1.h: New file.
33792         * tests/unistdio/test-u8-printf1.h: New file.
33793         * tests/unistdio/test-u8-vasnprintf1.c: New file.
33794         * tests/unistdio/test-u8-vasnprintf2.c: New file.
33795         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
33796         * tests/unistdio/test-u8-vasnprintf3.c: New file.
33797         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
33798         * tests/unistdio/test-u8-vasprintf1.c: New file.
33799         * tests/unistdio/test-u8-vsnprintf1.c: New file.
33800         * tests/unistdio/test-u8-vsprintf1.c: New file.
33801         * tests/unistdio/test-u16-asnprintf1.c: New file.
33802         * tests/unistdio/test-u16-asnprintf1.h: New file.
33803         * tests/unistdio/test-u16-printf1.h: New file.
33804         * tests/unistdio/test-u16-vasnprintf1.c: New file.
33805         * tests/unistdio/test-u16-vasnprintf2.c: New file.
33806         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
33807         * tests/unistdio/test-u16-vasnprintf3.c: New file.
33808         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
33809         * tests/unistdio/test-u16-vasprintf1.c: New file.
33810         * tests/unistdio/test-u16-vsnprintf1.c: New file.
33811         * tests/unistdio/test-u16-vsprintf1.c: New file.
33812         * tests/unistdio/test-u32-asnprintf1.c: New file.
33813         * tests/unistdio/test-u32-asnprintf1.h: New file.
33814         * tests/unistdio/test-u32-printf1.h: New file.
33815         * tests/unistdio/test-u32-vasnprintf1.c: New file.
33816         * tests/unistdio/test-u32-vasnprintf2.c: New file.
33817         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
33818         * tests/unistdio/test-u32-vasnprintf3.c: New file.
33819         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
33820         * tests/unistdio/test-u32-vasprintf1.c: New file.
33821         * tests/unistdio/test-u32-vsnprintf1.c: New file.
33822         * tests/unistdio/test-u32-vsprintf1.c: New file.
33823         * modules/unistdio/base: New file.
33824         * modules/unistdio/u-printf-args: New file.
33825         * modules/unistdio/ulc-asnprintf: New file.
33826         * modules/unistdio/ulc-asprintf: New file.
33827         * modules/unistdio/ulc-fprintf: New file.
33828         * modules/unistdio/ulc-printf-parse: New file.
33829         * modules/unistdio/ulc-snprintf: New file.
33830         * modules/unistdio/ulc-sprintf: New file.
33831         * modules/unistdio/ulc-vasnprintf: New file.
33832         * modules/unistdio/ulc-vasprintf: New file.
33833         * modules/unistdio/ulc-vfprintf: New file.
33834         * modules/unistdio/ulc-vsnprintf: New file.
33835         * modules/unistdio/ulc-vsprintf: New file.
33836         * modules/unistdio/u8-asnprintf: New file.
33837         * modules/unistdio/u8-asprintf: New file.
33838         * modules/unistdio/u8-printf-parse: New file.
33839         * modules/unistdio/u8-snprintf: New file.
33840         * modules/unistdio/u8-sprintf: New file.
33841         * modules/unistdio/u8-vasnprintf: New file.
33842         * modules/unistdio/u8-vasprintf: New file.
33843         * modules/unistdio/u8-vsnprintf: New file.
33844         * modules/unistdio/u8-vsprintf: New file.
33845         * modules/unistdio/u8-u8-asnprintf: New file.
33846         * modules/unistdio/u8-u8-asprintf: New file.
33847         * modules/unistdio/u8-u8-snprintf: New file.
33848         * modules/unistdio/u8-u8-sprintf: New file.
33849         * modules/unistdio/u8-u8-vasnprintf: New file.
33850         * modules/unistdio/u8-u8-vasprintf: New file.
33851         * modules/unistdio/u8-u8-vsnprintf: New file.
33852         * modules/unistdio/u8-u8-vsprintf: New file.
33853         * modules/unistdio/u16-asnprintf: New file.
33854         * modules/unistdio/u16-asprintf: New file.
33855         * modules/unistdio/u16-printf-parse: New file.
33856         * modules/unistdio/u16-snprintf: New file.
33857         * modules/unistdio/u16-sprintf: New file.
33858         * modules/unistdio/u16-vasnprintf: New file.
33859         * modules/unistdio/u16-vasprintf: New file.
33860         * modules/unistdio/u16-vsnprintf: New file.
33861         * modules/unistdio/u16-vsprintf: New file.
33862         * modules/unistdio/u16-u16-asnprintf: New file.
33863         * modules/unistdio/u16-u16-asprintf: New file.
33864         * modules/unistdio/u16-u16-snprintf: New file.
33865         * modules/unistdio/u16-u16-sprintf: New file.
33866         * modules/unistdio/u16-u16-vasnprintf: New file.
33867         * modules/unistdio/u16-u16-vasprintf: New file.
33868         * modules/unistdio/u16-u16-vsnprintf: New file.
33869         * modules/unistdio/u16-u16-vsprintf: New file.
33870         * modules/unistdio/u32-asnprintf: New file.
33871         * modules/unistdio/u32-asprintf: New file.
33872         * modules/unistdio/u32-printf-parse: New file.
33873         * modules/unistdio/u32-snprintf: New file.
33874         * modules/unistdio/u32-sprintf: New file.
33875         * modules/unistdio/u32-vasnprintf: New file.
33876         * modules/unistdio/u32-vasprintf: New file.
33877         * modules/unistdio/u32-vsnprintf: New file.
33878         * modules/unistdio/u32-vsprintf: New file.
33879         * modules/unistdio/u32-u32-asnprintf: New file.
33880         * modules/unistdio/u32-u32-asprintf: New file.
33881         * modules/unistdio/u32-u32-snprintf: New file.
33882         * modules/unistdio/u32-u32-sprintf: New file.
33883         * modules/unistdio/u32-u32-vasnprintf: New file.
33884         * modules/unistdio/u32-u32-vasprintf: New file.
33885         * modules/unistdio/u32-u32-vsnprintf: New file.
33886         * modules/unistdio/u32-u32-vsprintf: New file.
33887         * modules/unistdio/ulc-asnprintf-tests: New file.
33888         * modules/unistdio/ulc-vasnprintf-tests: New file.
33889         * modules/unistdio/ulc-vasprintf-tests: New file.
33890         * modules/unistdio/ulc-vsnprintf-tests: New file.
33891         * modules/unistdio/ulc-vsprintf-tests: New file.
33892         * modules/unistdio/u8-asnprintf-tests: New file.
33893         * modules/unistdio/u8-vasnprintf-tests: New file.
33894         * modules/unistdio/u8-vasprintf-tests: New file.
33895         * modules/unistdio/u8-vsnprintf-tests: New file.
33896         * modules/unistdio/u8-vsprintf-tests: New file.
33897         * modules/unistdio/u16-asnprintf-tests: New file.
33898         * modules/unistdio/u16-vasnprintf-tests: New file.
33899         * modules/unistdio/u16-vasprintf-tests: New file.
33900         * modules/unistdio/u16-vsnprintf-tests: New file.
33901         * modules/unistdio/u16-vsprintf-tests: New file.
33902         * modules/unistdio/u32-asnprintf-tests: New file.
33903         * modules/unistdio/u32-vasnprintf-tests: New file.
33904         * modules/unistdio/u32-vasprintf-tests: New file.
33905         * modules/unistdio/u32-vsnprintf-tests: New file.
33906         * modules/unistdio/u32-vsprintf-tests: New file.
33907         * MODULES.html.sh (Unicode string functions): Add the new modules.
33908
33909 2007-07-01  Bruno Haible  <bruno@clisp.org>
33910
33911         * lib/sprintf.c (sprintf): Limit the available length estimation,
33912         to avoid address wraparound.
33913         * lib/vsprintf.c (vsprintf): Likewise.
33914         * modules/sprintf-posix (Dependencies): Add stdint.
33915         * modules/vsprintf-posix (Dependencies): Likewise.
33916
33917 2007-07-01  Bruno Haible  <bruno@clisp.org>
33918
33919         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
33920         Windows PATH as well. Conservative double-quoting. Comments.
33921
33922 2007-07-01  Bruno Haible  <bruno@clisp.org>
33923             Eric Blake  <ebb9@byu.net>
33924             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33925
33926         * gnulib-tool (self_abspathname): Fix algorithm to cope with
33927         empty components in $PATH, denoting '.'.
33928
33929 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33930
33931         * gnulib-tool: Fix indentation.
33932         (func_create_megatestdir): Likewise.
33933         Report by Bruno Haible.
33934
33935 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33936
33937         Sync from Automake.
33938         * build-aux/gnupload: Fix shell portability issues with for loops.
33939         Report by Karl Berry.
33940
33941 2007-06-29  Simon Josefsson  <simon@josefsson.org>
33942
33943         * build-aux/maint.mk (POURL): Use translationproject.org.
33944
33945 2007-06-27  Simon Josefsson  <simon@josefsson.org>
33946             Bruno Haible  <bruno@clisp.org>
33947
33948         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
33949         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
33950         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
33951         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
33952         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
33953
33954 2007-06-27  Bruno Haible  <bruno@clisp.org>
33955
33956         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
33957         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
33958
33959 2007-06-26  Karl Berry  <karl@gnu.org>
33960
33961         * MODULES.html.sh: remove xreadlink-with-size.
33962
33963 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
33964
33965         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
33966         method that I hope also handles the double-include problem noted
33967         by Bruno Haible in
33968         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
33969
33970 2007-06-23  Bruno Haible  <bruno@clisp.org>
33971
33972         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
33973         Don't let the 'mostlyclean' target fail if the last subdirectory could
33974         not be removed.
33975         Reported by Karl Berry.
33976
33977 2007-06-23  Bruno Haible  <bruno@clisp.org>
33978
33979         * gnulib-tool (echo): Add a speedier workaround for ksh.
33980         * tests/test-echo.sh: Likewise.
33981
33982 2007-06-23  Bruno Haible  <bruno@clisp.org>
33983
33984         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
33985         * tests/test-echo.sh: Likewise.
33986
33987 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33988
33989         * gnulib-tool (IFS): Initialize early, so we don't set it to
33990         empty later.
33991         (self_abspathname): Rewrite algorithm to set it, reindent.
33992         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
33993         (func_create_megatestdir): Merge some sed scripts.
33994
33995 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
33996
33997         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
33998         exposed by Sun Studio 11 cc on Solaris 8.
33999
34000 2007-06-22  Bruno Haible  <bruno@clisp.org>
34001
34002         * gnulib-tool (echo): Ensure the echo primitive does not interpret
34003         backslashes.
34004         * tests/test-echo.sh: New file.
34005
34006 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34007
34008         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
34009         simplify `sed_replace_build_aux' scripts, they are portable but
34010         echoing them with `echo' is not.
34011         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
34012
34013 2007-06-21  Karl Berry  <karl@gnu.org>
34014
34015         * config/srclist.txt: guess we can't handle the licenses via
34016         srclist at the moment.
34017
34018 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
34019
34020         * MODULES.html.sh: Add include_next.
34021         * modules/include_next: New file.
34022
34023 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
34024
34025         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
34026         INCLUDE_NEXT.
34027         (gl_CHECK_NEXT_HEADERS): New macro.
34028         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
34029         the obsolescent gl_ABSOLUTE_HEADER.
34030         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
34031         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
34032         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
34033         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
34034         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
34035         * m4/math_h.m4 (gl_MATH_H): Likewise.
34036         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
34037         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
34038         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
34039         * m4/stdint.m4 (gl_STDINT_H): Likewise.
34040         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
34041         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
34042         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
34043         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
34044         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
34045         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
34046         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
34047         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
34048         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
34049         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
34050         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
34051         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
34052         * m4/inttypes.m4 (gl_INTTYPES_H): Define
34053         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
34054         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
34055         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
34056         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
34057         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
34058         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
34059         * lib/float_.h: Likewise.
34060         * lib/inttypes_.h: Likewise.
34061         * lib/math_.h: Likewise.
34062         * lib/search_.h: Likewise.
34063         * lib/signal_.h: Likewise.
34064         * lib/stdint_.h: Likewise.
34065         * lib/stdio_.h: Likewise.
34066         * lib/stdlib_.h: Likewise.
34067         * lib/string_.h: Likewise.
34068         * lib/sys_stat_.h: Likewise.
34069         * lib/sys_time_.h: Likewise.
34070         * lib/time_.h: Likewise.
34071         * lib/unistd_.h: Likewise.
34072         * lib/wchar_.h: Likewise.
34073         * lib/wctype_.h: Likewise.
34074         * lib/dirent_.h: Likewise.
34075         * lib/iconv_.h: Likewise.
34076         * lib/locale_.h: Likewise.
34077         * lib/netinet_in_.h: Likewise.
34078         * lib/sys_select_.h: Likewise.
34079         * lib/sys_socket_.h: Likewise.
34080         * lib/sysexits_.h: Likewise.
34081         * modules/fcntl (Depends-on): Depend on include_next, not
34082         absolute_header.
34083         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
34084         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
34085         * modules/fchdir: Likewise.
34086         * modules/float: Likewise.
34087         * modules/iconv_open: Likewise.
34088         * modules/inttypes: Likewise.
34089         * modules/locale: Likewise.
34090         * modules/math: Likewise.
34091         * modules/netinet_in: Likewise.
34092         * modules/search: Likewise.
34093         * modules/signal: Likewise.
34094         * modules/stdint: Likewise.
34095         * modules/stdio: Likewise.
34096         * modules/stdlib: Likewise.
34097         * modules/string: Likewise.
34098         * modules/sys_select: Likewise.
34099         * modules/sys_socket: Likewise.
34100         * modules/sys_stat: Likewise.
34101         * modules/sys_time: Likewise.
34102         * modules/sysexits: Likewise.
34103         * modules/time: Likewise.
34104         * modules/unistd: Likewise.
34105         * modules/wchar: Likewise.
34106         * modules/wctype: Likewise.
34107         * modules/sys_stat: Change maintainer to "all".
34108         * modules/unistd: Likewise.
34109
34110 2007-06-20  Karl Berry  <karl@gnu.org>
34111
34112         * config/srclist.txt: track www changes in license files.
34113
34114 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
34115
34116         * build-aux/bootstrap: Remove stray dot.
34117         Make sure build_aux settings are honored when linking
34118         gnulib_extra_files.
34119
34120 2007-06-19  Eric Blake  <ebb9@byu.net>
34121
34122         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
34123         Allow compilation on cygwin.
34124
34125 2007-06-19  Jim Meyering  <jim@meyering.net>
34126
34127         xreadlink-with-size: Remove module.  No longer used.
34128         Ex-callers now use xreadlink or mreadlink-with-size.
34129         * modules/xreadlink-with-size: Remove module.
34130         * lib/xreadlink-with-size.c: Remove file.
34131         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
34132         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
34133         just before the function definition *is* accurate.
34134
34135         Eliminate one way canonicalize_filename_mode could exit.
34136         * lib/canonicalize.c (canonicalize_filename_mode):
34137         Use mreadlink_with_size, not xreadlink_with_size.
34138
34139 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
34140
34141         Detect porting problems to FreeBSD/arm, which has time_t wider than
34142         long int.  Original problem reported for GNU diff by Xin Li in
34143         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
34144         * modules/getdate (Depends-on): Add intprops, verify.
34145         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
34146         is an integer type no wider than long int.
34147
34148 2007-06-18  Jim Meyering  <jim@meyering.net>
34149
34150         New module: mreadlink-with-size.
34151         * MODULES.html.sh: Add mreadlink-with-size.
34152         * modules/mreadlink-with-size: New module
34153         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
34154         not xreadlink-with-size.
34155         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
34156
34157 2007-06-16  Bruno Haible  <bruno@clisp.org>
34158
34159         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
34160         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
34161         Reported by Gary V. Vaughan <gary@gnu.org>.
34162
34163 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
34164
34165         Revamp lchown so that it lives in unistd.h where it belongs.
34166         * lib/lchown.h: Remove.
34167         * lib/dirchownmod.c: Don't include lib/lchown.h.
34168         * lib/fchownat.c: Likewise.
34169         * lib/openat.c: Likewise.
34170         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
34171         does not follow symlinks.
34172         (EOPNOTSUPP): Define if not defined.
34173         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
34174         is defined to 0.
34175         (lchown): New decl.
34176         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
34177         Do not check for lchown decl.
34178         Set REPLACE_LCHOWN.
34179         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
34180         REPLACE_LCHOWN.
34181         * modules/chown: Make it clear it follows symlinks.
34182         * modules/lchown: Make it clear it doesn't follow symlinks.
34183         (Files): Remove lib/lchown.h
34184         (Depends-on): Add unistd.
34185         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
34186         (Include): Include <unistd.h>, not "lchown.h".
34187         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
34188         REPLACE_LCHOWN.
34189
34190 2007-06-15  Jim Meyering  <jim@meyering.net>
34191
34192         Change license (GPL to LGPL) of fsusage and dependents.
34193         * modules/fsusage (License): Change to LGPL.
34194         * modules/full-read (License): Likewise.
34195         * modules/full-write (License): Likewise.
34196         * modules/safe-read (License): Likewise.
34197         * modules/safe-write (License): Likewise.
34198
34199 2007-06-14  Ben Pfaff  <blp@gnu.org>
34200
34201         Missing part of allocsa -> malloca transition.
34202         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
34203         gl_MALLOCA.
34204
34205 2007-06-12  Bruno Haible  <bruno@clisp.org>
34206
34207         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
34208         to ia64, x86_64, i386.
34209         Reported by Eric Blake.
34210
34211 2007-06-12  Bruno Haible  <bruno@clisp.org>
34212
34213         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
34214         cross-compiling to x86_64.
34215
34216 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
34217
34218         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
34219         glitch reported by Ralf Wildenhues in
34220         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
34221
34222         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
34223         Vin Shelton.
34224
34225 2007-06-11  Bruno Haible  <bruno@clisp.org>
34226
34227         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
34228         replacement string.
34229         Reported by Eric Blake.
34230
34231 2007-06-10  Bruno Haible  <bruno@clisp.org>
34232
34233         Prepare vasnprintf code for use with Unicode strings.
34234         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
34235         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
34236         TYPE_U32_STRING.
34237         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
34238         a_u32_string variants.
34239         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
34240         * lib/printf-args.c: Don't include config.h and the specification
34241         header if PRINTF_FETCHARGS is already defined.
34242         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
34243         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
34244         TYPE_U16_STRING, TYPE_U32_STRING.
34245         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
34246         u16_directive, u16_directives, u32_directive, u32_directives): New
34247         types.
34248         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
34249         New declarations.
34250         * lib/printf-parse.c: Don't include config.h and the specification
34251         header if PRINTF_PARSE is already defined. Eliminate the set of
34252         parameters for WIDE_CHAR_VERSION; the user of this file must provide
34253         them now. Include c-ctype.h.
34254         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
34255         directive and CHAR_T_ONLY_ASCII.
34256         * lib/vasnprintf.c: Don't include config.h and the specification header
34257         if VASNPRINTF is already defined.
34258         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
34259         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
34260         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
34261         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
34262         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
34263         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
34264         code accordingly.
34265         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
34266         pad_ourselves also in this case, with the 'c' and 's' directives, and
34267         with a different notion of "width".
34268         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
34269
34270 2007-06-10  Bruno Haible  <bruno@clisp.org>
34271
34272         * modules/unistr/u32-mbsnlen: New file.
34273         * lib/unistr/u32-mbsnlen.c: New file.
34274
34275         * modules/unistr/u16-mbsnlen: New file.
34276         * lib/unistr/u16-mbsnlen.c: New file.
34277
34278         * modules/unistr/u8-mbsnlen: New file.
34279         * lib/unistr/u8-mbsnlen.c: New file.
34280
34281         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
34282         declarations.
34283
34284 2007-06-10  Bruno Haible  <bruno@clisp.org>
34285
34286         * lib/string_.h (mbsnlen): New declaration.
34287         * lib/mbsnlen.c: New file.
34288         * m4/mbsnlen.m4: New file.
34289         * modules/mbsnlen: New file.
34290         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
34291         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
34292         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
34293
34294 2007-06-10  Bruno Haible  <bruno@clisp.org>
34295
34296         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
34297
34298 2007-06-10  Bruno Haible  <bruno@clisp.org>
34299
34300         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
34301         * lib/mbuiter.h: Likewise.
34302
34303 2007-06-10  Bruno Haible  <bruno@clisp.org>
34304
34305         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
34306         declaration.
34307
34308 2007-06-10  Karl Berry  <karl@gnu.org>
34309
34310         * config/srclist.txt: remove gettext entries, Bruno prefers
34311         to update individually.
34312
34313 2007-06-10  Bruno Haible  <bruno@clisp.org>
34314
34315         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
34316         'maxlen'. Ensure only length + width bytes are allocated, not
34317         length + 1 + width.
34318
34319 2007-06-09  Bruno Haible  <bruno@clisp.org>
34320
34321         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
34322         (CHAR_T): Remove macro.
34323         (VASNPRINTF): Update.
34324
34325 2007-06-09  Bruno Haible  <bruno@clisp.org>
34326
34327         * MODULES.html.sh (Unicode string functions): Add the new modules.
34328
34329         * modules/uniconv/u32-conv-to-enc: New file.
34330         * lib/uniconv/u32-conv-to-enc.c: New file.
34331         * modules/uniconv/u32-conv-to-enc-tests: New file.
34332         * tests/uniconv/test-u32-conv-to-enc.c: New file.
34333
34334         * modules/uniconv/u16-conv-to-enc: New file.
34335         * lib/uniconv/u16-conv-to-enc.c: New file.
34336         * lib/uniconv/u-conv-to-enc.h: New file.
34337         * modules/uniconv/u16-conv-to-enc-tests: New file.
34338         * tests/uniconv/test-u16-conv-to-enc.c: New file.
34339
34340         * modules/uniconv/u8-conv-to-enc: New file.
34341         * lib/uniconv/u8-conv-to-enc.c: New file.
34342         * modules/uniconv/u8-conv-to-enc-tests: New file.
34343         * tests/uniconv/test-u8-conv-to-enc.c: New file.
34344
34345         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
34346         u32_conv_to_encoding): New declarations.
34347
34348 2007-06-09  Bruno Haible  <bruno@clisp.org>
34349
34350         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
34351
34352 2007-06-09  Bruno Haible  <bruno@clisp.org>
34353
34354         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
34355         * modules/malloca: Renamed from modules/allocsa, updated.
34356         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
34357         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
34358         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
34359         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
34360         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
34361         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
34362         * modules/xmalloca: Renamed from modules/xallocsa, updated.
34363         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
34364         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
34365         * modules/c-strcasestr (Depends-on): Update.
34366         * lib/c-strcasestr.c: Update.
34367         * modules/c-strstr (Depends-on): Update.
34368         * lib/c-strstr.c: Update.
34369         * modules/canonicalize-lgpl (Depends-on): Update.
34370         * lib/canonicalize-lgpl.c: Update.
34371         * modules/clean-temp (Depends-on): Update.
34372         * lib/clean-temp.c: Update.
34373         * modules/csharpcomp (Depends-on): Update.
34374         * lib/csharpcomp.c: Update.
34375         * modules/csharpexec (Depends-on): Update.
34376         * lib/csharpexec.c: Update.
34377         * modules/javacomp (Depends-on): Update.
34378         * lib/javacomp.c: Update.
34379         * modules/javaexec (Depends-on): Update.
34380         * lib/javaexec.c: Update.
34381         * modules/mbscasestr (Depends-on): Update.
34382         * lib/mbscasestr.c: Update.
34383         * modules/mbsstr (Depends-on): Update.
34384         * lib/mbsstr.c: Update.
34385         * modules/setenv (Depends-on): Update.
34386         * lib/setenv.c: Update.
34387         * modules/strcasestr (Depends-on): Update.
34388         * lib/strcasestr.c: Update.
34389         * modules/striconveha (Depends-on): Update.
34390         * lib/striconveha.c: Update.
34391         * modules/relocatable-prog-wrapper (Files): Update.
34392         * lib/relocwrapper.c: Update.
34393         * build-aux/install-reloc: Update.
34394         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
34395
34396 2007-06-08  Bruno Haible  <bruno@clisp.org>
34397
34398         Port to uClibc.
34399         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
34400         * lib/fpurge.c (fpurge): Likewise.
34401         * lib/freading.c (freading): Likewise.
34402         * lib/fseeko.c (rpl_fseeko): Likewise.
34403         * lib/fseterr.c (fseterr): Likewise.
34404         * lib/fwriting.c (fwriting): Likewise.
34405         * tests/test-fflush.c (main): Avoid a failure on uClibc.
34406
34407 2007-06-08  Bruno Haible  <bruno@clisp.org>
34408
34409         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
34410         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
34411         * modules/gettext (Files): Add m4/intlmacosx.m4.
34412
34413 2007-06-07  Bruno Haible  <bruno@clisp.org>
34414
34415         * modules/localename-tests: New file.
34416         * tests/test-localename.c: New file.
34417
34418         New module 'localename'.
34419         * lib/localename.h: New file.
34420         * lib/localename.c: New file, from GNU gettext.
34421         * m4/localename.m4: New file.
34422         * modules/localename: New file.
34423
34424 2007-06-07  Bruno Haible  <bruno@clisp.org>
34425
34426         Work around the lack of <wchar.h> on some builds of uClibc.
34427         * doc/headers/wchar.texi: Update.
34428         * lib/wchar_.h: Include <wchar.h> only if it exists.
34429         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
34430         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
34431         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
34432         doesn't exist.
34433         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
34434         * modules/mbfile (Depends-on): Add wchar.
34435         * modules/mbiter (Depends-on): Likewise.
34436         * modules/mbuiter (Depends-on): Likewise.
34437         Reported by Simon Josefsson.
34438
34439 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
34440
34441         Work around problem reported by Steven M. Schweda in
34442         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
34443         Tru64 5.1B with the Compaq compiler environment installed declares
34444         an 'isblank' function but does not define it in the C library.
34445         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
34446         * lib/regex_internal.h (isblank): Likewise.
34447         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
34448         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
34449
34450 2007-06-05  Bruno Haible  <bruno@clisp.org>
34451
34452         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
34453         ia64.
34454         * modules/printf-safe: New file.
34455         * modules/fprintf-posix (Depends-on): Add printf-safe.
34456         * modules/printf-posix (Depends-on): Likewise.
34457         * modules/snprintf-posix (Depends-on): Likewise.
34458         * modules/sprintf-posix (Depends-on): Likewise.
34459         * modules/vasnprintf-posix (Depends-on): Likewise.
34460         * modules/vasprintf-posix (Depends-on): Likewise.
34461         * modules/vfprintf-posix (Depends-on): Likewise.
34462         * modules/vprintf-posix (Depends-on): Likewise.
34463         * modules/vsnprintf-posix (Depends-on): Likewise.
34464         * modules/vsprintf-posix (Depends-on): Likewise.
34465         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
34466         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
34467         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
34468         "no" on i386, x86_64, ia64.
34469         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
34470         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
34471         on i386, x86_64, ia64.
34472         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
34473         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
34474         on i386, x86_64, ia64.
34475         * tests/test-vasnprintf-posix.c: Include float.h.
34476         (LDBL80_WORDS): New macro.
34477         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
34478         on i386, x86_64, ia64.
34479         * tests/test-vasprintf-posix.c: Include float.h.
34480         (LDBL80_WORDS): New macro.
34481         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
34482         on i386, x86_64, ia64.
34483         * tests/test-snprintf-posix.c: Include float.h.
34484         * tests/test-sprintf-posix.c: Likewise.
34485         * tests/test-vsnprintf-posix.c: Likewise.
34486         * tests/test-vsprintf-posix.c: Likewise.
34487
34488 2007-06-05  Bruno Haible  <bruno@clisp.org>
34489
34490         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
34491         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
34492         non-IEEE numbers on i386, x86_64, ia64.
34493         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
34494         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
34495         * tests/test-isnanl.h: Include float.h.
34496         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
34497
34498 2007-06-05  Bruno Haible  <bruno@clisp.org>
34499
34500         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
34501         also the %a / %A. Handle the %a / %A code before this extra handling.
34502
34503 2007-06-05  Bruno Haible  <bruno@clisp.org>
34504
34505         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
34506         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
34507
34508 2007-06-05  Bruno Haible  <bruno@clisp.org>
34509
34510         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
34511         typo in variable name.
34512
34513 2007-06-05  Eric Blake  <ebb9@byu.net>
34514
34515         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
34516         Reported by Simon Josefsson.
34517
34518 2007-06-04  Bruno Haible  <bruno@clisp.org>
34519
34520         Avoid test failures on some PowerPC platforms.
34521         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
34522         Define differently for PowerPC.
34523         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
34524         Reported by Gary V. Vaughan <gary@gnu.org>.
34525
34526 2007-06-02  Bruno Haible  <bruno@clisp.org>
34527
34528         Fix test-stdint failure on FreeBSD/ia64.
34529         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
34530         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
34531         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
34532         * doc/headers/stdint.texi: Update.
34533
34534 2007-06-01  Bruno Haible  <bruno@clisp.org>
34535
34536         * tests/test-binary-io.c (main): Pass a third argument to open().
34537         Reported by Gary V. Vaughan <gary@gnu.org>.
34538
34539 2007-06-01  Bruno Haible  <bruno@clisp.org>
34540
34541         * doc/functions/frexpl.texi: Update for mingw.
34542
34543 2007-06-01  Bruno Haible  <bruno@clisp.org>
34544
34545         * tests/test-lseek.c (main): Disable test of errno for invalid third
34546         argument.
34547         * doc/functions/lseek.texi: Update.
34548         Reported by Gary V. Vaughan <gary@gnu.org>.
34549
34550 2007-05-28  Bruno Haible  <bruno@clisp.org>
34551
34552         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
34553
34554 2007-05-31  Eric Blake  <ebb9@byu.net>
34555
34556         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
34557         cross compiling.
34558
34559 2007-05-30  Eric Blake  <ebb9@byu.net>
34560         and Bruno Haible  <bruno@clisp.org>
34561
34562         Work around mingw test failures exposed by m4-1.4.9b.
34563         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
34564         * tests/test-unistd.c: Disable uid_t and git_t tests for the
34565         moment.
34566
34567 2007-05-30  Bruno Haible  <bruno@clisp.org>
34568
34569         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
34570         assuming that they are closed. Needed on HP-UX 11.
34571
34572 2007-05-29  Bruno Haible  <bruno@clisp.org>
34573
34574         Fix a problem with #include_next.
34575         * lib/dirent_.h: Split the double-inclusion guard.
34576         * lib/fcntl_.h: Likewise.
34577         * lib/float_.h: Likewise.
34578         * lib/iconv_.h: Likewise.
34579         * lib/inttypes_.h: Likewise.
34580         * lib/locale_.h: Likewise.
34581         * lib/math_.h: Likewise.
34582         * lib/netinet_in_.h: Likewise.
34583         * lib/search_.h: Likewise.
34584         * lib/signal_.h: Likewise.
34585         * lib/stdint_.h: Likewise.
34586         * lib/stdio_.h: Likewise.
34587         * lib/stdlib_.h: Likewise.
34588         * lib/string_.h: Likewise.
34589         * lib/sys_select_.h: Likewise.
34590         * lib/sys_socket_.h: Likewise.
34591         * lib/sys_stat_.h: Likewise.
34592         * lib/sys_time_.h: Likewise.
34593         * lib/sysexits_.h: Likewise.
34594         * lib/time_.h: Likewise.
34595         * lib/unistd_.h: Likewise.
34596         * lib/wchar_.h: Likewise.
34597         * lib/wctype_.h: Likewise.
34598
34599 2007-05-29  Bruno Haible  <bruno@clisp.org>
34600
34601         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
34602         for the moment.
34603
34604 2007-05-29  Bruno Haible  <bruno@clisp.org>
34605
34606         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
34607         invocation.
34608         Reported by Eric Blake.
34609
34610 2007-05-29  Bruno Haible  <bruno@clisp.org>
34611
34612         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
34613         compiling case.
34614
34615 2007-05-29  Eric Blake  <ebb9@byu.net>
34616             Bruno Haible  <bruno@clisp.org>
34617
34618         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
34619         cross compiles.
34620
34621 2007-05-28  Eric Blake  <ebb9@byu.net>
34622
34623         * modules/closein-tests (test_closein_LDADD): Support test on
34624         cygwin with libtool.
34625
34626 2007-05-28  Bruno Haible  <bruno@clisp.org>
34627
34628         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
34629         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
34630         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
34631         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
34632         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
34633         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
34634         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
34635         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
34636         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
34637
34638 2007-05-28  Eric Blake  <ebb9@byu.net>
34639
34640         Unconditionally include <config.h> in unit tests.
34641         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
34642         * tests/test-allocsa.c, tests/test-arcfour.c,
34643         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
34644         tests/test-array_list.c, tests/test-array_oset.c,
34645         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
34646         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
34647         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
34648         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
34649         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
34650         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
34651         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
34652         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
34653         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
34654         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
34655         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
34656         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
34657         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
34658         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
34659         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
34660         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
34661         test-md5.c, test-memmem.c, test-printf-posix.c,
34662         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
34663         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
34664         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
34665         test-strcasestr.c, test-striconv.c, test-striconveh.c,
34666         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
34667         test-vasnprintf-posix2.c, test-vasnprintf.c,
34668         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
34669         test-vfprintf-posix.c, test-vprintf-posix.c,
34670         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
34671         test-xvasprintf.c: Likewise.
34672
34673 2007-05-28  Bruno Haible  <bruno@clisp.org>
34674
34675         * gnulib-tool (func_import): Remember the --with-tests command-line
34676         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
34677         Reported by Eric Blake.
34678
34679 2007-05-28  Bruno Haible  <bruno@clisp.org>
34680
34681         * modules/ftell-tests: New file.
34682         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
34683         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
34684
34685         * lib/ftell.c: New file.
34686         * modules/ftell: New file.
34687         * m4/ftell.m4: New file.
34688         * doc/functions/ftell.texi: Update.
34689         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
34690         REPLACE_FTELL.
34691         * lib/stdio_.h (rpl_ftell): New declaration.
34692         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
34693         REPLACE_FTELL.
34694
34695 2007-05-28  Eric Blake  <ebb9@byu.net>
34696
34697         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
34698
34699 2007-05-28  Bruno Haible  <bruno@clisp.org>
34700
34701         * modules/fseek-tests: New file.
34702         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
34703         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
34704
34705         * lib/fseek.c: New file.
34706         * modules/fseek: New file.
34707         * m4/fseek.m4: New file.
34708         * doc/functions/fseek.texi: Update.
34709         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
34710         REPLACE_FSEEK.
34711         * lib/stdio_.h (rpl_fseek): New declaration.
34712         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
34713         REPLACE_FSEEK.
34714
34715 2007-05-28  Bruno Haible  <bruno@clisp.org>
34716
34717         * lib/stdio_.h (fflush): More comments.
34718
34719 2007-05-28  Bruno Haible  <bruno@clisp.org>
34720
34721         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
34722         runtime test.
34723
34724 2007-05-28  Eric Blake  <ebb9@byu.net>
34725
34726         Improve lseek module.
34727         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
34728         * lib/unistd_.h (lseek): Scale back link warning message.
34729         * tests/test-lseek.c: Beef up test.
34730         * tests/test-lseek.sh: Exercise more facets of lseek.
34731         Reported by Bruno Haible.
34732
34733 2007-05-28  Bruno Haible  <bruno@clisp.org>
34734
34735         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
34736         to define.
34737
34738 2007-05-27  Bruno Haible  <bruno@clisp.org>
34739
34740         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
34741
34742 2007-05-27  Bruno Haible  <bruno@clisp.org>
34743
34744         * modules/openmp: New file.
34745         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
34746         Noah Misch.
34747
34748 2007-05-26  Bruno Haible  <bruno@clisp.org>
34749
34750         * modules/chdir-long (Depends-on): Add fchdir.
34751         * modules/chdir-safer (Depends-on): Likewise.
34752         * modules/fts (Depends-on): Likewise.
34753         * modules/fts-lgpl (Depends-on): Likewise.
34754         * modules/openat (Depends-on): Likewise.
34755         * modules/savewd (Depends-on): Likewise.
34756
34757 2007-05-24  Eric Blake  <ebb9@byu.net>
34758
34759         Fix lseek on mingw.
34760         * modules/lseek: New module.
34761         * m4/lseek.m4: New file.
34762         * lib/lseek.c: New file.
34763         * modules/lseek-tests: New file.
34764         * tests/test-lseek.c: New file.
34765         * tests/test-lseek.sh: New file.
34766         * MODULES.html.sh: Document lseek module.
34767         * modules/fflush (Depends-on): Add lseek, fseeko.
34768         * modules/fseeko (Depends-on): Likewise.
34769         * modules/ftello (Depends-on): Likewise.
34770         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
34771         broken.
34772         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
34773         broken.
34774         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
34775         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
34776         * lib/ftello.c (rpl_ftello): Likewise.
34777         * tests/test-fseeko.c (main): Test this.
34778         * tests/test-fseeko.sh: Likewise.
34779         * tests/test-ftello.c (main): Likewise.
34780         * tests/test-ftello.sh: Likewise.
34781         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
34782         implies replacing fseek.
34783         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
34784         HAVE_FTELLO.
34785         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
34786         * modules/unistd (Makefile.am): Likewise.
34787         * lib/unistd_.h (lseek): Declare a replacement.
34788         * doc/functions/lseek.texi (lseek): Document this fix.
34789         * doc/functions/fseek.texi (fseek): Likewise.
34790         * doc/functions/ftell.texi (ftell): Likewise.
34791
34792 2007-05-24  Bruno Haible  <bruno@clisp.org>
34793
34794         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
34795         in the printed representation of a NaN.
34796         * tests/test-vasprintf-posix.c (test_function): Likewise.
34797         * tests/test-snprintf-posix.h (test_function): Likewise.
34798         * tests/test-sprintf-posix.h (test_function): Likewise.
34799         Reported by Eric Blake.
34800
34801 2007-05-23  Eric Blake  <ebb9@byu.net>
34802
34803         Fix fseeko/ftello on cygwin 1.5.24.
34804         * doc/functions/fseeko.texi (fseeko): Document the fix.
34805         * doc/functions/ftello.texi (ftello): Document the fix.
34806         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
34807         * doc/functions/stdout.text (stdout): New file.
34808         * doc/functions/stderr.text (stderr): New file.
34809         * doc/gnulib.texi (Function Substitutes): Use new files.
34810         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
34811         prior to 1.7.0.
34812         * tests/test-ftello.c (main): Likewise for ftello.
34813         * tests/test-fseeko.sh: New file.
34814         * tests/test-ftello.sh: New file.
34815         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
34816         with seekable stdin.
34817         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
34818         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
34819         (gl_REPLACE_FSEEKO): New macro.
34820         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
34821         * modules/fseeko (Files): Distribute fseeko.c.
34822         * modules/ftello (Files): Distribute ftello.c.
34823         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
34824         mode.
34825         * lib/ftello.c (rpl_ftello): New file.
34826         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
34827         fseeko, ftello.
34828         (gl_STDIN_LARGE_OFFSET): New macro.
34829         * modules/stdio (Makefile.am): Perform the replacement.
34830         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
34831
34832 2007-05-23  Bruno Haible  <bruno@clisp.org>
34833
34834         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
34835         GNULIB_POSIXCHECK is defined.
34836
34837 2007-05-21  Bruno Haible  <bruno@clisp.org>
34838
34839         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
34840         Check also the output for NaN arguments. When cross-compiling, guess
34841         no on IRIX.
34842         * lib/vasnprintf.c: Update comments.
34843         * tests/test-vasnprintf-posix.c (strisnan): New function.
34844         (test_function): Use it.
34845         * tests/test-vasprintf-posix.c (strisnan): New function.
34846         (test_function): Use it.
34847         * tests/test-snprintf-posix.h (strisnan): New function.
34848         (test_function): Use it.
34849         * tests/test-sprintf-posix.h (strisnan): New function.
34850         (test_function): Use it.
34851         Reported by Eric Blake.
34852
34853 2007-05-20  Bruno Haible  <bruno@clisp.org>
34854
34855         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
34856         numbers that fails on BeOS.
34857         * doc/functions/frexpl.texi: Update.
34858
34859 2007-05-20  Jim Meyering  <jim@meyering.net>
34860
34861         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
34862         forced upon us by glibc-2.6.
34863
34864 2007-05-20  Bruno Haible  <bruno@clisp.org>
34865
34866         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
34867         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
34868         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
34869         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
34870         NEED_PRINTF_INFINITE.
34871         (is_infinitel): New function.
34872         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
34873         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
34874         gl_PREREQ_VASNPRINTF_INFINITE.
34875         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
34876         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34877         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
34878         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
34879         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
34880         gl_PREREQ_VASNPRINTF_INFINITE.
34881         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34882         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34883         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34884         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34885         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34886         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34887         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34888         * doc/functions/fprintf.texi: Update.
34889         * doc/functions/printf.texi: Update.
34890         * doc/functions/snprintf.texi: Update.
34891         * doc/functions/sprintf.texi: Update.
34892         * doc/functions/vfprintf.texi: Update.
34893         * doc/functions/vprintf.texi: Update.
34894         * doc/functions/vsnprintf.texi: Update.
34895         * doc/functions/vsprintf.texi: Update.
34896
34897 2007-05-20  Bruno Haible  <bruno@clisp.org>
34898
34899         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
34900         was not found in libc.
34901         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
34902
34903 2007-05-20  Bruno Haible  <bruno@clisp.org>
34904
34905         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
34906         printed as "-nan" instead of "nan".
34907         * tests/test-vasprintf-posix.c (test_function): Likewise.
34908         * tests/test-snprintf-posix.h (test_function): Likewise.
34909         * tests/test-sprintf-posix.h (test_function): Likewise.
34910         Needed for HP-UX 11.
34911
34912 2007-05-20  Jim Meyering  <jim@meyering.net>
34913
34914         Fix buggy test for the fchownat-deref bug.
34915         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
34916         symlink required for the run-test.  Without it, this test would
34917         always declare that fchownat doesn't work, and client code would
34918         unnecessarily use the replacement function with fixed libc.
34919         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
34920         Reported by Greg Schafer.
34921
34922 2007-05-19  Bruno Haible  <bruno@clisp.org>
34923
34924         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
34925         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
34926         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
34927         Needed for IRIX 6.5 and Solaris 2.5.1.
34928
34929 2007-05-19  Bruno Haible  <bruno@clisp.org>
34930
34931         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
34932         (test_function): Skip tests involving -0.0 on platforms where
34933         -0.0 = 0.0.
34934         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
34935         (test_function): Skip tests involving -0.0 on platforms where
34936         -0.0 = 0.0.
34937         * tests/test-snprintf-posix.h (have_minus_zero): New function.
34938         (test_function): Skip tests involving -0.0 on platforms where
34939         -0.0 = 0.0.
34940         * tests/test-sprintf-posix.h (have_minus_zero): New function.
34941         (test_function): Skip tests involving -0.0 on platforms where
34942         -0.0 = 0.0.
34943         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
34944         tests.
34945         * tests/test-printf-posix.h (test_function): Likewise.
34946         * tests/test-printf-posix.output: Remove all -0.0 related results.
34947         Needed for IRIX 6.5.
34948
34949 2007-05-19  Bruno Haible  <bruno@clisp.org>
34950
34951         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
34952         printed as "nan0x7fffffff" instead of "nan".
34953         * tests/test-vasprintf-posix.c (test_function): Likewise.
34954         * tests/test-snprintf-posix.h (test_function): Likewise.
34955         * tests/test-sprintf-posix.h (test_function): Likewise.
34956         * tests/test-fprintf-posix.h (NaN): Remove macro.
34957         (test_function): Remove all NaN related tests.
34958         * tests/test-printf-posix.h (NaN): Remove macro.
34959         (test_function): Remove all NaN related tests.
34960         * tests/test-printf-posix.output: Remove all NaN related results.
34961         Needed for IRIX 6.5.
34962
34963 2007-05-19  Bruno Haible  <bruno@clisp.org>
34964
34965         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
34966         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
34967
34968 2007-05-19  Bruno Haible  <bruno@clisp.org>
34969
34970         * lib/float_.h: New file.
34971         * m4/float_h.m4: New file.
34972         * modules/float: New file.
34973         * modules/isnanl (Dependencies): Add float.
34974         * modules/isnanl-nolibm (Dependencies): Likewise.
34975         * modules/mathl (Dependencies): Likewise.
34976         * modules/printf-frexpl (Dependencies): Likewise.
34977         * modules/signbit (Dependencies): Likewise.
34978         * modules/vasnprintf (Dependencies): Likewise.
34979         * doc/headers/float.texi: Update.
34980
34981 2007-05-19  Jim Meyering  <jim@meyering.net>
34982
34983         * lib/utimens.c (gl_futimens): Rename from futimens,
34984         now that glibc-2.6 declares futimens.
34985         * lib/utimens.h: Likewise.
34986
34987 2007-05-19  Bruno Haible  <bruno@clisp.org>
34988
34989         Avoid test failures on mingw.
34990         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
34991         * tests/test-printf-posix.sh: Likewise.
34992         * tests/test-vfprintf-posix.sh: Likewise.
34993         * tests/test-vprintf-posix.sh: Likewise.
34994
34995 2007-05-19  Bruno Haible  <bruno@clisp.org>
34996
34997         Fix *printf result for NaN, Inf, -0.0 on mingw.
34998         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
34999         * lib/vasnprintf.c: Include math.h and isnan.h.
35000         (is_infinite_or_zero): New function.
35001         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
35002         values in the %f, %F, %e, %E, %g, %G directives.
35003         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
35004         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
35005         gl_PRINTF_INFINITE and test its result. Invoke
35006         gl_PREREQ_VASNPRINTF_INFINITE.
35007         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
35008         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35009         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35010         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35011         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
35012         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35013         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35014         * doc/functions/fprintf.texi: Update.
35015         * doc/functions/printf.texi: Update.
35016         * doc/functions/snprintf.texi: Update.
35017         * doc/functions/sprintf.texi: Update.
35018         * doc/functions/vfprintf.texi: Update.
35019         * doc/functions/vprintf.texi: Update.
35020         * doc/functions/vsnprintf.texi: Update.
35021         * doc/functions/vsprintf.texi: Update.
35022
35023 2007-05-19  Bruno Haible  <bruno@clisp.org>
35024
35025         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
35026         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
35027         Instead of multiplying with 10^k, set extra_zeroes to k.
35028         (scale10_round_long_double): Remove function.
35029
35030 2007-05-18  Bruno Haible  <bruno@clisp.org>
35031
35032         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
35033         introduced on 2007-05-06.
35034
35035 2007-05-18  Bruno Haible  <bruno@clisp.org>
35036
35037         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
35038         %g directives.
35039         * tests/test-vasprintf-posix.c (test_function): Likewise.
35040         * tests/test-snprintf-posix.h (test_function): Likewise.
35041         * tests/test-sprintf-posix.h (test_function): Likewise.
35042
35043 2007-05-18  Bruno Haible  <bruno@clisp.org>
35044
35045         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
35046         (strmatch): New function.
35047         (test_function): Test the %f directive on numbers of various exponents.
35048         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
35049         (strmatch): New function.
35050         (test_function): Test the %f directive on numbers of various exponents.
35051         * tests/test-snprintf-posix.h (strmatch): New function.
35052         (test_function): Test the %f directive on numbers of various exponents.
35053         * tests/test-sprintf-posix.h (strmatch): New function.
35054         (test_function): Test the %f directive on numbers of various exponents.
35055         * tests/test-snprintf-posix.c (SIZEOF): New macro.
35056         * tests/test-sprintf-posix.c (SIZEOF): New macro.
35057         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
35058         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
35059
35060 2007-05-18  Bruno Haible  <bruno@clisp.org>
35061
35062         Add support for 'long double' number output.
35063         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
35064         * lib/vasnprintf.c: Include math.h and float+.h.
35065         (mp_limb_t): New type.
35066         (GMP_LIMB_BITS): New macro.
35067         (mp_twolimb_t): New type.
35068         (GMP_TWOLIMB_BITS): New macro.
35069         (mpn_t): New type.
35070         (multiply, divide, convert_to_decimal, decode_long_double,
35071         scale10_round_long_double, scale10_round_decimal_long_double,
35072         floorlog10l): New functions.
35073         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
35074         for the %f, %F, %e, %E, %g, %G directives.
35075         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
35076         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
35077         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
35078         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
35079         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
35080         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35081         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35082         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35083         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
35084         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35085         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35086         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
35087         * modules/snprintf-posix (Depends-on): Likewise.
35088         * modules/sprintf-posix (Depends-on): Likewise.
35089         * modules/vasnprintf-posix (Depends-on): Likewise.
35090         * modules/vasprintf-posix (Depends-on): Likewise.
35091         * modules/vfprintf-posix (Depends-on): Likewise.
35092         * modules/vsnprintf-posix (Depends-on): Likewise.
35093         * modules/vsprintf-posix (Depends-on): Likewise.
35094         * modules/vasnprintf (Files): Add lib/float+.h.
35095         * doc/functions/fprintf.texi: Update.
35096         * doc/functions/printf.texi: Update.
35097         * doc/functions/snprintf.texi: Update.
35098         * doc/functions/sprintf.texi: Update.
35099         * doc/functions/vfprintf.texi: Update.
35100         * doc/functions/vprintf.texi: Update.
35101         * doc/functions/vsnprintf.texi: Update.
35102         * doc/functions/vsprintf.texi: Update.
35103
35104 2007-05-18  Bruno Haible  <bruno@clisp.org>
35105
35106         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
35107
35108 2007-05-18  Bruno Haible  <bruno@clisp.org>
35109
35110         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
35111         for printing 64-bit integers. Needed for mingw.
35112
35113 2007-05-18  Bruno Haible  <bruno@clisp.org>
35114
35115         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
35116         gl_FUNC_FREXPL_WORKS.
35117         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
35118
35119 2007-05-18  Bruno Haible  <bruno@clisp.org>
35120
35121         * modules/frexpl-nolibm-tests: New file.
35122
35123         * modules/frexpl-nolibm: New file.
35124         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
35125
35126 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
35127
35128         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
35129         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
35130         GCC 4.2, which otherwise issues a lot of warnings.
35131         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
35132         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
35133         Likewise.
35134         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
35135         * modules/iconv_open (iconv.h): Likewise.
35136         * modules/locale (locale.h): Likewise.
35137         * modules/netinet_in (netinet/in.h): Likewise.
35138         * modules/sys_select (sys_select.h): Likewise.
35139         * modules/sys_socket (sys/socket.h): Likewise.
35140         * modules/sys_stat (sys/stat.h): Likewise.
35141         * modules/sysexits (sysexits.h): Likewise.
35142         * modules/unistd (unistd.h): Likewise.
35143
35144 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35145
35146         * modules/closein-tests (Makefile.am): Distribute
35147         `test-closein.sh'.
35148
35149 2007-05-17  Bruno Haible  <bruno@clisp.org>
35150
35151         * tests/test-printf-posix.output: Renamed from
35152         tests/test-fprintf-posix.out.
35153         * modules/fprintf-posix-tests: Update.
35154         * modules/printf-posix-tests: Update.
35155         * modules/vfprintf-posix-tests: Update.
35156         * modules/vprintf-posix-tests: Update.
35157         * tests/test-fprintf-posix.sh: Update.
35158         * tests/test-printf-posix.sh: Update.
35159         * tests/test-vfprintf-posix.sh: Update.
35160         * tests/test-vprintf-posix.sh: Update.
35161         Reported by Ralf Wildenhues.
35162
35163 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
35164
35165         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
35166         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
35167         GCC 4.2, which otherwise issues a lot of warnings.
35168         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
35169         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
35170         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
35171         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
35172         it should no longer be needed.
35173         * lib/string_.h: Likewise.
35174         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
35175         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
35176         * modules/inttypes (inttypes.h): Likewise.
35177         * modules/math (math.h): Likewise.
35178         * modules/search (search.h): Likewise.
35179         * modules/signal (signal.h): Likewise.
35180         * modules/stdint (stdint.h): Likewise.
35181         * modules/stdio (stdio.h): Likewise.
35182         * modules/stdlib (stdlib.h): Likewise.
35183         * modules/string (string.h): Likewise.
35184         * modules/sys_time (sys/time.h): Likewise.
35185         * modules/time (time.h): Likewise.
35186         * modules/wchar (wchar.h): Likewise.
35187         * modules/wctype (wtype.h): Likewise.
35188
35189 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
35190
35191         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
35192
35193 2007-05-13  Bruno Haible  <bruno@clisp.org>
35194
35195         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
35196         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
35197         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
35198         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
35199         (gl_PREREQ_STRTOK_R): Don't require it here.
35200
35201 2007-05-13  Bruno Haible  <bruno@clisp.org>
35202
35203         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
35204         when used in C++ mode.
35205
35206 2007-05-12  Bruno Haible  <bruno@clisp.org>
35207
35208         * lib/linebuffer.h: Tweak doc.
35209         * lib/linebuffer.c: Likewise.
35210
35211 2007-05-12  James Youngman  <jay@gnu.org>
35212
35213         * lib/linebuffer.c (readlinebuffer_delim): New function,
35214         like readlinebuffer, but use a caller-specified delimiter.
35215         (readlinebuffer): Just call readlinebuffer_delim with '\n'
35216         as the delimiter.
35217         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
35218
35219 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
35220
35221         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
35222         * modules/openat (Files): Remove openat-die.c.
35223         (Depends-on): Add openat-die.
35224         * modules/openat-die: New module.
35225
35226 2007-05-06  Bruno Haible  <bruno@clisp.org>
35227
35228         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
35229         Update with info about Cygwin.
35230         * doc/functions/fprintf.texi: Update.
35231         * doc/functions/printf.texi: Update.
35232         * doc/functions/snprintf.texi: Update.
35233         * doc/functions/sprintf.texi: Update.
35234         * doc/functions/vfprintf.texi: Update.
35235         * doc/functions/vprintf.texi: Update.
35236         * doc/functions/vsnprintf.texi: Update.
35237         * doc/functions/vsprintf.texi: Update.
35238         Reported by Eric Blake.
35239
35240 2007-05-06  Bruno Haible  <bruno@clisp.org>
35241
35242         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
35243         padding ourselves for the floating-point directives.
35244         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
35245         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
35246         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
35247         gl_PRINTF_FLAG_ZERO and test its result. Invoke
35248         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
35249         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35250         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
35251         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35252         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35253         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
35254         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35255         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35256         * tests/test-snprintf-posix.h (test_function): Also check the width
35257         and some flags in the %f directive.
35258         * tests/test-sprintf-posix.h (test_function): Likewise.
35259         * tests/test-vasnprintf-posix.c (test_function): Likewise.
35260         * tests/test-vasprintf-posix.c (test_function): Likewise.
35261         * doc/functions/fprintf.texi: Update.
35262         * doc/functions/printf.texi: Update.
35263         * doc/functions/snprintf.texi: Update.
35264         * doc/functions/sprintf.texi: Update.
35265         * doc/functions/vfprintf.texi: Update.
35266         * doc/functions/vprintf.texi: Update.
35267         * doc/functions/vsnprintf.texi: Update.
35268         * doc/functions/vsprintf.texi: Update.
35269
35270 2007-05-06  Bruno Haible  <bruno@clisp.org>
35271
35272         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
35273         pass the ' flag character to sprintf or snprintf.
35274         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
35275         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
35276         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
35277         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
35278         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
35279         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35280         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
35281         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35282         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35283         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
35284         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35285         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35286         * tests/test-snprintf-posix.h (test_function): Also check the grouping
35287         flag.
35288         * tests/test-sprintf-posix.h (test_function): Likewise.
35289         * tests/test-vasnprintf-posix.c (test_function): Likewise.
35290         * tests/test-vasprintf-posix.c (test_function): Likewise.
35291         * doc/functions/fprintf.texi: Update.
35292         * doc/functions/printf.texi: Update.
35293         * doc/functions/snprintf.texi: Update.
35294         * doc/functions/sprintf.texi: Update.
35295         * doc/functions/vfprintf.texi: Update.
35296         * doc/functions/vprintf.texi: Update.
35297         * doc/functions/vsnprintf.texi: Update.
35298         * doc/functions/vsprintf.texi: Update.
35299
35300 2007-05-01  Bruno Haible  <bruno@clisp.org>
35301
35302         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
35303
35304 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
35305
35306         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
35307         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
35308
35309 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
35310
35311         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
35312         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
35313         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
35314
35315 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
35316
35317         * lib/argp-help.c (struct hol_entry): New member `ord'.
35318         (HOL_ENTRY_PTRCMP): Use ord for comparison
35319         (hol_sort): Initialize ord.
35320
35321 2007-05-01  Bruno Haible  <bruno@clisp.org>
35322
35323         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
35324         Reported by Eric Blake.
35325         * doc/gnulib.texi (Function Substitutes): Update.
35326
35327 2007-05-01  Bruno Haible  <bruno@clisp.org>
35328
35329         * doc/functions.texi: Remove file, now redundant through
35330         doc/functions/*.texi.
35331
35332 2007-05-01  Bruno Haible  <bruno@clisp.org>
35333
35334         * modules/argp (Depends-on): Add sleep.
35335
35336 2007-05-01  Bruno Haible  <bruno@clisp.org>
35337
35338         * modules/sleep-tests: New file.
35339         * tests/test-sleep.c: New file.
35340
35341         * modules/sleep: New file.
35342         * lib/sleep.c: New file.
35343         * m4/sleep.m4: New file.
35344         * lib/unistd_.h (sleep): New declaration.
35345         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
35346         HAVE_SLEEP.
35347         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
35348         * doc/functions/sleep.texi: Document the sleep module.
35349
35350 2007-05-01  Bruno Haible  <bruno@clisp.org>
35351
35352         * lib/sigprocmask.h: Remove file.
35353         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
35354         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
35355         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
35356         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
35357         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
35358         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
35359         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
35360         HAVE_SIGSET_T as a shell variable.
35361         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
35362         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
35363         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
35364         (Depends-on): Add signal. Remove verify.
35365         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
35366         (Include): Mention <signal.h> instead of sigprocmask.h.
35367         * NEWS: Mention the change.
35368         * lib/fatal-signal.c: Don't include sigprocmask.h.
35369
35370 2007-05-01  Bruno Haible  <bruno@clisp.org>
35371
35372         * modules/signal: New file.
35373         * lib/signal_.h: New file.
35374         * m4/signal_h.m4: New file.
35375
35376 2007-05-01  Bruno Haible  <bruno@clisp.org>
35377
35378         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
35379         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
35380         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
35381         HAVE_WCTYPE_CTMP_BUG into wctype.h.
35382
35383 2007-05-01  Bruno Haible  <bruno@clisp.org>
35384
35385         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
35386         configure time.
35387         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
35388         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
35389         * modules/sys_stat (Makefile.am): Substitute their values into
35390         sys/stat.h.
35391
35392 2007-05-01  Bruno Haible  <bruno@clisp.org>
35393
35394         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
35395         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
35396         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
35397
35398 2007-05-01  Bruno Haible  <bruno@clisp.org>
35399
35400         * doc/header/assert.texi: Undo last change: don't mention the gnulib
35401         'assert' module here.
35402
35403 2007-05-01  Bruno Haible  <bruno@clisp.org>
35404
35405         * doc/functions/*.texi: New files.
35406         * doc/functions/google-ranking.txt: New file.
35407         * doc/gnulib.texi (Function Substitutes): New chapter.
35408         (ctime, inet_ntoa): Remove sections.
35409         * doc/ctime.texi: Remove file.
35410         * doc/inet_ntoa.texi: Remove file.
35411         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
35412         dependencies.
35413         (%.info): New rule, specifying a --reference-limit.
35414
35415 2007-05-01  Bruno Haible  <bruno@clisp.org>
35416
35417         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
35418
35419 2007-05-01  Bruno Haible  <bruno@clisp.org>
35420
35421         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
35422         the portability of 'mkdir' to mingw systems.
35423
35424 2007-05-01  Bruno Haible  <bruno@clisp.org>
35425
35426         * doc/headers/google-ranking.txt: New file.
35427
35428 2007-04-30  Eric Blake  <ebb9@byu.net>
35429
35430         Prefer fseeko to fseek.
35431         * modules/getpass (Depends-on): Add fseeko.
35432         * lib/getpass.c (getpass): Use fseeko, not fseek.
35433
35434 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
35435
35436         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
35437         assumes the sorting is stable, while most qsort implementations
35438         are not.  Use argument addresses to ensure they never compare as
35439         equal.
35440
35441         * tests/test-argp-2.sh (usage-indent test): Fix output
35442         (func_compare): Restore diff options
35443         * tests/test-argp.c: Restore #include "progname.h"
35444
35445 2007-04-29  Bruno Haible  <bruno@clisp.org>
35446
35447         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
35448         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
35449         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
35450         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35451         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
35452         (configure.ac): Define CHECK_SNPRINTF_POSIX.
35453         (TESTS, check_PROGRAMS): Add test-snprintf.
35454         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
35455         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
35456         (TESTS, check_PROGRAMS): Add test-vsnprintf.
35457         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
35458         assertions that fail on HP-UX, OSF/1, or IRIX.
35459         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
35460
35461 2007-04-29  Bruno Haible  <bruno@clisp.org>
35462
35463         * MODULES.html.sh (posix_functions): Remove 'contents'.
35464
35465 2007-04-29  Karl Berry  <karl@gnu.org>
35466
35467         * config/srclist.txt (gendocs_template_min): new entry.
35468
35469 2007-04-29  Bruno Haible  <bruno@clisp.org>
35470
35471         Work around fpurge bug on BSD systems.
35472         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
35473         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
35474         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
35475         fpurge to rpl_fpurge if the system already has this function.
35476         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
35477         the case where the system already has this function. Correct invariants
35478         on BSD systems.
35479         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
35480         BSD systems.
35481
35482 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
35483
35484         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
35485         proposed by Sven Verdoolaege.
35486
35487         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
35488         options.
35489         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
35490         (usage and help tests): Update
35491
35492 2007-04-29  Bruno Haible  <bruno@clisp.org>
35493
35494         * tests/test-fflush.c (main): Use a file of size 17, not 10.
35495         Print more information in case of failure. Disable a test on BeOS.
35496
35497 2007-04-29  Bruno Haible  <bruno@clisp.org>
35498
35499         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
35500         This helps debugging on systems on which no gdb is available.
35501
35502 2007-04-29  Bruno Haible  <bruno@clisp.org>
35503
35504         * lib/freading.h: Improve comments.
35505         * lib/fwriting.h: Likewise.
35506         * tests/test-freading.c (main): Don't check freading immediately after
35507         repositioning. Needed for glibc.
35508
35509 2007-04-29  Bruno Haible  <bruno@clisp.org>
35510
35511         * lib/freading.c (freading): Trivial simplification.
35512
35513 2007-04-28  Bruno Haible  <bruno@clisp.org>
35514
35515         * tests/test-fwriting.c (main): Also test the interaction between
35516         fflush and fwriting.
35517         * modules/fwriting-tests (Depends-on): Add fflush.
35518
35519         * tests/test-freading.c (main): Also test the interaction between
35520         fflush and freading.
35521         * modules/freading-tests (Depends-on): Add fflush.
35522
35523 2007-04-28  Bruno Haible  <bruno@clisp.org>
35524
35525         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
35526         fseeko and ftello.
35527         Suggested by Eric Blake.
35528
35529 2007-04-28  Jim Meyering  <jim@meyering.net>
35530
35531         Avoid false-negative in gl_STDINT_H's C99 conformance test.
35532         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
35533         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
35534
35535 2007-04-27  Eric Blake  <ebb9@byu.net>
35536
35537         * doc/headers/assert.texi (assert.h): Document assert module use.
35538
35539 2007-04-27  Bruno Haible  <bruno@clisp.org>
35540
35541         * doc/headers/*.texi: New files.
35542         * doc/gnulib.texi (Header File Substitutes): New chapter.
35543         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
35544         dependencies.
35545         (standards.info ,standards.html, standards.dvi): Update dependencies.
35546         (mostlyclean, clean): New targets.
35547
35548 2007-04-27  Bruno Haible  <bruno@clisp.org>
35549
35550         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
35551         * modules/sysexits (Files, Makefile.am): Update.
35552
35553         * lib/sys_socket_.h: Renamed from lib/socket_.h.
35554         * modules/sys_socket (Files, Makefile.am): Update.
35555
35556         * lib/sys_stat_.h: Renamed from lib/stat_.h.
35557         * modules/sys_stat (Files, Makefile.am): Update.
35558
35559 2007-04-27  Eric Blake  <ebb9@byu.net>
35560
35561         * lib/freading.h: Improve comments.
35562         * lib/fwriting.h: Likewise.
35563         * lib/fflush.c: Likewise.
35564
35565         Fix closein for mingw.
35566         * modules/closein-tests: Add tests for closein.
35567         * tests/test-closein.c: New file.
35568         * tests/test-closein.sh: Likewise.
35569         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
35570         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
35571
35572 2007-04-27  Bruno Haible  <bruno@clisp.org>
35573
35574         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
35575         version is < 6.
35576         * lib/math_.h [__DECC]: Likewise.
35577         * lib/stdio_.h [__DECC]: Likewise.
35578         * lib/stdlib_.h [__DECC]: Likewise.
35579         * lib/string_.h [__DECC]: Likewise.
35580         * lib/time_.h [__DECC]: Likewise.
35581         * lib/wchar_.h [__DECC]: Likewise.
35582         * lib/wctype_.h [__DECC]: Likewise.
35583
35584 2007-04-27  Bruno Haible  <bruno@clisp.org>
35585
35586         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
35587
35588 2007-04-27  Bruno Haible  <bruno@clisp.org>
35589
35590         * lib/fflush.c: Add comments.
35591         * modules/fpurge-tests (Depends-on): Add fflush.
35592         * modules/freadable-tests (Depends-on): Likewise.
35593         * modules/fwritable-tests (Depends-on): Likewise.
35594
35595 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
35596
35597         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
35598         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
35599         Report by Bruno Haible <bruno@clisp.org>.
35600
35601 2007-04-26  Eric Blake  <ebb9@byu.net>
35602
35603         Fix fflush on mingw.
35604         * modules/fflush (Depends-on): Add freading.
35605         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
35606         but unread data.
35607
35608 2007-04-26  Eric Blake  <ebb9@byu.net>
35609         and Bruno Haible  <bruno@clisp.org>
35610
35611         Implement freading and fwriting.
35612         * lib/freading.c: New file.
35613         * lib/freading.h: Likewise.
35614         * m4/freading.m4: Likewise.
35615         * modules/freading: Likewise.
35616         * modules/freading-tests: Likewise.
35617         * tests/test-freading.c: Likewise.
35618         * lib/fwriting.c: New file.
35619         * lib/fwriting.h: Likewise.
35620         * m4/fwriting.m4: Likewise.
35621         * modules/fwriting: Likewise.
35622         * modules/fwriting-tests: Likewise.
35623         * tests/test-fwriting.c: Likewise.
35624         * MODULES.html.sh (File stream based Input/Output): Mention them.
35625
35626 2007-04-26  Bruno Haible  <bruno@clisp.org>
35627
35628         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
35629         'long' when we assume it.
35630         Suggested by Eric Blake.
35631
35632 2007-04-26  Bruno Haible  <bruno@clisp.org>
35633
35634         Ensure fseeko, ftello are declared on glibc systems.
35635         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
35636         * modules/fseeko (configure.ac-early): Likewise.
35637         * modules/ftello (configure.ac-early): Likewise.
35638         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
35639         AC_FUNC_FSEEKO for this.
35640         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
35641         (gl_CHECK_FSEEKO): Remove macro.
35642
35643 2007-04-26  Bruno Haible  <bruno@clisp.org>
35644
35645         * tests/test-fflush.c (main): Also check the ftell result after
35646         fflush and fseek/fseeko.
35647         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
35648         file descriptor position cache in the stream.
35649         * lib/fseeko.c (rpl_fseeko): Likewise.
35650
35651 2007-04-26  Bruno Haible  <bruno@clisp.org>
35652
35653         * modules/fflush-tests (Depends-on): Add fseeko.
35654
35655 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
35656             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35657
35658         * lib/argz_.h: ensure error_t definition is obtained in same
35659         mechanism system argz.h would have.
35660         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
35661         argz facilities are known bad.  Err on the side of caution if
35662         cross-compiling.
35663
35664 2007-04-25  Eric Blake  <ebb9@byu.net>
35665
35666         * lib/fpurge.c (includes): Use stdlib.h for free.
35667         * tests/test-fflush.c (main): Also test fflush-fseeko.
35668
35669 2007-04-25  Bruno Haible  <bruno@clisp.org>
35670
35671         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
35672         * lib/fseeko.c: New file.
35673         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
35674         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
35675         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
35676         gl_FUNC_FSEEKO.
35677         (gl_FUNC_FSEEKO): Invoke it.
35678         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
35679         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
35680         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
35681
35682 2007-04-25  Bruno Haible  <bruno@clisp.org>
35683
35684         * modules/fflush (Depends-on): Add ftello.
35685
35686 2007-04-25  Bruno Haible  <bruno@clisp.org>
35687
35688         * modules/ftello-tests: New file.
35689         * tests/test-ftello.c: New file.
35690
35691         * modules/ftello: New file.
35692         * m4/ftello.m4: New file.
35693         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
35694         HAVE_FTELLO.
35695         * lib/stdio_.h (ftello): New declaration.
35696         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
35697         HAVE_FTELLO.
35698
35699 2007-04-25  Bruno Haible  <bruno@clisp.org>
35700
35701         * modules/fseeko-tests: New file.
35702         * tests/test-fseeko.c: New file.
35703
35704         * modules/fseeko: New file.
35705         * m4/fseeko.m4: New file.
35706         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
35707         HAVE_FSEEKO.
35708         * lib/stdio_.h (fseeko): New declaration.
35709         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
35710         HAVE_FSEEKO.
35711
35712 2007-04-25  Bruno Haible  <bruno@clisp.org>
35713
35714         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
35715
35716 2007-04-25  Bruno Haible  <bruno@clisp.org>
35717
35718         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
35719         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
35720         * tests/test-unistd.c: Likewise.
35721         * tests/test-fcntl.c: Likewise.
35722
35723 2007-04-23  Eric Blake  <ebb9@byu.net>
35724
35725         * lib/fflush.c: Fix missing include.
35726         Reported by Bruno Haible.
35727
35728 2007-04-23  Bruno Haible  <bruno@clisp.org>
35729
35730         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
35731         Reported by Eric Blake.
35732
35733 2007-04-23  Bruno Haible  <bruno@clisp.org>
35734
35735         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
35736
35737 2007-04-23  Bruno Haible  <bruno@clisp.org>
35738
35739         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
35740
35741 2007-04-23  Bruno Haible  <bruno@clisp.org>
35742
35743         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
35744         Needed on HP-UX 11.
35745
35746 2007-04-16  Eric Blake  <ebb9@byu.net>
35747
35748         Make fflush rely on fpurge.
35749         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
35750         open coding all variants.
35751         * modules/fflush (Depends-on): Add fpurge and unistd.
35752         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
35753         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
35754
35755         Fix --with-tests compilation on cygwin.
35756         * modules/argmatch-tests (Makefile.am): List gnulib library first
35757         in LDADD.
35758         * modules/argp-tests (Makefile.am): Likewise.
35759         * modules/array-list-tests (Makefile.am): Likewise.
35760         * modules/array-oset-tests (Makefile.am): Likewise.
35761         * modules/avltree-list-tests (Makefile.am): Likewise.
35762         * modules/avltree-oset-tests (Makefile.am): Likewise.
35763         * modules/avltreehash-list-tests (Makefile.am): Likewise.
35764         * modules/carray-list-tests (Makefile.am): Likewise.
35765         * modules/dirname-tests (Makefile.am): Likewise.
35766         * modules/frexp-tests (Makefile.am): Likewise.
35767         * modules/isnanl-tests (Makefile.am): Likewise.
35768         * modules/linked-list-tests (Makefile.am): Likewise.
35769         * modules/linkedhash-list-tests (Makefile.am): Likewise.
35770         * modules/lock-tests (Makefile.am): Likewise.
35771         * modules/rbtree-list-tests (Makefile.am): Likewise.
35772         * modules/rbtree-oset-tests (Makefile.am): Likewise.
35773         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
35774         * modules/tls-tests (Makefile.am): Likewise.
35775         * modules/tsearch-tests (Makefile.am): Likewise.
35776         * modules/xvasprintf-tests (Makefile.am): Likewise.
35777
35778         Fix fpurge for cygwin.
35779         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
35780         value.
35781         * modules/fpurge-tests (Depends-on): Clean up trash.
35782
35783 2007-04-16  Simon Josefsson  <simon@josefsson.org>
35784
35785         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
35786
35787         * m4/autobuild.m4: Re-indent.
35788
35789 2007-04-13  Bruno Haible  <bruno@clisp.org>
35790
35791         * modules/fpurge-tests: New file.
35792         * tests/test-fpurge.c: New file.
35793
35794         * modules/fpurge: New file.
35795         * lib/fpurge.h: New file.
35796         * lib/fpurge.c: New file.
35797         * m4/fpurge.m4: New file.
35798
35799 2007-04-13  Bruno Haible  <bruno@clisp.org>
35800
35801         * modules/fbufmode-tests: New file.
35802         * tests/test-fbufmode.c: New file.
35803
35804         * modules/fbufmode: New file.
35805         * lib/fbufmode.h: New file.
35806         * lib/fbufmode.c: New file.
35807         * m4/fbufmode.m4: New file.
35808
35809 2007-04-13  Bruno Haible  <bruno@clisp.org>
35810
35811         * modules/fwritable-tests: New file.
35812         * tests/test-fwritable.c: New file.
35813
35814         * modules/fwritable: New file.
35815         * lib/fwritable.h: New file.
35816         * lib/fwritable.c: New file.
35817         * m4/fwritable.m4: New file.
35818
35819 2007-04-13  Bruno Haible  <bruno@clisp.org>
35820
35821         * modules/freadable-tests: New file.
35822         * tests/test-freadable.c: New file.
35823
35824         * modules/freadable: New file.
35825         * lib/freadable.h: New file.
35826         * lib/freadable.c: New file.
35827         * m4/freadable.m4: New file.
35828
35829 2007-04-13  Bruno Haible  <bruno@clisp.org>
35830
35831         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
35832         MOSTLYCLEANFILES.
35833
35834 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
35835
35836         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
35837         gzip bootstrap.conf to avoid dragging in i18n machinery.
35838         (gnulib_tool_option): Use it.
35839
35840 2007-04-13  Bruno Haible  <bruno@clisp.org>
35841
35842         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
35843         %F directives.
35844         * tests/test-vasprintf-posix.c (test_function): Likewise.
35845         * tests/test-snprintf-posix.h (test_function): Likewise.
35846         * tests/test-sprintf-posix.h (test_function): Likewise.
35847         * tests/test-fprintf-posix.h (test_function): Likewise.
35848         * tests/test-printf-posix.h (test_function): Likewise.
35849         * tests/test-fprintf-posix.out: Likewise.
35850
35851 2007-04-13  Bruno Haible  <bruno@clisp.org>
35852
35853         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
35854         * modules/tls-tests (configure.ac): Likewise.
35855         Reported by Arto C. Nirkko <anirkko@insel.ch>.
35856
35857 2007-04-13  Bruno Haible  <bruno@clisp.org>
35858
35859         * lib/tls.c (glthread_tls_get): Fix return type.
35860         Patch by Arto C. Nirkko <anirkko@insel.ch>.
35861
35862 2007-04-12  Eric Blake  <ebb9@byu.net>
35863
35864         * modules/gettime (Depends-on): Remove gettime.
35865         Reported by Dmitry V. Levin.
35866
35867 2007-04-12  Bruno Haible  <bruno@clisp.org>
35868
35869         * modules/fflush (Include): Mention <stdio.h>.
35870         * modules/strtoimax (Include): Mention <inttypes.h>.
35871         * modules/strtoumax (Include): Likewise.
35872
35873 2007-04-12  Eric Blake  <ebb9@byu.net>
35874
35875         * .cvsignore: New file.
35876         * .gitignore: Likewise.
35877
35878 2007-04-12  Bruno Haible  <bruno@clisp.org>
35879
35880         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
35881         not before, since $(LDADD) often contains libgnu.a.
35882         * modules/striconv-tests (test_striconv_LDADD): Likewise.
35883         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
35884         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
35885         Needed on Cygwin.
35886
35887 2007-04-12  Eric Blake  <ebb9@byu.net>
35888
35889         Work around glibc's failure to flush stdin on fclose.
35890         * lib/closein.c (close_stdin): Flush stdin before closing.
35891
35892         Work around glibc's failure to reset seekable stdin on exit.
35893         * modules/closein: New module.
35894         * lib/closein.c: New file.
35895         * lib/closein.h: Likewise.
35896         * m4/closein.m4: Likewise.
35897         * MODULES.html.sh (File stream based Input/Output): Document it.
35898
35899 2007-04-12  Simon Josefsson  <simon@josefsson.org>
35900
35901         * gnulib-tool: Rename generated 'autobuild' script to
35902         'do-autobuild' in --create-megatestdir output.
35903
35904         * doc/gnulib.texi (Build robot for gnulib): Fix.
35905
35906 2007-04-12  Simon Josefsson  <simon@josefsson.org>
35907
35908         * modules/sysexits (Depends-on): Add absolute-header.
35909
35910 2007-04-12  Eric Blake  <ebb9@byu.net>
35911
35912         No need to preserve errno on success.
35913         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
35914         Reported by Bruno Haible.
35915
35916 2007-04-12  Simon Josefsson  <simon@josefsson.org>
35917
35918         * MODULES.html.sh (Support for maintaining and releasing
35919         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
35920
35921 2007-04-12  Simon Josefsson  <simon@josefsson.org>
35922
35923         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
35924
35925 2007-04-12  Simon Josefsson  <simon@josefsson.org>
35926
35927         * modules/autobuild: New module.
35928
35929         * m4/autobuild.m4: New file.
35930
35931 2007-04-11  Bruno Haible  <bruno@clisp.org>
35932
35933         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
35934         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
35935         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
35936         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
35937         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
35938         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35939         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35940         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
35941         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35942         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35943         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
35944         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35945         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35946         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
35947         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35948         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35949         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
35950         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35951         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35952         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
35953         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35954         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35955         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
35956         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35957         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35958         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
35959         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35960         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35961         Reported by Eric Blake.
35962
35963 2007-04-11  Bruno Haible  <bruno@clisp.org>
35964
35965         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
35966
35967 2007-04-10  Bruno Haible  <bruno@clisp.org>
35968
35969         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
35970         for NaN and Infinity. Needed on FreeBSD 6.1.
35971         * tests/test-vasnprintf-posix.c (test_function): Undo last change
35972         regarding results for "%010a" of Infinity and NaN.
35973         * tests/test-vasprintf-posix.c (test_function): Likewise.
35974         * tests/test-snprintf-posix.h (test_function): Likewise.
35975         * tests/test-sprintf-posix.h (test_function): Likewise.
35976         * tests/test-fprintf-posix.h (test_function): Likewise.
35977         * tests/test-printf-posix.h (test_function): Likewise.
35978         * tests/test-fprintf-posix.out: Likewise.
35979
35980 2007-04-10  Bruno Haible  <bruno@clisp.org>
35981
35982         * modules/locale-tests: New file.
35983         * tests/test-locale.c: New file.
35984
35985         * modules/locale: New file.
35986         * lib/locale_.h: New file.
35987         * m4/locale_h.m4: New file.
35988
35989 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
35990             Bruno Haible  <bruno@clisp.org>
35991
35992         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
35993         be determined, test for availability of the copysignf, copysign,
35994         copysignl functions.
35995         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
35996         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
35997         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
35998
35999 2007-04-09  Eric Blake  <ebb9@byu.net>
36000
36001         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
36002         * modules/stdio (Makefile.am): Support fflush.
36003         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
36004         * modules/fflush: New file.
36005         * lib/fflush.c: Likewise.
36006         * m4/fflush.m4: Likewise.
36007         * modules/fflush-tests: New test.
36008         * tests/test-fflush.c: Likewise.
36009         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
36010
36011 2007-04-06  Bruno Haible  <bruno@clisp.org>
36012
36013         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
36014         (VASNPRINTF): Use signbit for faster determination whether to print a
36015         minus sign.
36016         * modules/vasnprintf (Files): Remove lib/float+.h.
36017         * modules/fprintf-posix (Depends-on): Add signbit.
36018         * modules/snprintf-posix (Depends-on): Likewise.
36019         * modules/sprintf-posix (Depends-on): Likewise.
36020         * modules/vasnprintf-posix (Depends-on): Likewise.
36021         * modules/vasprintf-posix (Depends-on): Likewise.
36022         * modules/vfprintf-posix (Depends-on): Likewise.
36023         * modules/vsnprintf-posix (Depends-on): Likewise.
36024         * modules/vsprintf-posix (Depends-on): Likewise.
36025
36026 2007-04-06  Bruno Haible  <bruno@clisp.org>
36027
36028         * tests/test-frexp.c (main): Test also the sign bit of zero results.
36029         * tests/test-frexpl.c (main): Likewise.
36030         * tests/test-ldexpl.c (main): Likewise.
36031         * modules/frexp-tests (Depends-on): Add signbit.
36032         * modules/frexpl-tests (Depdends-on): Likewise.
36033         * modules/ldexpl-tests (Depdends-on): Likewise.
36034
36035 2007-04-06  Bruno Haible  <bruno@clisp.org>
36036
36037         * modules/signbit-tests: New file.
36038         * tests/test-signbit.c: New file.
36039
36040         * modules/signbit: New file.
36041         * lib/signbitf.c: New file.
36042         * lib/signbitd.c: New file.
36043         * lib/signbitl.c: New file.
36044         * m4/signbit.m4: New file.
36045         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
36046         (signbit): New macro.
36047         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
36048         REPLACE_SIGNBIT.
36049         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
36050         REPLACE_FREXPL into math.h.
36051
36052 2007-04-06  Bruno Haible  <bruno@clisp.org>
36053
36054         * modules/isnanf-nolibm-tests: New file.
36055         * tests/test-isnanf.c: New file.
36056
36057         * modules/isnanf-nolibm: New file.
36058         * lib/isnanf.h: New file.
36059         * lib/isnanf.c: New file.
36060         * lib/isnan.c: Consider the USE_FLOAT macro.
36061         * m4/isnanf.m4: New file.
36062
36063 2007-04-06  Bruno Haible  <bruno@clisp.org>
36064
36065         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
36066         (Link): New section.
36067
36068         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
36069
36070 2007-04-06  Bruno Haible  <bruno@clisp.org>
36071
36072         Assume the 'long double' type.
36073         * m4/longdouble.m4: Remove file.
36074         * config/srclist.txt: Don't mention longdouble.m4.
36075         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
36076         * lib/float+.h: Likewise.
36077         * lib/frexp.c: Likewise.
36078         * lib/printf-args.h: Likewise.
36079         * lib/printf-args.c: Likewise.
36080         * lib/printf-frexp.c: Likewise.
36081         * lib/printf-parse.c: Likewise.
36082         * lib/vasnprintf.c: Likewise.
36083         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
36084         * m4/intl.m4: Likewise.
36085         * m4/isnanl.m4: Likewise.
36086         * m4/printf.m4: Likewise.
36087         * m4/printf-frexpl.m4: Likewise.
36088         * m4/vasnprintf.m4: Likewise.
36089         * modules/allocsa (Files): Remove m4/longdouble.m4.
36090         * modules/gettext (Files): Likewise.
36091         * modules/relocatable-prog-wrapper (Files): Likewise.
36092         * modules/vasnprintf (Files): Likewise.
36093         * modules/isnanl (Files): Likewise.
36094         (Include): Simplify.
36095         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
36096         (Include): Simplify.
36097         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
36098         (Include): Simplify.
36099         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
36100         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
36101         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
36102         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
36103         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
36104         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
36105         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
36106         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
36107         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
36108         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
36109         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
36110         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
36111         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
36112         * tests/test-isnanl.c: Likewise.
36113         * tests/test-snprintf-posix.h: Likewise.
36114         * tests/test-sprintf-posix.h: Likewise.
36115         * tests/test-vasnprintf-posix.c: Likewise.
36116         * tests/test-vasnprintf-posix2.c: Likewise.
36117         * tests/test-vasprintf-posix.c: Likewise.
36118
36119 2007-04-06  Bruno Haible  <bruno@clisp.org>
36120
36121         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
36122         * lib/math_.h [__DECC]: Include the overridden include file through
36123         #include_next, outside the double-inclusion guard.
36124         * lib/stdio_.h [__DECC]: Likewise.
36125         * lib/stdlib_.h [__DECC]: Likewise.
36126         * lib/string_.h [__DECC]: Likewise.
36127         * lib/time_.h [__DECC]: Likewise.
36128         * lib/wchar_.h [__DECC]: Likewise.
36129         * lib/wctype_.h [__DECC]: Likewise.
36130         * lib/inttypes_.h [__DECC]: Likewise.
36131         Reported by Albert Chin <china@thewrittenword.com> in
36132         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
36133
36134 2007-04-04  Eric Blake  <ebb9@byu.net>
36135
36136         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
36137         1.5.x.
36138
36139 2007-04-04  Bruno Haible  <bruno@clisp.org>
36140
36141         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
36142         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
36143
36144 2007-04-04  Bruno Haible  <bruno@clisp.org>
36145
36146         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
36147         results for "%010a" of Infinity and NaN.
36148         * tests/test-vasprintf-posix.c (test_function): Likewise.
36149         * tests/test-snprintf-posix.h (test_function): Likewise.
36150         * tests/test-sprintf-posix.h (test_function): Likewise.
36151         * tests/test-fprintf-posix.h (test_function): Remove these tests.
36152         * tests/test-printf-posix.h (test_function): Likewise.
36153         * tests/test-fprintf-posix.out: Update.
36154         Needed for FreeBSD 6.1.
36155
36156 2007-04-04  Bruno Haible  <bruno@clisp.org>
36157
36158         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
36159         directly used by the gnulib modules nor by gnulib-tool.
36160
36161 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
36162
36163         * DEPENDENCIES: Give overall description of version dependency
36164         desirability.  Use more-typical names for apps.
36165         Add shell, coreutils, diffutils, grep, tar, gzip.
36166
36167 2007-04-04  Simon Josefsson  <simon@josefsson.org>
36168
36169         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
36170
36171 2007-04-04  Karl Berry  <karl@gnu.org>
36172
36173         * MODULES.html.sh (func_module): missing '.
36174
36175 2007-04-03  Bruno Haible  <bruno@clisp.org>
36176
36177         * modules/argmatch-tests (Makefile.am): New variable
36178         test_argmatch_LDADD.
36179         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
36180         * modules/array-list-tests (Makefile.am): New variable
36181         test_array_list_LDADD.
36182         * modules/array-oset-tests (Makefile.am): New variable
36183         test_array_oset_LDADD.
36184         * modules/avltree-list-tests (Makefile.am): New variable
36185         test_avltree_list_LDADD.
36186         * modules/avltree-oset-tests (Makefile.am): New variable
36187         test_avltree_oset_LDADD.
36188         * modules/avltreehash-list-tests (Makefile.am): New variable
36189         test_avltreehash_list_LDADD.
36190         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
36191         test_canonicalize_lgpl_LDADD.
36192         * modules/carray-list-tests (Makefile.am): New variable
36193         test_carray_list_LDADD.
36194         * modules/dirname-tests (Makefile.am): New variable
36195         test_dirname_LDADD.
36196         * modules/linked-list-tests (Makefile.am): New variable
36197         test_linked_list_LDADD.
36198         * modules/linkedhash-list-tests (Makefile.am): New variable
36199         test_linkedhash_list_LDADD.
36200         * modules/rbtree-list-tests (Makefile.am): New variable
36201         test_rbtree_list_LDADD.
36202         * modules/rbtree-oset-tests (Makefile.am): New variable
36203         test_rbtree_oset_LDADD.
36204         * modules/rbtreehash-list-tests (Makefile.am): New variable
36205         test_rbtreehash_list_LDADD.
36206         * modules/xvasprintf-tests (Makefile.am): New variable
36207         test_xvasprintf_LDADD.
36208         Reported by Eric Blake.
36209
36210 2007-04-03  Eric Blake  <ebb9@byu.net>
36211
36212         * DEPENDENCIES: Weaken m4 requirements.
36213
36214 2007-04-03  Bruno Haible  <bruno@clisp.org>
36215
36216         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
36217         * modules/isnanl-tests (configure.ac): Likewise.
36218
36219 2007-04-03  Ben Pfaff  <blp@gnu.org>
36220
36221         * modules/iconv_open: Add $(srcdir)/ to source directory
36222         references in Makefile fragments that call gperf, to fix VPATH
36223         builds.
36224
36225 2007-04-03  Bruno Haible  <bruno@clisp.org>
36226
36227         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
36228         * lib/ldexpl.c: Undo last change.
36229
36230 2007-04-03  Bruno Haible  <bruno@clisp.org>
36231
36232         * modules/printf-frexpl (Depends-on): Undo last change.
36233         (Files): Add m4/ldexpl.m4.
36234
36235 2007-04-03  Bruno Haible  <bruno@clisp.org>
36236
36237         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
36238         * modules/isnanl (Link): New section.
36239
36240         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
36241         * modules/frexp (Link): New section.
36242
36243         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
36244         * modules/frexpl (Link): New section.
36245
36246         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
36247         * modules/ldexpl (Link): New section.
36248
36249 2007-04-03  Bruno Haible  <bruno@clisp.org>
36250
36251         * modules/TEMPLATE-EXTENDED: New file.
36252         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
36253
36254 2007-04-03  Bruno Haible  <bruno@clisp.org>
36255
36256         * DEPENDENCIES: New file.
36257         Suggested by Simon Josefsson.
36258
36259 2007-04-03  Bruno Haible  <bruno@clisp.org>
36260
36261         * doc/gnulib.texi: Escape @.
36262
36263 2007-04-03  James Youngman  <jay@gnu.org>
36264         and Paul Eggert  <eggert@cs.ucla.edu>
36265
36266         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
36267         birthtime on all systems that have birthtime, not just those which
36268         use st_birthtimensec rather than st_birthtim.  Putting zero in
36269         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
36270         that the birth time is not available for files on an NFS mount.
36271
36272 2007-04-03  Simon Josefsson  <simon@josefsson.org>
36273
36274         * modules/memxor: Move back from crypto/, suggested by Bruno.
36275         * modules/crypto/hmac-sha1: Fix memxor dependency.
36276
36277         * modules/crypto/gc: Moved from ../.
36278
36279 2007-04-02  Eric Blake  <ebb9@byu.net>
36280
36281         * lib/ldexpl.c (includes): Avoid libm.
36282
36283         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
36284
36285 2007-04-02  Bruno Haible  <bruno@clisp.org>
36286
36287         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
36288         on IRIX.
36289
36290 2007-04-02  Bruno Haible  <bruno@clisp.org>
36291
36292         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
36293         x86 or x86_64 platforms running MacOS X.
36294         Reported by Ryan Schmidt <@ryandesign.com>.
36295
36296 2007-04-02  Bruno Haible  <bruno@clisp.org>
36297
36298         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
36299         i386.
36300
36301 2007-04-01  Simon Josefsson  <simon@josefsson.org>
36302
36303         * modules/crypto/arcfour: Moved from ../.
36304         * modules/crypto/arcfour-tests: Moved from ../.
36305         * modules/crypto/arctwo: Moved from ../.
36306         * modules/crypto/arctwo-tests: Moved from ../.
36307         * modules/crypto/des: Moved from ../.
36308         * modules/crypto/des-tests: Moved from ../.
36309         * modules/crypto/gc-arcfour: Moved from ../.
36310         * modules/crypto/gc-arcfour-tests: Moved from ../.
36311         * modules/crypto/gc-arctwo: Moved from ../.
36312         * modules/crypto/gc-arctwo-tests: Moved from ../.
36313         * modules/crypto/gc-des: Moved from ../.
36314         * modules/crypto/gc-des-tests: Moved from ../.
36315         * modules/crypto/gc-hmac-md5: Moved from ../.
36316         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
36317         * modules/crypto/gc-hmac-sha1: Moved from ../.
36318         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
36319         * modules/crypto/gc-md2: Moved from ../.
36320         * modules/crypto/gc-md2-tests: Moved from ../.
36321         * modules/crypto/gc-md4: Moved from ../.
36322         * modules/crypto/gc-md4-tests: Moved from ../.
36323         * modules/crypto/gc-md5: Moved from ../.
36324         * modules/crypto/gc-md5-tests: Moved from ../.
36325         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
36326         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
36327         * modules/crypto/gc-random: Moved from ../.
36328         * modules/crypto/gc-rijndael: Moved from ../.
36329         * modules/crypto/gc-rijndael-tests: Moved from ../.
36330         * modules/crypto/gc-sha1: Moved from ../.
36331         * modules/crypto/gc-sha1-tests: Moved from ../.
36332         * modules/crypto/gc-tests: Moved from ../.
36333         * modules/crypto/hmac-md5: Moved from ../.
36334         * modules/crypto/hmac-md5-tests: Moved from ../.
36335         * modules/crypto/hmac-sha1: Moved from ../.
36336         * modules/crypto/hmac-sha1-tests: Moved from ../.
36337         * modules/crypto/md2: Moved from ../.
36338         * modules/crypto/md2-tests: Moved from ../.
36339         * modules/crypto/md4: Moved from ../.
36340         * modules/crypto/md4-tests: Moved from ../.
36341         * modules/crypto/md5: Moved from ../.
36342         * modules/crypto/md5-tests: Moved from ../.
36343         * modules/crypto/memxor: Moved from ../.
36344         * modules/crypto/rijndael: Moved from ../.
36345         * modules/crypto/rijndael-tests: Moved from ../.
36346         * modules/crypto/sha1: Moved from ../.
36347
36348 2007-03-30  James Youngman  <jay@gnu.org>
36349
36350         * tests/test-stat-time.c (prepare_test): use chmod() rather than
36351         rename() to change the ctime of a file (because ctime is unaffected
36352         by rename on jfs2 on AIX 5.1).
36353         (main): Start by doing cleanup, in case a previous run failed leaving
36354         test files behind.
36355
36356 2007-03-31  Bruno Haible  <bruno@clisp.org>
36357
36358         Support old proprietary implementations of iconv.
36359         * modules/iconv_open: New file.
36360         * lib/iconv_.h: New file.
36361         * m4/iconv_h.m4: New file.
36362         * lib/iconv_open.c: New file.
36363         * lib/iconv_open-aix.gperf: New file.
36364         * lib/iconv_open-hpux.gperf: New file.
36365         * lib/iconv_open-irix.gperf: New file.
36366         * lib/iconv_open-osf.gperf: New file.
36367         * m4/iconv_open.m4: New file.
36368         * modules/linebreak (Depends-on): Add iconv_open.
36369         * modules/striconv (Depends-on): Likewise.
36370         * modules/striconveh (Depends-on): Likewise.
36371         * modules/unicodeio (Depends-on): Likewise.
36372         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
36373         (iconv_t)(-1).
36374         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
36375         conversion if cd is (iconv_t)(-1).
36376         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
36377         is not possible.
36378
36379 2007-03-31  Bruno Haible  <bruno@clisp.org>
36380
36381         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
36382         work on Solaris either. Protect also second use of "autodetect_jp".
36383
36384 2007-03-31  Bruno Haible  <bruno@clisp.org>
36385
36386         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
36387         the function is not present.
36388
36389 2007-03-31  Bruno Haible  <bruno@clisp.org>
36390
36391         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
36392         the function is not present.
36393
36394 2007-03-31  Bruno Haible  <bruno@clisp.org>
36395
36396         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
36397         a bug in HP-UX iconv_open().
36398
36399 2007-03-31  Bruno Haible  <bruno@clisp.org>
36400
36401         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
36402         (Mathematics <math.h>): New section, add fpieee.
36403         (Input/output <stdio.h>): Add fseterr.
36404         (Mathematics <math.h>): New section, add printf-frexp.
36405         (Container data structures): Add sublist.
36406         (Core language properties): Add fpucw, inline.
36407         (Functions for greatest-width integer types <inttypes.h>): Add
36408         imaxabs, imaxdiv, inttypes.
36409         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
36410         isnanl-nolibm, ldexp.
36411         (Mathematics <math.h>): New section, add printf-frexpl.
36412         (Support for systems lacking POSIX:2001): Add fprintf-posix,
36413         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
36414         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
36415         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
36416         (Unicode string functions): Add unistr/u*-mbtoucr.
36417         (Java): Add javacomp-script, javaexec-script.
36418         (C#): Add csharpcomp-script, csharpexec-script.
36419         (Support for building libraries and executables): Add havelib,
36420         relocatable-*.
36421         (Support for maintaining and releasing projects): Renamed from
36422         'Support for maintaining and release projects'. Add announce-gen.
36423
36424 2007-03-31  Bruno Haible  <bruno@clisp.org>
36425
36426         * README: Talk primarily about git.
36427         (git and CVS): Renamed from CVS.
36428         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
36429         gnulib is available through git.
36430         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
36431
36432 2007-03-30  Bruno Haible  <bruno@clisp.org>
36433
36434         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
36435         * lib/poll_.h: Likewise.
36436         * lib/stat_.h: Likewise.
36437         * lib/sys_time_.h: Likewise.
36438         * lib/sysexit_.h: Likewise.
36439         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
36440         * lib/stdbool_.h: Likewise.
36441         * lib/byteswap_.h: Add double-inclusion guard.
36442
36443 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
36444
36445         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
36446
36447 2007-03-30  Karl Berry  <karl@gnu.org>
36448
36449         * config/srclist-update: double space after USA in the license
36450         substitution, since that's how it's usually (?) written.
36451
36452 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
36453
36454         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
36455         reported by Bruno Haible.
36456
36457 2007-03-29  Bruno Haible  <bruno@clisp.org>
36458
36459         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
36460         a bug in AIX iconv().
36461
36462 2007-03-29  Bruno Haible  <bruno@clisp.org>
36463
36464         * modules/ldexpl-tests: New file.
36465         * tests/test-ldexpl.c: New file.
36466
36467 2007-03-29  Bruno Haible  <bruno@clisp.org>
36468
36469         * lib/ldexpl.c: Include fpucw.h.
36470         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
36471         multiplication.
36472         * modules/ldexpl (Depends-on): Add fpucw.
36473
36474 2007-03-29  Bruno Haible  <bruno@clisp.org>
36475
36476         * modules/ldexpl: New file.
36477         * m4/ldexpl.m4: New file.
36478         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
36479         set.
36480         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
36481         REPLACE_LDEXPL.
36482         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
36483         REPLACE_LDEXPL.
36484         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
36485         gl_FUNC_LDEXPL_WORKS.
36486         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
36487         * modules/mathl (Files): Remove lib/ldexpl.c.
36488         (Depends-on): Add ldexpl.
36489
36490 2007-03-29  Bruno Haible  <bruno@clisp.org>
36491
36492         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
36493
36494 2007-03-29  Bruno Haible  <bruno@clisp.org>
36495
36496         * tests/test-striconveh.c (main): Don't assume that a direct conversion
36497         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
36498         and possibly also HP-UX.
36499         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
36500         work on AIX, IRIX, HP-UX, OSF/1.
36501         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
36502         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
36503         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
36504         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
36505         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
36506         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
36507
36508 2007-03-29  Bruno Haible  <bruno@clisp.org>
36509
36510         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
36511
36512 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
36513
36514         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
36515         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
36516
36517 2007-03-29  Eric Blake  <ebb9@byu.net>
36518
36519         * lib/acl-internal.h: Remove redundant include.
36520         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
36521         Cygwin when a file is locked.
36522
36523 2007-03-29  Bruno Haible  <bruno@clisp.org>
36524
36525         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
36526         file.
36527         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
36528
36529 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
36530
36531         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
36532         try to remove a parent directory if the child couldn't be removed
36533         (except for the first rmdir, which could fail because the child
36534         doesn't exist).  Problem reported by Jeff Blaine in
36535         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
36536
36537 2007-03-28  Bruno Haible  <bruno@clisp.org>
36538
36539         * lib/striconveh.c (utf8conv_carefully): New function.
36540         (mem_cd_iconveh_internal): Invoke it.
36541
36542 2007-03-28  Bruno Haible  <bruno@clisp.org>
36543
36544         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
36545         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
36546         input.
36547         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
36548         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
36549         unistr/u8-uctomb.
36550
36551 2007-03-28  Bruno Haible  <bruno@clisp.org>
36552
36553         * modules/unistr/u8-mbtoucr: New file.
36554         * lib/unistr/u8-mbtoucr.c: New file.
36555         * modules/unistr/u16-mbtoucr: New file.
36556         * lib/unistr/u16-mbtoucr.c: New file.
36557         * modules/unistr/u16-mbtoucr: New file.
36558         * lib/unistr/u16-mbtoucr.c: New file.
36559         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
36560
36561 2007-03-27  Simon Josefsson  <simon@josefsson.org>
36562             Bruno Haible  <bruno@clisp.org>
36563
36564         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
36565         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
36566         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
36567
36568         * m4/stdio_h.m4: Add stubs for vasprintf too.
36569
36570         * modules/stdio: Support vasprintf in sed command.
36571
36572         * modules/vasprintf: Depend on stdio for prototypes.  Remove
36573         vasprintf.h.  Add stdio module indicator.
36574
36575         * lib/stdio_.h: Declare asprintf and vasprintf, based on
36576         vasprintf.h.
36577
36578         * lib/vasprintf.h: File removed.
36579
36580         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
36581         * lib/vasprintf.c: Ditto.
36582         * lib/xvasprintf.c: Ditto.
36583         * tests/test-vasprintf-posix.c: Ditto.
36584         * tests/test-vasprintf.c: Ditto.
36585
36586 2007-03-27  Bruno Haible  <bruno@clisp.org>
36587
36588         Make vasnprintf multithread-safe.
36589         * lib/vasnprintf.c (decimal_point_char): New function.
36590         (VASNPRINTF): Use it.
36591         Suggested by Simon Josefsson.
36592
36593 2007-03-27  Eric Blake  <ebb9@byu.net>
36594
36595         Support sub-second birthtime on cygwin.
36596         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
36597         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
36598         (get_stat_birthtime): Also work with st_birthtim.
36599
36600 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
36601
36602         * lib/stat-time.h (USE_BIRTHTIME): Remove.
36603         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
36604         (get_stat_birthtime_ns): Do not try to use "spare" fields.
36605         (get_stat_birthtime_ns): Simplify compile-time tests.
36606         (get_stat_birthtime): Change the API to look like
36607         get_stat_mtime etc., except return a negative tv_nsec on error.
36608         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
36609         Don't check for "spare" fields.
36610         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
36611         or for struct stat.st_birthtime, as these tests aren't used.
36612         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
36613
36614 2007-03-27  Bruno Haible  <bruno@clisp.org>
36615
36616         * lib/stat-time.h: Include <sys/stat.h>.
36617
36618 2007-03-27  James Youngman  <jay@gnu.org>
36619
36620         * lib/stat-time.h (get_stat_birthtime): New function for
36621           retrieving st_birthtime as provided by UFS2 (hence *BSD).
36622         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
36623           and its variants.
36624         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
36625         * modules/stat-time-test: New file.
36626         * tests/test-stat-time.c: New test, devised by Bruno Haible.
36627
36628 2007-03-26  Bruno Haible  <bruno@clisp.org>
36629
36630         Better support of signalling NaNs.
36631         * lib/atanl.c: Include isnanl.h.
36632         (atanl): Perform test for NaN at the beginning of the function and
36633         through a call to isnanl.
36634         * lib/cosl.c: Include isnanl.h.
36635         (cosl): Perform test for NaN at the beginning of the function and
36636         through a call to isnanl.
36637         * lib/ldexpl.c: Include isnanl.h.
36638         (ldexpl): Perform test for NaN through a call to isnanl.
36639         * lib/logl.c: Include isnanl.h.
36640         (logl): Perform test for NaN at the beginning of the function and
36641         through a call to isnanl.
36642         * lib/sinl.c: Include isnanl.h.
36643         (sinl): Perform test for NaN at the beginning of the function and
36644         through a call to isnanl.
36645         * lib/sqrtl.c: Include isnanl.h.
36646         (sqrtl): Perform test for NaN at the beginning of the function and
36647         through a call to isnanl.
36648         * lib/tanl.c: Include isnanl.h.
36649         (tanl): Perform test for NaN at the beginning of the function and
36650         through a call to isnanl.
36651         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
36652         * modules/mathl (Depends-on): Add isnanl.
36653
36654 2007-03-26  Eric Blake  <ebb9@byu.net>
36655
36656         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
36657         regression in logic sense of previous patch.
36658
36659 2007-03-26  Bruno Haible  <bruno@clisp.org>
36660
36661         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
36662         unportable shell command "if ! ...".
36663         Reported by Ralf Wildenhues.
36664
36665 2007-03-25  Bruno Haible  <bruno@clisp.org>
36666
36667         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
36668         <sysexits.h> file, and only add EX_CONFIG.
36669         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
36670         absolute file name and whether it is sufficient. Substitute also
36671         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
36672         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
36673         ABSOLUTE_SYSEXITS_H into sysexits.h.
36674
36675 2007-03-25  Bruno Haible  <bruno@clisp.org>
36676
36677         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
36678         hints is NULL.
36679
36680 2007-03-25  Bruno Haible  <bruno@clisp.org>
36681
36682         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
36683         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
36684
36685 2007-03-25  Bruno Haible  <bruno@clisp.org>
36686
36687         * lib/vasnprintf.c: Include langinfo.h.
36688         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
36689         multithread-safe.
36690         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
36691         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
36692         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
36693         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
36694         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
36695         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
36696         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
36697         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
36698         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
36699         Reported by Simon Josefsson.
36700
36701 2007-03-25  Bruno Haible  <bruno@clisp.org>
36702
36703         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
36704         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
36705         * modules/vasnprintf (Depends-on): Add stdint.
36706
36707 2007-03-25  Bruno Haible  <bruno@clisp.org>
36708
36709         * modules/fpieee: New file.
36710         * m4/fpieee.m4: New file.
36711         * modules/isnan-nolibm (Depends-on): Add fpieee.
36712         * modules/isnanl-nolibm (Depends-on): Add fpieee.
36713         * modules/isnanl (Depends-on): Add fpieee.
36714
36715 2007-03-25  Bruno Haible  <bruno@clisp.org>
36716
36717         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
36718
36719 2007-03-25  Bruno Haible  <bruno@clisp.org>
36720
36721         Avoid test failures on IRIX 6.5.
36722         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
36723         (main): Use it.
36724         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
36725         macros.
36726         (main): Use them.
36727
36728 2007-03-25  Bruno Haible  <bruno@clisp.org>
36729
36730         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
36731         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
36732         exists but doesn't work.
36733         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
36734         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
36735         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
36736         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
36737
36738 2007-03-25  Bruno Haible  <bruno@clisp.org>
36739
36740         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
36741         returns inf. Needed on IRIX 6.5.
36742
36743 2007-03-25  Bruno Haible  <bruno@clisp.org>
36744
36745         * tests/test-frexpl.c: Include isnanl-nolibm.h.
36746         (main): Use isnanl instead of x != x idiom.
36747         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
36748
36749         * tests/test-frexp.c: Include isnan.h.
36750         (main): Use isnan instead of x != x idiom.
36751         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
36752
36753 2007-03-25  Bruno Haible  <bruno@clisp.org>
36754
36755         * tests/test-frexp.c (NaN): New function/macro.
36756         (main): Use it instead of 0.0 / 0.0.
36757         * tests/test-isnan.c (NaN): New function/macro.
36758         (main): Use it instead of 0.0 / 0.0.
36759         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
36760         (test_function): Use it instead of 0.0 / 0.0.
36761         * tests/test-vasprintf-posix.c (NaN): New function/macro.
36762         (test_function): Use it instead of 0.0 / 0.0.
36763         * tests/test-snprintf-posix.h (NaN): New function/macro.
36764         (test_function): Use it instead of 0.0 / 0.0.
36765         * tests/test-sprintf-posix.h (NaN): New function/macro.
36766         (test_function): Use it instead of 0.0 / 0.0.
36767         * tests/test-fprintf-posix.h (NaN): New function/macro.
36768         (test_function): Use it instead of 0.0 / 0.0.
36769         * tests/test-printf-posix.h (NaN): New function/macro.
36770         (test_function): Use it instead of 0.0 / 0.0.
36771
36772         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
36773
36774 2007-03-25  Bruno Haible  <bruno@clisp.org>
36775
36776         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
36777
36778 2007-03-25  Bruno Haible  <bruno@clisp.org>
36779
36780         * lib/regexec.c (merge_state_with_log): Make static.
36781
36782 2007-03-25  Bruno Haible  <bruno@clisp.org>
36783
36784         * lib/trigl.c (kernel_rem_pio2): Make static.
36785
36786 2007-03-25  Bruno Haible  <bruno@clisp.org>
36787
36788         * lib/sincosl.c (sincosl_table): Make static.
36789
36790 2007-03-25  Bruno Haible  <bruno@clisp.org>
36791
36792         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
36793         if the compiler does not support C99.
36794
36795 2007-03-25  Bruno Haible  <bruno@clisp.org>
36796
36797         * modules/time (Makefile.am): Ensure all rule action lines start with a
36798         tab.
36799
36800 2007-03-24  Bruno Haible  <bruno@clisp.org>
36801
36802         * modules/tsearch-tests: New file.
36803         * tests/test-tsearch.sh: New file.
36804         * tests/test-tsearch.c: New file, mostly copied from glibc.
36805
36806         * modules/search-tests: New file.
36807         * tests/test-search.c: New file.
36808
36809         * modules/search: New file.
36810         * lib/search_.h: New file, incorporating lib/tsearch.h.
36811         * m4/search_h.m4: New file.
36812         * lib/tsearch.h: Remove file.
36813         * lib/tsearch.c: Include search.h instead of tsearch.h.
36814         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
36815         HAVE_TSEARCH.
36816         * modules/tsearch (Files): Remove lib/tsearch.h.
36817         (Depends-on): Add search.
36818         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
36819         (Include): Change tsearch.h into search.h.
36820
36821 2007-03-24  Bruno Haible  <bruno@clisp.org>
36822
36823         * modules/fpucw: New file.
36824         * lib/fpucw.h: New file.
36825         * lib/frexp.c: Include fpucw.h.
36826         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
36827         (FUNC): Use them.
36828         * lib/printf-frexp.c: Include fpucw.h.
36829         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
36830         (FUNC): Use them.
36831         * lib/vasnprintf.c: Include fpucw.h.
36832         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
36833         'long double' calculations.
36834         * tests/test-frexpl.c: Include fpucw.h.
36835         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
36836         * tests/test-printf-frexpl.c: Include fpucw.h.
36837         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
36838         * modules/frexpl (Depends-on): Add fpucw.
36839         * modules/printf-frexpl (Depends-on): Likewise.
36840         * modules/fprintf-posix (Depends-on): Likewise.
36841         * modules/snprintf-posix (Depends-on): Likewise.
36842         * modules/sprintf-posix (Depends-on): Likewise.
36843         * modules/vasnprintf-posix (Depends-on): Likewise.
36844         * modules/vasprintf-posix (Depends-on): Likewise.
36845         * modules/vfprintf-posix (Depends-on): Likewise.
36846         * modules/vsnprintf-posix (Depends-on): Likewise.
36847         * modules/vsprintf-posix (Depends-on): Likewise.
36848         * modules/frexpl-tests (Depends-on): Likewise.
36849         * modules/printf-frexpl-tests (Depends-on): Likewise.
36850
36851 2007-03-24  Bruno Haible  <bruno@clisp.org>
36852
36853         * lib/float+.h: New file.
36854         * lib/isnan.c: Include float+.h.
36855         (SIZE): New macro.
36856         (FUNC): Compare only SIZE bytes of the value.
36857         * lib/vasnprintf.c: Include float+.h.
36858         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
36859         SIZEOF_LDBL or SIZEOF_DBL bytes.
36860         * modules/isnan-nolibm (Files): Add lib/float+.h.
36861         * modules/isnanl-nolibm (Files): Add lib/float+.h.
36862         * modules/isnanl (Files): Add lib/float+.h.
36863         * modules/vasnprintf (Files): Add lib/float+.h.
36864
36865 2007-03-24  Bruno Haible  <bruno@clisp.org>
36866
36867         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
36868         include isnanl-nolibm.h.
36869
36870 2007-03-24  Bruno Haible  <bruno@clisp.org>
36871
36872         * tests/test-read-file.c (main): Don't produce spurious output for
36873         expected situations. Make the test fail if it encountered unexpected
36874         results.
36875
36876 2007-03-24  Bruno Haible  <bruno@clisp.org>
36877
36878         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
36879         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
36880
36881 2007-03-24  Bruno Haible  <bruno@clisp.org>
36882
36883         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
36884
36885 2007-03-24  Bruno Haible  <bruno@clisp.org>
36886
36887         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
36888         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
36889
36890         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
36891         * modules/utf8-ucs4: Turn into a symbolic link to module
36892         unistr/u8-mbtouc.
36893
36894         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
36895         utf8-ucs4-unsafe.
36896         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
36897         unistr/u8-mbtouc-unsafe.
36898
36899         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
36900         * modules/utf16-ucs4: Turn into a symbolic link to module
36901         unistr/u16-mbtouc.
36902
36903         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
36904         utf16-ucs4-unsafe.
36905         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
36906         unistr/u16-mbtouc-unsafe.
36907
36908         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
36909         * modules/ucs4-utf8: Turn into a symbolic link to module
36910         unistr/u8-ubtomb.
36911
36912         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
36913         * modules/ucs4-utf16: Turn into a symbolic link to module
36914         unistr/u16-ubtomb.
36915
36916 2007-03-24  Bruno Haible  <bruno@clisp.org>
36917
36918         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
36919         Enable the function only if HAVE_INLINE.
36920         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
36921         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
36922         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
36923         Enable the function only if HAVE_INLINE.
36924         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
36925         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
36926         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
36927         Enable the function only if HAVE_INLINE.
36928         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
36929         Enable the function only if HAVE_INLINE.
36930         * modules/utf8-ucs4: Update.
36931         * modules/utf8-ucs4-unsafe: Update.
36932         * modules/utf16-ucs4: Update.
36933         * modules/utf16-ucs4-unsafe: Update.
36934         * modules/ucs4-utf8: Update.
36935         * modules/ucs4-utf16: Update.
36936
36937 2007-03-24  Bruno Haible  <bruno@clisp.org>
36938
36939         * lib/utf8-ucs4.h: Remove file.
36940         * lib/utf8-ucs4-unsafe.h: Remove file.
36941         * lib/utf16-ucs4.h: Remove file.
36942         * lib/utf16-ucs4-unsafe.h: Remove file.
36943         * lib/ucs4-utf8.h: Remove file.
36944         * lib/ucs4-utf16.h: Remove file.
36945         * lib/unistr.h: Include their previous contents.
36946         * m4/utf-ucs4.m4: Remove file.
36947         * m4/ucs4-utf.m4: Remove file.
36948         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
36949         (Depends-on): Add unistr/base.
36950         (configure.ac): Remove gl_UTF_UCS4.
36951         (Makefile.am): Update.
36952         (Include): Change to unistr.h.
36953         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
36954         (Depends-on): Add unistr/base.
36955         (configure.ac): Remove gl_UTF_UCS4.
36956         (Makefile.am): Update.
36957         (Include): Change to unistr.h.
36958         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
36959         (Depends-on): Add unistr/base.
36960         (configure.ac): Remove gl_UTF_UCS4.
36961         (Makefile.am): Update.
36962         (Include): Change to unistr.h.
36963         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
36964         (Depends-on): Add unistr/base.
36965         (configure.ac): Remove gl_UTF_UCS4.
36966         (Makefile.am): Update.
36967         (Include): Change to unistr.h.
36968         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
36969         (Depends-on): Add unistr/base.
36970         (configure.ac): Remove gl_UCS4_UTF.
36971         (Makefile.am): Update.
36972         (Include): Change to unistr.h.
36973         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
36974         (Depends-on): Add unistr/base.
36975         (configure.ac): Remove gl_UCS4_UTF.
36976         (Makefile.am): Update.
36977         (Include): Change to unistr.h.
36978         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
36979         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
36980         utf8-ucs4-unsafe.h.
36981         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
36982         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
36983         utf16-ucs4-unsafe.h.
36984         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
36985         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
36986         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
36987         * lib/unistr/u8-strchr.c: Likewise.
36988         * lib/unistr/u8-strrchr.c: Likewise.
36989         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
36990         * lib/unistr/u16-strchr.c: Likewise.
36991         * lib/unistr/u16-strrchr.c: Likewise.
36992         * lib/striconveh.c: Update.
36993         * lib/linebreak.c: Update.
36994
36995 2007-03-24  Bruno Haible  <bruno@clisp.org>
36996
36997         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
36998         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
36999
37000 2007-03-22  Bruno Haible  <bruno@clisp.org>
37001
37002         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
37003
37004 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
37005
37006         * MODULES.html.sh (File system functions): New module write-any-file.
37007         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
37008         * m4/write-any-file.m4: New files.
37009
37010 2007-03-23  Eric Blake  <ebb9@byu.net>
37011
37012         * gnulib-tool: Rearrange space-tab sequences, since some editors
37013         like to eat them.
37014
37015 2007-03-23  Eric Blake  <ebb9@byu.net>
37016
37017         * lib/version-etc.c (version_etc_va): Update license wording to
37018         be more concise.  Recommended by Richard Stallman.
37019
37020 2007-03-22  Bruno Haible  <bruno@clisp.org>
37021
37022         * lib/poll.c (MSG_PEEK): New fallback definition.
37023
37024 2007-03-22  Bruno Haible  <bruno@clisp.org>
37025
37026         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
37027         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
37028         (main): Update.
37029         Fixes a compilation error on BeOS.
37030
37031 2007-03-22  Bruno Haible  <bruno@clisp.org>
37032
37033         * modules/frexpl-tests: New file.
37034         * tests/test-frexpl.c: New file.
37035
37036         * modules/frexpl: New file.
37037         * m4/frexpl.m4: New file.
37038         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
37039         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
37040         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
37041         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
37042         (Depends-on): Add frexpl. Remove isnanl-nolibm.
37043         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
37044
37045 2007-03-22  Bruno Haible  <bruno@clisp.org>
37046
37047         * lib/frexpl.c: Share code with lib/frexp.c.
37048         * modules/mathl (Files): Add lib/frexp.c.
37049         (Depends-on): Add isnanl-nolibm.
37050
37051 2007-03-22  Bruno Haible  <bruno@clisp.org>
37052
37053         * modules/printf-frexp (Files): Add m4/frexp.m4.
37054         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
37055         only if the found frexp function actually works.
37056
37057 2007-03-22  Bruno Haible  <bruno@clisp.org>
37058
37059         * lib/frexp.c: Remove older implementation that uses divisions.
37060
37061 2007-03-21  Bruno Haible  <bruno@clisp.org>
37062
37063         * modules/frexp-tests: New file.
37064         * tests/test-frexp.c: New file.
37065
37066         * modules/frexp: New file.
37067         * lib/frexp.c: New file.
37068         * m4/frexp.m4: New file.
37069         * lib/math_.h (frexp): New declaration.
37070         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
37071         REPLACE_FREXP.
37072         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
37073
37074 2007-03-21  Bruno Haible  <bruno@clisp.org>
37075
37076         * modules/isnanl-tests: New file.
37077         * tests/test-isnanl.c: New file.
37078
37079         * modules/isnanl: New file.
37080         * lib/isnanl.h: New file.
37081         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
37082         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
37083         gl_FUNC_ISNANL_WORKS.
37084         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
37085         New macros.
37086
37087 2007-03-21  Bruno Haible  <bruno@clisp.org>
37088
37089         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
37090         lib/isnanl.h.
37091         (Include): Update.
37092         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
37093         * lib/vasnprintf.c: Update.
37094         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
37095         tests/test-isnanl.h, remove tests/test-isnanl.c.
37096         (Makefile.am): Update.
37097         * tests/test-isnanl-nolibm.c: New file.
37098         * tests/test-isnanl.h: New file.
37099         * tests/test-isnanl.c: Remove file.
37100
37101 2007-03-21  Jim Meyering  <jim@meyering.net>
37102
37103         When trying to open ".", treat ESTALE like EACCES.
37104         * lib/savewd.c (savewd_save): Resort to forking not just upon
37105         failure with EACCES, but also when errno is ESTALE.
37106
37107 2007-03-20  Bruno Haible  <bruno@clisp.org>
37108
37109         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
37110         Needed on AIX 5.1. Reported by Matthew Woehlke.
37111
37112 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
37113
37114         Suggestions by Bruno Haible:
37115         * lib/acl-internal.h: Include "gettext.h" rather than rolling
37116         our own.
37117         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
37118         * modules/acl (Depends-on): Add gettext.
37119
37120 2007-03-19  Bruno Haible  <bruno@clisp.org>
37121
37122         * modules/iconvme: Remove file.
37123         * lib/iconvme.h: Remove file.
37124         * lib/iconvme.c: Remove file.
37125         * m4/iconvme.m4: Remove file.
37126
37127 2007-03-19  Bruno Haible  <bruno@clisp.org>
37128
37129         * doc/relocatable-maint.texi: Break long shell script line.
37130         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
37131
37132 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
37133
37134         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
37135         handle file_has_acl.
37136         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
37137         * lib/acl.c: Move header inclusions and related macro defns into
37138         lib/acl-internal.h.
37139         (S_ISLNK): Remove defn, since that's now done for us.
37140         (file_has_acl): Move to lib/file-has-acl.c.
37141         Call acl_trivial if available.  This is the crucial part of the fix.
37142         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
37143         shared within the library.  Rewrite a bit, partly to make it compatible
37144         with the GNU coding style.
37145         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
37146         Remove unnecessary double-quotes.
37147         Don't test for acl_to_text; the build will catch that.
37148         Replace acl_entries if it doesn't exist and it is needed.
37149         Check for -lsec and acl_trivial (as used on Solaris 10).
37150         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
37151         lib/file-has-acl.c.
37152         (Depends-on): Add sys_stat, for S_ISLNK.
37153
37154 2007-03-19  Ben Pfaff  <blp@gnu.org>
37155
37156         * doc/gnulib.texi: Fix typos.
37157         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
37158
37159 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
37160
37161         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
37162         If size is zero here, buf must be zero.
37163
37164 2007-03-19  Simon Josefsson  <simon@josefsson.org>
37165
37166         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
37167         <bruno@clisp.org>.
37168
37169 2007-03-18  Bruno Haible  <bruno@clisp.org>
37170
37171         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
37172         Suggested by Eric Blake.
37173
37174 2007-03-18  Ben Pfaff  <blp@gnu.org>
37175
37176         * doc/relocatable.texi: Recommend using as prefix a directory
37177         that does not exist and will never be created.  Based on
37178         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
37179         and others.
37180
37181 2007-03-17  Bruno Haible  <bruno@clisp.org>
37182
37183         * lib/fchownat.c: Include lchown.h.
37184
37185 2007-03-17  Bruno Haible  <bruno@clisp.org>
37186
37187         Fix endless loop when the given allocated size was > INT_MAX.
37188         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
37189         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
37190         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
37191         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
37192         * lib/sprintf.c (sprintf): Likewise.
37193
37194 2007-03-17  Bruno Haible  <bruno@clisp.org>
37195
37196         * tests/test-argp-2.sh (func_compare): Output a context diff.
37197
37198 2007-03-17  Bruno Haible  <bruno@clisp.org>
37199
37200         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
37201         locale's decimal-point character.
37202
37203 2007-03-17  Bruno Haible  <bruno@clisp.org>
37204
37205         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
37206         before comparing it. Needed because on some platforms (e.g. x86) a
37207         'long double' occupies less bytes than sizeof (long double).
37208
37209 2007-03-17  Bruno Haible  <bruno@clisp.org>
37210
37211         * tests/test-crc.c (main): Make printf statements 64-bit clean.
37212         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
37213         * tests/test-getaddrinfo.c (simple): Likewise.
37214         * tests/test-read-file.c (main): Likewise.
37215
37216 2007-03-17  Bruno Haible  <bruno@clisp.org>
37217
37218         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
37219
37220 2007-03-17  Bruno Haible  <bruno@clisp.org>
37221
37222         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
37223         unused variable.
37224
37225 2007-03-17  Bruno Haible  <bruno@clisp.org>
37226
37227         * tests/test-c-strcasecmp.c: Include c-strcase.h.
37228         * tests/test-c-strncasecmp.c: Likewise.
37229
37230 2007-03-17  Bruno Haible  <bruno@clisp.org>
37231
37232         * modules/stdlib (Depends-on): Add unistd.
37233         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
37234         Needed for MacOS X 10.3.
37235
37236 2007-03-17  Bruno Haible  <bruno@clisp.org>
37237
37238         * lib/unistr/u-strdup.h: Include <stdlib.h>.
37239
37240 2007-03-17  Bruno Haible  <bruno@clisp.org>
37241
37242         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
37243
37244 2007-03-17  Bruno Haible  <bruno@clisp.org>
37245
37246         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
37247         to reflect files copied from gnulib (with or without modifications).
37248         Suggested by Jim Meyering.
37249
37250 2007-03-17  Eric Blake  <ebb9@byu.net>
37251
37252         * NEWS: Document stdlib change from 2007-02-18.
37253
37254 2007-03-17  Jim Meyering  <jim@meyering.net>
37255
37256         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
37257         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
37258         someone uses a name containing shell meta-characters.
37259         Reported by Alfred M. Szmidt.
37260
37261         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
37262
37263 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
37264
37265         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
37266         and copy gettext configuration files only if configure.ac contains
37267         a use of AM_GNU_GETTEXT_VERSION.
37268
37269 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
37270
37271         * build-aux/bootstrap (gnulib_name): New variable.
37272         (gnulib_tool_options): Use it.
37273
37274 2007-03-13  Simon Josefsson  <simon@josefsson.org>
37275
37276         * tests/test-des.c: Use new namespace.
37277
37278 2007-03-15  Bruno Haible  <bruno@clisp.org>
37279
37280         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
37281         Reported by James Youngman <jay@gnu.org>.
37282
37283 2007-03-15  Bruno Haible  <bruno@clisp.org>
37284
37285         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
37286         declared prototype. Needed with cc on OSF/1 5.1.
37287
37288 2007-03-15  Bruno Haible  <bruno@clisp.org>
37289
37290         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
37291         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
37292         (struct gl_list_implementation): Add dispose_fn argument to the
37293         'create_empty', 'create' methods.
37294         (struct gl_list_impl_base): Add field 'dispose_fn'.
37295         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
37296         argument.
37297         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
37298         dispose_fn argument.
37299         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
37300         dispose_fn on the dropped values.
37301         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
37302         dispose_fn argument.
37303         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
37304         dropped values.
37305         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
37306         (gl_tree_remove_node): Call dispose_fn on the dropped value.
37307         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
37308         (gl_tree_remove_node): Call dispose_fn on the dropped value.
37309         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
37310         argument.
37311         (gl_tree_list_free): Call dispose_fn on the dropped values.
37312         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
37313         the dropped values.
37314         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
37315         Add dispose_fn argument.
37316         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
37317         Call dispose_fn on the dropped values.
37318         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
37319         Add dispose_fn argument.
37320         (gl_sublist_create): Initialize the 'dispose_fn' field.
37321         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
37322         * tests/test-array_list.c (main): Update.
37323         * tests/test-carray_list.c (main): Update.
37324         * tests/test-avltree_list.c (main): Update.
37325         * tests/test-rbtree_list.c (main): Update.
37326         * tests/test-avltreehash_list.c (main): Update.
37327         * tests/test-rbtreehash_list.c (main): Update.
37328         * tests/test-linked_list.c (main): Update.
37329         * tests/test-linkedhash_list.c (main): Update.
37330         * tests/test-array_oset.c (main): Update.
37331
37332 2007-03-15  Bruno Haible  <bruno@clisp.org>
37333
37334         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
37335         (gl_oset_create_empty): Add dispose_fn argument.
37336         (struct gl_oset_implementation): Add dispose_fn argument to
37337         'create_empty' method.
37338         (struct gl_oset_impl_base): Add dispose_fn field.
37339         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
37340         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
37341         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
37342         values.
37343         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
37344         (gl_tree_oset_free): Call dispose_fn on the dropped values.
37345         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
37346         dropped value.
37347         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
37348         dropped value.
37349         * tests/test-array_oset.c (main): Update.
37350         * tests/test-avltree_oset.c (main): Update.
37351         * tests/test-rbtree_oset.c (main): Update.
37352         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
37353
37354 2007-03-13  Bruno Haible  <bruno@clisp.org>
37355
37356         * tests/test-stdbool.c (i): Update after last patch.
37357
37358 2007-03-12  Bruno Haible  <bruno@clisp.org>
37359
37360         * lib/quotearg.c: Include <wctype.h> early, before the definition of
37361         the iswprint macro. Needed on Solaris 2.5.1.
37362
37363 2007-03-12  Bruno Haible  <bruno@clisp.org>
37364
37365         * tests/test-printf-frexp.c (main): Declare x as volatile.
37366
37367 2007-03-12  Simon Josefsson  <simon@josefsson.org>
37368
37369         * doc/gnulib.texi (Build robot for gnulib): New section.
37370
37371 2007-03-12  Jim Meyering  <jim@meyering.net>
37372
37373         * build-aux/bootstrap: New file.
37374         * build-aux/bootstrap.conf: New file, from coreutils.
37375
37376 2007-03-11  Bruno Haible  <bruno@clisp.org>
37377
37378         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
37379
37380 2007-03-12  Simon Josefsson  <simon@josefsson.org>
37381
37382         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
37383         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
37384         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
37385
37386 2007-03-11  Bruno Haible  <bruno@clisp.org>
37387
37388         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
37389         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
37390
37391 2007-03-11  Bruno Haible  <bruno@clisp.org>
37392
37393         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
37394         formula. Needed for SunPRO C 5.0.
37395
37396 2007-03-11  Bruno Haible  <bruno@clisp.org>
37397
37398         * modules/long-options (Depends-on): Add getopt.
37399
37400 2007-03-11  Bruno Haible  <bruno@clisp.org>
37401
37402         * modules/modechange (Depends-on): Add stdbool.
37403
37404 2007-03-11  Bruno Haible  <bruno@clisp.org>
37405
37406         * modules/i-ring (Depends-on): Add stdbool.
37407
37408 2007-03-11  Bruno Haible  <bruno@clisp.org>
37409
37410         * modules/gc-des (Depends-on): Add stdbool.
37411
37412 2007-03-11  Bruno Haible  <bruno@clisp.org>
37413
37414         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
37415
37416 2007-03-11  Bruno Haible  <bruno@clisp.org>
37417
37418         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
37419
37420 2007-03-11  Bruno Haible  <bruno@clisp.org>
37421
37422         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
37423
37424 2007-03-11  Bruno Haible  <bruno@clisp.org>
37425
37426         * lib/vasnprintf.c (sprintf): Undefine.
37427
37428 2007-03-11  Bruno Haible  <bruno@clisp.org>
37429
37430         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
37431         initializers in SunPRO C and Compaq C compilers.
37432
37433 2007-03-11  Bruno Haible  <bruno@clisp.org>
37434
37435         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
37436         decrementing code ANSI C compliant.
37437
37438 2007-03-11  Bruno Haible  <bruno@clisp.org>
37439
37440         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
37441         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
37442
37443 2007-03-11  Bruno Haible  <bruno@clisp.org>
37444
37445         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
37446         <stdbool.h> substitute doesn't pass.
37447
37448 2007-03-11  Bruno Haible  <bruno@clisp.org>
37449
37450         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
37451
37452 2007-03-11  Bruno Haible  <bruno@clisp.org>
37453
37454         * gnulib-tool (func_create_megatestdir): Create also an autobuild
37455         script, for submission to autobuild.josefsson.org.
37456
37457 2007-03-10  Bruno Haible  <bruno@clisp.org>
37458
37459         * modules/canonicalize-lgpl-tests: New file.
37460         * tests/test-canonicalize-lgpl.sh: New file.
37461         * tests/test-canonicalize-lgpl.c: New file.
37462
37463         * modules/c-strcase-tests: New file.
37464         * tests/test-c-strcase.sh: New file.
37465         * tests/test-c-strcasecmp.c: New file.
37466         * tests/test-c-strncasecmp.c: New file.
37467
37468         * modules/atexit-tests: New file.
37469         * tests/test-atexit.sh: New file.
37470         * tests/test-atexit.c: New file.
37471
37472 2007-03-10  Bruno Haible  <bruno@clisp.org>
37473
37474         * tests/test-binary-io.sh: Use temporary filenames that are not so
37475         likely to clash with those of other tests (in a parallel make).
37476         * tests/test-binary-io.c: Likewise.
37477
37478 2007-03-10  Bruno Haible  <bruno@clisp.org>
37479
37480         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
37481         fallback; use #error instead.
37482         Suggested by Simon Josefsson.
37483
37484 2007-03-10  Bruno Haible  <bruno@clisp.org>
37485
37486         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
37487         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
37488         first and the last.
37489
37490 2007-03-10  Bruno Haible  <bruno@clisp.org>
37491
37492         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
37493
37494 2007-03-10  Bruno Haible  <bruno@clisp.org>
37495
37496         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
37497         "make distcheck".
37498         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
37499         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
37500         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
37501
37502 2007-03-10  Bruno Haible  <bruno@clisp.org>
37503
37504         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
37505         variable.
37506         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
37507         variable.
37508
37509 2007-03-09  Eric Blake  <ebb9@byu.net>
37510         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
37511
37512         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
37513         types are not being provided by gnulib.
37514         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
37515         types are supported.
37516
37517 2007-03-10  Bruno Haible  <bruno@clisp.org>
37518
37519         * lib/stdio_.h (__attribute__): New macro.
37520         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
37521         vsprintf): Specify __attribute__ __format__ for GCC.
37522         Suggested by Eric Blake.
37523
37524 2007-03-09  Bruno Haible  <bruno@clisp.org>
37525
37526         * modules/printf-posix-tests: New file.
37527         * tests/test-printf-posix.sh: New file.
37528         * tests/test-printf-posix.c: New file.
37529
37530         * modules/printf-posix: New file.
37531         * lib/printf.c: New file.
37532         * m4/printf-posix-rpl.m4: New file.
37533         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
37534         REPLACE_PRINTF.
37535         * lib/stdio_.h (printf): New declaration.
37536         (format, __format__, ____printf____, ____scanf____, ____strftime____,
37537         ____strfmon____): New macros.
37538         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
37539         REPLACE_PRINTF.
37540
37541 2007-03-09  Bruno Haible  <bruno@clisp.org>
37542
37543         * tests/test-vasnprintf-posix2.sh: New file.
37544         * tests/test-vasnprintf-posix2.c: New file.
37545         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
37546         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
37547         (Makefile.am): Activate test-vasnprintf-posix2.sh.
37548
37549         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
37550         a locale dependent decimal point, rather than always '.'.
37551
37552 2007-03-09  Eric Blake  <ebb9@byu.net>
37553
37554         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
37555         spite of platforms like Tandem/NSK that define it to -1.
37556
37557 2007-03-08  Bruno Haible  <bruno@clisp.org>
37558
37559         * modules/vprintf-posix-tests: New file.
37560         * tests/test-vprintf-posix.sh: New file.
37561         * tests/test-vprintf-posix.c: New file.
37562         * tests/test-printf-posix.h: New file.
37563
37564         * modules/vprintf-posix: New file.
37565         * lib/vprintf.c: New file.
37566         * m4/vprintf-posix.m4: New file.
37567         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
37568         REPLACE_VPRINTF.
37569         * lib/stdio_.h (vprintf): New declaration.
37570         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
37571         REPLACE_VPRINTF.
37572
37573 2007-03-08  Bruno Haible  <bruno@clisp.org>
37574
37575         * modules/fprintf-posix-tests: New file.
37576         * tests/test-fprintf-posix.sh: New file.
37577         * tests/test-fprintf-posix.c: New file.
37578
37579         * modules/fprintf-posix: New file.
37580         * lib/fprintf.c: New file.
37581         * m4/fprintf-posix.m4: New file.
37582         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
37583         REPLACE_FPRINTF.
37584         * lib/stdio_.h (fprintf): New declaration.
37585         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
37586         REPLACE_FPRINTF.
37587
37588 2007-03-08  Bruno Haible  <bruno@clisp.org>
37589
37590         * modules/vfprintf-posix-tests: New file.
37591         * tests/test-vfprintf-posix.sh: New file.
37592         * tests/test-vfprintf-posix.c: New file.
37593         * tests/test-fprintf-posix.h: New file.
37594         * tests/test-fprintf-posix.out: New file.
37595
37596         * modules/vfprintf-posix: New file.
37597         * lib/vfprintf.c: New file.
37598         * m4/vfprintf-posix.m4: New file.
37599         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
37600         REPLACE_VFPRINTF.
37601         * lib/stdio_.h (vfprintf): New declaration.
37602         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
37603         REPLACE_VFPRINTF.
37604
37605 2007-03-08  Bruno Haible  <bruno@clisp.org>
37606
37607         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
37608
37609 2007-03-08  Bruno Haible  <bruno@clisp.org>
37610
37611         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
37612         instead of 'expr' invocations.
37613         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
37614         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
37615         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
37616         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
37617         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
37618         Suggested by Paul Eggert.
37619
37620 2007-03-08  Bruno Haible  <bruno@clisp.org>
37621
37622         * modules/fseterr-tests: New file.
37623         * tests/test-fseterr.c: New file.
37624
37625         * modules/fseterr: New file.
37626         * lib/fseterr.h: New file.
37627         * lib/fseterr.c: New file.
37628
37629 2007-03-08  Bruno Haible  <bruno@clisp.org>
37630
37631         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
37632         * lib/getopt_.h: Likewise.
37633         * lib/mbswidth.h: Likewise.
37634         * lib/setenv.h: Likewise.
37635         * lib/vasnprintf.h: Likewise.
37636         * lib/vasprintf.h: Likewise.
37637         * lib/verror.h: Likewise.
37638         * lib/xsetenv.h: Likewise.
37639         * lib/xvasprintf.h: Likewise.
37640
37641 2007-03-08  Jim Meyering  <jim@meyering.net>
37642
37643         * users.txt: Add parted.
37644
37645         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
37646
37647 2007-03-07  Bruno Haible  <bruno@clisp.org>
37648
37649         * m4/printf.m4: Make the shell script snippets copy&pastable.
37650
37651 2007-03-02  Bruno Haible  <bruno@clisp.org>
37652
37653         * lib/netinet_in_.h: New file.
37654         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
37655         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
37656         * modules/netinet_in (Files): Add lib/netinet_in_.h.
37657         (Depends-on): Add absolute-header.
37658         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
37659         into netinet/in.h.
37660
37661 2007-03-03  Bruno Haible  <bruno@clisp.org>
37662
37663         * lib/sys_select_.h: New file.
37664         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
37665         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
37666         * modules/sys_select (Files): Add lib/sys_select_.h.
37667         (Depends-on): Add absolute-header.
37668         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
37669         into sys/select.h.
37670
37671 2007-03-02  Bruno Haible  <bruno@clisp.org>
37672
37673         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
37674         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
37675         values.
37676         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
37677         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
37678         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
37679         * modules/sys_socket (Depends-on): Add absolute-header.
37680         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
37681         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
37682         (Include): Remove requirement of inclusion of <sys/types.h>.
37683
37684 2007-03-02  Bruno Haible  <bruno@clisp.org>
37685
37686         * lib/byteswap_.h (bswap_32): Fix formula.
37687
37688 2007-03-06  Bruno Haible  <bruno@clisp.org>
37689
37690         * modules/sprintf-posix-tests: New file.
37691         * tests/test-sprintf-posix.c: New file.
37692
37693         * modules/sprintf-posix: New file.
37694         * lib/sprintf.c: New file.
37695         * m4/sprintf-posix.m4: New file.
37696         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
37697         REPLACE_SPRINTF.
37698         * lib/stdio_.h (sprintf): New declaration.
37699         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
37700         REPLACE_SPRINTF.
37701
37702 2007-03-06  Bruno Haible  <bruno@clisp.org>
37703
37704         * modules/vsprintf-posix-tests: New file.
37705         * tests/test-vsprintf-posix.c: New file.
37706         * tests/test-sprintf-posix.h: New file.
37707
37708         * modules/vsprintf-posix: New file.
37709         * lib/vsprintf.c: New file.
37710         * m4/vsprintf-posix.m4: New file.
37711         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
37712         REPLACE_VSPRINTF.
37713         * lib/stdio_.h (vsprintf): New declaration.
37714         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
37715         REPLACE_VSPRINTF.
37716
37717 2007-03-06  Bruno Haible  <bruno@clisp.org>
37718
37719         * modules/vsnprintf (Depend-on): Remove minmax.
37720
37721 2007-03-06  Bruno Haible  <bruno@clisp.org>
37722
37723         * modules/snprintf-posix-tests: New file.
37724         * tests/test-snprintf-posix.c: New file.
37725
37726         * modules/snprintf-posix: New file.
37727         * m4/snprintf-posix.m4: New file.
37728         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
37729         gl_FUNC_SNPRINTF.
37730         (gl_FUNC_SNPRINTF): Invoke it.
37731         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
37732         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
37733         is set.
37734         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
37735
37736 2007-03-06  Bruno Haible  <bruno@clisp.org>
37737
37738         * modules/vsnprintf-posix-tests: New file.
37739         * tests/test-vsnprintf-posix.c: New file.
37740         * tests/test-snprintf-posix.h: New file.
37741
37742         * modules/vsnprintf-posix: New file.
37743         * m4/vsnprintf-posix.m4: New file.
37744         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
37745         gl_FUNC_VSNPRINTF.
37746         (gl_FUNC_VSNPRINTF): Invoke it.
37747         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
37748         * lib/stdio_.h (vsnprintf): Define as a replacement if
37749         REPLACE_VSNPRINTF is set.
37750         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
37751
37752 2007-03-06  Bruno Haible  <bruno@clisp.org>
37753
37754         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
37755         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
37756
37757 2007-03-06  Bruno Haible  <bruno@clisp.org>
37758
37759         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
37760         (asinl): Declare also if HAVE_DECL_ASINL is set.
37761         (atanl): Declare also if HAVE_DECL_ATANL is set.
37762         (ceill): Declare also if HAVE_DECL_CEILL is set.
37763         (cosl): Declare also if HAVE_DECL_COSL is set.
37764         (expl): Declare also if HAVE_DECL_EXPL is set.
37765         (floorl): Declare also if HAVE_DECL_FLOORL is set.
37766         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
37767         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
37768         (logl): Declare also if HAVE_DECL_LOGL is set.
37769         (sinl): Declare also if HAVE_DECL_SINL is set.
37770         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
37771         (tanl): Declare also if HAVE_DECL_TANL is set.
37772         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
37773         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
37774         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
37775         declaration of frexpl, ldexpl.
37776         * modules/printf-frexpl (Depends-on): Add math.
37777         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
37778
37779 2007-03-05  Bruno Haible  <bruno@clisp.org>
37780
37781         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
37782         frexpl and ldexpl are declared.
37783         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
37784
37785 2007-03-05  Bruno Haible  <bruno@clisp.org>
37786
37787         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
37788         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
37789
37790 2007-03-05  Bruno Haible  <bruno@clisp.org>
37791
37792         * lib/stdio_.h: Include <stddef.h>.
37793
37794 2007-03-05  Bruno Haible  <bruno@clisp.org>
37795
37796         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
37797
37798 2007-03-05  Bruno Haible  <bruno@clisp.org>
37799
37800         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
37801         NetBSD 4, from Ralf Wildenhues.
37802
37803 2007-03-04  Bruno Haible  <bruno@clisp.org>
37804
37805         * lib/vasprintf.h: Update #if logic for the case when the functions
37806         exist but are overridden.
37807
37808 2007-03-04  Bruno Haible  <bruno@clisp.org>
37809
37810         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
37811         implementations: glibc-2.4 and MacOS X 10.3.
37812         * tests/test-vasnprintf-posix.c (test_function): Test also the case
37813         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
37814         * tests/test-vasprintf-posix.c (test_function): Likewise.
37815
37816 2007-03-04  Bruno Haible  <bruno@clisp.org>
37817
37818         * modules/vasprintf-posix-tests: New file.
37819         * tests/test-vasprintf-posix.c: New file.
37820
37821         * modules/vasprintf-posix: New file.
37822         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
37823         defined.
37824         * m4/vasprintf-posix.m4: New file.
37825         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
37826         gl_FUNC_VASPRINTF.
37827         (gl_FUNC_VASPRINTF): Invoke it.
37828         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
37829         here.
37830         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
37831
37832 2007-03-04  Bruno Haible  <bruno@clisp.org>
37833
37834         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
37835         REPLACE_GETTIMEOFDAY.
37836         * modules/sys_time (Makefile.am): Likewise.
37837         * m4/sys_time_h.m4: Likewise.
37838         * m4/gettimeofday.m4: Likewise.
37839
37840 2007-03-04  Bruno Haible  <bruno@clisp.org>
37841
37842         * modules/vasnprintf-posix-tests: New file.
37843         * tests/test-vasnprintf-posix.c: New file.
37844
37845         * modules/vasnprintf-posix: New file.
37846         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
37847         printf-frexpl.h.
37848         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
37849         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
37850         REPLACE_VASNPRINTF is defined.
37851         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
37852         gl_FUNC_VASNPRINTF.
37853         (gl_FUNC_VASNPRINTF): Invoke it.
37854         * m4/vasnprintf-posix.m4: New file.
37855         * m4/printf.m4: New file.
37856
37857 2007-03-04  Bruno Haible  <bruno@clisp.org>
37858
37859         Compile progreloc.c only if --enable-relocatable is specified.
37860         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
37861         if --enable-relocatable was specified.
37862         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
37863         lib_SOURCES.
37864
37865 2007-03-04  Jim Meyering  <jim@meyering.net>
37866
37867         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
37868         Use it consistently, rather than enumerating errno constants.
37869
37870 2007-03-04  Bruno Haible  <bruno@clisp.org>
37871
37872         * modules/xvasprintf-tests: New file.
37873         * tests/test-xvasprintf.c: New file.
37874
37875         * modules/vasprintf-tests: New file.
37876         * tests/test-vasprintf.c: New file.
37877
37878         * modules/vasnprintf-tests: New file.
37879         * tests/test-vasnprintf.c: New file.
37880
37881         * modules/vsnprintf-tests: New file.
37882         * tests/test-vsnprintf.c: New file.
37883
37884         * modules/snprintf-tests: New file.
37885         * tests/test-snprintf.c: New file.
37886
37887 2007-03-04  Bruno Haible  <bruno@clisp.org>
37888
37889         Compile relocatable.c only if --enable-relocatable is specified.
37890         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
37891         gl_RELOCATABLE_LIBRARY.
37892         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
37893         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
37894         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
37895         gl_RELOCATABLE_LIBRARY.
37896         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
37897         (Makefile.am): Remove lib_SOURCES.
37898         * modules/relocatable-lib-lgpl (configure.ac): Invoke
37899         gl_RELOCATABLE_LIBRARY.
37900         (Makefile.am): Remove lib_SOURCES.
37901         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
37902         always.
37903         * modules/relocatable-prog-wrapper (configure.ac): Invoke
37904         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
37905
37906 2007-03-04  Bruno Haible  <bruno@clisp.org>
37907
37908         * modules/argmatch-tests: New file.
37909         * tests/test-argmatch.c: New file.
37910
37911         * tests/test-allocsa.c (main): Halve the number of loop runs.
37912
37913         * modules/alloca-opt-tests: New file.
37914         * tests/test-alloca-opt.c: New file.
37915
37916 2007-03-04  Jim Meyering  <jim@meyering.net>
37917
37918         Work around difference between Linux ACLs and Solaris 10 ZFS.
37919         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
37920         for EINVAL.
37921
37922 2007-03-03  Bruno Haible  <bruno@clisp.org>
37923
37924         * modules/relocatable-prog (Depends-on): Add back progreloc's
37925         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
37926
37927 2007-03-03  Bruno Haible  <bruno@clisp.org>
37928
37929         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
37930         * modules/relocatable-lib: New file.
37931
37932 2007-03-03  Bruno Haible  <bruno@clisp.org>
37933
37934         * modules/relocatable-prog: Renamed from modules/relocatable.
37935         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
37936
37937 2007-03-03  Bruno Haible  <bruno@clisp.org>
37938
37939         * modules/relocatable-script (Files): Add doc/relocatable.texi,
37940         m4/relocatable-lib.m4.
37941         (Depends-on): Remove 'relocatable'.
37942         (configure.ac): Add gl_RELOCATABLE_NOP.
37943
37944 2007-03-03  Bruno Haible  <bruno@clisp.org>
37945
37946         * modules/relocatable-prog-wrapper: New file.
37947         * modules/relocatable (Depends-on): Add it. Remove all other
37948         dependencies except progname.
37949         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
37950
37951         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
37952         (gl_FUNC_STRERROR): Nop.
37953         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
37954
37955         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
37956         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
37957
37958         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
37959         (gl_FUNC_READLINK): Update.
37960
37961         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
37962
37963 2007-03-03  Bruno Haible  <bruno@clisp.org>
37964
37965         * lib/xreadlink.c: Include <unistd.h> unconditionally.
37966         * modules/xreadlink (Depends-on): Add unistd.
37967         * modules/xreadlink-with-size (Depends-on): Likewise.
37968
37969 2007-03-03  Bruno Haible  <bruno@clisp.org>
37970
37971         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
37972         extracted from gt_FUNC_SETENV.
37973         (gt_FUNC_SETENV): Remove macro.
37974         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
37975         remove gt_FUNC_SETENV.
37976
37977 2007-03-03  Bruno Haible  <bruno@clisp.org>
37978
37979         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
37980         ENABLE_RELOCATABLE here.
37981         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
37982
37983 2007-03-03  Bruno Haible  <bruno@clisp.org>
37984
37985         * modules/rbtreehash-list-tests (Depends-on): Add progname.
37986         * tests/test-rbtreehash_list.c: Include progname.h.
37987         (main): Call set_program_name.
37988
37989         * modules/rbtree-oset-tests (Depends-on): Add progname.
37990         * tests/test-rbtree_oset.c: Include progname.h.
37991         (main): Call set_program_name.
37992
37993         * modules/rbtree-list-tests (Depends-on): Add progname.
37994         * tests/test-rbtree_list.c: Include progname.h.
37995         (main): Call set_program_name.
37996
37997         * modules/linked-list-tests (Depends-on): Add progname.
37998         * tests/test-linked_list.c: Include progname.h.
37999         (main): Call set_program_name.
38000
38001 2007-03-03  Bruno Haible  <bruno@clisp.org>
38002
38003         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
38004         All uses of __restrict changed to _Restrict_.
38005         * lib/glob_.h (__restrict): Remove macro.
38006
38007 2007-03-02  Bruno Haible  <bruno@clisp.org>
38008
38009         * modules/gettext (configure.ac): Require gettext infrastructure
38010         from version 0.16.1.
38011
38012 2007-03-02  Bruno Haible  <bruno@clisp.org>
38013
38014         * modules/linkedhash-list-tests (Depends-on): Add progname.
38015         * tests/test-linkedhash_list.c: Include progname.h.
38016         (main): Call set_program_name.
38017
38018         * modules/carray-list-tests (Depends-on): Add progname.
38019         * tests/test-carray_list.c: Include progname.h.
38020         (main): Call set_program_name.
38021
38022         * modules/avltreehash-list-tests (Depends-on): Add progname.
38023         * tests/test-avltreehash_list.c: Include progname.h.
38024         (main): Call set_program_name.
38025
38026         * modules/avltree-oset-tests (Depends-on): Add progname.
38027         * tests/test-avltree_oset.c: Include progname.h.
38028         (main): Call set_program_name.
38029
38030         * modules/avltree-list-tests (Depends-on): Add progname.
38031         * tests/test-avltree_list.c: Include progname.h.
38032         (main): Call set_program_name.
38033
38034         * modules/array-oset-tests (Depends-on): Add progname.
38035         * tests/test-array_oset.c: Include progname.h.
38036         (main): Call set_program_name.
38037
38038         * modules/array-list-tests (Depends-on): Add progname.
38039         * tests/test-array_list.c: Include progname.h.
38040         (main): Call set_program_name.
38041
38042         * modules/argp-tests (Depends-on): Add progname.
38043         * tests/test-argp.c: Include argp.h first. Include progname.h.
38044         (main): Call set_program_name.
38045
38046 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
38047
38048         * doc/gnulib-tool.texi (Initial import): Reword description of
38049         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
38050         limited effect even if defined after the first system include.
38051
38052 2007-03-01  Bruno Haible  <bruno@clisp.org>
38053
38054         * build-aux/config.libpath: Update to libtool-1.5.22.
38055         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38056
38057 2007-03-01  Bruno Haible  <bruno@clisp.org>
38058
38059         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
38060         foo_CFLAGS.
38061         Reported by Ralf Wildenhues.
38062
38063 2007-03-01  Bruno Haible  <bruno@clisp.org>
38064
38065         * build-aux/install-reloc: Remove object files left over by some
38066         compilers.
38067         Reported by Ralf Wildenhues.
38068
38069 2007-03-01  Bruno Haible  <bruno@clisp.org>
38070
38071         * build-aux/install-reloc: Break long lines.
38072
38073 2007-03-01  Bruno Haible  <bruno@clisp.org>
38074
38075         * doc/relocatable.texi: Document that it may not work on OpenBSD.
38076         Reported by Ralf Wildenhues.
38077
38078 2007-03-01  Bruno Haible  <bruno@clisp.org>
38079
38080         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
38081         include ordering constraints.
38082
38083 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
38084
38085         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
38086         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
38087         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
38088         as another example.
38089         * lib/time_.h: Fix misspelling.
38090         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
38091         Require gl_HEADER_TIME_H_DEFAULTS.
38092         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
38093         * m4/time_r.m4 (gl_TIME_R): Likewise.
38094         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
38095
38096 2007-03-01  Bruno Haible  <bruno@clisp.org>
38097
38098         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
38099         * m4/utimens.m4 (gl_UTIMENS): Likewise.
38100
38101 2007-03-01  Jim Meyering  <jim@meyering.net>
38102
38103         * modules/xreadlink (Maintainer): Add my name.
38104         * modules/xreadlink-with-size (Depends-on): Alphabetize.
38105
38106 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
38107             Bruno Haible  <bruno@clisp.org>
38108
38109         * build-aux/install-reloc: Compile also c-ctype.c.
38110         * build-aux/relocatable.sh.in: New file.
38111         * doc/relocatable.texi: New file.
38112         * doc/relocatable-maint.texi: New file.
38113         * doc/gnulib.texi: Include relocatable-maint.texi.
38114         * lib/progreloc.c: Include unistd.h unconditionally.
38115         * lib/relocwrapper.c: Include unistd.h unconditionally.
38116         Include c-ctype.h.
38117         (add_dotbin): Use c_tolower.
38118         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
38119         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
38120         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
38121         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
38122         to m4/relocatable-lib.m4.
38123         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
38124         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
38125         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
38126         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
38127         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
38128         * modules/relocatable: New file.
38129         * modules/relocatable-lib: New file.
38130         * modules/relocatable-script: New file.
38131
38132 2007-02-28  Bruno Haible  <bruno@clisp.org>
38133
38134         Import --enable-relocatable infrastructure.
38135         * build-aux/config.libpath: New file, from GNU gettext.
38136         * build-aux/install-reloc: New file, from GNU gettext.
38137         * build-aux/reloc-ldflags: New file, from GNU gettext.
38138         * lib/relocatable.h: New file, from GNU gettext.
38139         * lib/relocatable.c: New file, from GNU gettext.
38140         * lib/relocwrapper.c: New file, from GNU gettext.
38141         * m4/relocatable.m4: New file, from GNU gettext.
38142
38143 2007-02-28  Bruno Haible  <bruno@clisp.org>
38144
38145         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
38146
38147         * modules/xreadlink: New file, from GNU gettext with modifications.
38148         * lib/xreadlink.c: New file, from GNU gettext.
38149         * lib/xreadlink.h: Add comments.
38150         (xreadlink): New declaration.
38151
38152         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
38153         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
38154         lib/xreadlink-with-size.c.
38155         (configure.ac): Remove gl_XREADLINK invocation.
38156         (Makefile.am): Augment lib_SOURCES.
38157         * m4/xreadlink.m4: Remove file.
38158         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
38159         (xreadlink_with_size): Renamed from xreadink.
38160         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
38161         * modules/canonicalize (Depends-on): Replace xreadlink with
38162         xreadlink-with-size.
38163         * lib/canonicalize.c (canonicalize_filename_mode): Update.
38164
38165 2007-02-25  Jim Meyering  <jim@meyering.net>
38166
38167         * build-aux/announce-gen: When complaining about excess arguments,
38168         list them.
38169
38170 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
38171
38172         * README: Document signed integer overflow situation more
38173         accurately.
38174
38175 2007-02-25  Bruno Haible  <bruno@clisp.org>
38176
38177         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
38178         'a' or 'A' conversion.
38179
38180 2007-02-25  Bruno Haible  <bruno@clisp.org>
38181
38182         * modules/filename: Renamed from modules/pathname.
38183         (Files): Replace lib/pathname.h with lib/filename.h. Replace
38184         lib/concatpath.c with lib/concat-filename.c.
38185         (Makefile.am): Update.
38186         (Include): Replace pathname.h with filename.h.
38187         * lib/filename.h: Renamed from lib/pathname.h.
38188         (concatenated_filename): Renamed from concatenated_pathname.
38189         * lib/concat-filename.c: Renamed from lib/concatpath.c.
38190         (concatenated_filename): Renamed from concatenated_pathname.
38191         * lib/findprog.c: Include filename.h instead of pathname.h.
38192         (find_in_path): Update.
38193         * lib/javacomp.c: Include filename.h instead of pathname.h.
38194         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
38195         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
38196         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
38197         is_oldgcj_14_13_usable, is_javac_usable): Update.
38198         * lib/javaexec.c: Include filename.h instead of pathname.h.
38199         (execute_java_class): Update.
38200         * modules/findprog: Update.
38201         * modules/javacomp: Update.
38202         * modules/javaexec: Update.
38203         * MODULES.html.sh (File system functions): Add 'filename', remove
38204         'pathname'.
38205
38206 2007-02-25  Bruno Haible  <bruno@clisp.org>
38207
38208         * modules/printf-frexpl-tests: New file.
38209         * tests/test-printf-frexpl.c: New file.
38210
38211         * modules/printf-frexpl: New file.
38212         * lib/printf-frexpl.h: New file.
38213         * lib/printf-frexpl.c: New file.
38214         * m4/printf-frexpl.m4: New file.
38215
38216 2007-02-25  Bruno Haible  <bruno@clisp.org>
38217
38218         * modules/printf-frexp-tests: New file.
38219         * tests/test-printf-frexp.c: New file.
38220
38221         * modules/printf-frexp: New file.
38222         * lib/printf-frexp.h: New file.
38223         * lib/printf-frexp.c: New file.
38224         * m4/printf-frexp.m4: New file.
38225
38226 2007-02-25  Bruno Haible  <bruno@clisp.org>
38227
38228         Assume automake >= 1.10 for the tests.
38229         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
38230         * modules/arctwo-tests: Likewise.
38231         * modules/argp-tests: Likewise.
38232         * modules/avltree-list-tests: Likewise.
38233         * modules/avltree-oset-tests: Likewise.
38234         * modules/avltreehash-list-tests: Likewise.
38235         * modules/carray-list-tests: Likewise.
38236         * modules/crc-tests: Likewise.
38237         * modules/des-tests: Likewise.
38238         * modules/gc-arcfour-tests: Likewise.
38239         * modules/gc-arctwo-tests: Likewise.
38240         * modules/gc-des-tests: Likewise.
38241         * modules/gc-hmac-md5-tests: Likewise.
38242         * modules/gc-hmac-sha1-tests: Likewise.
38243         * modules/gc-md2-tests: Likewise.
38244         * modules/gc-md4-tests: Likewise.
38245         * modules/gc-md5-tests: Likewise.
38246         * modules/gc-pbkdf2-sha1-tests: Likewise.
38247         * modules/gc-rijndael-tests: Likewise.
38248         * modules/gc-sha1-tests: Likewise.
38249         * modules/gc-tests: Likewise.
38250         * modules/getaddrinfo-tests: Likewise.
38251         * modules/hmac-md5-tests: Likewise.
38252         * modules/hmac-sha1-tests: Likewise.
38253         * modules/linked-list-tests: Likewise.
38254         * modules/linkedhash-list-tests: Likewise.
38255         * modules/lock-tests: Likewise.
38256         * modules/md2-tests: Likewise.
38257         * modules/md4-tests: Likewise.
38258         * modules/md5-tests: Likewise.
38259         * modules/rbtree-list-tests: Likewise.
38260         * modules/rbtree-oset-tests: Likewise.
38261         * modules/rbtreehash-list-tests: Likewise.
38262         * modules/read-file-tests: Likewise.
38263         * modules/rijndael-tests: Likewise.
38264         * modules/stdint-tests: Likewise.
38265         * modules/tls-tests: Likewise.
38266
38267 2007-02-24  Bruno Haible  <bruno@clisp.org>
38268
38269         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
38270         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
38271         function; instead check whether isnan with a double argument links.
38272         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
38273         function; instead check whether isnan with a 'long double' argument
38274         links.
38275         Reported by Eric Blake <ebb9@byu.net>.
38276
38277 2007-02-24  Bruno Haible  <bruno@clisp.org>
38278
38279         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
38280         defined.
38281         * lib/isnanl.c: Remove all code. Just include isnan.c.
38282         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
38283
38284 2007-02-25  Jim Meyering  <jim@meyering.net>
38285
38286         Avoid conflicting types for 'unsetenv' on FreeBSD.
38287         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
38288         conflicting with FreeBSD's (5.0 and 6.1) function declaration
38289         in stdlib.h.
38290
38291 2007-02-24  Bruno Haible  <bruno@clisp.org>
38292
38293         * modules/isnanl-nolibm-tests: New file.
38294         * tests/test-isnanl.c: New file.
38295
38296         * modules/isnanl-nolibm: New file.
38297         * lib/isnanl.h: New file.
38298         * lib/isnanl.c: New file.
38299         * m4/isnanl.m4: New file.
38300
38301 2007-02-24  Bruno Haible  <bruno@clisp.org>
38302
38303         * modules/isnan-nolibm-tests: New file.
38304         * tests/test-isnan.c: New file.
38305
38306         * modules/isnan-nolibm: New file.
38307         * lib/isnan.h: New file.
38308         * lib/isnan.c: New file.
38309         * m4/isnan.m4: New file.
38310
38311 2007-02-24  Bruno Haible  <bruno@clisp.org>
38312
38313         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
38314         assume that an exponent fits in 20 bits.
38315
38316 2007-02-24  Jim Meyering  <jim@meyering.net>
38317
38318         * m4/regex.m4: Update the description of the configure-time option,
38319         --without-included-regex, to state accurately what the defaults are,
38320         and perhaps to give people an idea why using this option is risky.
38321
38322 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
38323
38324         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
38325         loops on small arguments.  This attempts to avoid the problem
38326         Bruno Haible reported for AIX 4.3.2 in
38327         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
38328
38329 2007-02-23  Bruno Haible  <bruno@clisp.org>
38330
38331         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
38332         Needed for help2man.
38333
38334 2007-02-23  Karl Berry  <karl@gnu.org>
38335
38336         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
38337         exists, foo.h should be cvs-ignored, not committed.
38338
38339 2007-02-23  Eric Blake  <ebb9@byu.net>
38340
38341         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
38342         * lib/stat-time.h (includes): Likewise.
38343         * lib/utimecmp.c (includes): Likewise.
38344         * lib/utimens.h (includes): Likewise.
38345         * lib/getdate.y (includes): Also include "timespec.h" for use
38346         internal to the module.
38347         * modules/utimens (Depends-on): Revert yesterday's patch.
38348         * modules/nanosleep (Depends-on): Add missing dependency.
38349
38350 2007-02-22  Bruno Haible  <bruno@clisp.org>
38351
38352         * lib/glob.c: Don't include getlogin_r.h.
38353
38354 2007-02-22  Jim Meyering  <jim@meyering.net>
38355
38356         * modules/utimens (Depends-on): Add timespec, required for
38357         utimens.h's inclusion of timespec.h.
38358
38359 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
38360
38361         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
38362         long unreadable paths in GNU/Linux.  Problem reported by Andreas
38363         Schwab in
38364         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
38365         I'll try to think of a better way to fix the Solaris problem.
38366
38367         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
38368         like glibc; on Solaris 10, it fails with errno == EINVAL.
38369         POSIX says the behavior is unspecified if the first argument is NULL,
38370         so play it safe and never pass NULL to the system getcwd.
38371
38372 2007-02-21  Jim Meyering  <jim@meyering.net>
38373
38374         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
38375         of gettimeofday.  It would conflict with the one now always
38376         provided via sys_time_.h.  Reported by Matthew Woehlke, as
38377         an IRIX 6.5 build failure.
38378
38379 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
38380
38381         Minor fixups to port to Solaris 10 with Sun C 5.8.
38382         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
38383         * modules/getcwd (Depends-on): Add dirfd.
38384         * lib/putenv.c (putenv): #undef it.
38385         (rpl_putenv): New decl.
38386         (malloc, free): Include <stdlib.h> rather than prototyping separately.
38387
38388 2007-02-20  Bruno Haible  <bruno@clisp.org>
38389
38390         * modules/stdio-tests: New file.
38391         * tests/test-stdio.c: New file.
38392
38393         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
38394         (Depends-on): Add stdio.
38395         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
38396         (Include): Use <stdio.h> instead of vsnprintf.h.
38397         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
38398         HAVE_DECL_VSNPRINTF.
38399         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
38400
38401         * modules/snprintf (Files): Remove lib/snprintf.h.
38402         (Depends-on): Add stdio.
38403         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
38404         (Include): Use <stdio.h> instead of snprintf.h.
38405         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
38406         HAVE_DECL_SNPRINTF.
38407         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
38408         * lib/getaddrinfo.c: Likewise.
38409
38410         * modules/stdio: New file.
38411         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
38412         * lib/snprintf.h: Remove file.
38413         * lib/vsnprintf.h: Remove file.
38414         * lib/.cppi-disable: Remove snprintf.h.
38415         * m4/stdio_h.m4: New file.
38416         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
38417
38418 2007-02-20  Jim Meyering  <jim@meyering.net>
38419
38420         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
38421         used by e.g., mingw.  From Bruno Haible.
38422
38423 2007-02-19  Bruno Haible  <bruno@clisp.org>
38424
38425         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
38426         warnings.
38427         Reported by Ben Pfaff <blp@cs.stanford.edu>.
38428
38429 2007-02-19  Bruno Haible  <bruno@clisp.org>
38430
38431         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
38432         from mingw users.
38433
38434 2007-02-19  Bruno Haible  <bruno@clisp.org>
38435
38436         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
38437         warnings.
38438         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
38439
38440 2007-02-19  Jim Meyering  <jim@meyering.net>
38441
38442         Don't use FD after a successful "fdopendir (fd)".
38443         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
38444         Reset it by calling dirfd on the just-obtained DIR*.
38445
38446         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
38447         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
38448
38449 2007-02-18  Bruno Haible  <bruno@clisp.org>
38450
38451         * lib/readlink.c: Include <unistd.h>.
38452         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
38453         HAVE_READLINK.
38454         * modules/readlink (Depends-on): Add unistd.
38455         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38456         (Include): Add <unistd.h>.
38457
38458         * lib/getlogin_r.h: Remove file.
38459         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
38460         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
38461         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
38462         HAVE_DECL_GETLOGIN_R.
38463         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
38464         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38465         (Include): Use <unistd.h> instead of getlogin_r.h.
38466
38467         * lib/getcwd.h: Remove file.
38468         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
38469         * lib/xgetcwd.c: Likewise.
38470         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
38471         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
38472         * modules/getcwd (Files): Remove lib/getcwd.h.
38473         (Depends-on): Add unistd.
38474         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38475         (Include): Use <unistd.h> instad of getcwd.h.
38476
38477         * lib/ftruncate.c: Include <unistd.h> first.
38478         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
38479         Set HAVE_FTRUNCATE.
38480         * modules/ftruncate (Depends-on): Add unistd.
38481         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38482
38483         * lib/fchdir.c: Include <unistd.h> first.
38484         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
38485         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
38486         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
38487         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38488         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
38489
38490         * lib/dup2.c: Include <unistd.h> first.
38491         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
38492         HAVE_DUP2.
38493         * modules/dup2 (Depends-on): Add unistd.
38494         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38495
38496         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
38497         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
38498         REPLACE_CHOWN. Don't define chown as a macro here.
38499         * modules/chown (Depends-on): Add unistd.
38500         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38501
38502         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
38503         Add definition for GL_LINK_WARNING.
38504         (chown, dup2): New declarations.
38505         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
38506         link warning.
38507         (ftruncate): New declaration.
38508         (getcwd): New declaration, taken from old getcwd.h.
38509         (getlogin_r): New declaration, taken from old getlogin_r.h.
38510         (readlink): New declaration.
38511         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
38512         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
38513         (gl_PREREQ_UNISTD): Remove macro.
38514         (gl_UNISTD_MODULE_INDICATOR): New macro.
38515         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
38516         many new variables. Don't set UNISTD_H.
38517         * modules/unistd (Description): Change.
38518         (Depends-on): Add link-warning.
38519         (configure.ac): Update.
38520         (Makefile.am): Create unistd.h always. Substitute many new variables
38521         into it.
38522
38523 2007-02-18  Bruno Haible  <bruno@clisp.org>
38524
38525         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
38526         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
38527         HAVE_GETSUBOPT.
38528         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
38529         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
38530         * lib/getsubopt.h: Remove file.
38531         * modules/getsubopt (Files): Remove lib/getsubopt.h.
38532         (Depends-on): Add stdlib.
38533         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
38534         (Includes): Use <stdlib.h> instead of getsubopt.h.
38535         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
38536         Set HAVE_GETSUBOPT.
38537         * lib/getsubopt.c: Don't include getsubopt.h.
38538
38539 2007-02-18  Bruno Haible  <bruno@clisp.org>
38540
38541         * modules/fchdir (Depends-on): Add dup2.
38542
38543 2007-02-18  Bruno Haible  <bruno@clisp.org>
38544
38545         * lib/stdlib_.h: Handle glibc's special invocation convention
38546         specially.
38547
38548 2007-02-18  Bruno Haible  <bruno@clisp.org>
38549
38550         * modules/stdlib-tests: New file.
38551         * tests/test-stdlib.c: New file.
38552
38553         * modules/mkstemp (Files): Remove lib/mkstemp.h.
38554         (Depends-on): Add stdlib.
38555         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
38556         (Includes): Use <stdlib.h> instead of mkstemp.h.
38557         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
38558         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
38559         * lib/mkstemp.c: Don't include mkstemp.h.
38560         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
38561         * lib/stdlib--.h: Don't include mkstemp.h.
38562
38563         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
38564         (Depends-on): Add stdlib.
38565         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
38566         (Includes): Use <stdlib.h> instead of mkdtemp.h.
38567         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
38568         HAVE_MKDTEMP.
38569         * lib/mkdtemp.c: Don't include mkdtemp.h.
38570         * lib/clean-temp.c: Don't include mkdtemp.h.
38571
38572         * modules/exit (Files): Remove lib/exit.h.
38573         (Depends-on): Add stdlib.
38574         (Makefile.am): Remove lib_SOURCES.
38575         (Include): Use <stdlib.h> instead of exit.h.
38576         * lib/argmatch.c: Don't include exit.h.
38577         * lib/execute.c: Likewise.
38578         * lib/pagealign_alloc.c: Likewise.
38579         * lib/pipe.c: Likewise.
38580         * lib/wait-process.c: Likewise.
38581         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
38582         * lib/exitfail.c: Likewise.
38583         * lib/savewd.c: Likewise.
38584         * lib/xsetenv.c: Likewise.
38585
38586         * modules/stdlib: New file.
38587         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
38588         and extra comments about mkstemp().
38589         * lib/exit.h: Remove file.
38590         * lib/mkdtemp.h: Remove file.
38591         * lib/mkstemp.h: Remove file.
38592         * m4/stdlib_h.m4: New file.
38593         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
38594
38595 2007-02-18  Bruno Haible  <bruno@clisp.org>
38596
38597         * modules/math-tests: New file.
38598         * tests/test-math.c: New file.
38599
38600         * modules/math: New file.
38601         * modules/mathl (Files): Remove lib/mathl.h.
38602         (Depends-on): Add math.
38603         (Makefile.am): Don't mention mathl.h.
38604         (Include): Use <math.h> instead of mathl.h.
38605         * lib/math_.h: New file.
38606         * lib/mathl.h: Remove file.
38607         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
38608         mathl.h.
38609         * lib/asinl.c: Likewise.
38610         * lib/atanl.c: Likewise.
38611         * lib/ceill.c: Likewise.
38612         * lib/cosl.c: Likewise.
38613         * lib/expl.c: Likewise.
38614         * lib/floorl.c: Likewise.
38615         * lib/frexpl.c: Likewise.
38616         * lib/ldexpl.c: Likewise.
38617         * lib/logl.c: Likewise.
38618         * lib/sincosl.c: Likewise.
38619         * lib/sinl.c: Likewise.
38620         * lib/sqrtl.c: Likewise.
38621         * lib/tanl.c: Likewise.
38622         * lib/trigl.c: Likewise.
38623         * m4/math_h.m4: New file.
38624         * MODULES.html.sh (Mathematics): Add math.
38625
38626 2007-02-17  Bruno Haible  <bruno@clisp.org>
38627
38628         * modules/wctype-tests: New file.
38629         * tests/test-wctype.c: New file.
38630
38631         * modules/wchar-tests: New file.
38632         * tests/test-wchar.c: New file.
38633
38634         * modules/unistd-tests: New file.
38635         * tests/test-unistd.c: New file.
38636
38637         * modules/time-tests: New file.
38638         * tests/test-time.c: New file.
38639
38640         * modules/sysexits-tests: New file.
38641         * tests/test-sysexits.c: New file.
38642
38643         * modules/sys_time-tests: New file.
38644         * tests/test-sys_time.c: New file.
38645
38646         * modules/sys_stat-tests: New file.
38647         * tests/test-sys_stat.c: New file.
38648
38649         * modules/sys_socket-tests: New file.
38650         * tests/test-sys_socket.c: New file.
38651
38652         * modules/sys_select-tests: New file.
38653         * tests/test-sys_select.c: New file.
38654
38655         * modules/string-tests: New file.
38656         * tests/test-string.c: New file.
38657
38658         * modules/stdbool-tests: New file.
38659         * tests/test-stdbool.c: New file.
38660
38661         * modules/netinet_in-tests: New file.
38662         * tests/test-netinet_in.c: New file.
38663
38664         * modules/inttypes-tests: New file.
38665         * tests/test-inttypes.c: New file.
38666
38667         * modules/fcntl-tests: New file.
38668         * tests/test-fcntl.c: New file.
38669
38670         * modules/byteswap-tests: New file.
38671         * tests/test-byteswap.c: New file.
38672
38673         * modules/arpa_inet-tests: New file.
38674         * tests/test-arpa_inet.c: New file.
38675
38676 2007-02-17  Bruno Haible  <bruno@clisp.org>
38677
38678         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
38679         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
38680         if the corresponding module is not enabled. Emit link warnings if
38681         the function is used nevertheless.
38682         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
38683         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
38684         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
38685         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
38686         * modules/inttypes (Depends-on): Add link-warning.
38687         (Makefile.am): Copy the contents of build-aux/link-warning.h into
38688         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
38689         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
38690         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
38691         * modules/imaxdiv (configure.ac): Likewise.
38692         * modules/strtoimax (configure.ac): Likewise.
38693         * modules/strtoumax (configure.ac): Likewise.
38694
38695 2007-02-17  Bruno Haible  <bruno@clisp.org>
38696
38697         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
38698         gl_STRING_MODULE_INDICATOR_DEFAULTS.
38699         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
38700         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
38701
38702 2007-02-17  Bruno Haible  <bruno@clisp.org>
38703
38704         * modules/link-warning: New file.
38705         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
38706         * lib/string_.h (GL_LINK_WARNING): Remove definition.
38707         * modules/string (Depends-on): Add link-warning.
38708         (Makefile.am): Copy the contents of build-aux/link-warning.h into
38709         string.h.
38710         * MODULES.html.sh (Support for building libraries and executables): Add
38711         link-warning.
38712
38713 2007-02-17  Bruno Haible  <bruno@clisp.org>
38714
38715         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
38716         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
38717         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
38718         long lines.
38719
38720 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
38721             Bruno Haible  <bruno@clisp.org>
38722
38723         * modules/tmpfile: New file.
38724         * lib/tmpfile.c: New file.
38725         * m4/tmpfile.m4: New file.
38726         * MODULES.html.sh (func_all_modules): New section "Input/output".
38727
38728 2007-02-15  Bruno Haible  <bruno@clisp.org>
38729
38730         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
38731         (supports_delete_on_close): New function.
38732         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
38733
38734 2007-02-14  Bruno Haible  <bruno@clisp.org>
38735
38736         * modules/mbspcasecmp-tests: New file.
38737         * tests/test-mbspcasecmp.sh: New file.
38738         * tests/test-mbspcasecmp.c: New file.
38739
38740         New module mbspcasecmp.
38741         * modules/mbspcasecmp: New file.
38742         * lib/mbspcasecmp.c: New file.
38743         * lib/string_.h (strncasecmp): Change warning message.
38744         (mbspcasecmp): New declaration.
38745         * m4/mbspcasecmp.m4: New file.
38746         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38747         GNULIB_MBSPCASECMP.
38748         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
38749         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
38750
38751 2007-02-14  Bruno Haible  <bruno@clisp.org>
38752
38753         * modules/mbsncasecmp-tests: New file.
38754         * tests/test-mbsncasecmp.sh: New file.
38755         * tests/test-mbsncasecmp.c: New file.
38756
38757         New module mbsncasecmp.
38758         * modules/mbsncasecmp: New file.
38759         * lib/mbsncasecmp.c: New file.
38760         * lib/string_.h (mbsncasecmp): New declaration.
38761         * m4/mbsncasecmp.m4: New file.
38762         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38763         GNULIB_MBSNCASECMP.
38764         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
38765         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
38766
38767 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
38768
38769         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
38770         Verify that it doesn't overlap with our flags.
38771         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
38772         do not have the desired effect in multibyte locales; instead, use
38773         mbscasecmp.
38774         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
38775         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
38776         we don't require GNU fnmatch ourselves (if our users require it, they
38777         should do so explicitly).
38778
38779         Fix regex code so it doesn't rely on strcasecmp.
38780         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
38781         Otherwise, include gnulib's langinfo.h.
38782         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
38783         undesirable behavior in non-C locales.  Instead, rely on localecharset.
38784         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
38785         * modules/regex (FILES): Remove m4/codeset.m4.
38786         (Depends-on): Add localcharset.  Remove strcase.
38787
38788 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38789
38790         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
38791         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
38792
38793 2007-02-13  Bruno Haible  <bruno@clisp.org>
38794
38795         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
38796         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38797
38798 2007-02-12  Bruno Haible  <bruno@clisp.org>
38799
38800         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
38801         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
38802         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
38803         time warning rather than a link error.
38804
38805 2007-02-12  Bruno Haible  <bruno@clisp.org>
38806
38807         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
38808         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
38809         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38810
38811 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
38812
38813         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
38814         args, not 2.
38815
38816 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
38817
38818         New module 'time', so that apps can include <time.h> as per
38819         POSIX and GNU instead of separate include files like time_r.h
38820         and timegm.h.  This implementation tries out a simpler approach
38821         for replacing decls in standard include files (as compared to
38822         the string module), somewhat as an experiment.
38823
38824         * config/srclist.txt: Comment out mktime.c for now.
38825         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
38826         since it doesn't apply any more.  Use generic wording instead.
38827         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
38828         'time'.
38829         * lib/time_.h, m4/time_h.m4, modules/time: New files.
38830         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
38831         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
38832         Don't include <sys/types.h>; no longer needed since we assume C89.
38833         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
38834         * lib/strftime.c: Likewise.
38835         * lib/time_r.c: Likewise.
38836         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
38837         * lib/nanosleep.c: Include <time.h> first, to check interface.
38838         * lib/strptime.c: Likewise.
38839         * lib/time_r.c: Likewise.
38840         * lib/timegm.c: Likewise.
38841         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
38842         needed.
38843         * lib/timegm.c: Don't include timegm.h; no longer needed.
38844         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
38845         time.h now handles any problems in that area.
38846         (struct timespec, nanosleep): Remove; time.h now arranges for these.
38847         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
38848         that time.h defines struct timespec.
38849         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
38850         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
38851         handles that.
38852         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
38853         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
38854         needed.  Set REPLACE_LOCALTIME.
38855         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
38856         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
38857         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
38858         nanosleep; time_h.m4 now does that.  Don't require
38859         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
38860         module handles this now.
38861         * modules/getdate (Depends-on): Remove timespec.  Add time.
38862         * modules/nanosleep (Depends-on): Likewise.
38863         * modules/stat-time (Depends-on): Likewise.
38864         * modules/nanosleep (Include): Include time.h, not timespec.h.
38865         * modules/strptime (Files): Remove lib/strptime.h.
38866         (Depends-on): Add extensions, time.
38867         (Include): Include time.h, not strptime.h.
38868         * modules/time_r (Files): Remove lib/time_r.h.
38869         (Depends-on): Add time.
38870         (Include): Include time.h, not time_r.h.
38871         * modules/timegm: Likewise.
38872         * modules/timespec (Description): Now does timespec-related decls
38873         of our own, instead of struct timespec itself.
38874         (Depends-on): Add time; remove extensions.
38875         (Maintainer): Add self.
38876         * modules/utimecmp (Depends-on): Add time; remove timespec.
38877         * modules/utimens (Depends-on): Likewise.
38878         * modules/xnanosleep (Depends-on): Likewise.
38879
38880 2007-02-11  Bruno Haible  <bruno@clisp.org>
38881
38882         * lib/c-strstr.c: Include allocsa.h.
38883         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
38884         * lib/c-strcasestr.c: Include allocsa.h.
38885         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
38886         * lib/strcasestr.c: Include allocsa.h.
38887         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
38888         * lib/mbsstr.c: Include allocsa.h.
38889         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
38890         allocsa/freesa instead of malloc/free.
38891         * lib/mbscasestr.c: Include allocsa.h.
38892         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
38893         allocsa/freesa instead of malloc/free.
38894         * modules/c-strstr (Depends-on): Add allocsa.
38895         * modules/c-strcasestr (Depends-on): Likewise.
38896         * modules/strcasestr (Depends-on): Likewise.
38897         * modules/mbsstr (Depends-on): Likewise.
38898         * modules/mbscasestr (Depends-on): Likewise.
38899
38900 2007-02-11  Bruno Haible  <bruno@clisp.org>
38901
38902         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
38903
38904         * modules/mbsspn-tests: New file.
38905         * tests/test-mbsspn.sh: New file.
38906         * tests/test-mbsspn.c: New file.
38907
38908 2007-02-11  Bruno Haible  <bruno@clisp.org>
38909
38910         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
38911
38912         * modules/mbspbrk-tests: New file.
38913         * tests/test-mbspbrk.sh: New file.
38914         * tests/test-mbspbrk.c: New file.
38915
38916 2007-02-11  Bruno Haible  <bruno@clisp.org>
38917
38918         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
38919         unneeded cast.
38920
38921         * modules/mbscspn-tests: New file.
38922         * tests/test-mbscspn.sh: New file.
38923         * tests/test-mbscspn.c: New file.
38924
38925 2007-02-11  Bruno Haible  <bruno@clisp.org>
38926
38927         * modules/mbscasecmp-tests: New file.
38928         * tests/test-mbscasecmp.sh: New file.
38929         * tests/test-mbscasecmp.c: New file.
38930
38931 2007-02-11  Bruno Haible  <bruno@clisp.org>
38932
38933         Ensure O(n) worst-case complexity of mbscasestr.
38934         * lib/mbscasestr.c: Include stdbool.h.
38935         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
38936         functions.
38937         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
38938         the bookkeeping indicates that it's worth it.
38939         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
38940
38941         * modules/mbscasestr-tests: New file.
38942         * tests/test-mbscasestr1.c: New file.
38943         * tests/test-mbscasestr2.sh: New file.
38944         * tests/test-mbscasestr2.c: New file.
38945         * tests/test-mbscasestr3.sh: New file.
38946         * tests/test-mbscasestr3.c: New file.
38947         * tests/test-mbscasestr4.sh: New file.
38948         * tests/test-mbscasestr4.c: New file.
38949         * m4/locale-tr.m4: New file.
38950
38951 2007-02-11  Bruno Haible  <bruno@clisp.org>
38952
38953         Ensure O(n) worst-case complexity of mbsstr.
38954         * lib/mbsstr.c: Include stdbool.h.
38955         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
38956         functions.
38957         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
38958         bookkeeping indicates that it's worth it.
38959         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
38960
38961         * modules/mbsstr-tests: New file.
38962         * tests/test-mbsstr1.c: New file.
38963         * tests/test-mbsstr2.sh: New file.
38964         * tests/test-mbsstr2.c: New file.
38965         * tests/test-mbsstr3.sh: New file.
38966         * tests/test-mbsstr3.c: New file.
38967         * m4/locale-fr.m4: New file.
38968
38969 2007-02-11  Bruno Haible  <bruno@clisp.org>
38970
38971         * lib/mbsrchr.c (mbsrchr): Fix bug.
38972
38973         * modules/mbsrchr-tests: New file.
38974         * tests/test-mbsrchr.sh: New file.
38975         * tests/test-mbsrchr.c: New file.
38976
38977 2007-02-11  Bruno Haible  <bruno@clisp.org>
38978
38979         * lib/mbschr.c (mbschr): Fix bug.
38980
38981         * modules/mbschr-tests: New file.
38982         * tests/test-mbschr.sh: New file.
38983         * tests/test-mbschr.c: New file.
38984         * m4/locale-zh.m4: New file.
38985
38986 2007-02-11  Bruno Haible  <bruno@clisp.org>
38987
38988         Support for copying multibyte string iterators.
38989         * lib/mbiter.h: Include <string.h>.
38990         (mbiter_multi_copy): New function.
38991         (mbi_copy): New macro.
38992         * lib/mbuiter.h: Include <string.h>.
38993         (mbuiter_multi_copy): New function.
38994         (mbui_copy): New macro.
38995
38996 2007-02-11  Bruno Haible  <bruno@clisp.org>
38997
38998         New module mbslen.
38999         * modules/mbslen: New file.
39000         * lib/mbslen.c: New file.
39001         * lib/string_.h (mbslen): New declaration.
39002         * m4/mbslen.m4: New file.
39003         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39004         GNULIB_MBSLEN.
39005         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
39006         * MODULES.html.sh (Internationalization functions): Add mbslen.
39007
39008 2007-02-11  Bruno Haible  <bruno@clisp.org>
39009
39010         Ensure O(n) worst-case complexity of strcasestr substitute.
39011         * lib/strcasestr.c: Include stdbool.h.
39012         (knuth_morris_pratt): New function.
39013         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
39014         bookkeeping indicates that it's worth it.
39015         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
39016
39017         * modules/strcasestr-tests: New file.
39018         * tests/test-strcasestr.c: New file.
39019
39020 2007-02-11  Bruno Haible  <bruno@clisp.org>
39021
39022         Ensure O(n) worst-case complexity of c_strcasestr.
39023         * lib/c-strcasestr.c: Include stdbool.h, string.h.
39024         (knuth_morris_pratt): New function.
39025         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
39026         the bookkeeping indicates that it's worth it.
39027         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
39028
39029         * modules/c-strcasestr-tests: New file.
39030         * tests/test-c-strcasestr.c: New file.
39031
39032 2007-02-11  Bruno Haible  <bruno@clisp.org>
39033
39034         Ensure O(n) worst-case complexity of c_strstr.
39035         * lib/c-strstr.c: Include stdbool.h, string.h.
39036         (knuth_morris_pratt): New function.
39037         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
39038         bookkeeping indicates that it's worth it.
39039         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
39040
39041         * lib/c-strstr.c: Complete rewrite for maintainability.
39042
39043         * modules/c-strstr-tests: New file.
39044         * tests/test-c-strstr.c: New file.
39045
39046 2007-02-11  Bruno Haible  <bruno@clisp.org>
39047
39048         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
39049         5.2.1 and earlier, whereby \055 was treated just like the range
39050         delimiter '-'.
39051         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
39052
39053 2007-02-08  Bruno Haible  <bruno@clisp.org>
39054
39055         * modules/regex (Depends-on): Add stdbool.
39056         Reported by Dalibor Topic <robilad@kaffe.org>.
39057
39058 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
39059
39060         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
39061         Prefer returning from main to exiting from it.
39062         Remove unnecessary parens after sizeof.
39063
39064 2007-02-05  Bruno Haible  <bruno@clisp.org>
39065
39066         New module mbssep.
39067         * modules/mbssep: New file.
39068         * lib/mbssep.c: New file.
39069         * lib/string_.h (strsep): Add a conditional link warning.
39070         (mbssep): New declaration.
39071         * m4/mbssep.m4: New file.
39072         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39073         GNULIB_MBSSEP.
39074         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
39075         * MODULES.html.sh (Internationalization functions): Add mbssep.
39076
39077 2007-02-05  Bruno Haible  <bruno@clisp.org>
39078
39079         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
39080         Optimize search in case of 1 delimiter.
39081
39082 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
39083
39084         * lib/acl.h: Include sys/types.h before sys/acl.h.
39085
39086 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
39087
39088         Merge upstream fix for glibc bugzilla #3957:
39089
39090         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
39091
39092         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
39093         bit for RE_HAT_LISTS_NOT_NEWLINE.
39094         (build_charclass_op): Remove bogus comment.
39095
39096 2007-02-05  Simon Josefsson  <simon@josefsson.org>
39097
39098         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
39099
39100 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
39101
39102         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
39103         * lib/memmem.c [!defined _LIBC]: Include config.h.
39104
39105 2007-02-04  Bruno Haible  <bruno@clisp.org>
39106
39107         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
39108         warning message.
39109
39110 2007-02-04  Bruno Haible  <bruno@clisp.org>
39111
39112         New module mbstok_r.
39113         * modules/mbstok_r: New file.
39114         * lib/mbstok_r.c: New file.
39115         * lib/string_.h (strtok_r): Change argument names to match the
39116         comments. Add a conditional link warning.
39117         (mbstok_r): New declaration.
39118         * m4/mbstok_r.m4: New file.
39119         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39120         GNULIB_MBSTOK_R.
39121         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
39122         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
39123
39124 2007-02-04  Bruno Haible  <bruno@clisp.org>
39125
39126         New module mbsspn.
39127         * modules/mbsspn: New file.
39128         * lib/mbsspn.c: New file.
39129         * lib/string_.h (strspn): Add a conditional link warning.
39130         (mbsspn): New declaration.
39131         * m4/mbsspn.m4: New file.
39132         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39133         GNULIB_MBSSPN.
39134         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
39135         * MODULES.html.sh (Internationalization functions): Add mbsspn.
39136
39137 2007-02-04  Bruno Haible  <bruno@clisp.org>
39138
39139         New module mbspbrk.
39140         * modules/mbspbrk: New file.
39141         * lib/mbspbrk.c: New file.
39142         * lib/string_.h (strpbrk): Add a conditional link warning.
39143         (mbspbrk): New declaration.
39144         * m4/mbspbrk.m4: New file.
39145         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39146         GNULIB_MBSPBRK.
39147         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
39148         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
39149
39150 2007-02-04  Bruno Haible  <bruno@clisp.org>
39151
39152         New module mbscspn.
39153         * modules/mbscspn: New file.
39154         * lib/mbscspn.c: New file.
39155         * lib/string_.h (strcspn): Add a conditional link warning.
39156         (mbscspn): New declaration.
39157         * m4/mbscspn.m4: New file.
39158         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39159         GNULIB_MBSCSPN.
39160         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
39161         * MODULES.html.sh (Internationalization functions): Add mbscspn.
39162
39163 2007-02-04  Bruno Haible  <bruno@clisp.org>
39164
39165         New module mbscasestr, reduced goal of strcasestr.
39166         * modules/mbscasestr: New file.
39167         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
39168         (mbscasestr): Renamed from strcasestr.
39169         * lib/strcasestr.c: Don't include mbuiter.h.
39170         (strcasestr): Remove support for multibyte locales.
39171         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
39172         Change the conditional link warning.
39173         (mbscasestr): New declaration.
39174         * m4/mbscasestr.m4: New file.
39175         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
39176         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
39177         REPLACE_STRCASESTR.
39178         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
39179         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
39180         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
39181         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
39182         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
39183         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
39184         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
39185         (Depends-on): Remove mbuiter.
39186         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
39187
39188 2007-02-04  Bruno Haible  <bruno@clisp.org>
39189
39190         Simplify handling of strncasecmp.
39191         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
39192         the conditional link warning.
39193         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
39194         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
39195         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
39196         * modules/strcase (configure.ac): Don't invoke
39197         gl_STRING_MODULE_INDICATOR.
39198         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
39199
39200 2007-02-04  Bruno Haible  <bruno@clisp.org>
39201
39202         New module mbscasecmp, reduced goal of strcasecmp.
39203         * modules/mbscasecmp: New file.
39204         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
39205         (mbscasecmp): Renamed from strcasecmp.
39206         * lib/strcasecmp.c: Don't include mbuiter.h.
39207         (strcasecmp): Remove support for multibyte locales.
39208         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
39209         Change the conditional link warning.
39210         (mbscasecmp): New declaration.
39211         * m4/mbscasecmp.m4: New file.
39212         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
39213         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
39214         REPLACE_STRCASECMP.
39215         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
39216         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39217         GNULIB_MBSCASECMP.
39218         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
39219         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
39220         * modules/strcase (Files): Remove m4/mbrtowc.m4.
39221         (Depends-on): Remove mbuiter.
39222         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
39223
39224 2007-02-04  Bruno Haible  <bruno@clisp.org>
39225
39226         New module mbsstr. Remove module strstr.
39227         * modules/mbsstr: New file.
39228         * modules/strstr: Remove file.
39229         * lib/mbsstr.c: Renamed from lib/strstr.c.
39230         (mbsstr): Renamed from strstr.
39231         * lib/string_.h (strstr): Remove declaration. Change the conditional
39232         link warning.
39233         (mbsstr): New declaration.
39234         * m4/mbsstr.m4: New file.
39235         * m4/strstr.m4: Remove file.
39236         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
39237         REPLACE_STRSTR.
39238         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
39239         Don't initialize GNULIB_STRSTR.
39240         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
39241         substitute GNULIB_STRSTR and REPLACE_STRSTR.
39242         * MODULES.html.sh (Internationalization functions): Add mbsstr.
39243         (Support for systems lacking ANSI C 89): Remove strstr.
39244
39245 2007-02-04  Bruno Haible  <bruno@clisp.org>
39246
39247         New module mbsrchr.
39248         * modules/mbsrchr: New file.
39249         * lib/mbsrchr.c: New file.
39250         * lib/string_.h (strrchr): Add a conditional link warning.
39251         (mbsrchr): New declaration.
39252         * m4/mbsrchr.m4: New file.
39253         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39254         GNULIB_MBSRCHR.
39255         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
39256         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
39257
39258 2007-02-04  Bruno Haible  <bruno@clisp.org>
39259
39260         New module mbschr.
39261         * modules/mbschr: New file.
39262         * lib/mbschr.c: New file.
39263         * lib/string_.h (strchr): Add a conditional link warning.
39264         (mbschr): New declaration.
39265         * m4/mbschr.m4: New file.
39266         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39267         GNULIB_MBSCHR.
39268         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
39269         * MODULES.html.sh (Internationalization functions): Add mbschr.
39270
39271 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
39272
39273         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
39274
39275         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
39276
39277 2007-02-04  Bruno Haible  <bruno@clisp.org>
39278
39279         New module description section 'configure.ac-early'.
39280         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
39281         (func_get_autoconf_early_snippet): New function.
39282         (func_import, func_create_testdir): Use it. Remove special cases for
39283         modules 'extensions' and 'lock'.
39284         * modules/extensions (configure.ac-early): Require
39285         gl_USE_SYSTEM_EXTENSIONS.
39286         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
39287
39288 2007-02-04  Bruno Haible  <bruno@clisp.org>
39289
39290         Make use of gcj-4.3's -fsource and -ftarget option.
39291         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
39292         and if so try the options -fsource and -ftarget.
39293         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
39294         source_version, ftarget_option, target_version arguments.
39295         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
39296         (is_envjavac_oldgcj_14_14_usable): Renamed from
39297         is_envjavac_gcj_14_14_usable.
39298         (is_envjavac_oldgcj_14_13_usable): Renamed from
39299         is_envjavac_gcj_14_13_usable.
39300         (is_gcj_present): Update.
39301         (is_gcj_43, is_gcj43_usable): New functions.
39302         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
39303         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
39304         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
39305         try the options -fsource and -ftarget.
39306
39307 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
39308
39309         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
39310         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
39311         larger value.
39312
39313 2007-02-03  Jim Meyering  <jim@meyering.net>
39314
39315         Give tools a better chance to allocate space for very large buffers.
39316         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
39317
39318         Make pwd and readlink work also when run with an unreadable parent dir
39319         on systems with openat support.
39320         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
39321         provided getcwd function, even when we have openat support.
39322         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
39323
39324 2007-02-02  Bruno Haible  <bruno@clisp.org>
39325
39326         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
39327         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
39328         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
39329         portability problems if one of these functions is only used on specific
39330         platforms.
39331         Reported by Paul Eggert.
39332
39333 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
39334
39335         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
39336         is causing more trouble than it's curing.
39337         * lib/regex_internal.h (__mempcpy): Remove.
39338         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
39339         (and make the code a tad smaller to boot).
39340         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
39341
39342 2007-02-02  Jim Meyering  <jim@meyering.net>
39343
39344         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
39345         section, not in the Makefile.am: one.
39346
39347 2007-02-02  Eric Blake  <ebb9@byu.net>
39348
39349         * lib/strchrnul.c: Always include config.h first.
39350
39351         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
39352         gnulib strstr is not necessary here.
39353
39354 2007-02-02  Simon Josefsson  <simon@josefsson.org>
39355
39356         * m4/socklen.m4: Fix typo.
39357
39358 2007-02-02  Eric Blake  <ebb9@byu.net>
39359
39360         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
39361         * modules/netinet_in (Makefile.am): Likewise.
39362
39363 2007-02-01  Bruno Haible  <bruno@clisp.org>
39364
39365         * lib/string_.h (GL_LINK_WARNING): New macro.
39366         (strcasecmp, strstr, strcasestr): If provided by the system,
39367         conditionally define as a macro that leads to a warning instead of to
39368         an error.
39369         (strncasecmp): Conditionally define as a macro that leads to a warning.
39370
39371 2007-02-01  Karl Berry  <karl@gnu.org>
39372
39373         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
39374
39375 2007-02-01  Bruno Haible  <bruno@clisp.org>
39376
39377         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
39378         renamings.
39379
39380 2007-02-01  Eric Blake  <ebb9@byu.net>
39381
39382         * modules/regex (Depends-on): Revert dependence on mempcpy.
39383         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
39384         module's definition of mempcpy.
39385         Reported by Paul Eggert.
39386
39387 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
39388
39389         * lib/string_.h: If the gnulib module XYZ is not present, undefine
39390         the symbol XYZ before redefining it.  This fixes a problem with
39391         programs that don't use XYZ, when compiled on systems that define
39392         XYZ to something else.
39393
39394 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
39395
39396         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
39397         occurs when "mkdir -m foo" creates a setgid directory that is (1)
39398         writeable to group or other and (2) is intended to have a special
39399         mode bit that is set or cleared.  In such a case, the directory
39400         should be neither group- nor other-writeable until the special
39401         mode bits are right.
39402
39403 2007-01-31  Eric Blake  <ebb9@byu.net>
39404
39405         * modules/mountlist (Depends-on): Add strstr.
39406
39407         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
39408         bug.
39409         * modules/string (Makefile.am): Remove redundant replacement.
39410         * modules/regex (Depends-on): Add mempcpy.
39411
39412 2007-01-31  Bruno Haible  <bruno@clisp.org>
39413
39414         New module description field 'Link'.
39415         * gnulib-tool (func_usage): Document --extract-link-directive.
39416         (sed_extract_prog): Recognize 'Link' directive.
39417         (func_get_link_directive): New function.
39418         (func_import): Show summary of link directives.
39419         Handle --extract-link-directive option.
39420         * modules/acl (Link): New section.
39421         * modules/clock-time (Link): New section.
39422         * modules/euidaccess (Link): New section.
39423         * modules/gettext (Link): New section.
39424         * modules/iconv (Link): New section.
39425         * modules/lock (Link): New section.
39426         * modules/nanosleep (Link): New section.
39427         * modules/readline (Link): New section.
39428
39429 2007-01-27  Bruno Haible  <bruno@clisp.org>
39430
39431         Enforce the use of gnulib modules for unportable <string.h> functions.
39432         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
39433         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
39434         (gl_HEADER_STRING_H_BODY): Require it.
39435         * lib/string_.h: If the gnulib module XYZ is not present, redefine
39436         the symbol XYZ to one that gives a link error.
39437         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
39438         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
39439         * modules/mempcpy (configure.ac): Likewise.
39440         * modules/memrchr (configure.ac): Likewise.
39441         * modules/stpcpy (configure.ac): Likewise.
39442         * modules/stpncpy (configure.ac): Likewise.
39443         * modules/strcase (configure.ac): Likewise.
39444         * modules/strcasestr (configure.ac): Likewise.
39445         * modules/strchrnul (configure.ac): Likewise.
39446         * modules/strdup (configure.ac): Likewise.
39447         * modules/strndup (configure.ac): Likewise.
39448         * modules/strnlen (configure.ac): Likewise.
39449         * modules/strpbrk (configure.ac): Likewise.
39450         * modules/strsep (configure.ac): Likewise.
39451         * modules/strstr (configure.ac): Likewise.
39452         * modules/strtok_r (configure.ac): Likewise.
39453
39454 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
39455
39456         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
39457
39458 2007-01-30  Jim Meyering  <jim@meyering.net>
39459
39460         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
39461
39462 2007-01-29  Bruno Haible  <bruno@clisp.org>
39463
39464         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
39465         * lib/execute.c: Likewise.
39466         * lib/pipe.c: Likewise.
39467         * lib/printf-args.h: Likewise.
39468         * lib/printf-args.c: Likewise.
39469         * lib/printf-parse.c: Likewise.
39470         * lib/vasnprintf.c: Likewise.
39471
39472 2007-01-29  Eric Blake  <ebb9@byu.net>
39473
39474         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
39475         declaration.
39476
39477 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
39478
39479         * lib/strptime.h (strptime): Use 'restrict' for args where
39480         POSIX requires this.
39481         * lib/strptime.c (strptime): Likewise.
39482         Change license notice from LGPL to GPL, since gnulib-tool will
39483         change this as needed.
39484         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
39485         defined.
39486         Include "strptime.h" first, to check interface.
39487         Do not #undef _LIBC and _NL_CURRENT.
39488         Do not include <stdlib.h>; no longer needed.
39489         Include "time_r.h" and declare ptime_locale_status
39490         only if _LIBC is not defined.
39491         (__P): Remove unused macro.
39492         (match_string): Bring back glibc version, but use it only if _LIBC
39493         is defined.
39494         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
39495         Remove unnecessary assertion and abort() call.
39496         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
39497         * m4/strptime.m4: Fix serial number comment.
39498         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
39499         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
39500         (Depends-on): Add time_r.
39501
39502 2007-01-29  Bruno Haible  <bruno@clisp.org>
39503
39504         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
39505         strptime.
39506         * modules/strptime (Depends-on): Add stdbool.
39507         * lib/strptime.h: Include <time.h> always. Add comments.
39508
39509 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
39510
39511         * modules/strptime: New file.
39512         * lib/strptime.h: New file.
39513         * lib/strptime.c: New file.
39514         * m4/strptime.m4: New file.
39515
39516 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
39517
39518         * MODULES.html.sh: New module mpsort.
39519         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
39520
39521         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
39522         a circularity problem with HP-UX ia64 reported by Bob Proulx in
39523         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
39524         All uses changed.
39525         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
39526         All uses changed.
39527         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
39528         to _Restrict_.
39529         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
39530         the parameter matches the prototype.
39531
39532 2007-01-28  Jim Meyering  <jim@meyering.net>
39533
39534         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
39535         sys/time.h here, reverting that part of the previous patch:
39536         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
39537
39538 2007-01-28  Bruno Haible  <bruno@clisp.org>
39539
39540         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
39541         value of $(SYS_TIME_H).
39542         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
39543         remove it conditionally, too. [added by Jim Meyering]
39544         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
39545         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
39546         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
39547         GETTIMEOFDAY_REPLACEMENT to 1.
39548
39549 2007-01-28  Bruno Haible  <bruno@clisp.org>
39550
39551         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
39552         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
39553         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
39554         Set UNISTD_H instead of UNISTD_H2.
39555         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
39556
39557 2007-01-28  Bruno Haible  <bruno@clisp.org>
39558
39559         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
39560         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
39561
39562 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39563
39564         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
39565         (func_create_testdir): Ensure C locale for `grep' and `tr'
39566         character ranges.
39567         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
39568         ACLOCAL_AMFLAGS parsing state machine.
39569
39570 2007-01-27  Bruno Haible  <bruno@clisp.org>
39571
39572         * modules/unistr/base: Update.
39573
39574 2007-01-27  Bruno Haible  <bruno@clisp.org>
39575
39576         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
39577         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
39578         * modules/unistr/u32-mbtouc-unsafe: Renamed from
39579         modules/unistr/u32-mbtouc.
39580         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
39581         * lib/unistr.h: Update.
39582         * lib/linebreak.c: Update.
39583         * modules/unistr/u32-mbtouc: Renamed from
39584         modules/unistr/u32-mbtouc-safe.
39585         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
39586         * lib/unistr.h: Update.
39587         * lib/unistr/u32-to-u8.c: Update.
39588         * lib/unistr/u32-to-u16.c: Update.
39589
39590 2007-01-27  Bruno Haible  <bruno@clisp.org>
39591
39592         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
39593         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
39594         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
39595         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
39596         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
39597         * modules/unistr/u16-mbtouc-unsafe: Renamed from
39598         modules/unistr/u16-mbtouc.
39599         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
39600         * lib/unistr.h: Update.
39601         * lib/linebreak.c: Update.
39602         * modules/linebreak: Update.
39603         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
39604         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
39605         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
39606         * modules/unistr/u16-mbtouc: Renamed from
39607         modules/unistr/u16-mbtouc-safe.
39608         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
39609         * lib/unistr.h: Update.
39610         * lib/unistr/u16-to-u8.c: Update.
39611         * modules/unistr/u16-to-u8: Update.
39612         * lib/unistr/u16-to-u32.c: Update.
39613         * modules/unistr/u16-to-u32: Update.
39614
39615 2007-01-27  Bruno Haible  <bruno@clisp.org>
39616
39617         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
39618         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
39619         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
39620         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
39621         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
39622         * modules/unistr/u8-mbtouc-unsafe: Renamed from
39623         modules/unistr/u8-mbtouc.
39624         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
39625         * lib/unistr.h: Update.
39626         * lib/striconveh.c: Update.
39627         * modules/striconveh: Update.
39628         * lib/linebreak.c: Update.
39629         * modules/linebreak: Update.
39630         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
39631         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
39632         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
39633         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
39634         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
39635         * lib/unistr.h: Update.
39636         * lib/striconveh.c: Update.
39637         * modules/striconveh: Update.
39638         * lib/unistr/u8-to-u16.c: Update.
39639         * modules/unistr/u8-to-u16: Update.
39640         * lib/unistr/u8-to-u32.c: Update.
39641         * modules/unistr/u8-to-u32: Update.
39642
39643 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39644
39645         Sync from Libtool.
39646         * lib/argz.c: Do not include strings.h nor memory.h, include
39647         string.h unconditionally.  Patch by Simon Josefsson.
39648
39649 2007-01-27  Bruno Haible  <bruno@clisp.org>
39650
39651         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
39652         from gl_HEADER_STRING_H_BODY.
39653         (gl_HEADER_STRING_H_BODY): Require it.
39654         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
39655         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
39656         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
39657         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
39658         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
39659         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
39660         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
39661         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
39662         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
39663         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
39664         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
39665         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
39666         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
39667         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
39668         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
39669
39670 2007-01-27  Bruno Haible  <bruno@clisp.org>
39671
39672         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
39673         check_PROGRAMS into noinst_PROGRAMS.
39674         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
39675         check_PROGRAMS in this case.
39676         (func_import): Set for_test to false.
39677         (func_create_testdir): Set for_test to true.
39678
39679 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
39680             Bruno Haible  <bruno@clisp.org>
39681
39682         * modules/strcasestr (Files): Remove lib/strcasestr.h.
39683         (Depends-on): Add string.
39684         (Includes): Use <string.h> instead of strcasestr.h.
39685         * modules/string (Makefile.am): Also substitute the value of
39686         REPLACE_STRCASESTR.
39687         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
39688         assume strcasestr is declared in <string.h> not <strings.h>. Also
39689         set REPLACE_STRCASESTR.
39690         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
39691         REPLACE_STRCASESTR.
39692         * lib/strcasestr.h: Remove file.
39693         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
39694         * lib/string_.h (strcasestr): New declaration.
39695
39696 2007-01-27  Bruno Haible  <bruno@clisp.org>
39697
39698         * lib/string_.h: Use 'extern'.
39699
39700 2007-01-27  Jim Meyering  <jim@meyering.net>
39701
39702         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
39703         of set-but-not-used local, "q".
39704
39705         * lib/mempcpy.c: Include <config.h> before <string.h>.
39706         This fixes a compilation error on HP-UX, due to the system's
39707         "restrict"-using mempcpy prototype.
39708
39709 2007-01-26  Bruno Haible  <bruno@clisp.org>
39710
39711         Small optimization.
39712         * lib/javacomp.c: Include c-strstr.h.
39713          (is_envjavac_gcj): Use c_strstr instead of strstr.
39714         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
39715
39716 2007-01-26  Bruno Haible  <bruno@clisp.org>
39717
39718         * MODULES.html.sh (Unicode string functions): Add the new modules.
39719
39720         * modules/uniconv/u32-strconv-to-locale: New file.
39721         * lib/uniconv/u32-strconv-to-locale.c: New file.
39722
39723         * modules/uniconv/u16-strconv-to-locale: New file.
39724         * lib/uniconv/u16-strconv-to-locale.c: New file.
39725
39726         * modules/uniconv/u8-strconv-to-locale: New file.
39727         * lib/uniconv/u8-strconv-to-locale.c: New file.
39728
39729         * modules/uniconv/u32-strconv-from-locale: New file.
39730         * lib/uniconv/u32-strconv-from-locale.c: New file.
39731
39732         * modules/uniconv/u16-strconv-from-locale: New file.
39733         * lib/uniconv/u16-strconv-from-locale.c: New file.
39734
39735         * modules/uniconv/u8-strconv-from-locale: New file.
39736         * lib/uniconv/u8-strconv-from-locale.c: New file.
39737
39738         * modules/uniconv/u32-strconv-to-enc: New file.
39739         * lib/uniconv/u32-strconv-to-enc.c: New file.
39740         * modules/uniconv/u32-strconv-to-enc-tests: New file.
39741         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
39742
39743         * modules/uniconv/u16-strconv-to-enc: New file.
39744         * lib/uniconv/u16-strconv-to-enc.c: New file.
39745         * lib/uniconv/u-strconv-to-enc.h: New file.
39746         * modules/uniconv/u16-strconv-to-enc-tests: New file.
39747         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
39748
39749         * modules/uniconv/u8-strconv-to-enc: New file.
39750         * lib/uniconv/u8-strconv-to-enc.c: New file.
39751         * modules/uniconv/u8-strconv-to-enc-tests: New file.
39752         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
39753
39754         * modules/uniconv/u32-strconv-from-enc: New file.
39755         * lib/uniconv/u32-strconv-from-enc.c: New file.
39756         * modules/uniconv/u32-strconv-from-enc-tests: New file.
39757         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
39758
39759         * modules/uniconv/u16-strconv-from-enc: New file.
39760         * lib/uniconv/u16-strconv-from-enc.c: New file.
39761         * modules/uniconv/u16-strconv-from-enc-tests: New file.
39762         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
39763
39764         * modules/uniconv/u8-strconv-from-enc: New file.
39765         * lib/uniconv/u8-strconv-from-enc.c: New file.
39766         * lib/uniconv/u-strconv-from-enc.h: New file.
39767         * modules/uniconv/u8-strconv-from-enc-tests: New file.
39768         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
39769
39770         * modules/uniconv/u32-conv-from-enc: New file.
39771         * lib/uniconv/u32-conv-from-enc.c: New file.
39772         * modules/uniconv/u32-conv-from-enc-tests: New file.
39773         * tests/uniconv/test-u32-conv-from-enc.c: New file.
39774
39775         * modules/uniconv/u16-conv-from-enc: New file.
39776         * lib/uniconv/u16-conv-from-enc.c: New file.
39777         * lib/uniconv/u-conv-from-enc.h: New file.
39778         * modules/uniconv/u16-conv-from-enc-tests: New file.
39779         * tests/uniconv/test-u16-conv-from-enc.c: New file.
39780
39781         * modules/uniconv/u8-conv-from-enc: New file.
39782         * lib/uniconv/u8-conv-from-enc.c: New file.
39783         * modules/uniconv/u8-conv-from-enc-tests: New file.
39784         * tests/uniconv/test-u8-conv-from-enc.c: New file.
39785
39786         * modules/uniconv/base: New file.
39787         * lib/uniconv.h: New file.
39788
39789 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
39790
39791         * doc/gnulib-tool.texi (Initial import): Update to match current
39792         behavior with strdup module.
39793         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
39794         * lib/memmem.h: Remove; all uses removed.  This is now done
39795         by <string.h>.
39796         * lib/mempcpy.h: Likewise.
39797         * lib/memrchr.h: Likewise.
39798         * lib/stpcpy.h: Likewise.
39799         * lib/stpncpy.h: Likewise.
39800         * lib/strcase.h: Likewise.
39801         * lib/strchrnul.h: Likewise.
39802         * lib/strdup.h: Likewise.
39803         * lib/strndup.h: Likewise.
39804         * lib/strnlen.h: Likewise.
39805         * lib/strpbrk.h: Likewise.
39806         * lib/strsep.h: Likewise.
39807         * lib/strstr.h: Likewise.
39808         * lib/strtok_r.h: Likewise.
39809         * lib/string_.h: New file.
39810         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
39811         Rely on <string.h> instead.
39812         * lib/canon-host.c: Likewise.
39813         * lib/chdir-long.c: Likewise.
39814         * lib/concatpath.c: Likewise.
39815         * lib/exclude.c: Likewise.
39816         * lib/fchdir.c: Likewise.
39817         * lib/getaddrinfo.c: Likewise.
39818         * lib/getcwd.c: Likewise.
39819         * lib/getsubopt.c: Likewise.
39820         * lib/glob.c: Likewise.
39821         * lib/hard-locale.c: Likewise.
39822         * lib/iconvme.c: Likewise.
39823         * lib/javacomp.c: Likewise.
39824         * lib/mempcpy.c: Likewise.
39825         * lib/memrchr.c: Likewise.
39826         * lib/regex_internal.h: Likewise.
39827         * lib/stpncpy.c: Likewise.
39828         * lib/strcasecmp.c: Likewise.
39829         * lib/strchrnul.c: Likewise.
39830         * lib/strdup.c: Likewise.
39831         * lib/striconv.c: Likewise.
39832         * lib/striconveh.c: Likewise.
39833         * lib/striconveha.c: Likewise.
39834         * lib/strncasecmp.c: Likewise.
39835         * lib/strndup.c: Likewise.
39836         * lib/strnlen.c: Likewise.
39837         * lib/strsep.c: Likewise.
39838         * lib/strstr.c: Likewise.
39839         * lib/strtok_r.c: Likewise.
39840         * lib/userspec.c: Likewise.
39841         * lib/w32spawn.h: Likewise.
39842         * lib/xstrndup.c: Likewise.
39843         * lib/mountlist.c (strstr): Remove decl.
39844         * m4/string_h.m4: New file.
39845         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
39846         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
39847         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
39848         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
39849         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
39850         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
39851         Set REPLACE_STRCASECMP if necessary.
39852         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
39853         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
39854         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
39855         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
39856         HAVE_DECL_STRDUP if necessary.
39857         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
39858         since gl_FUNC_STRNDUP does that now.
39859         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
39860         Check for decl here...
39861         (gl_PREREQ_STRNLEN): ... not here.
39862         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
39863         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
39864         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
39865         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
39866         necessary.
39867         * modules/string: New file.
39868         * modules/memmem (Files): Remove special-purpose include file.
39869         (Depends-on): Add string.
39870         (Include): Include <string.h>, not the removed file.
39871         * modules/mempcpy: Likewise.
39872         * modules/memrchr: Likewise.
39873         * modules/stpcpy: Likewise.
39874         * modules/stpncpy: Likewise.
39875         * modules/strcase: Likewise.
39876         * modules/strchrnul: Likewise.
39877         * modules/strdup: Likewise.
39878         * modules/strndup: Likewise.
39879         * modules/strnlen: Likewise.
39880         * modules/strpbrk: Likewise.
39881         * modules/strsep: Likewise.
39882         * modules/strstr: Likewise.
39883         * modules/strtok_r: Likewise.
39884         * tests/test-dirname.c: Don't include "strdup.h", since
39885         <string.h> now suffices.
39886         * tests/test-memmem.c: Don't include "memmem.h", since
39887         <string.h> now suffices.
39888
39889 2007-01-25  Bruno Haible  <bruno@clisp.org>
39890
39891         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
39892         *resultp is 0.
39893
39894         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
39895         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
39896         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
39897         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
39898
39899         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
39900         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
39901         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
39902         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
39903         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
39904         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
39905
39906 2007-01-24  Bruno Haible  <bruno@clisp.org>
39907
39908         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
39909         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
39910         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
39911         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
39912         gl_FUNC_FTS_CORE.
39913         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
39914         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
39915         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
39916         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
39917         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
39918         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
39919         gl_FUNC_FCHOWNAT.
39920         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
39921         gl_FUNC_STRFTIME.
39922         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
39923         Reported by Ralf Wildenhues.
39924
39925 2007-01-24  Bruno Haible  <bruno@clisp.org>
39926
39927         Drop AC_REQUIRE calls that are redundant with the module dependencies.
39928         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
39929         gl_GETADDRINFO.
39930         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
39931         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
39932         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
39933
39934 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
39935
39936         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
39937         Don't use 'exit'; just return from 'main'.
39938         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
39939
39940         * lib/fnmatch_.h: Readjust white space and comments to match
39941         glibc, to avoid spurious diffs.
39942
39943 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
39944
39945         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
39946         2004-12-01 change by Jakub Jelinek, since this code won't compile
39947         if !LIBC.  Problem reported by Bob Proulx.
39948
39949 2007-01-23  Bruno Haible  <bruno@clisp.org>
39950
39951         * lib/striconveh.c: Include c-strcaseeq.h.
39952         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
39953         * modules/striconveh (Depends-on): Add c-strcaseeq.
39954
39955 2007-01-23  Bruno Haible  <bruno@clisp.org>
39956
39957         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
39958
39959         * modules/c-strcaseeq: New file.
39960         * lib/c-strcaseeq.h: New file.
39961
39962         * modules/streq: New file.
39963         * lib/streq.h: New file.
39964
39965 2007-01-23  Bruno Haible  <bruno@clisp.org>
39966
39967         * modules/striconveha-tests: New file.
39968         * tests/test-striconveha.c: New file.
39969
39970         * lib/striconveha.h: Include <stdbool.h>.
39971         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
39972         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
39973         (mem_iconveha_notranslit): Renamed from mem_iconveha.
39974         (mem_iconveha): New function.
39975         (str_iconveha_notranslit): Renamed from str_iconveha.
39976         (str_iconveha): New function.
39977         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
39978         c-strcase.
39979
39980 2007-01-23  Bruno Haible  <bruno@clisp.org>
39981
39982         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
39983         encodings without forgiving before trying any encoding with handler.
39984         (str_iconveha): Try all encodings without forgiving before trying any
39985         encoding with handler.
39986
39987 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
39988
39989         Import the following changes from libc.
39990
39991         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
39992
39993         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
39994
39995         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
39996
39997         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
39998         normal_bracket label.
39999
40000         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
40001
40002         [BZ #361]
40003         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
40004         to normal_bracket after fetching the next character.
40005
40006 2007-01-22  Bruno Haible  <bruno@clisp.org>
40007
40008         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
40009         argument.
40010         * lib/striconveh.c (iconv_carefully_1): New function.
40011         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
40012         argument.
40013         (str_cd_iconveh): Update.
40014         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
40015         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
40016         * tests/test-striconveh.c (MAGIC): New macro.
40017         (new_offsets): New function.
40018         (main): Test call with and without offsets.
40019
40020 2007-01-22  Bruno Haible  <bruno@clisp.org>
40021
40022         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
40023         * modules/sys_select (Makefile.am): Likewise.
40024         * modules/sys_socket (Makefile.am): Likewise.
40025         * modules/sys_time (Makefile.am): Likewise.
40026
40027 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
40028
40029         * modules/gettimeofday (License): Change from GPL to LGPL, since
40030         gettimeofday is a library function.
40031
40032 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40033
40034         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
40035
40036 2007-01-21  Bruno Haible  <bruno@clisp.org>
40037
40038         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
40039
40040 2007-01-21  Bruno Haible  <bruno@clisp.org>
40041
40042         * modules/striconveha: New file.
40043         * lib/striconveha.h: New file.
40044         * lib/striconveha.c: New file.
40045         * MODULES.html.sh (Internationalization functions): Add striconveha.
40046         * lib/striconv.c (str_iconv): Optimize the case of an empty input
40047         string.
40048         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
40049
40050 2007-01-21  Bruno Haible  <bruno@clisp.org>
40051
40052         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
40053         * lib/striconveh.c (str_iconveh): Likewise.
40054
40055 2007-01-21  Bruno Haible  <bruno@clisp.org>
40056
40057         * lib/striconveh.h (mem_iconveh): New declaration.
40058         * lib/striconveh.c (mem_iconveh): New function.
40059         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
40060
40061 2007-01-21  Bruno Haible  <bruno@clisp.org>
40062
40063         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
40064
40065         * lib/striconveh.h (mem_cd_iconveh): Change specification.
40066         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
40067         original result buffer.
40068         (str_cd_iconveh): Update.
40069         * tests/test-striconveh.c (main): Update.
40070
40071         * lib/striconv.h (mem_cd_iconv): Change specification.
40072         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
40073         result buffer.
40074         (str_cd_iconv): Update.
40075         * tests/test-striconv.c (main): Update.
40076
40077 2007-01-21  Bruno Haible  <bruno@clisp.org>
40078
40079         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
40080
40081 2007-01-20  Jim Meyering  <jim@meyering.net>
40082
40083         * lib/userspec.c (parse_with_separator): If a user or group string
40084         starts with "+", skip the corresponding name-to-ID look-up, since
40085         such a look-up must fail: user and group names may not include "+".
40086
40087 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
40088
40089         * lib/poll.c: Include sys/time.h and time.h unconditionally,
40090         since we now assume the sys_time module.
40091         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
40092         check for sys/time.h; no longer needed.
40093         * modules/poll (Depends-on): Depend on sys_time.
40094
40095 2007-01-18  Bruno Haible  <bruno@clisp.org>
40096
40097         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
40098         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
40099
40100         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
40101         gettimeofday.
40102
40103         * tests/test-gettimeofday.c: Include <time.h>.
40104         (dummy): Remove variable.
40105
40106         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
40107         gl_HEADER_SYS_TIME_H.
40108         (gl_HEADER_SYS_TIME_H): New macro.
40109
40110         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
40111         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
40112         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
40113         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
40114         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
40115         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
40116         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
40117         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
40118         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
40119         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
40120         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
40121
40122         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
40123         last change; it caused a compilation error when cross-compiling to
40124         Cygwin.
40125
40126 2007-01-18  Jim Meyering  <jim@meyering.net>
40127
40128         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
40129         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
40130         than the race-prone "test -d sys || mkdir sys".
40131         (configure.ac): Use AC_PROG_MKDIR_P.
40132         * modules/sys_select: Likewise.
40133         * modules/sys_socket: Likewise.
40134         * modules/sys_time: Likewise.
40135
40136 2007-01-18  Eric Blake  <ebb9@byu.net>
40137
40138         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
40139         replace gettimeofday.
40140         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
40141         name, to avoid infinite recursion.
40142
40143 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
40144
40145         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
40146         module sys_time.
40147         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
40148         assume timespec.h defines struct timeval.
40149         * lib/settime.c: Likewise.
40150         * lib/utimens.c: Likewise.
40151         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
40152         since we now assume the gettimeofday module.
40153         * lib/tempname.c (__gen_tempname): Likewise.
40154         * lib/gettimeofday.h: Remove.
40155         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
40156         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
40157         Include <time.h>, for 'time()'.
40158         (localtime_buffer_addr): Also use this workaround if
40159         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
40160         to simplify the uses.  All uses changed.
40161         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
40162         that #undef is inside {}, and 'const' follows type name consistently.
40163         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
40164         (gettimeofday): Do not use the maximum possible value for
40165         tv->tv_usec, since that might break usages other than ls.c.
40166         Instead, we'll leave ls.c alone.  This undoes today's patch
40167         by Bruno.  Add a compile-time warning for 1s-clock resolution;
40168         we've never observed the problem but might as well keep the
40169         canary.
40170         * lib/nanosleep.c: Include timespec.h first, for interface check.
40171         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
40172         now assume the sys_time module.
40173         * lib/tempname.c: Likewise.
40174         * lib/timespec.h: Likewise.
40175         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
40176         needed.
40177         * lib/strftime.c: Likewise.
40178         * lib/timespec.h: Likewise.
40179         * lib/posixtm.c: Include posixtm.h first, for interface check.
40180         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
40181         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
40182         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
40183         * lib/sys_time_.h: New file.
40184         * lib/timespec.h (struct timespec): Use long int, not long.
40185         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
40186         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
40187         Remove obsolescent call to AC_HEADER_TIME.
40188         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
40189         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
40190         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
40191         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
40192         Likewise.
40193         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
40194         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
40195         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
40196         into the sys_time module.  Check for gettimeofday just once.
40197         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
40198         for gettimeofday signature to just check the signature.  Merely
40199         compile it, since linking doesn't test signature.  Improve test for
40200         whether gettimeofday.o is actually needed.
40201         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
40202         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
40203         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
40204         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
40205         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
40206         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
40207         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
40208         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
40209         than worrying about sys/time.h.
40210         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
40211         Don't bother worrying about TIME_WITH_SYS_TIME.
40212         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
40213         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
40214         * m4/sys_time_h.m4: New file.
40215         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
40216         Don't include sys/time.h.  Return from main rather than exiting.
40217         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
40218         all uses changed.
40219         * modules/gethrxtime (Depends-on): Add sys_time.
40220         * modules/gettime (Depends-on): Likewise.
40221         * modules/gettimeofday (Depends-on): Likewise.
40222         * modules/nanosleep (Depends-on): Likewise.
40223         * modules/settime (Depends-on): Likewise.
40224         * modules/tempname (Depends-on): Likewise.
40225         * modules/utimens (Depends-on): Likewise.
40226         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
40227         (Include:) Change back to <sys/time.h>.
40228         (Maintainer:) Add self.
40229         * modules/sys_time: New file.
40230         * modules/tempname (Depends-on): Add gettimeofday.
40231         * tests/test-gettimeofday.c: Include <sys/time.h>
40232         rather than gettimeofday.h.
40233
40234 2007-01-17  Bruno Haible  <bruno@clisp.org>
40235
40236         * gnulib-tool (func_get_license): Revert last patch. Instead, let
40237         the license default to GPL.
40238         (func_create_testdir): Don't complain if a module is LGPL and its
40239         tests module depends on GPLed modules.
40240
40241 2007-01-17  Bruno Haible  <bruno@clisp.org>
40242
40243         * lib/gettimeofday.c (gettimeofday): Add code for the case
40244         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
40245         maximum possible value for tv->tv_usec, rather than the minimum one.
40246
40247 2005-10-08  Martin Lambers  <marlam@marlam.de>
40248 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
40249 2007-01-16  Bruno Haible  <bruno@clisp.org>
40250
40251         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
40252         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
40253         gl_FUNC_GETTIMEOFDAY.
40254         (Include): Add gettimeofday.h.
40255         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
40256         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
40257         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
40258         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
40259         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
40260         * lib/gettimeofday.h: New file.
40261         * lib/gettimeofday.c: Include <sys/timeb.h>.
40262         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
40263         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
40264         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
40265         fall back on time().
40266
40267         * tests/test-gettimeofday.c: New file.
40268         * modules/gettimeofday-tests: New file.
40269
40270 2007-01-16  Eric Blake  <ebb9@byu.net>
40271
40272         * modules/fnmatch (Depends-on): Depend on wchar.
40273         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
40274         * m4/fnmatch.m4: Likewise.
40275         * modules/mbchar (Makefile.am): Assume <wchar.h>.
40276         * m4/mbchar.m4: Likewise.
40277         * modules/mbswidth (Depends-on): Depend on wchar.
40278         * lib/mbswidth.c: Assume <wchar.h>.
40279         * m4/mbswidth.m4: Likewise.
40280         * modules/quotearg (Depends-on): Depend on wchar.
40281         * lib/quotearg.c: Assume <wchar.h>.
40282         * m4/quotearg.m4: Likewise.
40283         * modules/regex (Depends-on): Depend on wchar.
40284         * lib/regex_internal.h: Assume <wchar.h>.
40285         * m4/regex.m4: Likewise.
40286         * modules/stdint (Depends-on): Depend on wchar.
40287         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
40288         * m4/stdint.m4: Likewise.
40289         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
40290         * modules/strftime (Depends-on): Depend on wchar.
40291         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
40292         * modules/strtol (Depends-on): Depend on wchar.
40293         * lib/strtol.c: Assume <wchar.h>.
40294         * modules/wcwidth (Depends-on): Depend on wchar.
40295         * lib/wcwidth.h: Assume <wchar.h>.
40296         * m4/wcwidth.m4: Likewise.
40297
40298 2007-01-16  Bruno Haible  <bruno@clisp.org>
40299
40300         * modules/csharpexec-script: New, created from...
40301         * modules/csharpexec: ... this.
40302
40303 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
40304
40305         * modules/javaexec-script: New, created from...
40306         * modules/javaexec: ... this.
40307
40308 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40309
40310         * modules/poll (Dependencies): Add sys_select.
40311
40312 2007-01-15  Jim Meyering  <jim@meyering.net>
40313
40314         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
40315         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
40316         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
40317         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
40318
40319 2007-01-15  Bruno Haible  <bruno@clisp.org>
40320
40321         * modules/striconveh: New file.
40322         * lib/striconveh.h: New file.
40323         * lib/striconveh.c: New file.
40324         * MODULES.html.sh (Internationalization functions): Add striconveh.
40325
40326         * modules/striconveh-tests: New file.
40327         * tests/test-striconveh.c: New file.
40328
40329 2007-01-15  Bruno Haible  <bruno@clisp.org>
40330
40331         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
40332         not from GNU libiconv or GNU libc.
40333
40334 2007-01-15  Bruno Haible  <bruno@clisp.org>
40335
40336         * doc/gnulib-intro.texi (Copyright): Explain the different license
40337         terms for module descriptions, autoconf macros, tests, documentation.
40338
40339 2007-01-14  Bruno Haible  <bruno@clisp.org>
40340
40341         * modules/striconv-tests: New file.
40342         * tests/test-striconv.c: New file.
40343
40344 2007-01-14  Bruno Haible  <bruno@clisp.org>
40345
40346         * modules/iconv-tests: New file.
40347         * tests/test-iconv.c: New file.
40348
40349 2007-01-14  Bruno Haible  <bruno@clisp.org>
40350
40351         * gnulib-tool (func_get_license): For test modules, use the license of
40352         the main module.
40353
40354 2007-01-14  Bruno Haible  <bruno@clisp.org>
40355
40356         * modules/iconv (Include): Clarify that <iconv.h> can only be included
40357         if iconv is found to exist.
40358
40359 2007-01-14  Bruno Haible  <bruno@clisp.org>
40360
40361         * modules/c-ctype-tests: New file.
40362         * tests/test-c-ctype.c: New file.
40363
40364 2007-01-14  Bruno Haible  <bruno@clisp.org>
40365
40366         * modules/binary-io-tests: New file.
40367         * tests/test-binary-io.sh: New file.
40368         * tests/test-binary-io.c: New file.
40369
40370 2007-01-14  Bruno Haible  <bruno@clisp.org>
40371
40372         * modules/array-oset-tests: New file.
40373         * tests/test-array_oset.c: New file.
40374
40375 2007-01-14  Bruno Haible  <bruno@clisp.org>
40376
40377         * modules/array-list-tests: New file.
40378         * tests/test-array_list.c: New file.
40379
40380 2007-01-14  Bruno Haible  <bruno@clisp.org>
40381
40382         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
40383         and make.
40384         Reported by Simon Josefsson in
40385         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
40386
40387 2007-01-14  Bruno Haible  <bruno@clisp.org>
40388
40389         * modules/allocsa-tests: New file.
40390         * tests/test-allocsa.c: New file.
40391
40392 2007-01-14  Bruno Haible  <bruno@clisp.org>
40393
40394         * modules/fchdir (Depends-on): Add absolute-header.
40395         * modules/unistd (Depends-on): Likewise.
40396
40397 2006-12-30  Bruno Haible  <bruno@clisp.org>
40398
40399         * modules/fchdir: New file.
40400         * modules/unistd (Files): Add lib/unistd_.h.
40401         (Makefile.am): Generate unistd.h from unistd_.h.
40402         * lib/fchdir.c: New file.
40403         * lib/dirent_.h: New file.
40404         * lib/unistd_.h: New file.
40405         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
40406         * m4/fchdir.m4: New file.
40407         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
40408         (gl_HEADER_UNISTD): Invoke it.
40409         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
40410         function.
40411         * lib/backupfile.c (opendir, closedir): Undefine.
40412         * lib/chown.c (open, close): Undefine.
40413         * lib/clean-temp.c (open, close): Undefine.
40414         * lib/copy-file.c (open, close): Undefine.
40415         * lib/execute.c (open, close): Undefine.
40416         * lib/fsusage.c (open, close): Undefine.
40417         * lib/gc-gnulib.c (open, close): Undefine.
40418         * lib/getcwd.c (opendir, closedir): Undefine.
40419         * lib/glob.c (opendir, closedir): Undefine.
40420         * lib/javacomp.c (open, close): Undefine.
40421         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
40422         * lib/openat-proc.c (open, close): Undefine.
40423         * lib/pagealign_alloc.c (open, close): Undefine.
40424         * lib/pipe.c (open, close): Undefine.
40425         * lib/progreloc.c (open, close): Undefine.
40426         * lib/savedir.c (opendir, closedir): Undefine.
40427         * lib/utime.c (open, close): Undefine.
40428         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
40429
40430 2007-01-10  Bruno Haible  <bruno@clisp.org>
40431
40432         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
40433
40434 2007-01-12  Eric Blake  <ebb9@byu.net>
40435
40436         Provide a robust <wchar.h>.  Further simplifications are now
40437         possible in other modules, but not included here.
40438         * modules/wchar: New module.
40439         * m4/wchar.m4: New file.
40440         * lib/wchar_.h: Likewise.
40441         * modules/mbchar (Depends-on): Depend on wchar, as the first use
40442         of the new module.
40443         * MODULES.html.sh (Extended multibyte and wide character utilities):
40444         New section.
40445
40446 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
40447
40448         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
40449         to a reasonable default for memory allocation.
40450         (xreadlink): Don't allocate a huge buffer, to work around a buggy
40451         file system that reports garbage st_size values for symlinks.
40452         Problem reported by Liyang Hu.
40453
40454 2007-01-11  Simon Josefsson  <simon@josefsson.org>
40455
40456         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
40457         Emacs .#* auto-save files).
40458
40459 2007-01-11  Bruno Haible  <bruno@clisp.org>
40460
40461         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
40462         directory.
40463
40464 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
40465
40466         Use @...@ consistently in lib/wctype_.h.
40467         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
40468         on it being set to 1 or 0.
40469         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
40470         go back to AC_SUBSTing it.
40471         * modules/wctype (Makefile.am): Undo previous change.
40472
40473 2007-01-10  Eric Blake  <ebb9@byu.net>
40474
40475         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
40476         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
40477         * modules/wctype (Makefile.am): Likewise.
40478         Reported by Chris McGuire.
40479
40480 2007-01-10  Jim Meyering  <jim@meyering.net>
40481
40482         fts.c: a small readability/maintainability improvement
40483         * lib/fts.c (fts_read): Make this code slightly more readable and
40484         maintainable by hoisting the "sp->fts_cur = p" assignments to
40485         immediately follow the statements that set P.  Derived from
40486         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
40487
40488 2007-01-10  Eric Blake  <ebb9@byu.net>
40489
40490         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
40491         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
40492         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
40493         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
40494         Reported by Chris McGuire.
40495
40496 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40497
40498         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
40499         in sed script.
40500
40501 2007-01-09  Bruno Haible  <bruno@clisp.org>
40502
40503         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
40504         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
40505         variables.
40506         (func_module): Use them.
40507
40508 2007-01-09  Bruno Haible  <bruno@clisp.org>
40509
40510         * modules/unistr/base: New file.
40511         * lib/unistr.h: New file.
40512
40513         * modules/unistr/u8-to-u16: New file.
40514         * lib/unistr/u8-to-u16.c: New file.
40515
40516         * modules/unistr/u8-to-u32: New file.
40517         * lib/unistr/u8-to-u32.c: New file.
40518
40519         * modules/unistr/u16-to-u8: New file.
40520         * lib/unistr/u16-to-u8.c: New file.
40521
40522         * modules/unistr/u16-to-u32: New file.
40523         * lib/unistr/u16-to-u32.c: New file.
40524
40525         * modules/unistr/u32-to-u8: New file.
40526         * lib/unistr/u32-to-u8.c: New file.
40527
40528         * modules/unistr/u32-to-u16: New file.
40529         * lib/unistr/u32-to-u16.c: New file.
40530
40531         * modules/unistr/u8-check: New file.
40532         * modules/unistr/u16-check: New file.
40533         * modules/unistr/u32-check: New file.
40534         * lib/unistr/u8-check.c: New file.
40535         * lib/unistr/u16-check.c: New file.
40536         * lib/unistr/u32-check.c: New file.
40537
40538         * modules/unistr/u8-chr: New file.
40539         * modules/unistr/u16-chr: New file.
40540         * modules/unistr/u32-chr: New file.
40541         * lib/unistr/u8-chr.c: New file.
40542         * lib/unistr/u16-chr.c: New file.
40543         * lib/unistr/u32-chr.c: New file.
40544
40545         * modules/unistr/u8-cmp: New file.
40546         * modules/unistr/u16-cmp: New file.
40547         * modules/unistr/u32-cmp: New file.
40548         * lib/unistr/u8-cmp.c: New file.
40549         * lib/unistr/u16-cmp.c: New file.
40550         * lib/unistr/u32-cmp.c: New file.
40551
40552         * modules/unistr/u8-cpy: New file.
40553         * modules/unistr/u16-cpy: New file.
40554         * modules/unistr/u32-cpy: New file.
40555         * lib/unistr/u8-cpy.c: New file.
40556         * lib/unistr/u16-cpy.c: New file.
40557         * lib/unistr/u32-cpy.c: New file.
40558         * lib/unistr/u-cpy.h: New file.
40559
40560         * modules/unistr/u8-cpy-alloc: New file.
40561         * modules/unistr/u16-cpy-alloc: New file.
40562         * modules/unistr/u32-cpy-alloc: New file.
40563         * lib/unistr/u8-cpy-alloc.c: New file.
40564         * lib/unistr/u16-cpy-alloc.c: New file.
40565         * lib/unistr/u32-cpy-alloc.c: New file.
40566         * lib/unistr/u-cpy-alloc.h: New file.
40567
40568         * modules/unistr/u8-endswith: New file.
40569         * modules/unistr/u16-endswith: New file.
40570         * modules/unistr/u32-endswith: New file.
40571         * lib/unistr/u8-endswith.c: New file.
40572         * lib/unistr/u16-endswith.c: New file.
40573         * lib/unistr/u32-endswith.c: New file.
40574         * lib/unistr/u-endswith.h: New file.
40575
40576         * modules/unistr/u8-mblen: New file.
40577         * modules/unistr/u16-mblen: New file.
40578         * modules/unistr/u32-mblen: New file.
40579         * lib/unistr/u8-mblen.c: New file.
40580         * lib/unistr/u16-mblen.c: New file.
40581         * lib/unistr/u32-mblen.c: New file.
40582
40583         * modules/unistr/u8-mbtouc: New file.
40584         * modules/unistr/u16-mbtouc: New file.
40585         * modules/unistr/u32-mbtouc: New file.
40586         * lib/unistr/u8-mbtouc.c: New file.
40587         * lib/unistr/u16-mbtouc.c: New file.
40588         * lib/unistr/u32-mbtouc.c: New file.
40589
40590         * modules/unistr/u8-mbtouc-safe: New file.
40591         * modules/unistr/u16-mbtouc-safe: New file.
40592         * modules/unistr/u32-mbtouc-safe: New file.
40593         * lib/unistr/u8-mbtouc-safe.c: New file.
40594         * lib/unistr/u16-mbtouc-safe.c: New file.
40595         * lib/unistr/u32-mbtouc-safe.c: New file.
40596
40597         * modules/unistr/u8-move: New file.
40598         * modules/unistr/u16-move: New file.
40599         * modules/unistr/u32-move: New file.
40600         * lib/unistr/u8-move.c: New file.
40601         * lib/unistr/u16-move.c: New file.
40602         * lib/unistr/u32-move.c: New file.
40603         * lib/unistr/u-move.h: New file.
40604
40605         * modules/unistr/u8-next: New file.
40606         * modules/unistr/u16-next: New file.
40607         * modules/unistr/u32-next: New file.
40608         * lib/unistr/u8-next.c: New file.
40609         * lib/unistr/u16-next.c: New file.
40610         * lib/unistr/u32-next.c: New file.
40611
40612         * modules/unistr/u8-prev: New file.
40613         * modules/unistr/u16-prev: New file.
40614         * modules/unistr/u32-prev: New file.
40615         * lib/unistr/u8-prev.c: New file.
40616         * lib/unistr/u16-prev.c: New file.
40617         * lib/unistr/u32-prev.c: New file.
40618
40619         * modules/unistr/u8-set: New file.
40620         * modules/unistr/u16-set: New file.
40621         * modules/unistr/u32-set: New file.
40622         * lib/unistr/u8-set.c: New file.
40623         * lib/unistr/u16-set.c: New file.
40624         * lib/unistr/u32-set.c: New file.
40625         * lib/unistr/u-set.h: New file.
40626
40627         * modules/unistr/u8-startswith: New file.
40628         * modules/unistr/u16-startswith: New file.
40629         * modules/unistr/u32-startswith: New file.
40630         * lib/unistr/u8-startswith.c: New file.
40631         * lib/unistr/u16-startswith.c: New file.
40632         * lib/unistr/u32-startswith.c: New file.
40633         * lib/unistr/u-startswith.h: New file.
40634
40635         * modules/unistr/u8-stpcpy: New file.
40636         * modules/unistr/u16-stpcpy: New file.
40637         * modules/unistr/u32-stpcpy: New file.
40638         * lib/unistr/u8-stpcpy.c: New file.
40639         * lib/unistr/u16-stpcpy.c: New file.
40640         * lib/unistr/u32-stpcpy.c: New file.
40641         * lib/unistr/u-stpcpy.h: New file.
40642
40643         * modules/unistr/u8-stpncpy: New file.
40644         * modules/unistr/u16-stpncpy: New file.
40645         * modules/unistr/u32-stpncpy: New file.
40646         * lib/unistr/u8-stpncpy.c: New file.
40647         * lib/unistr/u16-stpncpy.c: New file.
40648         * lib/unistr/u32-stpncpy.c: New file.
40649         * lib/unistr/u-stpncpy.h: New file.
40650
40651         * modules/unistr/u8-strcat: New file.
40652         * modules/unistr/u16-strcat: New file.
40653         * modules/unistr/u32-strcat: New file.
40654         * lib/unistr/u8-strcat.c: New file.
40655         * lib/unistr/u16-strcat.c: New file.
40656         * lib/unistr/u32-strcat.c: New file.
40657         * lib/unistr/u-strcat.h: New file.
40658
40659         * modules/unistr/u8-strchr: New file.
40660         * modules/unistr/u16-strchr: New file.
40661         * modules/unistr/u32-strchr: New file.
40662         * lib/unistr/u8-strchr.c: New file.
40663         * lib/unistr/u16-strchr.c: New file.
40664         * lib/unistr/u32-strchr.c: New file.
40665
40666         * modules/unistr/u8-strcmp: New file.
40667         * modules/unistr/u16-strcmp: New file.
40668         * modules/unistr/u32-strcmp: New file.
40669         * lib/unistr/u8-strcmp.c: New file.
40670         * lib/unistr/u16-strcmp.c: New file.
40671         * lib/unistr/u32-strcmp.c: New file.
40672
40673         * modules/unistr/u8-strcpy: New file.
40674         * modules/unistr/u16-strcpy: New file.
40675         * modules/unistr/u32-strcpy: New file.
40676         * lib/unistr/u8-strcpy.c: New file.
40677         * lib/unistr/u16-strcpy.c: New file.
40678         * lib/unistr/u32-strcpy.c: New file.
40679         * lib/unistr/u-strcpy.h: New file.
40680
40681         * modules/unistr/u8-strcspn: New file.
40682         * modules/unistr/u16-strcspn: New file.
40683         * modules/unistr/u32-strcspn: New file.
40684         * lib/unistr/u8-strcspn.c: New file.
40685         * lib/unistr/u16-strcspn.c: New file.
40686         * lib/unistr/u32-strcspn.c: New file.
40687         * lib/unistr/u-strcspn.h: New file.
40688
40689         * modules/unistr/u8-strdup: New file.
40690         * modules/unistr/u16-strdup: New file.
40691         * modules/unistr/u32-strdup: New file.
40692         * lib/unistr/u8-strdup.c: New file.
40693         * lib/unistr/u16-strdup.c: New file.
40694         * lib/unistr/u32-strdup.c: New file.
40695         * lib/unistr/u-strdup.h: New file.
40696
40697         * modules/unistr/u8-strlen: New file.
40698         * modules/unistr/u16-strlen: New file.
40699         * modules/unistr/u32-strlen: New file.
40700         * lib/unistr/u8-strlen.c: New file.
40701         * lib/unistr/u16-strlen.c: New file.
40702         * lib/unistr/u32-strlen.c: New file.
40703         * lib/unistr/u-strlen.h: New file.
40704
40705         * modules/unistr/u8-strmblen: New file.
40706         * modules/unistr/u16-strmblen: New file.
40707         * modules/unistr/u32-strmblen: New file.
40708         * lib/unistr/u8-strmblen.c: New file.
40709         * lib/unistr/u16-strmblen.c: New file.
40710         * lib/unistr/u32-strmblen.c: New file.
40711
40712         * modules/unistr/u8-strmbtouc: New file.
40713         * modules/unistr/u16-strmbtouc: New file.
40714         * modules/unistr/u32-strmbtouc: New file.
40715         * lib/unistr/u8-strmbtouc.c: New file.
40716         * lib/unistr/u16-strmbtouc.c: New file.
40717         * lib/unistr/u32-strmbtouc.c: New file.
40718
40719         * modules/unistr/u8-strncat: New file.
40720         * modules/unistr/u16-strncat: New file.
40721         * modules/unistr/u32-strncat: New file.
40722         * lib/unistr/u8-strncat.c: New file.
40723         * lib/unistr/u16-strncat.c: New file.
40724         * lib/unistr/u32-strncat.c: New file.
40725         * lib/unistr/u-strncat.h: New file.
40726
40727         * modules/unistr/u8-strncmp: New file.
40728         * modules/unistr/u16-strncmp: New file.
40729         * modules/unistr/u32-strncmp: New file.
40730         * lib/unistr/u8-strncmp.c: New file.
40731         * lib/unistr/u16-strncmp.c: New file.
40732         * lib/unistr/u32-strncmp.c: New file.
40733
40734         * modules/unistr/u8-strncpy: New file.
40735         * modules/unistr/u16-strncpy: New file.
40736         * modules/unistr/u32-strncpy: New file.
40737         * lib/unistr/u8-strncpy.c: New file.
40738         * lib/unistr/u16-strncpy.c: New file.
40739         * lib/unistr/u32-strncpy.c: New file.
40740         * lib/unistr/u-strncpy.h: New file.
40741
40742         * modules/unistr/u8-strnlen: New file.
40743         * modules/unistr/u16-strnlen: New file.
40744         * modules/unistr/u32-strnlen: New file.
40745         * lib/unistr/u8-strnlen.c: New file.
40746         * lib/unistr/u16-strnlen.c: New file.
40747         * lib/unistr/u32-strnlen.c: New file.
40748         * lib/unistr/u-strnlen.h: New file.
40749
40750         * modules/unistr/u8-strpbrk: New file.
40751         * modules/unistr/u16-strpbrk: New file.
40752         * modules/unistr/u32-strpbrk: New file.
40753         * lib/unistr/u8-strpbrk.c: New file.
40754         * lib/unistr/u16-strpbrk.c: New file.
40755         * lib/unistr/u32-strpbrk.c: New file.
40756         * lib/unistr/u-strpbrk.h: New file.
40757
40758         * modules/unistr/u8-strrchr: New file.
40759         * modules/unistr/u16-strrchr: New file.
40760         * modules/unistr/u32-strrchr: New file.
40761         * lib/unistr/u8-strrchr.c: New file.
40762         * lib/unistr/u16-strrchr.c: New file.
40763         * lib/unistr/u32-strrchr.c: New file.
40764
40765         * modules/unistr/u8-strspn: New file.
40766         * modules/unistr/u16-strspn: New file.
40767         * modules/unistr/u32-strspn: New file.
40768         * lib/unistr/u8-strspn.c: New file.
40769         * lib/unistr/u16-strspn.c: New file.
40770         * lib/unistr/u32-strspn.c: New file.
40771         * lib/unistr/u-strspn.h: New file.
40772
40773         * modules/unistr/u8-strstr: New file.
40774         * modules/unistr/u16-strstr: New file.
40775         * modules/unistr/u32-strstr: New file.
40776         * lib/unistr/u8-strstr.c: New file.
40777         * lib/unistr/u16-strstr.c: New file.
40778         * lib/unistr/u32-strstr.c: New file.
40779         * lib/unistr/u-strstr.h: New file.
40780
40781         * modules/unistr/u8-strtok: New file.
40782         * modules/unistr/u16-strtok: New file.
40783         * modules/unistr/u32-strtok: New file.
40784         * lib/unistr/u8-strtok.c: New file.
40785         * lib/unistr/u16-strtok.c: New file.
40786         * lib/unistr/u32-strtok.c: New file.
40787         * lib/unistr/u-strtok.h: New file.
40788
40789         * modules/unistr/u8-uctomb: New file.
40790         * modules/unistr/u16-uctomb: New file.
40791         * modules/unistr/u32-uctomb: New file.
40792         * lib/unistr/u8-uctomb.c: New file.
40793         * lib/unistr/u16-uctomb.c: New file.
40794         * lib/unistr/u32-uctomb.c: New file.
40795
40796         * MODULES.html.sh (Unicode string functions): Add the new modules.
40797
40798 2007-01-08  Bruno Haible  <bruno@clisp.org>
40799
40800         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
40801         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
40802         subdirectories.
40803
40804 2007-01-08  Karl Berry  <karl@gnu.org>
40805
40806         * doc/error.texi: mention that main() fns must set program_name
40807         when progname is used.
40808
40809 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
40810
40811         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
40812         WCTYPE_H is empty, for the benefit of builds from non-distclean
40813         directories.  Problem reported by Eric Blake in
40814         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
40815
40816 2007-01-08  Bruno Haible  <bruno@clisp.org>
40817
40818         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
40819         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
40820         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
40821         PROVIDE_CANONICALIZE_FILENAME_MODE.
40822         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
40823
40824 2007-01-08  Bruno Haible  <bruno@clisp.org>
40825
40826         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
40827         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
40828         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
40829         * lib/fts.c: Likewise.
40830         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
40831
40832 2006-12-25  Bruno Haible  <bruno@clisp.org>
40833
40834         * modules/utf8-ucs4-safe: New file.
40835         * lib/utf8-ucs4-safe.h: New file.
40836         * lib/unistr/utf8-ucs4-safe.c: New file.
40837
40838         * modules/utf16-ucs4-safe: New file.
40839         * lib/utf16-ucs4-safe.h: New file.
40840         * lib/unistr/utf16-ucs4-safe.c: New file.
40841
40842         * MODULES.html.sh (Unicode string functions): Add the new modules.
40843
40844 2007-01-08  Bruno Haible  <bruno@clisp.org>
40845
40846         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
40847         (Depends-on): Add unitypes.
40848         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
40849         (u8_mbtouc_aux): Move out to separate file.
40850         (u8_mbtouc): Use ucs4_t, uint8_t types.
40851         * lib/unistr/utf8-ucs4.c: New file.
40852
40853         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
40854         (Depends-on): Add unitypes.
40855         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
40856         (u16_mbtouc_aux): Move out to separate file.
40857         (u16_mbtouc): Use ucs4_t, uint16_t types.
40858         * lib/unistr/utf16-ucs4.c: New file.
40859
40860         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
40861         (Depends-on): Add unitypes.
40862         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
40863         (u8_uctomb_aux): Move out to separate file.
40864         (u8_uctomb): Use ucs4_t, uint8_t types.
40865         * lib/unistr/ucs4-utf8.c: New file.
40866
40867         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
40868         (Depends-on): Add unitypes.
40869         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
40870         (u16_uctomb_aux): Move out to separate file.
40871         (u16_uctomb): Use ucs4_t, uint16_t types.
40872         * lib/unistr/ucs4-utf16.c: New file.
40873
40874 2006-12-25  Bruno Haible  <bruno@clisp.org>
40875
40876         * modules/unitypes: New file.
40877         * lib/unitypes.h: New file.
40878         * MODULES.html.sh (func_all_modules): New section "Unicode string
40879         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
40880         this section. Add unitypes.
40881
40882 2007-01-08  Bruno Haible  <bruno@clisp.org>
40883
40884         Avoid variable names that conflict with those from libtool.
40885         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
40886         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
40887         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
40888         library_names_spec to acl_library_names_spec, hardcode_* to
40889         acl_hardcode_*.
40890         Reported by Ralf Wildenhues.
40891
40892 2007-01-08  Bruno Haible  <bruno@clisp.org>
40893
40894         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
40895         definition.
40896         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
40897         definition.
40898         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
40899         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
40900         definition.
40901         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
40902         definition.
40903         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
40904         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
40905         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
40906         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
40907         definition.
40908         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
40909         definition.
40910         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
40911         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
40912         GC_USE_<algorithm>.
40913         * lib/gc-libgcrypt.c: Likewise.
40914         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
40915         * modules/gc-arctwo (configure.ac): Likewise.
40916         * modules/gc-des (configure.ac): Likewise.
40917         * modules/gc-hmac-md5 (configure.ac): Likewise.
40918         * modules/gc-hmac-sha1 (configure.ac): Likewise.
40919         * modules/gc-md2 (configure.ac): Likewise.
40920         * modules/gc-md4 (configure.ac): Likewise.
40921         * modules/gc-md5 (configure.ac): Likewise.
40922         * modules/gc-random (configure.ac): Likewise.
40923         * modules/gc-rijndael (configure.ac): Likewise.
40924         * modules/gc-sha1 (configure.ac): Likewise.
40925
40926 2007-01-08  Bruno Haible  <bruno@clisp.org>
40927
40928         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
40929         macro definition.
40930         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
40931         definition.
40932         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
40933         definition.
40934         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
40935         * modules/fcntl-safer (configure.ac): Likewise.
40936         * modules/fopen-safer (configure.ac): Likewise.
40937         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
40938         GNULIB_FWRITEERROR macro definition.
40939
40940 2007-01-08  Bruno Haible  <bruno@clisp.org>
40941
40942         * m4/gnulib-common.m4: New file.
40943         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
40944         (func_get_filelist): Add m4/gnulib-common.m4.
40945
40946 2007-01-08  Bruno Haible  <bruno@clisp.org>
40947
40948         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
40949         command.
40950
40951 2007-01-08  Jim Meyering  <jim@meyering.net>
40952
40953         Use a more robust test for a "can't happen" condition.
40954         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
40955         narrowed the st_size value.  Presuming the "can't happen" condition
40956         is true, that narrowing could conceivably convert an invalid st_size
40957         value into a valid one.  Instead, use a change based on Matthew
40958         Woehlke's original patch.
40959
40960         Slight readability improvement: use an assert-like macro
40961         in place of literal "abort ()" uses.
40962         * lib/fts.c (fts_assert): Define.
40963         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
40964         Use this macro instead of a bare 'abort'.
40965
40966 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
40967
40968         Don't worry about using IRIX 5.3's wctype.h broken definitions;
40969         simply work around them.
40970         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
40971         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
40972         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
40973         declaring.
40974         Don't bother to define as macros, since the standard doesn't require it.
40975         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
40976         longer worry about IRIX 5.3.
40977         (HAVE_WCTYPE_CTMP_BUG): Remove.
40978
40979 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
40980
40981         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
40982         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
40983         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
40984         Problems reported by Georg Schwarz for IRIX 5.3.
40985
40986         * gnulib-tool (autoconf_minversion): Take the maximum version number
40987         found, not the minimum.  Problem reported by James Youngman.
40988
40989 2007-01-03  Karl Berry  <karl@gnu.org>
40990
40991         * doc/error.texi: new file, explaining interaction with progname.
40992         * doc/gnulib.texi: include it.  Update copyright.
40993
40994 2007-01-03  Simon Josefsson  <simon@josefsson.org>
40995
40996         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
40997         AC_CANONICAL_HOST, to improve autobuild outputs.
40998
40999 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
41000             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
41001
41002         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
41003         sockets, server sockets, and other file descriptors.  Count errors
41004         to compute the return value.  Reorder the code a bit to be easier
41005         to follow.  Don't set event bits that were not requested (except
41006         POLLERR and POLLHUP).
41007
41008 2007-01-01  Bruno Haible  <bruno@clisp.org>
41009
41010         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
41011
41012 2007-01-03  Jim Meyering  <jim@meyering.net>
41013
41014         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
41015
41016 2007-01-02  Bruno Haible  <bruno@clisp.org>
41017
41018         * modules/settime (Include): Require timespec.h.
41019         * modules/nanosleep (Include): Likewise.
41020
41021 2007-01-01  Bruno Haible  <bruno@clisp.org>
41022
41023         * gnulib-tool (func_emit_copyright_notice): Bump year.
41024         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
41025
41026 2007-01-01  Bruno Haible  <bruno@clisp.org>
41027
41028         Improve support for OpenBSD.
41029         * build-aux/config.rpath (libname_spec): Export.
41030         (library_names_spec): New variable. Export.
41031         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
41032         library_names_spec from the config.rpath output. Locate shared library
41033         through the name pattern in library_names_spec.
41034
41035 2007-01-01  Eric Blake  <ebb9@byu.net>
41036
41037         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
41038
41039 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
41040
41041         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
41042         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
41043         assume the C locale, and avoid an "eval" that could cause trouble.
41044         Problem with SORT reported by Bob Proulx.
41045
41046         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
41047         Define.  Trivial patch from Henning Nielsen Lund, originally
41048         sent to bug-grep@gnu.org today.
41049
41050 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
41051
41052         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
41053         struct stat.  Problem reported by Henning Nielsen Lund.
41054         * lib/acl.c: Include acl.h first, to check interface.  Don't
41055         bother to include sys/types.h and sys/stat.h again.
41056
41057 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
41058
41059         Import the following change from libc; problem reported by
41060         Sven Verdoolaege.
41061
41062         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
41063
41064         [BZ #1373]
41065         * lib/argp.h: Remove __NTH for __argp_usage inline function.
41066
41067 2006-12-28  Jim Meyering  <jim@meyering.net>
41068
41069         * build-aux/announce-gen: Do not assume that the package
41070         builds any of tar.gz, tar.bz2, and .xdelta files.
41071         Suggestion from Simon Josefsson.
41072
41073 2006-12-28  Simon Josefsson  <simon@josefsson.org>
41074
41075         * modules/announce-gen: New file.
41076
41077 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
41078
41079         * lib/mbchar.h: Just include <wctype.h>; the wctype module
41080         handles its gotchas now.
41081         * lib/mbswidth.c: Likewise.
41082         * lib/wcwidth.h: Likewise.
41083         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
41084         and iswcntrl; the wctype module does this stuff now.
41085         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
41086         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
41087         * modules/mbchar (Depends-on): Add wctype.
41088         * modules/mbswidth (Depends-on): Likewise.
41089         * modules/wcwidth (Depends-on): Likewise.
41090
41091 2006-12-27  Eric Blake  <ebb9@byu.net>
41092
41093         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
41094         module uses more than what <wctype.h> is required to provide.
41095
41096 2006-12-26  Eric Blake  <ebb9@byu.net>
41097
41098         * gnulib-tool (sed_extract_prog): Avoid space-tab.
41099
41100 2006-12-26  Eric Blake  <ebb9@byu.net>
41101
41102         * modules/absolute-header: New module.
41103         * modules/fcntl (Depends-on): Depend on it.
41104         * modules/inttypes (Depends-on): Likewise.
41105         * modules/stdint (Depends-on): Likewise.
41106         * modules/sys_stat (Depends-on): Likewise.
41107         * modules/wctype (Depends-on): Likewise.
41108         * MODULES.html.sh (Support for building libraries and
41109         executables): Document it.
41110
41111 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
41112
41113         * gnulib-tool (SED): Remove, undoing previous change.
41114         The problem was that it broke coreutils on Solaris, because
41115         "sed --posix" leaked into a makefile.
41116         (sed): New alias, if 'alias' and GNU sed.
41117
41118 2006-12-24  Jim Meyering  <jim@meyering.net>
41119
41120         Work around an fchownat bug in glibc-2.4:
41121         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
41122         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
41123         in spite of the -P option.
41124         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
41125         New macros.
41126         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
41127         * modules/openat (Files): Add lib/fchownat.c.
41128         * lib/openat.c (fchownat): Don't define here.  Move to...
41129         * lib/fchownat.c: ...this new file.
41130
41131 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
41132
41133         Fix bug reported by Bruno Haible in
41134         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
41135         where quotearg.c didn't compile on Mac OS X 10.2 because it
41136         lacks <wchar.h> and wint_t.
41137         * lib/wctype_.h (__wctype_wint_t): New type.
41138         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
41139         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
41140         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
41141         Arg is now of type __wctype_wint_t, not wint_t.
41142         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
41143         substitute HAVE_WINT_T.
41144         * modules/wctype (Files): Add m4/wint_t.m4.
41145         (wctype.h): Substitute HAVE_WINT_T.
41146
41147 2006-12-23  Bruno Haible  <bruno@clisp.org>
41148
41149         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
41150
41151 2006-12-23  Bruno Haible  <bruno@clisp.org>
41152
41153         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
41154         S_ISLNK.
41155         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
41156         mingw.
41157
41158 2006-12-22  Bruno Haible  <bruno@clisp.org>
41159
41160         * lib/copy-file.c: Include acl.h.
41161         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
41162         Close the file descriptors only after being done with copy_acl.
41163         * modules/copy-file (Depends-on): Add acl.
41164
41165 2006-12-22  Bruno Haible  <bruno@clisp.org>
41166
41167         * gnulib-tool (SED): New variable.
41168         Use $SED instead of sed everywhere.
41169
41170 2006-12-22  Bruno Haible  <bruno@clisp.org>
41171
41172         * modules/no-c++: New file.
41173         * m4/no-c++.m4: New file.
41174         * MODULES.html.sh (Support for building libraries and executables):
41175         Add no-c++.
41176
41177 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
41178
41179         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
41180         Include <limits.h>, and use its INT_MAX to rewrite the
41181         j loop so that it does not overflow 'int'.  Problem reported by
41182         Ralf Wildenhues in
41183         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
41184         Play it safe by shifting left by 1 rather than multiplying by 2,
41185         as GCC is less likely to optimize this away when the value
41186         is signed (when it assumes overflow leads to undefined behavior).
41187         Also, don't assume time_t uses two's complement.
41188
41189 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
41190
41191         * MODULES.html.sh: New module wctype.
41192         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
41193         * lib/fnmatch.c: Don't bother to include <wchar.h> before
41194         <wctype.h>, since the new wctype module should fix this.
41195         * lib/quotearg.c: Include <wctype.h> unconditionally, since
41196         the wctype module should arrange for it.
41197         * lib/regex_internal.h: Likewise.
41198         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
41199         since the wctype module should handle this now.
41200         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
41201         * modules/fnmatch (Depends-on): Add wctype.
41202         * modules/quotearg (Depends-on): Likewise.
41203         * modules/regex (Depends-on): Likewise.
41204
41205 2006-12-19  Bruno Haible  <bruno@clisp.org>
41206
41207         * lib/strdup.h [C++]: Wrap definitions in extern "C".
41208         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
41209
41210 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41211
41212         * modules/savewd (Depends-on): Fix dependency on fcntl.
41213
41214 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
41215
41216         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
41217         conforms to C99, rather than relying on the user's environment
41218         setting of STDINT_H.
41219
41220 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
41221         and Eric Blake  <ebb9@byu.net>
41222
41223         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
41224         This is more consistent with the other defines here.
41225         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
41226         Port to z/OS.  Problem reported by Paul Gilmartin.
41227         Change local vars to use gl_ prefix rather than ac_.
41228         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
41229         with other defines.
41230         * modules/double-slash-root: New module.
41231         * modules/dirname (Files): Remove m4/double-slash-root.m4.
41232         (Depends-on): Add double-slash-root.
41233         * MODULES.html.sh (File system functions): Mention new module.
41234
41235 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
41236
41237         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
41238         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
41239         This is for the benefit of gzip, which doesn't do i18n.
41240
41241 2006-12-12  Jim Meyering  <jim@meyering.net>
41242
41243         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
41244         Reported by Andreas Schwab <schwab@suse.de>.
41245
41246 2006-12-12  Bruno Haible  <bruno@clisp.org>
41247
41248         Merge these changes.
41249         2006-09-05  Bruno Haible  <bruno@clisp.org>
41250         * lib/iconvme.c (iconv_string): No need to save and restore errno when
41251         iconv_alloc succeeded.
41252         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
41253         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
41254         test for " && dest " at the end - dest is always != NULL there. Call
41255         iconv with 4xNULL arguments initially, to reset the state. Call iconv
41256         with 2xNULL arguments, also to flush the state storage. Handle the
41257         IRIX iconv behaviour. Realloc the final result, to throw away unused
41258         memory.
41259
41260 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
41261
41262         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
41263         and fchmodat unconditionally, since glibc 2.4 has them.
41264         Problem reported by Arkadiusz Miskiewicz.
41265
41266 2006-12-10  Bruno Haible  <bruno@clisp.org>
41267
41268         * gnulib-tool (func_import): Show the include files only for those
41269         modules that are copied and specified.
41270         Reported by Karl Berry.
41271
41272 2006-12-08  Jim Meyering  <jim@meyering.net>
41273
41274         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
41275         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
41276
41277         * build-aux/announce-gen: Add two new options, both optional:
41278         --bootstrap-tools=TOOL_LIST
41279               a comma-separated list of tools, e.g.,
41280               autoconf,automake,bison,gnulib
41281         --gnulib-snapshot-date=DATE
41282               if gnulib is in the bootstrap tool list,
41283               then report this as the snapshot date.
41284               If not specified, use the current date/time.
41285               If you specify a date here, be sure it's UTC.
41286
41287 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41288
41289         * tests/test-argp-2.sh: Fix test to match actual output.
41290         (func_compare): Fix sed script to be portable.
41291
41292 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
41293
41294         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
41295         workaround for this case.  It is not autoconfigured now; offhand
41296         it's hard to see how to autoconfigure it.
41297
41298 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
41299
41300         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
41301         a directory that is about to be chowned.  Such a directory's
41302         initial file permissions should permit the owner only and this
41303         should not be changed until after the chown, since the group and
41304         other bits would be incorrect if they granted permission before
41305         the chown.
41306
41307         Fix porting problem for iswctype reported by Georg Schwarz in:
41308         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
41309         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
41310         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
41311         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
41312         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
41313
41314 2006-12-03  Jim Meyering  <jim@meyering.net>
41315
41316         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
41317         p->fts_statp may not yet be defined.
41318         (fts_read): Instead, set it in the caller, once p->fts_statp is
41319         sure to be defined, and corresponds to a top-level directory.
41320         This bug made du -x fail.  Here's the coreutils test case:
41321         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
41322         Reported by Mike Frysinger.
41323
41324 2006-12-01  Jim Meyering  <jim@meyering.net>
41325
41326         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
41327         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
41328         Reported by Simon Josefsson.
41329
41330 2006-11-30  Jim Meyering  <jim@meyering.net>
41331
41332         * m4/warning.m4: Use the all-permissive copyright notice
41333         recommended by RMS (rather than LGPL).
41334         * m4/vararrays.m4: Likewise.
41335         * m4/flexmember.m4: Likewise.
41336
41337 2006-11-29  Bruno Haible  <bruno@clisp.org>
41338
41339         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
41340         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
41341         using +=.
41342         Reported by Simon Josefsson <simon@josefsson.org>.
41343
41344 2006-11-28  James Youngman <jay@gnu.org>
41345
41346         * README: Advise users that they might find the bug-gnulib@gnu.org
41347         and autotools-announce@gnu.org mailing lists useful.
41348
41349 2006-11-28  Bruno Haible  <bruno@clisp.org>
41350
41351         * m4/ptrdiff_max.m4: Remove file.
41352
41353 2006-11-21  Bruno Haible  <bruno@clisp.org>
41354
41355         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
41356         _AC_COMPUTE_INT.
41357         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
41358         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
41359         _AC_COMPUTE_INT.
41360         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
41361         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
41362         _AC_COMPUTE_INT.
41363         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
41364
41365 2006-11-28  Jim Meyering  <jim@meyering.net>
41366
41367         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
41368         warning from "gcc -Wshadow" about shadowing the builtin.
41369
41370 2006-11-27  Bruno Haible  <bruno@clisp.org>
41371
41372         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
41373         _AC_COMPUTE_INT.
41374         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
41375
41376 2006-11-27  Bruno Haible  <bruno@clisp.org>
41377             Paul Eggert  <eggert@cs.ucla.edu>
41378
41379         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
41380
41381 2006-11-26  Bruno Haible  <bruno@clisp.org>
41382
41383         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
41384         noinst_LTLIBRARIES.
41385
41386 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
41387             Bruno Haible  <bruno@clisp.org>
41388
41389         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
41390         if compiling with "gcc -ansi".
41391
41392 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
41393
41394         Fix some incompatibilities with gcc -ansi -pedantic.
41395         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
41396         if compiling pedantically with GCC, unless it's C99 or later.
41397         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
41398         it mishandles gcc -ansi -pedantic as well.
41399         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
41400         if gcc -pedantic.
41401         * lib/regexec.c (check_node_accept_bytes): Don't use auto
41402         initializers for struct if -pedantic, unless it's C99 or later.
41403
41404 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
41405
41406         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
41407         Don't close an fd more than once. Identical atimes indicate
41408         success, not failure.
41409
41410 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
41411
41412         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
41413
41414 2006-11-23  Jim Meyering  <jim@meyering.net>
41415
41416         * build-aux/announce-gen: New file.  From coreutils.
41417
41418 2006-11-22  Jim Meyering  <jim@meyering.net>
41419
41420         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
41421         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
41422         (fts_read): Use a temporary to narrow the overused st_size member
41423         before using it in a switch statement.  Reported by Matthew Woehlke.
41424
41425         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
41426         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
41427
41428 2006-11-20  Bruno Haible  <bruno@clisp.org>
41429
41430         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
41431         changequote instead of pairs of brackets.
41432         Reported by Andreas Schwab <schwab@suse.de>.
41433
41434 2006-11-21  Jim Meyering  <jim@meyering.net>
41435
41436         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
41437         so as to remain compatible with older compilers.
41438         Patch from Michael Deutschmann.
41439
41440 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
41441
41442         * MODULES.html.sh (File system functions): Add openat.
41443
41444         * lib/openat.h (rpl_fstatat): New macro, if
41445         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
41446         (fstatat): Define to rpl_fstatat under the same conditions,
41447         unless COMPILING_FSTATAT.
41448         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
41449         seems to have the bug.
41450         * lib/fstatat.c: New file.
41451         * modules/openat (Files): Add it.
41452
41453 2006-11-20  Bruno Haible  <bruno@clisp.org>
41454
41455         * Makefile: New file.
41456
41457 2006-11-20  Jim Meyering  <jim@meyering.net>
41458
41459         The beginnings of syntax-related checks for gnulib.
41460         * lib/Makefile: New file.
41461         * lib/t-idcache: New script.  Ensure that the two halves of
41462         idcache.c stay in sync.
41463
41464         * lib/idcache.c: Adjust comments in user- and group- portions to
41465         be more accurate, and to be consistent with one another.
41466
41467 2006-11-20  Jim Meyering  <jim@meyering.net>
41468
41469         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
41470         continue using the flexible array member (thus, this module performs
41471         half as many malloc calls), with the addition that...
41472         (getgroup, getuser): Consistently record a non-match via an empty
41473         "name" string, and map an empty string match to a NULL return value.
41474         * modules/idcache (Depends-on): Re-add flexmember.
41475
41476         * lib/idcache.c (getuser): Remove all uses of the register keyword.
41477         (getuidbyname, getgroup, getgidbyname): Likewise.
41478
41479         Use cleaner syntax: NULL rather than 0.
41480         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
41481
41482 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
41483
41484         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
41485         It mishandled the case where the group was missing.
41486         Problem reported by Greg Schafer.
41487         * modules/idcache: Likewise.
41488
41489 2006-11-18  Jim Meyering  <jim@meyering.net>
41490
41491         * check-module (%exempt_header): Add exception for some
41492         conditionally-included headers.
41493
41494         * modules/i-ring (Depends-on): Add verify.
41495         (License): Change to LGPL.
41496
41497 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
41498
41499         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
41500         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
41501         and inttostr.h.  Use snprintf rather than uinttostr, so that
41502         LGPLed code doesn't depend on GPLed.
41503
41504 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
41505
41506         * modules/inline (License): Change from GPL to LGPL.
41507
41508 2006-11-17  Jim Meyering  <jim@meyering.net>
41509
41510         * modules/d-type (License): Switch to LGPL.
41511
41512 2006-11-15  Bruno Haible  <bruno@clisp.org>
41513
41514         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
41515
41516 2006-11-15  Eric Blake  <ebb9@byu.net>
41517
41518         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
41519         the module dependency.
41520
41521 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41522             Bruno Haible  <bruno@clisp.org>
41523
41524         * gnulib-tool (func_create_testdir): Add license consistency check.
41525
41526 2006-11-15  Eric Blake  <ebb9@byu.net>
41527
41528         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
41529         random "(cached)" in configure output.
41530
41531 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41532
41533         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
41534         test for conforming inttypes.h is both announced and cached.
41535
41536         * MODULES.html.sh (seen_modules, seen_files): New variables.
41537         (func_module): Rewrite to use a few less gnulib-tool and sed
41538         invocations.  Avoid a couple of quadratic algorithms for ...
41539         (missed_modules, missed_files): ... these, with ...
41540         (func_append, func_tmpdir): ... these new functions, from
41541         gnulib-tool.  Analogously, install traps for cleanup.
41542
41543         * tests/test-gc.c (main): Remove unused variables.
41544         * tests/test-read-file.c: Include stdlib.h, for 'free'.
41545
41546 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
41547
41548         * modules/inttostr (License): Change to LGPL.
41549
41550 2006-11-14  Eric Blake  <ebb9@byu.net>
41551
41552         * modules/tempname (License): Change to LGPL.
41553
41554 2006-11-14  Eric Blake  <ebb9@byu.net>
41555
41556         * doc/functions.texi (Function Portability): *printf functions on
41557         Cygwin now understand all POSIX size specifiers.
41558
41559 2006-11-14  Bruno Haible  <bruno@clisp.org>
41560
41561         * modules/c-ctype (License): Change to LGPL.
41562
41563 2006-11-12  Bruno Haible  <bruno@clisp.org>
41564
41565         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
41566         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
41567         for GNOME libraries, for which the include files are installed in
41568         subdirectories of $prefix/include.
41569
41570 2006-11-12  Bruno Haible  <bruno@clisp.org>
41571
41572         * m4/lib-link.m4: Require at least autoconf-2.54.
41573         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
41574         name to underscores for the --with option.
41575
41576 2006-11-13  Bruno Haible  <bruno@clisp.org>
41577
41578         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
41579         the tests directory.
41580         Reported by Ralf Wildenhues.
41581
41582 2006-11-13  Bruno Haible  <bruno@clisp.org>
41583
41584         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
41585         (func_emit_initmacro_end): Undo the override here.
41586         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
41587         Works around the famous automake error in coreutils.
41588
41589 2006-11-13  Eric Blake  <ebb9@byu.net>
41590
41591         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
41592         element, not its node.
41593
41594 2006-11-12  Bruno Haible  <bruno@clisp.org>
41595
41596         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
41597         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
41598
41599 2006-11-12  Bruno Haible  <bruno@clisp.org>
41600
41601         * gnulib-tool: New option --local-symlink.
41602         (func_usage): Document it.
41603         (lsymbolic): New variable.
41604         (func_import, func_create_testdir): If --symlink was not specified,
41605         test whether --local-symlink was specified and the file comes from
41606         the local_gnulib_dir.
41607
41608 2006-11-12  Bruno Haible  <bruno@clisp.org>
41609
41610         * gnulib-tool (func_ln): New function.
41611         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
41612
41613 2006-11-12  Bruno Haible  <bruno@clisp.org>
41614
41615         Finish support for source files in subdirectories.
41616         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
41617         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
41618         AUTOMAKE_OPTIONS.
41619         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
41620
41621 2006-11-12  Bruno Haible  <bruno@clisp.org>
41622
41623         * gnulib-tool (func_get_automake_snippet): Synthesize also an
41624         EXTRA_lib_SOURCES augmentation.
41625         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
41626
41627 2006-11-12  Jim Meyering  <jim@meyering.net>
41628
41629         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
41630         file descriptors.  This also averts a failure on systems with
41631         native openat support when a traversed directory lacks "x" access.
41632         * lib/fts_.h: Include "i-ring.h"
41633         (struct FTS) [fts_fd_ring]: New member.
41634         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
41635         (FCHDIR): Add parentheses.
41636         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
41637         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
41638         When descending, rather than simply closing the previous
41639         fts_cwd_fd value, push that file descriptor onto the ring.
41640         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
41641         (fts_open): Initialize the new fd_ring member.
41642         (fts_close): Clear the ring.
41643         (fts_safe_changedir): When possible, use our new fd_ring to skip
41644         the diropen and fstat and dev/ino comparison that would normally
41645         accompany a virtual `chdir ("..")'.
41646
41647         * modules/fts (Depends-on): Add i-ring.
41648         * modules/i-ring: New module.
41649         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
41650         * m4/i-ring.m4: New file.
41651
41652 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41653
41654         * gnulib-tool (func_create_testdir): Fix replacement of
41655         `build-aux' in configure.ac.  Run autotools in gltests
41656         subdirectory.
41657         (func_create_testdir, func_create_megatestdir, test): There is
41658         no need for '--force' in most autotool invocations in a new
41659         tree.  Actually fail the whole test if any of the tools, or the
41660         configure or make stages fail.
41661
41662         Sync from Automake.
41663         * build-aux/gnupload: Revert last change.  Add pointer to upload
41664         instructions of the GNU Maintenance Instructions.
41665         Suggestion by Karl Berry.
41666
41667 2006-11-10  Jim Meyering  <jim@meyering.net>
41668
41669         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
41670
41671 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
41672
41673         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
41674         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
41675         (bind_textdomain_codeset) [! ENABLE_NLS]:
41676         Evaluate all the arguments.  That way, callers get compatible behavior
41677         if the arguments have side effects.  Also, it avoids some GCC
41678         diagnostics in some cases; Joel E. Denny reported problems when Bison
41679         was configured with --enable-gcc-warnigs.
41680
41681 2006-11-10  Jim Meyering  <jim@meyering.net>
41682
41683         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
41684         relevant options in CFLAGS (like -O, -fno-inline) are taken into
41685         account.
41686
41687 2006-11-10  Jim Meyering  <jim@meyering.net>
41688
41689         * modules/inline: New file/module.
41690         * modules/xalloc (Files): Remove m4/inline.m4.
41691         (Depends-on): Add inline, instead.
41692         * modules/oset: Likewise.
41693         * modules/list: Likewise.
41694
41695 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
41696
41697         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
41698         Problem reported by Matthew Woehlke.
41699
41700 2006-11-09  Bruno Haible  <bruno@clisp.org>
41701
41702         * lib/tempname.c (gen_tempname): Remove variant that invokes
41703         __gen_tempname.
41704         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
41705         __gen_tempname.
41706
41707 2006-11-08  Bruno Haible  <bruno@clisp.org>
41708
41709         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
41710         to 'yes' instead of 'cross-compiling'.
41711
41712 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
41713
41714         * lib/quotearg.h (quotearg_free): New decl.
41715         * lib/quotearg.c (quotearg_free): New function.
41716         (slot0, nslots, slotvec0, slotvec):
41717         Now file-scope so that quotearg_free can get at them.
41718
41719 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41720
41721         Sync from Automake.
41722         * build-aux/gnupload: Add missing 'gnu' to example URL.
41723         Report by Karl Berry.
41724
41725 2006-11-08  Bruno Haible  <bruno@clisp.org>
41726
41727         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
41728         Suggested by Paul Eggert.
41729
41730 2006-11-08  Jim Meyering  <jim@meyering.net>
41731
41732         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
41733         It's already included if !_LIBC.
41734         (fts_safe_changedir): Add a comment.
41735
41736 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
41737
41738         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
41739         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
41740         Matthew Woehlke.
41741
41742         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
41743         definitions up, to avoid colliding with change below.
41744         (static_inline) [HAVE_INLINE]: New macro.
41745         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
41746         Provide extern decls when !HAVE_INLINE.  Do not define unless
41747         static_inline is defined, either by us or by xmalloc.c.  Use
41748         static_inline rather than static inline.
41749         (XCALLOC): Optimize sizeof(T) = 1 case.
41750         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
41751
41752 2006-11-07  Bruno Haible  <bruno@clisp.org>
41753
41754         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
41755         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
41756         AC_C_INLINE.
41757         * modules/xalloc (Files): Add m4/inline.m4.
41758
41759 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41760
41761         * README: Fix typo.
41762         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
41763         (Miscellanous Notes): ...from this.
41764
41765 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
41766
41767         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
41768         Mention that offsetof should be used instead of sizeof.
41769         From Bruno Haible.
41770
41771 2006-11-07  Bruno Haible  <bruno@clisp.org>
41772
41773         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
41774
41775 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
41776
41777         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
41778         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
41779         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
41780         (gl_tree_add_before, gl_tree_add_after):
41781         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
41782         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
41783         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
41784         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
41785         (gl_linked_add_after, gl_linked_add_at): Likewise.
41786         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
41787         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
41788         (gl_tree_add_before, gl_tree_add_after): Likewise.
41789         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
41790         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
41791         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
41792
41793 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41794
41795         * lib/gl_oset.h: Use C comment style, not C++ comment style.
41796
41797 2006-11-06  Bruno Haible  <bruno@clisp.org>
41798
41799         * m4/inline.m4: New file.
41800         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
41801         * modules/list (Files): Add m4/inline.m4.
41802         * modules/oset (Files): Likewise.
41803
41804 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
41805
41806         * lib/idcache.c: Include <stddef.h>, for offsetof.
41807         (struct userid.name): Change from char * to a flexible array member.
41808         All uses changed.
41809         * modules/idcache (Depends-on): Add flexmember.
41810
41811         * MODULES.html.sh (Core language properties): New module flexmember.
41812         * modules/flexmember, m4/flexmember.m4: New files.
41813
41814         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
41815         inline functions that are identical with the old xnmalloc_inline,
41816         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
41817         that we can avoid some unnecessary integer multiplications and
41818         divisions in the common case where the element size is known at
41819         compile time.
41820         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
41821         needed.
41822         (xnboundedmalloc): Remove.
41823         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
41824         arguments, for consistency with rest of this header.
41825         (xcharalloc): Rewrite using XNMALLOC.
41826         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
41827         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
41828         versions have been moved to lib/xalloc.h and renamed to be the
41829         non-*_inline versions.
41830         (xmalloc, xrealloc): Implement without reference to the xnmalloc
41831         and xnrealloc functions, since those functions are now inline and
41832         now call us.
41833         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
41834         renaming described above.
41835         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
41836         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
41837         captures the dependency in AC_C_INLINE.
41838
41839         New module canonicalize-lgpl, proposed by Charles Wilson in
41840         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
41841         with a few small changes afterwards.
41842         * MODULES.html.sh (File system functions): New module
41843         canonicalize-lgpl.
41844         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
41845         and canonicalize_file_name.
41846         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
41847         * modules/canonicalize-lgpl: New files.
41848
41849 2006-11-05  Bruno Haible  <bruno@clisp.org>
41850
41851         * gnulib-tool (func_import, func_create_testdir): Create directories
41852         also for files in subdirectories of lib/.
41853
41854 2006-11-05  Bruno Haible  <bruno@clisp.org>
41855
41856         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
41857         ANSI C compliant.
41858
41859 2006-11-03  Bruno Haible  <bruno@clisp.org>
41860
41861         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
41862         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
41863         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
41864         (xnboundedmalloc): New inline function.
41865         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
41866         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
41867         xmalloc.
41868         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
41869         xmalloc.
41870         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
41871         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
41872         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
41873         xmalloc.
41874         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
41875         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
41876         xmalloc.
41877         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
41878         gl_tree_add_after): Use XMALLOC instead of xmalloc.
41879         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
41880         xmalloc.
41881         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
41882         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
41883         gl_tree_add_after): Use XMALLOC instead of xmalloc.
41884         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
41885         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
41886         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
41887         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
41888
41889 2006-11-03  Bruno Haible  <bruno@clisp.org>
41890
41891         * lib/c-ctype.h [C++]: Define functions without name mangling.
41892         * lib/fwriteerror.h [C++]: Likewise.
41893         * lib/gcd.h [C++]: Likewise.
41894         * lib/linebreak.h [C++]: Likewise.
41895
41896 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
41897
41898         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
41899         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
41900         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
41901         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
41902         Check for functions and headers just once.
41903         Check for declaration of canonicalize_file_name.
41904         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
41905
41906 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
41907
41908         * gnulib-tool (func_import): Fix typo in actioncmd.
41909
41910 2006-11-02  Bruno Haible  <bruno@clisp.org>
41911
41912         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
41913         newline sequence in the Makefile.am snippet as a space, like "make"
41914         does.
41915         Reported by Roger Persson <perrog@gmail.com>.
41916
41917 2006-11-01  Bruno Haible  <bruno@clisp.org>
41918
41919         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
41920         already declared in <string.h>.
41921         * lib/strcase.h (strncasecmp): Don't declare it if yes.
41922
41923 2006-11-01  Bruno Haible  <bruno@clisp.org>
41924
41925         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
41926         * lib/strcase.h: Include <string.h>.
41927         (strcasecmp): Define to rpl_strcasecmp here.
41928
41929 2006-11-01  Bruno Haible  <bruno@clisp.org>
41930
41931         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
41932
41933 2006-11-01  Eric Blake  <ebb9@byu.net>
41934
41935         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
41936
41937         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
41938
41939 2006-10-29  Bruno Haible  <bruno@clisp.org>
41940
41941         Make it compile in C++ mode.
41942         * lib/full-write.c (full_rw): Add a cast.
41943
41944 2006-11-01  Bruno Haible  <bruno@clisp.org>
41945
41946         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
41947         be POSIX compliant.
41948         Reported by Roger Persson <perrog@gmail.com>.
41949
41950 2006-11-01  Eric Blake  <ebb9@byu.net>
41951
41952         * lib/getopt_.h: Fix comments.
41953
41954 2006-10-31  Eric Blake  <ebb9@byu.net>
41955
41956         * modules/tmpdir (Depends-on): Add sys_stat.
41957         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
41958         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
41959         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
41960         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
41961         tempname.
41962
41963 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
41964
41965         Avoid some C++ diagnostics reported by Bruno Haible.
41966         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
41967         xmalloc.
41968         (quotearg_alloc): Use xcharalloc rather than xmalloc.
41969         (struct slotvec): Move to top level.
41970         (quotearg_n_options): Rewrite to avoid xmalloc.
41971         * lib/xalloc.h (xcharalloc): New function.
41972         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
41973         [defined __cplusplus]: Add function template that provides result
41974         type propagation.  This part of the change is from Bruno Haible.
41975
41976 2006-10-29  Bruno Haible  <bruno@clisp.org>
41977
41978         Make it compile in C++ mode.
41979         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
41980         * lib/strnlen1.c (strnlen1): Cast memchr result.
41981         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
41982         * lib/clean-temp.c (string_equals, string_hash): Add casts.
41983         (create_temp_dir): Rename local variable 'template'.
41984         (compile_csharp_using_sscli): Add cast.
41985         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
41986         * lib/findprog.c (find_in_path): Likewise.
41987         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
41988         * lib/wait-process.c (register_slave_subprocess): Likewise.
41989
41990 2006-10-22  Bruno Haible  <bruno@clisp.org>
41991
41992         * modules/tsearch: New file.
41993         * lib/tsearch.h: New file.
41994         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
41995         * m4/tsearch.m4: New file.
41996         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
41997
41998 2006-10-29  Eric Blake  <ebb9@byu.net>
41999
42000         * lib/arcfour.c: Assume config.h.
42001         * lib/arctwo.c: Likewise.
42002         * lib/base64.c: Likewise.
42003         * lib/check-version.c: Likewise.
42004         * lib/crc.c: Likewise.
42005         * lib/des.c: Likewise.
42006         * lib/gc-gnulib.c: Likewise.
42007         * lib/gc-libgcrypt.c: Likewise.
42008         * lib/gc-pbkdf2-sha1.c: Likewise.
42009         * lib/getaddrinfo.c: Likewise.
42010         * lib/getdelim.c: Likewise.
42011         * lib/getline.c: Likewise.
42012         * lib/hmac-md5.c: Likewise.
42013         * lib/hmac-sha1.c: Likewise.
42014         * lib/iconvme.c: Likewise.
42015         * lib/md2.c: Likewise.
42016         * lib/md4.c: Likewise.
42017         * lib/memxor.c: Likewise.
42018         * lib/read-file.c: Likewise.
42019         * lib/readline.c: Likewise.
42020         * lib/rijndael-alg-fst.c: Likewise.
42021         * lib/rijndael-api-fst.c: Likewise.
42022         * lib/xgetdomainname.c: Likewise.
42023
42024 2006-10-28  Eric Blake  <ebb9@byu.net>
42025
42026         * lib/xstrndup.c: Assume config.h.
42027
42028 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
42029
42030         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
42031         stat-macros.h is now for our own macros, whereas stat_h is for
42032         macros in the <sys/stat.h> name space.
42033         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
42034         (STAT_MACROS_H): Remove.
42035         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
42036         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
42037         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
42038         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
42039         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
42040         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
42041         Move these macros to ...
42042         * lib/stat_.h: here.  Don't include stat-macros.h.
42043         * lib/canonicalize.c: Don't include stat-macros.h.
42044         * lib/chown.c: Likewise.
42045         * lib/euidaccess.c: Likewise.
42046         * lib/file-type.c: Likewise.
42047         * lib/filemode.c: Likewise.
42048         * lib/glob.c: Likewise.
42049         * lib/isapipe.c: Likewise.
42050         * lib/lchown.c: Likewise.
42051         * lib/lstat.c: Likewise.
42052         * lib/mkdir-p.c: Likewise.
42053         * lib/rmdir.c: Likewise.
42054         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
42055         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
42056         unless mkdir isn't declared, to speed up 'configure'.
42057         Always create sys/stat.h, since it's unlikely any real sys/stat.h
42058         would define all the S_* symbols.
42059         * modules/canonicalize (Depends-on):
42060         Depend on sys_stat, not stat-macros.
42061         * modules/chown: Likewise.
42062         * modules/euidaccess: Likewise.
42063         * modules/filemode: Likewise.
42064         * modules/file-type: Likewise.
42065         * modules/glob: Likewise.
42066         * modules/isapipe: Likewise.
42067         * modules/lchown: Likewise.
42068         * modules/lstat: Likewise.
42069         * modules/mkancesdirs: Likewise.
42070         * modules/rmdir: Likewise.
42071         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
42072         * modules/modechange: Likewise.
42073         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
42074         (configure.ac): Remove gl_STAT_MACROS.
42075         * modules/sys_stat (Depends-on): Remove stat-macros.
42076
42077 2006-10-27  Bruno Haible  <bruno@clisp.org>
42078
42079         * m4/signed.m4: Remove file.
42080         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
42081         invocation.
42082         * modules/vasnprintf (Files): Remove m4/signed.m4.
42083
42084 2006-10-27  Bruno Haible  <bruno@clisp.org>
42085
42086         Update to GNU gettext 0.16.
42087         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
42088         m4/inttypes-h.m4, m4/signed.m4.
42089         * m4/gettext.m4: Update to GNU gettext 0.16.
42090         * m4/intl.m4: New file, from GNU gettext.
42091         * m4/intldir.m4: New file, from GNU gettext.
42092         * config/srclist.txt: Update
42093
42094 2006-10-27  Eric Blake  <ebb9@byu.net>
42095
42096         * MODULES.html.sh: Document tempname.
42097         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
42098         dependencies.
42099         (Files): Move lib/tempname.c...
42100         * modules/tempname: ...to this new module.
42101         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
42102         (gl_PREREQ_TEMPNAME): Move...
42103         * m4/tempname.m4: ...to this new file.
42104         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
42105         * modules/sys_stat (Depends-on): Add stat-macros.
42106         * lib/stat_.h (includes): Pick up stat macros.
42107         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
42108         if stat macros are broken.
42109         * lib/tempname.c (includes): No need to include "stat-macros.h".
42110         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
42111         (direxists, __path_search) [!_LIBC]: Don't compile these in
42112         gnulib; the tmpdir module covers that.
42113         * lib/tempname.h: New file.
42114
42115 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
42116
42117         * COPYING: Explain how gnulib-tool converts licence headers.
42118         Almost all wording by Eric Blake.
42119
42120 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
42121
42122         * lib/mbchar.h (is_basic_table): Make read-only.
42123         * lib/mbchar.c (is_basic_table): Likewise.
42124         Reported by John Darrington.
42125
42126 2006-10-25  Bruno Haible  <bruno@clisp.org>
42127
42128         * lib/progname.h (set_program_name): Undefine before defining.
42129
42130 2006-10-25  Bruno Haible  <bruno@clisp.org>
42131
42132         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
42133         false for non-gcc C++ compilers.
42134         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
42135
42136 2006-10-24  Bruno Haible  <bruno@clisp.org>
42137
42138         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
42139         iconv implementations like Irix iconv.
42140
42141 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
42142
42143         * modules/vararrays: New file.
42144         * m4/vararrays.m4: New file, taken from diffutils.
42145         * MODULES.html.sh: New module vararrays.
42146
42147 2006-10-24  Karl Berry  <karl@gnu.org>
42148
42149         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
42150         Don't call GNU Unix.
42151
42152 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42153
42154         * users.txt: Add Libtool.
42155
42156         Sync from Libtool:
42157
42158         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
42159
42160         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
42161         to gnulib's policy of including config.h unconditionally.
42162
42163 2006-10-24  Bruno Haible  <bruno@clisp.org>
42164
42165         * modules/wcwidth (Files): Add m4/wint_t.m4.
42166         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
42167         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
42168
42169 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
42170
42171         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
42172         to pacify GCC with some -W flags enabled.  Problem reported by
42173         Bruno Haible.
42174
42175 2006-10-24  Jim Meyering  <jim@meyering.net>
42176
42177         * MODULES.html.sh: Remove uinttostr.  It's not a module.
42178         Reported by Karl Berry.
42179
42180 2006-10-23  Bruno Haible  <bruno@clisp.org>
42181
42182         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
42183
42184 2006-10-24  Bruno Haible  <bruno@clisp.org>
42185
42186         * lib/gl_list.h: Use C comment style, not C++ comment style.
42187
42188 2006-10-23  Eric Blake  <ebb9@byu.net>
42189
42190         * lib/getaddrinfo.c (includes): Add missing include.
42191
42192 2006-10-23  Bruno Haible  <bruno@clisp.org>
42193             Paul Eggert  <eggert@cs.ucla.edu>
42194
42195         Ability to rename obstack_free.
42196         * lib/obstack.h (__obstack_free): New macro. Declare instead of
42197         obstack_free.
42198         (obstack_free): Invoke the __obstack_free macro.
42199         * lib/obstack.c (obstack_free): Use __obstack_free macro.
42200
42201 2006-10-23  Bruno Haible  <bruno@clisp.org>
42202             Paul Eggert  <eggert@cs.ucla.edu>
42203
42204         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
42205         __argc, __argv from the declaration. (They are defined as macros on
42206         mingw.)
42207
42208 2006-10-22  Bruno Haible  <bruno@clisp.org>
42209
42210         * doc/gnulib-intro.texi: New file.
42211         * doc/gnulib.texi: Include it.
42212
42213 2006-10-21  Bruno Haible  <bruno@clisp.org>
42214
42215         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
42216         "Introduction", "Miscellanous Notes", "Particular Modules".
42217
42218 2006-10-21  Bruno Haible  <bruno@clisp.org>
42219
42220         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
42221         Change mostlyclean-local rule to avoid sh syntax error from bash
42222         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
42223
42224 2006-10-23  Jim Meyering  <jim@meyering.net>
42225
42226         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
42227         in place of snprintf.
42228
42229         * modules/inttostr (Files): Add lib/uinttostr.c.
42230         * lib/uinttostr.c (inttostr): New file/function.
42231         * lib/inttostr.h (uinttostr): Declare.
42232         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
42233         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
42234         Add uinttostr.
42235         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
42236
42237 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
42238
42239         * lib/canonicalize.c (ELOOP): Define if not already defined.
42240         Problem reported by Bruno Haible in
42241         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
42242
42243 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
42244
42245         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
42246         Problem reported by Perry Smith and Ville Laurikari.
42247
42248         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
42249         uses.
42250
42251 2006-10-19  Bruno Haible  <bruno@clisp.org>
42252
42253         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
42254         for mingw.
42255
42256 2006-10-19  Bruno Haible  <bruno@clisp.org>
42257
42258         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
42259         Needed for mingw.
42260
42261 2006-10-19  Bruno Haible  <bruno@clisp.org>
42262
42263         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
42264
42265 2006-10-19  Bruno Haible  <bruno@clisp.org>
42266
42267         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
42268         it.
42269
42270 2006-10-19  Bruno Haible  <bruno@clisp.org>
42271
42272         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
42273         invocation.
42274
42275 2006-10-19  Bruno Haible  <bruno@clisp.org>
42276
42277         * gnulib-tool (func_create_testdir): Don't include ftruncate and
42278         mountlist by default.
42279
42280 2006-10-16  Bruno Haible  <bruno@clisp.org>
42281
42282         * lib/c-strstr.c: Include c-strstr.h.
42283
42284 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
42285
42286         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
42287         in a slash.
42288
42289 2006-10-18  Bruno Haible  <bruno@clisp.org>
42290
42291         * lib/lock.h [C++]: Wrap definitions in extern "C".
42292
42293 2006-10-18  Bruno Haible  <bruno@clisp.org>
42294
42295         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
42296         gl_LIBOBJS list.
42297
42298 2006-10-18  Bruno Haible  <bruno@clisp.org>
42299
42300         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
42301
42302 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
42303
42304         * lib/xstrtol.h: Include gettext.h.
42305         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
42306         Problem reported by Eric Blake.
42307         * modules/xstrtol (Depends-on): Add gettext-h.
42308
42309 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
42310
42311         * lib/strftime.c (advance): New macro.
42312         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
42313         incomplete type, so you can't add 0 to it.  Problem and patch
42314         reported by Eelco Dolstra for dietlibc.
42315
42316 2006-10-18  Jim Meyering  <jim@meyering.net>
42317
42318         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
42319         type for a local, and rename it: s/up/user_proc/.
42320
42321 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
42322
42323         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
42324         READ_UTMP_USER_PROCESS.
42325         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
42326
42327 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
42328
42329         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
42330         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
42331
42332 2006-10-17  Eric Blake  <ebb9@byu.net>
42333
42334         * lib/sigprocmask.c (sigprocmask): Fix typo.
42335
42336         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
42337
42338         * modules/clean-temp (Makefile.am): Don't add to make output...
42339         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
42340         config.h.
42341
42342 2006-10-17  Bruno Haible  <bruno@clisp.org>
42343
42344         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
42345         differently if DEFAULT_TEXT_DOMAIN is set.
42346
42347 2006-10-16  Bruno Haible  <bruno@clisp.org>
42348
42349         * lib/clean-temp.c: Include fwriteerror.h.
42350
42351 2006-10-16  Bruno Haible  <bruno@clisp.org>
42352
42353         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
42354
42355 2006-10-16  Bruno Haible  <bruno@clisp.org>
42356
42357         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
42358         * lib/sigprocmask.h: Include <sys/types.h>.
42359         (sigset_t): Use the system's definition if present.
42360
42361 2006-10-17  Eric Blake  <ebb9@byu.net>
42362
42363         * lib/xvasprintf.c (includes): Assume config.h.
42364         * lib/xasprintf.c (includes): Likewise.
42365
42366 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
42367
42368         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
42369         at least as wide as intmax_t.
42370
42371 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
42372
42373         (Imported from Automake.)
42374         * build-aux/gnupload: Update to version 1.1 of directive file.
42375
42376 2006-10-16  Eric Blake  <ebb9@byu.net>
42377
42378         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
42379         match Automake 1.10a.
42380
42381 2006-10-14  Bruno Haible  <bruno@clisp.org>
42382
42383         * modules/sigprocmask: New file.
42384         * lib/sigprocmask.h: New file.
42385         * lib/sigprocmask.c: New file.
42386         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
42387         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
42388         request sigprocmask.o.
42389         (gl_PREREQ_SIGPROCMASK): New macro.
42390         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
42391         (Depends-on): Add sigprocmask.
42392         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
42393         gt_SIGNALBLOCKING. Test for 'raise' only once.
42394         * lib/fatal-signal.c: Include sigprocmask.h.
42395         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
42396         unblock_fatal_signals): Define always.
42397         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
42398         sigprocmask.
42399
42400 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
42401
42402         Sync from Automake.
42403         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
42404         which incorrectly sets the mode of an existing destination
42405         directory.  In some cases the unpatched install-sh could do the
42406         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
42407         system.  We hope this is rare in practice, but it's clearly worth
42408         fixing.  Problem reported by Alex Unleashed in
42409         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
42410         Also, don't bother to check for -m bugs unless we're using -m;
42411         suggested by Stepan Kasal.
42412
42413 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42414
42415         Sync from Automake.
42416         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
42417         `-c' flag, so they appear at the same position as in %FASTDEP%
42418         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
42419         which ignores unknown options only after the first non-option.
42420         Bug report against M4 by Nelson H. F. Beebe.
42421
42422 2006-10-13  Jim Meyering  <jim@meyering.net>
42423
42424         Fix a bug in yesterday's change.
42425         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
42426         p->fts_statp->st_dev would be used uninitialized.
42427         Ensures that we always call fts_stat on the very first entry.
42428         Miklos Szeredi reported that find -xdev stopped working.
42429
42430 2006-10-12  Bruno Haible  <bruno@clisp.org>
42431
42432         * gnulib-tool (func_get_automake_snippet): Append an automatically
42433         computed EXTRA_DIST augmentation.
42434         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
42435         * modules/alloca-opt (Makefile.am): Likewise.
42436         * modules/allocsa (Makefile.am): Likewise.
42437         * modules/arcfour (Makefile.am): Likewise.
42438         * modules/arctwo (Makefile.am): Likewise.
42439         * modules/argmatch (Makefile.am): Likewise.
42440         * modules/argz (Makefile.am): Likewise.
42441         * modules/atexit (Makefile.am): Likewise.
42442         * modules/backupfile (Makefile.am): Likewise.
42443         * modules/byteswap (Makefile.am): Likewise.
42444         * modules/c-strtod (Makefile.am): Likewise.
42445         * modules/c-strtold (Makefile.am): Likewise.
42446         * modules/calloc (Makefile.am): Likewise.
42447         * modules/canon-host (Makefile.am): Likewise.
42448         * modules/canonicalize (Makefile.am): Likewise.
42449         * modules/chdir-long (Makefile.am): Likewise.
42450         * modules/chdir-safer (Makefile.am): Likewise.
42451         * modules/check-version (Makefile.am): Likewise.
42452         * modules/chown (Makefile.am): Likewise.
42453         * modules/cloexec (Makefile.am): Likewise.
42454         * modules/close-stream (Makefile.am): Likewise.
42455         * modules/closeout (Makefile.am): Likewise.
42456         * modules/crc (Makefile.am): Likewise.
42457         * modules/csharpexec (Makefile.am): Likewise.
42458         * modules/cycle-check (Makefile.am): Likewise.
42459         * modules/des (Makefile.am): Likewise.
42460         * modules/dev-ino (Makefile.am): Likewise.
42461         * modules/dirfd (Makefile.am): Likewise.
42462         * modules/dirname (Makefile.am): Likewise.
42463         * modules/dup2 (Makefile.am): Likewise.
42464         * modules/eealloc (Makefile.am): Likewise.
42465         * modules/error (Makefile.am): Likewise.
42466         * modules/euidaccess (Makefile.am): Likewise.
42467         * modules/exclude (Makefile.am): Likewise.
42468         * modules/exitfail (Makefile.am): Likewise.
42469         * modules/fcntl-safer (Makefile.am): Likewise.
42470         * modules/fcntl (Makefile.am): Likewise.
42471         * modules/file-type (Makefile.am): Likewise.
42472         * modules/fileblocks (Makefile.am): Likewise.
42473         * modules/filemode (Makefile.am): Likewise.
42474         * modules/filenamecat (Makefile.am): Likewise.
42475         * modules/fnmatch (Makefile.am): Likewise.
42476         * modules/fopen-safer (Makefile.am): Likewise.
42477         * modules/fpending (Makefile.am): Likewise.
42478         * modules/fprintftime (Makefile.am): Likewise.
42479         * modules/free (Makefile.am): Likewise.
42480         * modules/fsusage (Makefile.am): Likewise.
42481         * modules/ftruncate (Makefile.am): Likewise.
42482         * modules/fts (Makefile.am): Likewise.
42483         * modules/gc-arcfour (Makefile.am): Likewise.
42484         * modules/gc-des (Makefile.am): Likewise.
42485         * modules/gc-hmac-md5 (Makefile.am): Likewise.
42486         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
42487         * modules/gc-md4 (Makefile.am): Likewise.
42488         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
42489         * modules/gc-sha1 (Makefile.am): Likewise.
42490         * modules/gc (Makefile.am): Likewise.
42491         * modules/getaddrinfo (Makefile.am): Likewise.
42492         * modules/getcwd (Makefile.am): Likewise.
42493         * modules/getdelim (Makefile.am): Likewise.
42494         * modules/getdomainname (Makefile.am): Likewise.
42495         * modules/getgroups (Makefile.am): Likewise.
42496         * modules/gethostname (Makefile.am): Likewise.
42497         * modules/gethrxtime (Makefile.am): Likewise.
42498         * modules/getline (Makefile.am): Likewise.
42499         * modules/getloadavg (Makefile.am): Likewise.
42500         * modules/getlogin_r (Makefile.am): Likewise.
42501         * modules/getndelim2 (Makefile.am): Likewise.
42502         * modules/getopt (Makefile.am): Likewise.
42503         * modules/getpagesize (Makefile.am): Likewise.
42504         * modules/getpass-gnu (Makefile.am): Likewise.
42505         * modules/getpass (Makefile.am): Likewise.
42506         * modules/getsubopt (Makefile.am): Likewise.
42507         * modules/gettime (Makefile.am): Likewise.
42508         * modules/gettimeofday (Makefile.am): Likewise.
42509         * modules/getugroups (Makefile.am): Likewise.
42510         * modules/getusershell (Makefile.am): Likewise.
42511         * modules/glob (Makefile.am): Likewise.
42512         * modules/group-member (Makefile.am): Likewise.
42513         * modules/hard-locale (Makefile.am): Likewise.
42514         * modules/hash (Makefile.am): Likewise.
42515         * modules/hmac-md5 (Makefile.am): Likewise.
42516         * modules/hmac-sha1 (Makefile.am): Likewise.
42517         * modules/human (Makefile.am): Likewise.
42518         * modules/idcache (Makefile.am): Likewise.
42519         * modules/imaxabs (Makefile.am): Likewise.
42520         * modules/imaxdiv (Makefile.am): Likewise.
42521         * modules/inet_ntop (Makefile.am): Likewise.
42522         * modules/inet_pton (Makefile.am): Likewise.
42523         * modules/intprops (Makefile.am): Likewise.
42524         * modules/inttostr (Makefile.am): Likewise.
42525         * modules/inttypes (Makefile.am): Likewise.
42526         * modules/isapipe (Makefile.am): Likewise.
42527         * modules/javaversion (Makefile.am): Likewise.
42528         * modules/lchmod (Makefile.am): Likewise.
42529         * modules/lchown (Makefile.am): Likewise.
42530         * modules/localcharset (Makefile.am): Likewise.
42531         * modules/long-options (Makefile.am): Likewise.
42532         * modules/lstat (Makefile.am): Likewise.
42533         * modules/malloc (Makefile.am): Likewise.
42534         * modules/mathl (Makefile.am): Likewise.
42535         * modules/mbchar (Makefile.am): Likewise.
42536         * modules/md2 (Makefile.am): Likewise.
42537         * modules/md4 (Makefile.am): Likewise.
42538         * modules/md5 (Makefile.am): Likewise.
42539         * modules/memcasecmp (Makefile.am): Likewise.
42540         * modules/memchr (Makefile.am): Likewise.
42541         * modules/memcmp (Makefile.am): Likewise.
42542         * modules/memcoll (Makefile.am): Likewise.
42543         * modules/memcpy (Makefile.am): Likewise.
42544         * modules/memmem (Makefile.am): Likewise.
42545         * modules/memmove (Makefile.am): Likewise.
42546         * modules/mempcpy (Makefile.am): Likewise.
42547         * modules/memrchr (Makefile.am): Likewise.
42548         * modules/memset (Makefile.am): Likewise.
42549         * modules/memxor (Makefile.am): Likewise.
42550         * modules/mkancesdirs (Makefile.am): Likewise.
42551         * modules/mkdir-p (Makefile.am): Likewise.
42552         * modules/mkdir (Makefile.am): Likewise.
42553         * modules/mkdtemp (Makefile.am): Likewise.
42554         * modules/mkstemp (Makefile.am): Likewise.
42555         * modules/mktime (Makefile.am): Likewise.
42556         * modules/modechange (Makefile.am): Likewise.
42557         * modules/mountlist (Makefile.am): Likewise.
42558         * modules/nanosleep (Makefile.am): Likewise.
42559         * modules/obstack (Makefile.am): Likewise.
42560         * modules/openat (Makefile.am): Likewise.
42561         * modules/pagealign_alloc (Makefile.am): Likewise.
42562         * modules/pathmax (Makefile.am): Likewise.
42563         * modules/physmem (Makefile.am): Likewise.
42564         * modules/poll (Makefile.am): Likewise.
42565         * modules/posixtm (Makefile.am): Likewise.
42566         * modules/posixver (Makefile.am): Likewise.
42567         * modules/putenv (Makefile.am): Likewise.
42568         * modules/quote (Makefile.am): Likewise.
42569         * modules/quotearg (Makefile.am): Likewise.
42570         * modules/raise (Makefile.am): Likewise.
42571         * modules/read-file (Makefile.am): Likewise.
42572         * modules/readline (Makefile.am): Likewise.
42573         * modules/readlink (Makefile.am): Likewise.
42574         * modules/readtokens (Makefile.am): Likewise.
42575         * modules/readutmp (Makefile.am): Likewise.
42576         * modules/realloc (Makefile.am): Likewise.
42577         * modules/regex (Makefile.am): Likewise.
42578         * modules/rename-dest-slash (Makefile.am): Likewise.
42579         * modules/rename (Makefile.am): Likewise.
42580         * modules/rijndael (Makefile.am): Likewise.
42581         * modules/rmdir (Makefile.am): Likewise.
42582         * modules/rpmatch (Makefile.am): Likewise.
42583         * modules/safe-read (Makefile.am): Likewise.
42584         * modules/safe-write (Makefile.am): Likewise.
42585         * modules/same-inode (Makefile.am): Likewise.
42586         * modules/same (Makefile.am): Likewise.
42587         * modules/save-cwd (Makefile.am): Likewise.
42588         * modules/savedir (Makefile.am): Likewise.
42589         * modules/setenv (Makefile.am): Likewise.
42590         * modules/settime (Makefile.am): Likewise.
42591         * modules/sha1 (Makefile.am): Likewise.
42592         * modules/sig2str (Makefile.am): Likewise.
42593         * modules/snprintf (Makefile.am): Likewise.
42594         * modules/stat-macros (Makefile.am): Likewise.
42595         * modules/stat-time (Makefile.am): Likewise.
42596         * modules/stdbool (Makefile.am): Likewise.
42597         * modules/stdint (Makefile.am): Likewise.
42598         * modules/stdlib-safer (Makefile.am): Likewise.
42599         * modules/stpcpy (Makefile.am): Likewise.
42600         * modules/stpncpy (Makefile.am): Likewise.
42601         * modules/strcase (Makefile.am): Likewise.
42602         * modules/strcasestr (Makefile.am): Likewise.
42603         * modules/strchrnul (Makefile.am): Likewise.
42604         * modules/strcspn (Makefile.am): Likewise.
42605         * modules/strdup (Makefile.am): Likewise.
42606         * modules/strerror (Makefile.am): Likewise.
42607         * modules/strftime (Makefile.am): Likewise.
42608         * modules/strndup (Makefile.am): Likewise.
42609         * modules/strnlen (Makefile.am): Likewise.
42610         * modules/strpbrk (Makefile.am): Likewise.
42611         * modules/strsep (Makefile.am): Likewise.
42612         * modules/strstr (Makefile.am): Likewise.
42613         * modules/strtod (Makefile.am): Likewise.
42614         * modules/strtoimax (Makefile.am): Likewise.
42615         * modules/strtok_r (Makefile.am): Likewise.
42616         * modules/strtol (Makefile.am): Likewise.
42617         * modules/strtoll (Makefile.am): Likewise.
42618         * modules/strtoul (Makefile.am): Likewise.
42619         * modules/strtoull (Makefile.am): Likewise.
42620         * modules/strtoumax (Makefile.am): Likewise.
42621         * modules/strverscmp (Makefile.am): Likewise.
42622         * modules/sys_socket (Makefile.am): Likewise.
42623         * modules/sys_stat (Makefile.am): Likewise.
42624         * modules/sysexits (Makefile.am): Likewise.
42625         * modules/time_r (Makefile.am): Likewise.
42626         * modules/timegm (Makefile.am): Likewise.
42627         * modules/timespec (Makefile.am): Likewise.
42628         * modules/tmpfile-safer (Makefile.am): Likewise.
42629         * modules/trim (Makefile.am): Likewise.
42630         * modules/unistd-safer (Makefile.am): Likewise.
42631         * modules/unlinkdir (Makefile.am): Likewise.
42632         * modules/unlocked-io (Makefile.am): Likewise.
42633         * modules/userspec (Makefile.am): Likewise.
42634         * modules/utime (Makefile.am): Likewise.
42635         * modules/utimecmp (Makefile.am): Likewise.
42636         * modules/utimens (Makefile.am): Likewise.
42637         * modules/vasnprintf (Makefile.am): Likewise.
42638         * modules/vasprintf (Makefile.am): Likewise.
42639         * modules/vsnprintf (Makefile.am): Likewise.
42640         * modules/xalloc (Makefile.am): Likewise.
42641         * modules/xgetcwd (Makefile.am): Likewise.
42642         * modules/xnanosleep (Makefile.am): Likewise.
42643         * modules/xreadlink (Makefile.am): Likewise.
42644         * modules/xstrtod (Makefile.am): Likewise.
42645         * modules/xstrtol (Makefile.am): Likewise.
42646         * modules/xstrtold (Makefile.am): Likewise.
42647         * modules/yesno (Makefile.am): Likewise.
42648         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
42649
42650 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
42651
42652         * modules/error (Makefile.am): Distribute files through
42653         EXTRA_DIST, not lib_SOURCES.
42654
42655 2006-10-12  Eric Blake  <ebb9@byu.net>
42656
42657         * modules/error (Makefile.am): Distribute files in /lib.
42658         * modules/obstack (Makefile.am): Likewise.
42659
42660 2006-10-12  Bruno Haible  <bruno@clisp.org>
42661
42662         * modules/acl (Makefile.am): Distribute all files in lib/ through
42663         EXTRA_DIST.
42664         * modules/arcfour (Makefile.am): Likewise.
42665         * modules/arctwo (Makefile.am): Likewise.
42666         * modules/argmatch (Makefile.am): Likewise.
42667         * modules/argz (Makefile.am): Likewise.
42668         * modules/atexit (Makefile.am): Likewise.
42669         * modules/backupfile (Makefile.am): Likewise.
42670         * modules/c-strtod (Makefile.am): Likewise.
42671         * modules/c-strtold (Makefile.am): Likewise.
42672         * modules/calloc (Makefile.am): Likewise.
42673         * modules/canon-host (Makefile.am): Likewise.
42674         * modules/canonicalize (Makefile.am): Likewise.
42675         * modules/chdir-long (Makefile.am): Likewise.
42676         * modules/chdir-safer (Makefile.am): Likewise.
42677         * modules/check-version (Makefile.am): Likewise.
42678         * modules/chown (Makefile.am): Likewise.
42679         * modules/cloexec (Makefile.am): Likewise.
42680         * modules/close-stream (Makefile.am): Likewise.
42681         * modules/closeout (Makefile.am): Likewise.
42682         * modules/crc (Makefile.am): Likewise.
42683         * modules/cycle-check (Makefile.am): Likewise.
42684         * modules/des (Makefile.am): Likewise.
42685         * modules/dirfd (Makefile.am): Likewise.
42686         * modules/dirname (Makefile.am): Likewise.
42687         * modules/dup2 (Makefile.am): Likewise.
42688         * modules/euidaccess (Makefile.am): Likewise.
42689         * modules/exclude (Makefile.am): Likewise.
42690         * modules/exitfail (Makefile.am): Likewise.
42691         * modules/fcntl-safer (Makefile.am): Likewise.
42692         * modules/file-type (Makefile.am): Likewise.
42693         * modules/fileblocks (Makefile.am): Likewise.
42694         * modules/filemode (Makefile.am): Likewise.
42695         * modules/filenamecat (Makefile.am): Likewise.
42696         * modules/fnmatch (Makefile.am): Likewise.
42697         * modules/fopen-safer (Makefile.am): Likewise.
42698         * modules/fpending (Makefile.am): Likewise.
42699         * modules/fprintftime (Makefile.am): Likewise.
42700         * modules/free (Makefile.am): Likewise.
42701         * modules/fsusage (Makefile.am): Likewise.
42702         * modules/ftruncate (Makefile.am): Likewise.
42703         * modules/fts (Makefile.am): Likewise.
42704         * modules/gc (Makefile.am): Likewise.
42705         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
42706         * modules/getaddrinfo (Makefile.am): Likewise.
42707         * modules/getcwd (Makefile.am): Likewise.
42708         * modules/getdelim (Makefile.am): Likewise.
42709         * modules/getdomainname (Makefile.am): Likewise.
42710         * modules/getgroups (Makefile.am): Likewise.
42711         * modules/gethostname (Makefile.am): Likewise.
42712         * modules/gethrxtime (Makefile.am): Likewise.
42713         * modules/getline (Makefile.am): Likewise.
42714         * modules/getloadavg (Makefile.am): Likewise.
42715         * modules/getlogin_r (Makefile.am): Likewise.
42716         * modules/getopt (Makefile.am): Likewise.
42717         * modules/getpass (Makefile.am): Likewise.
42718         * modules/getpass-gnu (Makefile.am): Likewise.
42719         * modules/getsubopt (Makefile.am): Likewise.
42720         * modules/gettime (Makefile.am): Likewise.
42721         * modules/gettimeofday (Makefile.am): Likewise.
42722         * modules/getugroups (Makefile.am): Likewise.
42723         * modules/getusershell (Makefile.am): Likewise.
42724         * modules/glob (Makefile.am): Likewise.
42725         * modules/group-member (Makefile.am): Likewise.
42726         * modules/hard-locale (Makefile.am): Likewise.
42727         * modules/hash (Makefile.am): Likewise.
42728         * modules/hmac-md5 (Makefile.am): Likewise.
42729         * modules/hmac-sha1 (Makefile.am): Likewise.
42730         * modules/human (Makefile.am): Likewise.
42731         * modules/idcache (Makefile.am): Likewise.
42732         * modules/imaxabs (Makefile.am): Likewise.
42733         * modules/imaxdiv (Makefile.am): Likewise.
42734         * modules/inet_ntop (Makefile.am): Likewise.
42735         * modules/inet_pton (Makefile.am): Likewise.
42736         * modules/inttostr (Makefile.am): Likewise.
42737         * modules/isapipe (Makefile.am): Likewise.
42738         * modules/lchown (Makefile.am): Likewise.
42739         * modules/long-options (Makefile.am): Likewise.
42740         * modules/lstat (Makefile.am): Likewise.
42741         * modules/malloc (Makefile.am): Likewise.
42742         * modules/mathl (Makefile.am): Likewise.
42743         * modules/mbchar (Makefile.am): Likewise.
42744         * modules/md2 (Makefile.am): Likewise.
42745         * modules/md4 (Makefile.am): Likewise.
42746         * modules/md5 (Makefile.am): Likewise.
42747         * modules/memcasecmp (Makefile.am): Likewise.
42748         * modules/memchr (Makefile.am): Likewise.
42749         * modules/memcmp (Makefile.am): Likewise.
42750         * modules/memcoll (Makefile.am): Likewise.
42751         * modules/memcpy (Makefile.am): Likewise.
42752         * modules/memmem (Makefile.am): Likewise.
42753         * modules/memmove (Makefile.am): Likewise.
42754         * modules/mempcpy (Makefile.am): Likewise.
42755         * modules/memrchr (Makefile.am): Likewise.
42756         * modules/memset (Makefile.am): Likewise.
42757         * modules/memxor (Makefile.am): Likewise.
42758         * modules/mkancesdirs (Makefile.am): Likewise.
42759         * modules/mkdir (Makefile.am): Likewise.
42760         * modules/mkdir-p (Makefile.am): Likewise.
42761         * modules/mkdtemp (Makefile.am): Likewise.
42762         * modules/mkstemp (Makefile.am): Likewise.
42763         * modules/mktime (Makefile.am): Likewise.
42764         * modules/modechange (Makefile.am): Likewise.
42765         * modules/mountlist (Makefile.am): Likewise.
42766         * modules/nanosleep (Makefile.am): Likewise.
42767         * modules/openat (Makefile.am): Likewise.
42768         * modules/pagealign_alloc (Makefile.am): Likewise.
42769         * modules/physmem (Makefile.am): Likewise.
42770         * modules/poll (Makefile.am): Likewise.
42771         * modules/posixtm (Makefile.am): Likewise.
42772         * modules/posixver (Makefile.am): Likewise.
42773         * modules/putenv (Makefile.am): Likewise.
42774         * modules/quote (Makefile.am): Likewise.
42775         * modules/quotearg (Makefile.am): Likewise.
42776         * modules/raise (Makefile.am): Likewise.
42777         * modules/read-file (Makefile.am): Likewise.
42778         * modules/readline (Makefile.am): Likewise.
42779         * modules/readlink (Makefile.am): Likewise.
42780         * modules/readtokens (Makefile.am): Likewise.
42781         * modules/readutmp (Makefile.am): Likewise.
42782         * modules/realloc (Makefile.am): Likewise.
42783         * modules/regex (Makefile.am): Likewise.
42784         * modules/rename (Makefile.am): Likewise.
42785         * modules/rename-dest-slash (Makefile.am): Likewise.
42786         * modules/rijndael (Makefile.am): Likewise.
42787         * modules/rmdir (Makefile.am): Likewise.
42788         * modules/rpmatch (Makefile.am): Likewise.
42789         * modules/safe-read (Makefile.am): Likewise.
42790         * modules/safe-write (Makefile.am): Likewise.
42791         * modules/same (Makefile.am): Likewise.
42792         * modules/save-cwd (Makefile.am): Likewise.
42793         * modules/savedir (Makefile.am): Likewise.
42794         * modules/setenv (Makefile.am): Likewise.
42795         * modules/settime (Makefile.am): Likewise.
42796         * modules/sha1 (Makefile.am): Likewise.
42797         * modules/sig2str (Makefile.am): Likewise.
42798         * modules/snprintf (Makefile.am): Likewise.
42799         * modules/stdlib-safer (Makefile.am): Likewise.
42800         * modules/stpcpy (Makefile.am): Likewise.
42801         * modules/stpncpy (Makefile.am): Likewise.
42802         * modules/strcase (Makefile.am): Likewise.
42803         * modules/strcasestr (Makefile.am): Likewise.
42804         * modules/strchrnul (Makefile.am): Likewise.
42805         * modules/strcspn (Makefile.am): Likewise.
42806         * modules/strdup (Makefile.am): Likewise.
42807         * modules/strerror (Makefile.am): Likewise.
42808         * modules/strftime (Makefile.am): Likewise.
42809         * modules/strndup (Makefile.am): Likewise.
42810         * modules/strnlen (Makefile.am): Likewise.
42811         * modules/strpbrk (Makefile.am): Likewise.
42812         * modules/strsep (Makefile.am): Likewise.
42813         * modules/strstr (Makefile.am): Likewise.
42814         * modules/strtod (Makefile.am): Likewise.
42815         * modules/strtoimax (Makefile.am): Likewise.
42816         * modules/strtok_r (Makefile.am): Likewise.
42817         * modules/strtol (Makefile.am): Likewise.
42818         * modules/strtoll (Makefile.am): Likewise.
42819         * modules/strtoul (Makefile.am): Likewise.
42820         * modules/strtoull (Makefile.am): Likewise.
42821         * modules/strtoumax (Makefile.am): Likewise.
42822         * modules/strverscmp (Makefile.am): Likewise.
42823         * modules/time_r (Makefile.am): Likewise.
42824         * modules/timegm (Makefile.am): Likewise.
42825         * modules/tmpfile-safer (Makefile.am): Likewise.
42826         * modules/unistd-safer (Makefile.am): Likewise.
42827         * modules/unlinkdir (Makefile.am): Likewise.
42828         * modules/userspec (Makefile.am): Likewise.
42829         * modules/utime (Makefile.am): Likewise.
42830         * modules/utimecmp (Makefile.am): Likewise.
42831         * modules/utimens (Makefile.am): Likewise.
42832         * modules/vasnprintf (Makefile.am): Likewise.
42833         * modules/vasprintf (Makefile.am): Likewise.
42834         * modules/vsnprintf (Makefile.am): Likewise.
42835         * modules/xalloc (Makefile.am): Likewise.
42836         * modules/xgetcwd (Makefile.am): Likewise.
42837         * modules/xnanosleep (Makefile.am): Likewise.
42838         * modules/xreadlink (Makefile.am): Likewise.
42839         * modules/xstrtod (Makefile.am): Likewise.
42840         * modules/xstrtol (Makefile.am): Likewise.
42841         * modules/xstrtold (Makefile.am): Likewise.
42842         * modules/yesno (Makefile.am): Likewise.
42843
42844 2006-10-12  Jim Meyering  <jim@meyering.net>
42845
42846         * m4/getloadavg.m4: Revert the change below.
42847
42848         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
42849         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
42850         fail with a symlink, which is what coreutils' ./bootstrap now
42851         creates by default.
42852
42853 2006-10-12  Bruno Haible  <bruno@clisp.org>
42854
42855         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
42856         mingw.
42857         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
42858         MSVC and mingw explicitly.
42859
42860 2006-10-11  Simon Josefsson  <jas@extundo.com>
42861             Bruno Haible  <bruno@clisp.org>
42862
42863         Add support for multiple gnulib-tool invocations in the scope of a
42864         single configure.ac file.
42865         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
42866         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
42867         with the same contents as the _LIBADD variable.
42868         (func_emit_initmacro_start, func_emit_initmacro_end,
42869         func_emit_initmacro_done): New functions.
42870         (func_import, func_create_testdir): Invoke them. Allow the identifiers
42871         gl_LIBOBJS and gl_LTLIBOBJS.
42872
42873 2006-10-11  Bruno Haible  <bruno@clisp.org>
42874
42875         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
42876         (func_create_testdir): Don't create po/Makefile.am, don't invoke
42877         autoreconf. Instead, invoke autopoint explicitly but move back the
42878         *.m4 files from gnulib.
42879
42880 2006-10-11  Bruno Haible  <bruno@clisp.org>
42881
42882         * gnulib-tool (func_usage): Make module names after --create-testdir
42883         optional.
42884         (func_create_testdir): If no module was specified, use nearly all
42885         modules.
42886
42887 2006-10-12  Jim Meyering  <jim@meyering.net>
42888
42889         Big performance improvement for fts-based tools that use FTS_NOSTAT.
42890         Avoid spurious inode-mismatch problems on non-POSIX file systems.
42891         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
42892         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
42893         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
42894         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
42895         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
42896         (fts_set_stat_required): New function.
42897         (fts_open): Defer the calls to fts_stat, if possible or requested.
42898         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
42899         into fts_stat itself.
42900         (fts_read): Perform any required (deferred) fts_stat call.
42901         (fts_build): Likewise, for the directory we're about to open and read.
42902         In the readdir loop, carefully decide whether each entry will require
42903         an eventual call to fts_stat, using dirent.d_type info if available.
42904         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
42905         a command line argument into this function.  Update all callers.
42906         Map a return value of FTS_DOT to FTS_D for a command line argument.
42907         * modules/fts (Depends-on): Add d-type.  Alphabetize.
42908         Thanks to Miklos Szeredi for his tenacity and for the initial
42909         bug report about "find" failing on a FUSE-based file system.
42910
42911         * lib/fts.c (fts_open): Use consistent indentation.
42912
42913 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
42914
42915         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
42916         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
42917         reported by Jim Meyering.  All uses of cache variables renamed
42918         to match Autoconf's.
42919         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
42920         the other one.
42921
42922         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
42923         Fix misspelling in diagnostic.
42924
42925 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
42926
42927         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
42928         defined.  Problem reported by Matthew Woehlke.
42929
42930         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
42931         Add support for Tandem NonStop R series.
42932         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
42933         Use new macro.
42934
42935         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
42936         (has_trailing_slash): Omit size arg; all callers changed.
42937         Omit 'inline', since it doesn't help performance and we'd
42938         need to configure it.
42939         Don't count //, ///, etc. as having a trailing slash.
42940         As a side effect, this removes a C99ism reported by Matthew Woehlke.
42941         (rpl_rename_dest_slash): On failure, use rename's errno rather
42942         than (in some cases) an incorrect or junk errno.
42943         Simplify code by removing need to compute length; this does
42944         cause it to make two passes instead of one over the file name,
42945         but it's worth it.
42946
42947         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
42948         change, since Autoconf's version may no longer be appropriate now
42949         that we are using CVS Autoconf's version.  Add support for Tandem.
42950
42951 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
42952             Bruno Haible  <bruno@clisp.org>
42953
42954         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
42955         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
42956         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
42957         gl_AC_TYPE_LONG_LONG.
42958
42959         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
42960         instead of HAVE_LONG_LONG.
42961         * lib/printf-args.c (printf_fetchargs): Likewise.
42962         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
42963         * lib/vasnprintf.c (VASNPRINTF): Likewise.
42964         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
42965         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
42966         gl_AC_TYPE_LONG_LONG.
42967
42968 2006-10-11  Bruno Haible  <bruno@clisp.org>
42969
42970         * m4/longlong.m4: Add comments.
42971         * m4/ulonglong.m4: Likewise.
42972
42973 2006-10-10  Bruno Haible  <bruno@clisp.org>
42974
42975         Make it possible to #define stpcpy, strdup to aliases.
42976         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
42977         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
42978
42979 2006-10-10  Bruno Haible  <bruno@clisp.org>
42980
42981         Make it possible to #define gcd to an alias.
42982         * lib/gcd.c: Include config.h.
42983
42984 2006-10-10  Bruno Haible  <bruno@clisp.org>
42985
42986         Make it possible to #define c_isascii to an alias.
42987         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
42988         defined. Undefine the macros before defining them, to avoid gcc
42989         warnings.
42990         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
42991         define NO_C_CTYPE_MACROS early.
42992
42993 2006-10-10  Bruno Haible  <bruno@clisp.org>
42994
42995         Make it possible to #define set_program_name to an alias.
42996         * lib/progname.c: Don't undefine set_program_name; instead, undefine
42997         ENABLE_RELOCATABLE early.
42998
42999 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
43000
43001         Port to Tandem NSK OSS, which has 64-bit signed int but at most
43002         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
43003         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
43004         More generally, don't assume that 64-bit signed int is available
43005         if unsigned int is, and vice versa.
43006         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
43007         unsigned symbols, not on their signed counterparts.
43008         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
43009         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
43010         (UINT64_C, UINTMAX_C):
43011         Likewise.
43012         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
43013         unsigned counterparts.
43014         (Have_long_long, Unsigned): New macros.
43015         (Int): Renamed from INT.
43016         (strtoimax): Use the new macros.
43017         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
43018         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
43019         * modules/inttypes (inttypes.h): Substitute
43020         HAVE_UNSIGNED_LONG_LONG_INT.
43021         * modules/stdint (stdint.h): Likewise.
43022         (Files): Add m4/ulonglong.m4.
43023
43024 2006-10-10  Bruno Haible  <bruno@clisp.org>
43025
43026         Fix a gcc -Wshadow warning.
43027         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
43028         to 'bucket'.
43029         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
43030         gl_linked_indexof_from_to): Likewise.
43031         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
43032         Likewise.
43033         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
43034         Likewise.
43035         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
43036         Reported by Eric Blake.
43037
43038 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
43039
43040         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
43041         for NetBSD.  Problem reported by Bruno Haible.
43042
43043 2006-10-09  Jim Meyering  <jim@meyering.net>
43044
43045         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
43046         Patch from Bruno Haible.
43047
43048 2006-10-09  Jim Meyering  <jim@meyering.net>
43049
43050         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
43051         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
43052         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
43053
43054 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
43055
43056         Don't include <config.h> twice; this doesn't work in some cases,
43057         e.g., when config.h has "#define intmax_t long long int" and
43058         we include <config.h>, <inttypes.h>, <config.h> in that order.
43059         Problem reported by Matthew Woehlke in:
43060         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
43061         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
43062         * lib/fts-cycle.c: Don't include config.h.
43063         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
43064         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
43065         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
43066         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
43067         inttypes.h.
43068         * lib/xstrtoumax.c: Likewise.
43069         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
43070         __strtol and the like, so that this module is more like its siblings.
43071         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
43072         Remove; no longer needed now that we assume gnulib inttypes.h.
43073
43074 2006-10-08  Bruno Haible  <bruno@clisp.org>
43075
43076         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
43077         option.
43078
43079 2006-10-07  Jim Meyering  <jim@meyering.net>
43080
43081         * modules/inttypes (inttypes.h): Revert what seems to have been
43082         an inadvertent part of today's change: use "|", not "/" in the
43083         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
43084
43085 2006-10-07  Bruno Haible  <bruno@clisp.org>
43086
43087         * modules/sublist: New file.
43088
43089 2006-10-07  Bruno Haible  <bruno@clisp.org>
43090
43091         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
43092         * modules/argz (argz.h): Likewise.
43093         * modules/arpa_inet (arpa/inet.h): Likewise.
43094         * modules/byteswap (byteswap.h): Likewise.
43095         * modules/configmake (configmake.h): Likewise.
43096         * modules/fcntl (fcntl.h): Likewise.
43097         * modules/fnmatch (fnmatch.h): Likewise.
43098         * modules/getopt (getopt.h): Likewise.
43099         * modules/glob (glob.h): Likewise.
43100         * modules/inttypes (inttypes.h): Likewise.
43101         * modules/netinet_in (netinet/in.h): Likewise.
43102         * modules/poll (poll.h): Likewise.
43103         * modules/stdbool (stdbool.h): Likewise.
43104         * modules/stdint (stdint.h): Likewise.
43105         * modules/sys_select (sys/select.h): Likewise.
43106         * modules/sys_socket (sys/socket.h): Likewise.
43107         * modules/sys_stat (sys/stat.h): Likewise.
43108         * modules/sysexits (sysexits.h): Likewise.
43109         * modules/unistd (unistd.h): Likewise.
43110         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
43111         Add a "DO NOT EDIT" comment to the generated file.
43112         (func_import): Likewise for gnulib-comp.m4.
43113
43114 2006-10-07  Bruno Haible  <bruno@clisp.org>
43115
43116         * lib/gl_sublist.h: New file.
43117         * lib/gl_sublist.c: New file.
43118
43119 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
43120
43121         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
43122         name (relative to the original working directory) and the file
43123         name component (relative to the temporary working directory).  All
43124         callers changed.
43125         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
43126         * lib/mkdir-p.c (make_dir_parents): Likewise.
43127         * lib/mkdir-p.h (make_dir_parents): Likewise.
43128
43129 2006-10-06  Eric Blake  <ebb9@byu.net>
43130
43131         Define several macros for use by the clean-temp module.
43132         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
43133         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
43134         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
43135
43136         * lib/clean-temp.h (close_stream_temp): New declaration.
43137         * lib/clean-temp.c (includes): Pull in headers according to what
43138         other modules are in use.
43139         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
43140
43141 2006-10-06  Bruno Haible  <bruno@clisp.org>
43142
43143         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
43144         instead of fopen, fwriteerror.
43145
43146 2006-10-06  Bruno Haible  <bruno@clisp.org>
43147
43148         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
43149         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
43150         int.
43151         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
43152         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
43153         Return an error indicator.
43154         Suggested by Eric Blake.
43155
43156 2006-10-06  Bruno Haible  <bruno@clisp.org>
43157
43158         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
43159         Reported by Eric Blake.
43160
43161 2006-10-06  Bruno Haible  <bruno@clisp.org>
43162
43163         * modules/closeout (Description): Mention stderr too.
43164
43165 2006-10-06  Bruno Haible  <bruno@clisp.org>
43166         and Paul Eggert  <eggert@cs.ucla.edu>
43167
43168         * lib/closeout.c (close_stdout): Also close stderr.
43169         * lib/closeout.h: Update comment.
43170
43171 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
43172
43173         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
43174         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
43175         * lib/dirchownmod.c: Include lchown.h.
43176         * lib/lchown.c: Don't include files that lchown.h now includes.
43177         Don't declare chown, since lchown.h now does that.
43178         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
43179         (lchown): Define to rpl_chown if lchown is declared but
43180         does not exist.  Declare using a prototype if lchown is not
43181         declared.  Add a copyright notice.
43182         * lib/mkstemp.h: Include <unistd.h>.
43183         * lib/openat.c: Include lchown.h.
43184
43185         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
43186         we now test for that separately.
43187         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
43188         rather than O_NOFOLLOW, when testing whether it's possible to
43189         avoid a race condition reliably.
43190         * lib/savewd.c (savewd_chdir): Likewise.
43191
43192         Remove macros that are no longer needed now that stdint.h is
43193         reliable.
43194         * lib/fsusage.c (UINTMAX_MAX): Remove.
43195         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
43196         * lib/utimecmp.c (SIZE_MAX): Remove.
43197
43198         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
43199
43200         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
43201         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
43202         O_NOATIME works.
43203
43204 2006-10-05  Bruno Haible  <bruno@clisp.org>
43205
43206         * lib/gl_list.h (gl_sortedlist_search_from_to,
43207         gl_sortedlist_indexof_from_to): New declarations.
43208         (gl_list_implementation): New fields sortedlist_search_from_to,
43209         sortedlist_indexof_from_to.
43210         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
43211         inline functions.
43212         * lib/gl_list.c (gl_sortedlist_search_from_to,
43213         gl_sortedlist_indexof_from_to): New functions.
43214         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
43215         function.
43216         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
43217         (gl_array_sortedlist_search_from_to): New function.
43218         (gl_array_list_implementation): Update.
43219         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
43220         function.
43221         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
43222         (gl_carray_sortedlist_search_from_to): New function.
43223         (gl_carray_list_implementation): Update.
43224         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
43225         gl_linked_sortedlist_indexof_from_to): New functions.
43226         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
43227         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
43228         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
43229         gl_tree_sortedlist_indexof_from_to): New functions.
43230         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
43231         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
43232         Update.
43233         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
43234         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
43235         Update.
43236
43237 2006-10-05  Bruno Haible  <bruno@clisp.org>
43238
43239         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
43240         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
43241         (struct gl_list_implementation): Add fields search_from_to,
43242         indexof_from_to. Remove fields search, indexof.
43243         (gl_list_search): Use the search_from_to method.
43244         (gl_list_search_from, gl_list_search_from_to): New functions.
43245         (gl_list_indexof): Use the indexof_from_to method.
43246         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
43247         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
43248         (gl_list_search_from, gl_list_search_from_to): New functions.
43249         (gl_list_indexof): Use the indexof_from_to method.
43250         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
43251         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
43252         gl_array_indexof. Add start_index, end_index arguments.
43253         (gl_array_search_from_to): Renamed from gl_array_search. Add
43254         start_index, end_index arguments.
43255         (gl_array_remove, gl_array_list_implementation): Update.
43256         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
43257         gl_carray_indexof. Add start_index, end_index arguments.
43258         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
43259         start_index, end_index arguments.
43260         (gl_carray_remove, gl_carray_list_implementation): Update.
43261         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
43262         gl_linked_search. Add start_index, end_index arguments.
43263         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
43264         start_index, end_index arguments.
43265         (gl_linked_remove): Update.
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_list1.h (iterstack_item_t): Change type of 'rightp'
43269         field to 'size_t'.
43270         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
43271         gl_tree_search. Add start_index, end_index arguments.
43272         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
43273         start_index, end_index arguments.
43274         (gl_tree_remove): Update.
43275         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
43276         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
43277         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
43278         function.
43279         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
43280         gl_tree_search. Add start_index, end_index arguments.
43281         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
43282         start_index, end_index arguments.
43283         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
43284         Update.
43285         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
43286
43287 2006-10-05  Bruno Haible  <bruno@clisp.org>
43288
43289         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
43290
43291         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
43292         fwriteerror_temp): New declarations.
43293         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
43294         (descriptors): New variable.
43295         (cleanup): First, close the descriptors.
43296         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
43297         fclose_temp, fwriteerror_temp): New functions.
43298
43299 2006-10-04  Jim Meyering  <jim@meyering.net>
43300
43301         * lib/fts.c (fts_open): Tiny comment change.
43302
43303 2006-10-04  Bruno Haible  <bruno@clisp.org>
43304
43305         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
43306         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
43307         gl_LOCK_BODY.
43308         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
43309         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
43310         gl_LOCK_EARLY_BODY.
43311         (gl_LOCK): Require gl_LOCK_BODY.
43312
43313 2006-10-04  Bruno Haible  <bruno@clisp.org>
43314
43315         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
43316         (gl_oset_search_atleast): New declaration.
43317         (struct gl_oset_implementation): Add field 'search_atleast'.
43318         (gl_oset_search_atleast): New inline function.
43319         * lib/gl_oset.c (gl_oset_search_atleast): New function.
43320         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
43321         (gl_array_oset_implementation): Update.
43322         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
43323         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
43324         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
43325
43326 2006-10-04  Bruno Haible  <bruno@clisp.org>
43327
43328         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
43329
43330 2006-10-03  Bruno Haible  <bruno@clisp.org>
43331
43332         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
43333         from gl_avltreehash_list_implementation.
43334
43335 2006-10-03  Bruno Haible  <bruno@clisp.org>
43336
43337         * lib/gl_oset.c (gl_oset_add): Fix return type.
43338
43339 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
43340
43341         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
43342
43343 2006-10-02  Eric Blake  <ebb9@byu.net>
43344
43345         * modules/strnlen (Depends-on): Add extensions.
43346
43347 2006-10-02  Eric Blake  <ebb9@byu.net>
43348
43349         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
43350         definition in 2.60+.
43351
43352 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
43353
43354         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
43355         checks.
43356
43357 2006-10-02  Bruno Haible  <bruno@clisp.org>
43358
43359         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
43360         to the AUTOMAKE_OPTIONS.
43361         Reported by Jim Meyering.
43362
43363 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
43364
43365         Work around bug in Solaris 10 /proc file system:
43366         /proc/self/fd/NNN/.. isn't the parent directory of
43367         the directory whose file descriptor is NNN.  This needs to
43368         be worked around at run time, not compile time, since a
43369         program might be built on Solaris 8, where things work, and
43370         run on Solaris 10.
43371         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
43372         to use the following interface instead:
43373         (OPENAT_BUFFER_SIZE): New macro.
43374         (openat_proc_name): New function.
43375         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
43376         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
43377         Likewise.
43378         * lib/openat-proc.c: New file.
43379         * modules/openat (Files): Add lib/openat-proc.c.
43380         (Depends-on): Add same-inode, stdbool.
43381         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
43382
43383 2006-09-29  Bruno Haible  <bruno@clisp.org>
43384
43385         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
43386         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
43387         argument. Set stdout_closed before testing for ferror, not after.
43388         (fwriteerror, fwriteerror_no_ebadf): New functions.
43389
43390 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43391
43392         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
43393
43394 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
43395
43396         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
43397         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
43398
43399 2006-09-28  Jim Meyering  <jim@meyering.net>
43400
43401         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
43402         Include <unistd.h>.
43403
43404 2006-09-28  Bruno Haible  <bruno@clisp.org>
43405
43406         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
43407         * modules/linkedhash-list (Depends-on): Likewise.
43408         * modules/rbtreehash-list (Depends-on): Likewise.
43409
43410 2006-09-28  Bruno Haible  <bruno@clisp.org>
43411
43412         * lib/strndup.h: Simplify the redefinition of strndup.
43413         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
43414         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
43415
43416 2006-09-28  Bruno Haible  <bruno@clisp.org>
43417
43418         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
43419         * lib/gl_linkedhash_list.c: Likewise.
43420         * lib/gl_rbtreehash_list.c: Likewise.
43421
43422 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
43423
43424         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
43425         getaddrinfo.
43426
43427         * lib/__fpending.h: Don't include <stdio_ext.h> unless
43428         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
43429         it causes <stdio_ext.h> to cause a compile-time error.
43430         Problem reported by Nelson H. F. Beebe.
43431         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
43432         of HAVE_DECL___PENDING.
43433
43434         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
43435         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
43436         declaration.
43437
43438 2006-09-27  Jim Meyering  <jim@meyering.net>
43439
43440         This file could end up with a definition for a function
43441         named __strndup, rather than rpl_strndup on a system with
43442         incomplete weak_alias support.
43443         * lib/strndup.c (strndup): Rename from __strndup.
43444         Remove #defines that used to map __strndup to strndup.
43445         Don't use K&R prototypes.
43446         Remove LIBC-related code, since this file is not sync'd with glibc.
43447         * lib/strndup.h: Revamp, accordingly.
43448         * m4/strndup.m4: Modernize.
43449
43450 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
43451
43452         * modules/savewd (Depends-on): Add 'raise'.
43453         * lib/savewd.c: Include <signal.h>, for 'raise'.
43454
43455 2006-09-26  Jim Meyering  <jim@meyering.net>
43456
43457         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
43458         when we detect Darwin 8.7.0's acl_get_file bug.
43459         Rearrange to perform the new (below) run-test while $LIBS
43460         contains any acl-related library.  Set USE_ACL at the end.
43461         (gl_ACL_GET_FILE): New function.
43462
43463 2006-09-26  Eric Blake  <ebb9@byu.net>
43464
43465         * lib/verror.c: Include <config.h> unconditionally.
43466
43467 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
43468
43469         * modules/clock-time (Maintainer): Add self.
43470         * modules/getlogin_r (Depends-on): Add extensions.
43471
43472 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43473
43474         * modules/clock-time: New module.
43475         * modules/nanosleep (Depends-on): Add clock-time.
43476         * modules/gethrxtime (Depends-on): Likewise.
43477         * modules/gettime (Depends-on): Likewise.
43478         * modules/settime (Depends-on): Likewise.
43479
43480         * modules/fts-lgpl: Depend on openat.
43481         * modules/mkancesdirs: Depend on savewd.
43482         * modules/mkdir-p: Likewise.
43483
43484 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43485
43486         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
43487
43488         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
43489         `gl_have_arbitrary_file_name_length_limit' to
43490         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
43491         actually works between configure runs.
43492
43493 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43494             Bruno Haible  <bruno@clisp.org>
43495
43496         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
43497
43498 2006-09-25  Jim Meyering  <jim@meyering.net>
43499
43500         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
43501         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
43502
43503 2006-09-25  Eric Blake  <ebb9@byu.net>
43504
43505         * gnulib-tool (func_import, func_create_testdir): Fix typos in
43506         exec's in 2006-09-18 patch when shuffling fds.
43507
43508 2006-09-25  Bruno Haible  <bruno@clisp.org>
43509
43510         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
43511         Reported by Jim Meyering.
43512
43513 2006-09-24  Jim Meyering  <jim@meyering.net>
43514
43515         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
43516         compare a pointer against a literal "0".  That caused failures with
43517         at least HP-UX's hpcc.
43518
43519 2006-09-22  Simon Josefsson  <jas@extundo.com>
43520
43521         * modules/gc-sha1:
43522         * modules/gc-md4:
43523         * modules/gc-hmac-sha1:
43524         * modules/gc-hmac-md5:
43525         * modules/gc-des:
43526         * modules/gc-arcfour: Distribute more files.
43527
43528 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43529
43530         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
43531         (gl_linked_iterator_from_to): Initialize struct completely.
43532         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
43533         (gl_tree_iterator_from_to): Likewise
43534         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
43535         * lib/gl_array_list.c [lint] (gl_array_iterator)
43536         (gl_array_iterator_from_to): Likewise.
43537         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
43538         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
43539         (gl_carray_iterator_from_to): Likewise.
43540
43541         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
43542         * lib/md4.c (md4_process_block): Remove unused variable.
43543         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
43544         parentheses for clarity.
43545
43546 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43547
43548         * modules/bison-i18n (Depends-on): Add gettext.
43549
43550 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43551
43552         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
43553         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
43554         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
43555         also add missing comma that caused broken test.
43556         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
43557         stdlib.h, for `abort'.
43558         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
43559         variables.
43560         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
43561         include unistd.h if present, for `rmdir'.
43562         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
43563         variables.
43564         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
43565         in the process include standard headers for prototypes.
43566         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
43567         gets declared on GNU/Linux.
43568         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
43569         unistd.h, for `rmdir'.
43570         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
43571
43572         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
43573         always true.
43574         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
43575
43576         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
43577
43578 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43579
43580         * gnulib-tool (func_version): Create output all at once.  This
43581         may help avoid triggering unnecessary SIGPIPEs, and at any
43582         rate it doesn't hurt.
43583
43584 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43585             Bruno Haible  <bruno@clisp.org>
43586
43587         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
43588         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
43589         * m4/signed.m4 (bh_C_SIGNED): Likewise.
43590
43591         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
43592         (gl_FUNC_VASPRINTF): Invoke it.
43593
43594 2006-09-22  Bruno Haible  <bruno@clisp.org>
43595
43596         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
43597         getloadavg.c as first argument.
43598
43599 2006-09-22  Bruno Haible  <bruno@clisp.org>
43600
43601         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
43602         at the beginning of the gl_INIT macro.
43603         * modules/getloadavg (configure.ac): Pass $gl_source_base to
43604         gl_GETLOADAVG.
43605
43606 2006-09-22  Bruno Haible  <bruno@clisp.org>
43607
43608         * gnulib-tool (func_create_megatestdir): Don't include the config-h
43609         module.
43610         Suggested by Ralf Wildenhues.
43611
43612 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
43613
43614         Import this patch from libc:
43615
43616         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
43617
43618         * lib/regex_internal.c (re_string_reconstruct): Handle
43619         offset < pstr->valid_raw_len && pstr->offsets_needed case.
43620         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
43621         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
43622         re_string_context_at.
43623
43624         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
43625         now requires it.
43626         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
43627         gl_REGEX now does it for us.
43628         (gl_REGEX): Add test taken from
43629         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
43630
43631         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
43632         Check that large offsets work.  Modernize Autoconf usages.
43633         Prefer "yes" to mean a good thing rather than a bad.
43634         Don't put "#define mkstemp" in config.h, as this might interfere
43635         with standard system headers that "#define mkstemp mkstemp64".
43636
43637         * modules/mkstemp (Depends-on): Add extensions, so that
43638         mkstemp is visible on some platforms.
43639         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
43640         (Include): Change to "mkstemp.h" from <stdlib.h>.
43641         (Files): Add mkstemp.h.
43642
43643         * lib/mkstemp.h: New file, since some standard headers
43644         #define mkstemp.
43645         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
43646         Include "mkstemp.h".
43647         Make the _LIBC code resemble glibc original more,
43648         e.g., use K&R style.
43649         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
43650         (mkstemp): Remove, since mkstemp.h does this for us.
43651         * lib/stdlib--.h: Include mkstemp.h.
43652
43653         Import this patch from libc:
43654
43655         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
43656
43657         * lib/tempname.c (__gen_tempname): Change attempts_min
43658         into a macro.  Use preprocessor to decide how to initialize
43659         attempts [Coverity CID 67].
43660
43661 2006-09-20  Bruno Haible  <bruno@clisp.org>
43662
43663         * lib/mkdtemp.c: Import from libc.
43664         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
43665                 * sysdeps/posix/tempname.c (__gen_tempname): Change
43666                 attempts_min into a macro.  Use preprocessor to decide how to
43667                 initialize attempts [Coverity CID 67].
43668         2001-11-27  Paul Eggert  <eggert@twinsun.com>
43669                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
43670                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
43671
43672 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43673
43674         * gnulib-tool (func_exit): New function, to allow to pass the
43675         exit status portably through the trap.  Use everywhere.
43676         (--help, --version): Signal a write error.
43677         (trap): catch SIGPIPE, for write errors.
43678         Exit at the end of the trap, with the correct exit status.
43679
43680 2006-09-19  Karl Berry  <karl@gnu.org>
43681
43682         * doc/gnulib.texi: note about the license texinfo files.
43683
43684 2006-09-19  Eric Blake  <ebb9@byu.net>
43685
43686         * gnulib-tool: Avoid space-tab.
43687
43688 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
43689
43690         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
43691         that prevented coreutils 6.1 from building.  Problem reported
43692         by Petter Reinholdtsen.
43693
43694 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
43695
43696         * gnulib-tool (avoidlist): Fix typo that broke options like
43697         --avoid=lock that are used by coreutils bootstrap.
43698
43699 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
43700
43701         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
43702         more systematically.
43703
43704 2006-09-18  Jim Meyering  <jim@meyering.net>
43705
43706         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
43707
43708 2006-09-18  Bruno Haible  <bruno@clisp.org>
43709
43710         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
43711
43712 2006-09-18  Bruno Haible  <bruno@clisp.org>
43713
43714         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
43715         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
43716         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
43717         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
43718         * m4/gettext.m4: Require autoconf >= 2.52.
43719         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
43720         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
43721         of gl_cv_header_inttypes_h.
43722
43723 2006-09-18  Bruno Haible  <bruno@clisp.org>
43724
43725         * lib/javaversion.c: Include configmake.h.
43726
43727 2006-09-18  Bruno Haible  <bruno@clisp.org>
43728
43729         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
43730         avoid that the while loops be executed in a subshell.
43731
43732 2006-09-18  Bruno Haible  <bruno@clisp.org>
43733
43734         * MODULES.html.sh (func_module): Break long lines.
43735         Suggested by Bruce Korb <bkorb@gnu.org>.
43736
43737 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43738
43739         Speed up by a factor of 1.12.
43740         * gnulib-tool (nl): New variable.
43741         (func_import): Rewrite include directive extraction to only read each
43742         directive once.
43743
43744 2006-09-17  Bruno Haible  <bruno@clisp.org>
43745
43746         * modules/javaversion (Makefile.am): Remove DEFS setting.
43747         (Depends-on): Add configmake, for PKGDATADIR definition.
43748
43749 2006-09-17  Bruno Haible  <bruno@clisp.org>
43750
43751         * gnulib-tool (func_create_testdir): Rewrite all files at once.
43752
43753 2006-09-17  Bruno Haible  <bruno@clisp.org>
43754
43755         * gnulib-tool (func_append): New function, stolen from libtool.m4.
43756         (func_modules_transitive_closure, func_modules_add_dummy,
43757         func_modules_to_filelist, func_import, func_create_testdir,
43758         func_create_megatestdir, ...): Use it wherever possible.
43759         Suggested by Ralf Wildenhues.
43760
43761 2006-09-16  Karl Berry  <karl@gnu.org>
43762
43763         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
43764         to avoid sectioning errors.
43765         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
43766         [ifinfo]: blank line after @center-ed titles.
43767         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
43768         Spell FSF address consistently with others.
43769         (These changes approved by rms.)
43770
43771 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43772
43773         Speed up by a factor of 1.61.
43774         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
43775         already checked module names again.
43776
43777 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43778
43779         Speed up by a factor of 1.13.
43780         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
43781         for new_files, and the input to func_add_or_update.
43782
43783 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43784
43785         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
43786         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
43787
43788 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
43789
43790         * modules/mkancesdirs (Depends-on): Add fcntl.
43791         * modules/savewd: New file.
43792         * MODULES.html.sh (File system functions): Add savewd.
43793
43794         * modules/configmake (Makefile.am): Add support for the
43795         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
43796
43797 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
43798
43799         * m4/savewd.m4: New file.
43800
43801 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
43802
43803         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
43804         (dirchownmod): New arg FD.  All callers changed.
43805         Use FD rather than opening the directory ourself, as opening is
43806         now the caller's responsibility.
43807         * lib/dirchownmod.h: Likewise.
43808         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
43809         hosts that require <sys/types.h> before <sys/stat.h>.  Include
43810         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
43811         (test_dir): Remove.
43812         (mkancesdirs): Return length of prefix of FILE that has already
43813         been made, or -2 if there is a child doing the work.  Redo
43814         algorithm so that it is O(N) rather than O(N**2).  Optimize away
43815         ".", and treat ".." specially since it might stray back into
43816         already-created areas.  Use a subprocess if necessary.  New arg
43817         WD; all users changed.  MAKE_DIR function should now return 1
43818         if it creates a directory that is not readable.  Return -2 if
43819         a child process is spun off.
43820         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
43821         Adjust signature to match code.
43822         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
43823         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
43824         all users changed.
43825         * lib/savewd.c, lib/savewd.h: New files.
43826
43827 2006-09-15  Jim Meyering  <jim@meyering.net>
43828
43829         * modules/rename-dest-slash: New module.
43830         * MODULES.html.sh (posix_compat): Add it here.
43831
43832         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
43833
43834 2006-09-15  Jim Meyering  <jim@meyering.net>
43835
43836         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
43837         file.
43838
43839         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
43840
43841 2006-09-15  Jim Meyering  <jim@meyering.net>
43842
43843         * lib/rename-dest-slash.c (has_trailing_slash): Use
43844         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
43845         (rpl_rename_dest_slash): Perform the cheaper trailing slash
43846         test before testing whether SRC is a directory.
43847         Suggestions from Bruno Haible.
43848
43849         Avoid a warning about an unused variable.
43850         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
43851         into the #ifdef block where it's used.
43852
43853         * lib/rename-dest-slash.c: New file.
43854
43855 2006-09-14  Bruno Haible  <bruno@clisp.org>
43856
43857         * lib/allocsa.c: Include <config.h> unconditionally.
43858         * lib/asnprintf.c: Likewise.
43859         * lib/asprintf.c: Likewise.
43860         * lib/c-strcasecmp.c: Likewise.
43861         * lib/c-strcasestr.c: Likewise.
43862         * lib/c-strncasecmp.c: Likewise.
43863         * lib/c-strstr.c: Likewise.
43864         * lib/classpath.c: Likewise.
43865         * lib/clean-temp.c: Likewise.
43866         * lib/concatpath.c: Likewise.
43867         * lib/copy-file.c: Likewise.
43868         * lib/csharpcomp.c: Likewise.
43869         * lib/csharpexec.c: Likewise.
43870         * lib/execute.c: Likewise.
43871         * lib/fatal-signal.c: Likewise.
43872         * lib/findprog.c: Likewise.
43873         * lib/fwriteerror.c: Likewise.
43874         * lib/gl_array_list.c: Likewise.
43875         * lib/gl_array_oset.c: Likewise.
43876         * lib/gl_avltree_list.c: Likewise.
43877         * lib/gl_avltree_oset.c: Likewise.
43878         * lib/gl_avltreehash_list.c: Likewise.
43879         * lib/gl_carray_list.c: Likewise.
43880         * lib/gl_linked_list.c: Likewise.
43881         * lib/gl_linkedhash_list.c: Likewise.
43882         * lib/gl_list.c: Likewise.
43883         * lib/gl_oset.c: Likewise.
43884         * lib/gl_rbtree_list.c: Likewise.
43885         * lib/gl_rbtree_oset.c: Likewise.
43886         * lib/gl_rbtreehash_list.c: Likewise.
43887         * lib/imaxabs.c: Likewise.
43888         * lib/imaxdiv.c: Likewise.
43889         * lib/javacomp.c: Likewise.
43890         * lib/javaexec.c: Likewise.
43891         * lib/javaversion.c: Likewise.
43892         * lib/linebreak.c: Likewise.
43893         * lib/localcharset.c: Likewise.
43894         * lib/lock.c: Likewise.
43895         * lib/mbchar.c: Likewise.
43896         * lib/mbswidth.c: Likewise.
43897         * lib/mkdtemp.c: Likewise.
43898         * lib/pipe.c: Likewise.
43899         * lib/printf-args.c: Likewise.
43900         * lib/printf-parse.c: Likewise.
43901         * lib/progname.c: Likewise.
43902         * lib/progreloc.c: Likewise.
43903         * lib/readlink.c: Likewise.
43904         * lib/sh-quote.c: Likewise.
43905         * lib/stpcpy.c: Likewise.
43906         * lib/stpncpy.c: Likewise.
43907         * lib/strcasecmp.c: Likewise.
43908         * lib/strcasestr.c: Likewise.
43909         * lib/strcspn.c: Likewise.
43910         * lib/striconv.c: Likewise.
43911         * lib/strncasecmp.c: Likewise.
43912         * lib/strnlen1.c: Likewise.
43913         * lib/strstr.c: Likewise.
43914         * lib/strtok_r.c: Likewise.
43915         * lib/tls.c: Likewise.
43916         * lib/tmpdir.c: Likewise.
43917         * lib/unicodeio.c: Likewise.
43918         * lib/unsetenv.c: Likewise.
43919         * lib/vasnprintf.c: Likewise.
43920         * lib/vasprintf.c: Likewise.
43921         * lib/wait-process.c: Likewise.
43922         * lib/xallocsa.c: Likewise.
43923         * lib/xsetenv.c: Likewise.
43924         * lib/xstriconv.c: Likewise.
43925
43926 2006-09-13  Simon Josefsson  <jas@extundo.com>
43927
43928         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
43929         that internally, suggested by Ralf Wildenhues
43930         <Ralf.Wildenhues@gmx.de>.
43931
43932 2006-09-13  Simon Josefsson  <jas@extundo.com>
43933
43934         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
43935         @LIBOBJS@.
43936         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43937
43938 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
43939
43940         * lib/_fpending.c: Include <config.h> unconditionally, since we no
43941         longer worry about uses that don't define HAVE_CONFIG_H.
43942         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
43943         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
43944         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
43945         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
43946         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
43947         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
43948         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
43949         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
43950         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
43951         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
43952         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
43953         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
43954         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
43955         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
43956         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
43957         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
43958         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
43959         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
43960         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
43961         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
43962         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
43963         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
43964         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
43965         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
43966         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
43967         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
43968         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
43969         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
43970         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
43971         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
43972         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
43973         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
43974         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
43975         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
43976         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
43977         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
43978         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
43979         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
43980         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
43981         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
43982         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
43983         Likewise.
43984
43985 2006-09-13  Eric Blake  <ebb9@byu.net>
43986
43987         * lib/getopt.c: Fix typo in last commit.
43988
43989 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
43990
43991         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
43992         dgettext.
43993
43994 2006-09-12  Jim Meyering  <jim@meyering.net>
43995
43996         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
43997         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
43998         Reported by Nelson H. F. Beebe.
43999
44000 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
44001
44002         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
44003         program_invocation_name and program_invocation_short_name are
44004         initialized.
44005         * lib/argp-namefrob.h: Move declarations of program_invocation_name
44006         and program_invocation_short_name to argp.h, so they are visible
44007         to user programs.
44008         * lib/argp.h: Likewise
44009
44010 2006-09-10  Bruno Haible  <bruno@clisp.org>
44011
44012         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
44013         m4/inttypes_h.m4, m4/uintmax_t.m4.
44014
44015 2006-09-10  Bruno Haible  <bruno@clisp.org>
44016
44017         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
44018         gl_AC_TYPE_UINTMAX_T.
44019
44020 2006-09-10  Bruno Haible  <bruno@clisp.org>
44021
44022         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
44023
44024 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
44025
44026         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
44027         convention.  Text proposed by Bruno Haible.
44028         (struct argp_option): Document the use of N_() wrappers.
44029
44030         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
44031         '\v', and translate the two parts separately, instead of feeding
44032         the whole string to gettext.  This allows to exclude
44033         '\v' from the strings visible to the translator by writing doc
44034         strings as N_("..") "\v" N_("..").
44035
44036 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
44037
44038         * config/srclist.txt: Undo latest change; the bug was fixed.
44039
44040 2006-09-09  Bruno Haible  <bruno@clisp.org>
44041
44042         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
44043         assignments if building a library without libtool.
44044         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
44045         in func_emit_lib_Makefile_am.
44046         (func_import): When building a static library libfoo.a, arrange to
44047         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
44048         (func_create_testdir): Likewise.
44049         * modules/gc (configure.ac, Makefile.am): If building statically,
44050         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
44051         * modules/iconvme (configure.ac, Makefile.am): Likewise.
44052         * modules/striconv (configure.ac, Makefile.am): Likewise.
44053         Based on a suggestion by Ralf Wildenhues.
44054
44055 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
44056
44057         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
44058         Check for unistd.h too, since Autoconf doesn't assume POSIX.
44059         Also:
44060
44061         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
44062         Add year_2050_test to catch glibc bug 2821
44063         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
44064
44065         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
44066         Prefer #ifdef to #if.
44067
44068         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
44069         Return from 'main' instead of calling 'exit'.
44070
44071 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
44072
44073         * lib/mktime.c (guess_time_tm): Fix bug where mktime
44074         returned the maximum time_t value rather than (time_t) -1.
44075         Problem originally reported by William Bardwell
44076         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
44077
44078         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
44079         Moved to here ...
44080         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
44081         ... from here.
44082
44083 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
44084
44085         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
44086         2821 is fixed.
44087
44088 2006-09-08  Jim Meyering  <jim@meyering.net>
44089
44090         Don't make generated files read-only.  That would bother too many
44091         people.  However, do retain the ability to work when targets are
44092         read-only: remove the destination and temporary files before writing
44093         them (when generated via sed or echo), or by using the -f option for
44094         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
44095         * modules/alloca-opt, modules/argz, modules/arpa_inet:
44096         * modules/byteswap, modules/configmake, modules/fcntl:
44097         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
44098         * modules/localcharset, modules/netinet_in, modules/poll:
44099         * modules/stdbool, modules/stdint, modules/sys_select:
44100         * modules/sys_socket, modules/sys_stat, modules/sysexits:
44101
44102 2006-09-08  Jim Meyering  <jim@meyering.net>
44103
44104         Avoid new build failure on FreeBSD 6.0.
44105         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
44106         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
44107         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
44108
44109 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44110
44111         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
44112
44113 2006-09-07  Jim Meyering  <jim@meyering.net>
44114
44115         Fix global typo in last change: use chmod u-w, not chmod u-x.
44116         Spotted by Paul Eggert and Bruce Korb.
44117         * modules/alloca-opt, modules/argz, modules/arpa_inet:
44118         * modules/byteswap, modules/configmake, modules/fcntl:
44119         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
44120         * modules/localcharset, modules/netinet_in, modules/poll:
44121         * modules/stdbool, modules/stdint, modules/sys_select:
44122         * modules/sys_socket, modules/sys_stat, modules/sysexits:
44123
44124 2006-09-06  Jim Meyering  <jim@meyering.net>
44125
44126         Make generated files be read-only.
44127         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
44128         Ensure that each generated file is now read-only.
44129         * modules/argz: Likewise.
44130         * modules/arpa_inet: Likewise.
44131         * modules/byteswap: Likewise.
44132         * modules/configmake: Likewise.
44133         * modules/fcntl: Likewise.
44134         * modules/fnmatch: Likewise.
44135         * modules/getopt: Likewise.
44136         * modules/glob: Likewise.
44137         * modules/inttypes: Likewise.
44138         * modules/netinet_in: Likewise.
44139         * modules/poll: Likewise.
44140         * modules/stdbool: Likewise.
44141         * modules/stdint: Likewise.
44142         * modules/sys_select: Likewise.
44143         * modules/sys_socket: Likewise.
44144         * modules/sys_stat: Likewise.
44145         * modules/sysexits: Likewise.
44146         * modules/localcharset: Same as above, but continue using temporary
44147         file named "t-$@" (why different?) rather than the "$@-t" used
44148         everywhere else.
44149
44150         * modules/sysexits (Makefile.am): Replace literal occurrences
44151         of "sysexit.h" more readable, and more consistent, "$@".
44152
44153 2006-09-06  Bruno Haible  <bruno@clisp.org>
44154
44155         * modules/striconv: New file.
44156         * modules/xstriconv: New file.
44157         * MODULES.html.sh (Internationalization functions): Add striconv,
44158         xstriconv.
44159
44160 2006-09-06  Bruno Haible  <bruno@clisp.org>
44161
44162         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
44163         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
44164         not using libtool correctly.
44165
44166 2006-09-06  Bruno Haible  <bruno@clisp.org>
44167
44168         * lib/striconv.h: New file.
44169         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
44170         iconvstring.c.
44171         * lib/xstriconv.h: New file.
44172         * lib/xstriconv.c: New file.
44173
44174 2006-09-06  Bruno Haible  <bruno@clisp.org>
44175
44176         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
44177         lib_..._LDFLAGS.
44178
44179 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44180
44181         * lib/argz_.h: Sync from Libtool.
44182
44183         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
44184                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
44185
44186         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
44187
44188 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
44189
44190         * modules/trim: New file.
44191
44192 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
44193
44194         * lib/trim.h: New file.
44195         * lib/trim.c: New file.
44196
44197 2006-09-05  Bruno Haible  <bruno@clisp.org>
44198
44199         * MODULES.html.sh (String handling): Add trim.
44200
44201 2006-09-04  Karl Berry  <karl@gnu.org>
44202
44203         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
44204         until next release.
44205
44206 2006-09-03  Bruno Haible  <bruno@clisp.org>
44207
44208         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
44209         correctly.
44210
44211 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
44212
44213         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
44214         not gl_GETLOADAVG.  Omit unneeded semicolons.
44215         Problems reported by Ralf Wildenhues in
44216         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
44217         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
44218         at the end, which is the usual gnulib style.
44219
44220         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
44221         of doing all the work ourselves.
44222         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
44223         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
44224
44225 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
44226
44227         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
44228         Problem reported by Ralf Wildenhues in
44229         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
44230
44231         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
44232         HAVE_STRUCT_STATFS_F_FSTYPENAME.
44233
44234 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
44235
44236         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
44237         yesterday's patch by changing test -n to test -z.
44238
44239 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
44240
44241         * modules/getloadavg (Files): Add m4/getloadavg.m4.
44242         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
44243         the former is now obsolescent.
44244
44245         * modules/chdir-long (Depends-on): Add fcntl.
44246
44247 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
44248
44249         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
44250         obsolescent, and programs should use gnulib instead.
44251         * m4/getloadavg.m4: New file, with contents taken from Autoconf
44252         but with prefixes changed.
44253
44254 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
44255
44256         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
44257         or stdbool.h, because they might not exist while configuring.
44258
44259         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
44260         Don't include unistd.h or limits.h; not needed, since chdir-long.h
44261         does that for us.
44262         (O_DIRECTORY): Remove.
44263
44264 2006-08-31  Eric Blake  <ebb9@byu.net>
44265
44266         * gnulib-tool: Don't let emacs change spaces to TAB.
44267
44268 2006-08-31  Bruno Haible  <bruno@clisp.org>
44269
44270         * gnulib-tool: When calling func_import more than once, do it in a
44271         subshell.
44272         Reported by Eric Blake <ebb9@byu.net>.
44273
44274 2006-08-31  Bruno Haible  <bruno@clisp.org>
44275
44276         * gnulib-tool (nl): Remove variable.
44277         (sed_transform_lib_file): Use more robust test for config-h module.
44278         (func_import): Fix typo in 2006-08-25 patch.
44279
44280 2006-08-31  Bruno Haible  <bruno@clisp.org>
44281
44282         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
44283         specified, augment Makefile.am variables instead of assigning them.
44284
44285 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
44286
44287         Work around a bug in both the Linux and SunOS 64-bit kernels:
44288         nanosleep mishandles sleeps for longer than 2**31 seconds.
44289         Problem reported by Frank v Waveren in
44290         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
44291         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
44292         Check for nanosleep bug.
44293         (LIB_NANOSLEEP): Append clock_gettime library if needed.
44294
44295 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
44296
44297         Work around a bug in both the Linux and SunOS 64-bit kernels:
44298         nanosleep mishandles sleeps for longer than 2**31 seconds.
44299         Problem reported by Frank v Waveren in
44300         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
44301         * lib/nanosleep.c (BILLION): New constant.
44302         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
44303         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
44304         implementation.
44305
44306 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
44307
44308         * modules/nanosleep (Depends-on): Add gettime.
44309
44310 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
44311         and Simon Josefsson  <jas@extundo.com>
44312         and Oskar Liljeblad  <oskar@osk.mine.nu>
44313
44314         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
44315         * gnulib-tool (func_import): New license type 'unmodifiable license
44316         text'.
44317         * modules/fdl: Use it.  Longer description.
44318         * module/gpl, module/lgpl: New files.
44319
44320 2006-08-30  Jim Meyering  <jim@meyering.net>
44321
44322         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
44323         shadowing the parameter.
44324
44325 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44326
44327         Sync from Libtool:
44328
44329         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44330
44331         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
44332         sharing with gnulib.  Report by Eric Blake.
44333
44334 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
44335
44336         * modules/isapipe: New file.
44337         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
44338
44339 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
44340
44341         * modules/configmake (Makefile.am): Add a comment, and omit
44342         the CONFIGMAKE_ prefix from generated macro names.  Suggested
44343         by Bruno Haible.
44344
44345 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
44346
44347         * m4/isapipe.m4: New file.
44348
44349 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
44350
44351         * lib/isapipe.c, lib/isapipe.h: New files.
44352
44353 2006-08-29  Jim Meyering  <jim@meyering.net>
44354
44355         * modules/configmake (Makefile.am): Make configmake.h depend on
44356         Makefile.  Otherwise, a stale configmake.h could hang around.
44357
44358 2006-08-29  Eric Blake  <ebb9@byu.net>
44359
44360         * lib/error.c (error_at_line, print_errno_message): Match libc, after
44361         resolution of upstream bug 3044.
44362
44363 2006-08-29  Bruno Haible  <bruno@clisp.org>
44364
44365         * modules/localcharset (Depends-on): Add configmake.
44366         (Makefile.am): Remove setting of LIBDIR through DEFS.
44367
44368 2006-08-29  Bruno Haible  <bruno@clisp.org>
44369
44370         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
44371         defined.
44372
44373 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
44374
44375         * modules/fcntl: New file.
44376         * modules/chdir-safer (Depends-on): Add fcntl.
44377         * modules/fts: Likewise.
44378         * modules/mkdir-p: Likewise.
44379
44380         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
44381         This undoes the most recent change, since we're now addressing the
44382         problem in a different way.
44383
44384         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
44385         into output, since the output might be called Makefile.am even
44386         if $makefile_name is something different.
44387         (func_import): Use $makefile_am rather than
44388         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
44389         empty.
44390
44391         * modules/inttypes (Files): Add m4/inttypes-h.m4.
44392
44393 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
44394
44395         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
44396         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
44397         recent change to stdint.m4, since we're now addressing the problem in a
44398         different way.
44399
44400 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
44401
44402         * m4/fcntl_h.m4: New file.
44403
44404 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
44405
44406         * lib/fcntl_.h: New file.
44407         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
44408         the fcntl module.
44409         * lib/dirchownmod.c: Likewise.
44410         * lib/fts.c: Likewise.
44411
44412         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
44413         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
44414         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
44415         just before including <inttypes.h>, to avoid circular inclusion.
44416
44417 2006-08-28  Jim Meyering  <jim@meyering.net>
44418
44419         * doc/visibility.texi: Actually read and correct the grammar of the
44420         sentence affected by yesterday's change.
44421
44422 2006-08-28  Eric Blake  <ebb9@byu.net>
44423
44424         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
44425         needs wrapper.
44426
44427 2006-08-28  Eric Blake  <ebb9@byu.net>
44428
44429         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
44430
44431 2006-08-28  Eric Blake  <ebb9@byu.net>
44432
44433         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
44434
44435 2006-08-28  Bruno Haible  <bruno@clisp.org>
44436
44437         * modules/c-strstr: New file, from GNU gettext.
44438         * MODULES.html.sh (String handling): Add c-strstr.
44439
44440 2006-08-28  Bruno Haible  <bruno@clisp.org>
44441
44442         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
44443         macros.
44444         Reported by Eric Blake.
44445
44446 2006-08-28  Bruno Haible  <bruno@clisp.org>
44447
44448         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
44449         (VASNPRINTF): Return a string of length > INT_MAX without failing.
44450         * lib/vasprintf.c: Include errno.h, limits.h.
44451         (EOVERFLOW): New fallback definition.
44452         (vasprintf): Test here whether the string length is > INT_MAX.
44453         * lib/vsnprintf.c: Include errno.h, limits.h.
44454         (EOVERFLOW): New fallback definition.
44455         (vsnprintf): Fix bug when generated string was too long for the buffer.
44456         Test here whether the string length is > INT_MAX.
44457
44458 2006-08-28  Bruno Haible  <bruno@clisp.org>
44459
44460         * lib/inttypes_.h (SCNX*): Remove definitions.
44461         Reported by Eric Blake.
44462
44463 2006-08-28  Bruno Haible  <bruno@clisp.org>
44464
44465         * lib/c-strstr.h: New file, from GNU gettext.
44466         * lib/c-strstr.c: New file, from GNU gettext.
44467
44468 2006-08-28  Bruno Haible  <bruno@clisp.org>
44469
44470         * gnulib-tool: Reorder some statements.
44471
44472 2006-08-28  Bruno Haible  <bruno@clisp.org>
44473
44474         * gnulib-tool: New option --makefile-name.
44475         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
44476         $makefile_name.
44477         (func_import): Write $makefile_name to the cache file, and read it from
44478         there unless explicitly specified. Use $makefile_name as file name
44479         instead of Makefile.am. Adjust the recommendations accordingly.
44480
44481 2006-08-28  Bruno Haible  <bruno@clisp.org>
44482
44483         * gnulib-tool (func_verify_module): Check against misapplying patch.
44484
44485 2006-08-28  Bruno Haible  <bruno@clisp.org>
44486
44487         * gnulib-tool (func_relativize, func_relconcat): New functions.
44488         Give an error if --local-dir is given with --update.
44489         Remove trailing slashes from $local_gnulib_dir.
44490         (func_import): Store the relativized $local_gnulib_dir in
44491         gnulib-cache.m4, and read it from there if not specified explicitly.
44492
44493 2006-08-28  Bruno Haible  <bruno@clisp.org>
44494
44495         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
44496         is the current directory. Respect also $local_gnulib_dir.
44497
44498 2006-08-28  Bruno Haible  <bruno@clisp.org>
44499             Simon Josefsson  <jas@extundo.com>
44500
44501         BeOS portability.
44502         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
44503
44504 2006-08-27  Jim Meyering  <jim@meyering.net>
44505
44506         * doc/visibility.texi: Remove duplicate word: "pointer".
44507
44508 2006-08-26  Bruno Haible  <bruno@clisp.org>
44509
44510         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
44511         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
44512         (Makefile.am): Create inttypes.h from inttypes_.h.
44513         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
44514
44515         * modules/imaxabs: New file.
44516
44517         * modules/imaxdiv: New file.
44518
44519 2006-08-26  Bruno Haible  <bruno@clisp.org>
44520
44521         * m4/inttypes.m4: New file.
44522         * m4/_inttypes_h.m4: Remove file.
44523         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
44524         PRI_MACROS_BROKEN.
44525         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
44526
44527         * m4/imaxabs.m4: New file.
44528
44529         * m4/imaxdiv.m4: New file.
44530
44531 2006-08-26  Bruno Haible  <bruno@clisp.org>
44532
44533         * lib/inttypes_.h: New file.
44534         * lib/inttypes.h: Remove file.
44535         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
44536
44537         * lib/imaxabs.c: New file.
44538
44539         * lib/imaxdiv.c: New file.
44540
44541 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
44542
44543         New config-h module, so that "make" output needn't be cluttered
44544         by -DHAVE_CONFIG_H.
44545         * MODULES.html.sh (Support for building libraries and executables):
44546         Add config-h.
44547         * modules/config-h: New file.
44548         * gnulib-tool (nl, sed_transform_lib_file): New vars.
44549         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
44550         the config-h module is used.
44551
44552         New configmake module, so that "make" output needn't be cluttered
44553         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
44554         * MODULES.html.sh (Support for building libraries and executables):
44555         Add configmake.
44556         * modules/configmake: New file.
44557
44558 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
44559
44560         * m4/config-h.m4: New file.
44561
44562 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
44563
44564         * config/srclist.txt: Add elisp-comp.
44565
44566 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
44567
44568         * MODULES.html.sh (Support for building libraries and executables):
44569         Add elisp-comp.
44570         * build-aux/elisp-comp: New file.
44571         * modules/elisp-comp: New file.
44572
44573 2006-08-24  Bruno Haible  <bruno@clisp.org>
44574
44575         * gnulib-tool (func_create_testdir): Use non-default values of
44576         sourcebase and m4base.
44577
44578 2006-08-24  Bruno Haible  <bruno@clisp.org>
44579
44580         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
44581         HTML structure.
44582
44583 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
44584
44585         * modules/openat (Depends-on): Add lchown.
44586
44587 2006-08-23  Bruno Haible  <bruno@clisp.org>
44588
44589         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
44590         of gl_LOCK_EARLY instead of gl_LOCK.
44591
44592 2006-08-23  Bruno Haible  <bruno@clisp.org>
44593
44594         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
44595         on OSF/1 to no.
44596         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
44597
44598 2006-08-23  Bruno Haible  <bruno@clisp.org>
44599
44600         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
44601         as unusable.
44602
44603         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
44604         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
44605         (gl_LOCK): New macro.
44606
44607 2006-08-22  Simon Josefsson  <jas@extundo.com>
44608
44609         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
44610         to md5 module.
44611
44612 2006-08-22  Simon Josefsson  <jas@extundo.com>
44613
44614         * MODULES.html.sh: Add "Support for maintaining and release
44615         projects".
44616
44617         * build-aux/gnupload: New file, from coreutils.
44618
44619 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
44620
44621         Avoid the need for AC_LIBSOURCES in m4 macros.
44622         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
44623         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
44624         * modules/check-version (EXTRA_DIST): Add check-version.h.
44625         * modules/crc (EXTRA_DIST): Add crc.h.
44626         * modules/des (EXTRA_DIST): Add des.h.
44627         * modules/gc (EXTRA_DIST): Add gc.h.
44628         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
44629         * modules/getline (EXTRA_DIST): Add getline.h.
44630         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
44631         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
44632         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
44633         * modules/md2 (EXTRA_DIST): Add md2.h.
44634         * modules/md4 (EXTRA_DIST): Add md4.h.
44635         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
44636         * modules/read-file (EXTRA_DIST): Add read-file.h.
44637         * modules/readline (EXTRA_DIST): Add readline.h.
44638         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
44639         rijndael-api-fst.h.
44640
44641 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
44642
44643         * m4/rijndael.m4 (gl_ARCFOUR):
44644         * m4/arctwo.m4 (gl_ARCTWO):
44645         * m4/check-version.m4 (gl_CHECK_VERSION):
44646         * m4/crc.m4 (gl_CRC):
44647         * m4/des.m4 (gl_DES):
44648         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
44649         * m4/gc.m4 (gl_GC):
44650         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
44651         * m4/getline.m4 (gl_FUNC_GETLINE):
44652         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
44653         * m4/hmac-md5.m4 (gl_HMAC_MD5):
44654         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
44655         * m4/md2.m4 (gl_MD2):
44656         * m4/md4.m4 (gl_MD4):
44657         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
44658         * m4/read-file.m4 (gl_FUNC_READ_FILE):
44659         * m4/readline.m4 (gl_FUNC_READLINE):
44660         * m4/rijndael.m4 (gl_RIJNDAEL):
44661         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
44662         to get the necessary .h files and whatnot.
44663
44664 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
44665
44666         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
44667         gnulib rather than the other way around.
44668         * config/srclistvars.sh (COREUTILS): Remove.
44669
44670 2006-08-22  Jim Meyering  <jim@meyering.net>
44671
44672         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
44673
44674         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
44675
44676 2006-08-22  Eric Blake  <ebb9@byu.net>
44677
44678         * modules/regexprops-generic: New file.
44679         * MODULES.html.sh (Support for building documentation): List it.
44680
44681 2006-08-22  Eric Blake  <ebb9@byu.net>
44682
44683         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
44684         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
44685         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
44686         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
44687
44688 2006-08-22  Bruno Haible  <bruno@clisp.org>
44689
44690         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
44691         and lib_LTLIBRARIES like the other lib_* variables.
44692
44693 2006-08-22  Bruno Haible  <bruno@clisp.org>
44694
44695         * build-aux/x-to-1.in: New file, from GNU gettext.
44696
44697 2006-08-22  Bruno Haible  <bruno@clisp.org>
44698
44699         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
44700         <utmpx.h> exists.
44701
44702 2006-08-22  Bruno Haible  <bruno@clisp.org>
44703
44704         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
44705         <utmpx.h> exists.
44706
44707 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
44708
44709         BeOS portability.
44710         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
44711         exist.
44712         Problem reported by Bruno Haible.
44713
44714 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
44715
44716         Avoid the need for AC_LIBSOURCES in m4 macros.
44717         * modules/acl (EXTRA_DIST): Add acl.h.
44718         * modules/argmatch (Files): Add m4/argmatch.m4.
44719         (configure.ac): Add gl_ARGMATCH.
44720         (EXTRA_DIST): Renamed from lib_SOURCES, for
44721         consistency with the other modules.  Remove argmatch.c.
44722         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
44723         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
44724         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
44725         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
44726         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
44727         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
44728         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
44729         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
44730         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
44731         * modules/closeout (EXTRA_DIST): Add closeout.h.
44732         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
44733         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
44734         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
44735         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
44736         dirname.h; remove basename.c and stripslash.c.
44737         * modules/exclude (EXTRA_DIST): Add exclude.h.
44738         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
44739         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
44740         * modules/file-type (EXTRA_DIST): Add file-type.h.
44741         * modules/filemode (EXTRA_DIST): Add filemode.h.
44742         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
44743         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
44744         * modules/fpending (EXTRA_DIST): Add __fpending.h.
44745         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
44746         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
44747         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
44748         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
44749         * modules/getdate (EXTRA_DIST): Add getdate.c.
44750         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
44751         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
44752         * modules/getpass (EXTRA_DIST): Add getpass.h.
44753         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
44754         * modules/group-member (EXTRA_DIST): Add group-member.h.
44755         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
44756         * modules/hash (EXTRA_DIST): Add hash.h.
44757         * modules/human (EXTRA_DIST): Add human.h.
44758         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
44759         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
44760         * modules/lchown (EXTRA_DIST): Add lchown.h.
44761         * modules/long-options (EXTRA_DIST): Add long-options.h.
44762         * modules/lstat (EXTRA_DIST): Add lstat.h.
44763         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
44764         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
44765         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
44766         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
44767         * modules/memxor (EXTRA_DIST): Add memxor.h.
44768         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
44769         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
44770         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
44771         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
44772         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
44773         * modules/physmem (EXTRA_DIST): Add physmem.h.
44774         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
44775         * modules/posixver (EXTRA_DIST): Add posixver.h.
44776         * modules/quote (EXTRA_DIST): Add quote.h.
44777         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
44778         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
44779         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
44780         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
44781         regex_internal.h regexec.c.
44782         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
44783         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
44784         * modules/same (EXTRA_DIST): Add same.h.
44785         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
44786         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
44787         * modules/savedir (EXTRA_DIST): Add savedir.h.
44788         * modules/sha1 (EXTRA_DIST): Add sha1.h.
44789         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
44790         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
44791         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
44792         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
44793         * modules/strdup (EXTRA_DIST): Add strdup.h.
44794         * modules/strftime (EXTRA_DIST): Add strftime.h.
44795         * modules/strndup (EXTRA_DIST): Add strndup.h.
44796         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
44797         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
44798         * modules/time_r (EXTRA_DIST): Add time_r.h.
44799         * modules/timespec (EXTRA_DIST): Add timespec.h.
44800         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
44801         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
44802         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
44803         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
44804         * modules/userspec (EXTRA_DIST): Add userspec.h.
44805         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
44806         * modules/utimens (EXTRA_DIST): Add utimens.h.
44807         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
44808         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
44809         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
44810         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
44811         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
44812         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
44813         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
44814         * modules/yesno (EXTRA_DIST): Add yesno.h.
44815
44816 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
44817
44818         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
44819
44820         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
44821         * m4/dev-ino.m4, same-inode.m4: Remove.
44822
44823         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
44824         * m4/acl.m4 (AC_FUNC_ACL):
44825         * m4/backupfile.m4 (gl_BACKUPFILE):
44826         * m4/c-strtod.m4 (gl_C99_STRTOLD):
44827         * m4/canon-host.m4 (gl_CANON_HOST):
44828         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
44829         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
44830         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
44831         * m4/cloexec.m4 (gl_CLOEXEC):
44832         * m4/close-stream.m4 (gl_CLOSE_STREAM):
44833         * m4/closeout.m4 (gl_CLOSEOUT):
44834         * m4/dirfd.m4 (gl_FUNC_DIRFD):
44835         * m4/dirname.m4 (gl_DIRNAME):
44836         * m4/exclude.m4 (gl_EXCLUDE):
44837         * m4/exitfail.m4 (gl_EXITFAIL):
44838         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
44839         * m4/file-type.m4 (gl_FILE_TYPE):
44840         * m4/filemode.m4 (gl_FILEMODE):
44841         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
44842         * m4/fpending.m4 (gl_FUNC_FPENDING):
44843         * m4/fprintftime.m4 (gl_FPRINTFTIME):
44844         * m4/fts.m4 (gl_FUNC_FTS):
44845         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
44846         * m4/getdate.m4 (gl_GETDATE):
44847         * m4/gethrxtime.m4 (gl_GETHRXTIME):
44848         * m4/getpagesize.m4 (gl_GETPAGESIZE):
44849         * m4/getpass.m4 (gl_FUNC_GETPASS):
44850         * m4/gettime.m4 (gl_GETTIME):
44851         * m4/getugroups.m4 (gl_GETUGROUPS):
44852         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
44853         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
44854         * m4/hard-locale.m4 (gl_HARD_LOCALE):
44855         * m4/hash.m4 (gl_HASH):
44856         * m4/idcache.m4 (gl_IDCACHE):
44857         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
44858         * m4/lchown.m4 (gl_FUNC_LCHOWN):
44859         * m4/long-options.m4 (gl_LONG_OPTIONS):
44860         * m4/lstat.m4 (gl_FUNC_LSTAT):
44861         * m4/md5.m4 (gl_MD5):
44862         * m4/memcasecmp.m4 (gl_MEMCASECMP):
44863         * m4/memcoll.m4 (gl_MEMCOLL):
44864         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
44865         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
44866         * m4/memxor.m4 (gl_MEMXOR):
44867         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
44868         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
44869         * m4/modechange.m4 (gl_MODECHANGE):
44870         * m4/mountlist.m4 (gl_MOUNTLIST):
44871         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
44872         * m4/openat.m4 (gl_FUNC_OPENAT):
44873         * m4/pathmax.m4 (gl_PATHMAX):
44874         * m4/physmem.m4 (gl_PHYSMEM):
44875         * m4/posixtm.m4 (gl_POSIXTM):
44876         * m4/posixver.m4 (gl_POSIXVER):
44877         * m4/quote.m4 (gl_QUOTE):
44878         * m4/quotearg.m4 (gl_QUOTEARG):
44879         * m4/readtokens.m4 (gl_READTOKENS):
44880         * m4/readutmp.m4 (gl_READUTMP):
44881         * m4/regex.m4 (gl_REGEX):
44882         * m4/safe-read.m4 (gl_SAFE_READ):
44883         * m4/safe-write.m4 (gl_SAFE_WRITE):
44884         * m4/same.m4 (gl_SAME):
44885         * m4/save-cwd.m4 (gl_SAVE_CWD):
44886         * m4/savedir.m4 (gl_SAVEDIR):
44887         * m4/settime.m4 (gl_SETTIME):
44888         * m4/sha1.m4 (gl_SHA1):
44889         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
44890         * m4/stat-macros.m4 (gl_STAT_MACROS):
44891         * m4/stat-time.m4 (gl_STAT_TIME):
44892         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
44893         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
44894         * m4/strdup.m4 (gl_FUNC_STRDUP):
44895         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
44896         * m4/strndup.m4 (gl_FUNC_STRNDUP):
44897         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
44898         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
44899         * m4/time_r.m4 (gl_TIME_R):
44900         * m4/timespec.m4 (gl_TIMESPEC):
44901         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
44902         * m4/unlinkdir.m4 (gl_UNLINKDIR):
44903         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
44904         * m4/userspec.m4 (gl_USERSPEC):
44905         * m4/utimecmp.m4 (gl_UTIMECMP):
44906         * m4/utimens.m4 (gl_UTIMENS):
44907         * m4/xalloc.m4 (gl_XALLOC):
44908         * m4/xgetcwd.m4 (gl_XGETCWD):
44909         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
44910         * m4/xreadlink.m4 (gl_XREADLINK):
44911         * m4/xstrtod.m4 (gl_XSTRTOD):
44912         * m4/yesno.m4 (gl_YESNO):
44913         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
44914         to get the necessary .h files and whatnot.
44915
44916 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
44917             Bruno Haible  <bruno@clisp.org>
44918
44919         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
44920         /bin/sh understanding of '!' conditional negation.
44921
44922 2006-08-21  Jim Meyering  <jim@meyering.net>
44923
44924         * modules/openat (Depends-on): Really alphabetize.
44925
44926         * modules/acl (Depends-on): Add error and quote.
44927
44928         * check-module (find_included_lib_files): Add at-func.c to the
44929         ok-to-include-more-than-once white list.
44930
44931         * modules/openat (Depends-on): Add lstat.  Alphabetize.
44932
44933 2006-08-21  Bruno Haible  <bruno@clisp.org>
44934
44935         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
44936         Emit a pkgdata_DATA variable only if some snippets add contents to it.
44937         Reported by Martin Lambers <marlam@marlam.de>.
44938
44939 2006-08-21  Bruno Haible  <bruno@clisp.org>
44940
44941         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
44942         specify an installation location, don't emit a noinst_LIBRARIES or
44943         noinst_LTLIBRARIES assignment.
44944
44945 2006-08-21  Bruno Haible  <bruno@clisp.org>
44946
44947         BeOS portability.
44948         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
44949         BeOS has mbrtowc() but no <wctype.h>.
44950
44951 2006-08-21  Bruno Haible  <bruno@clisp.org>
44952
44953         BeOS portability.
44954         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
44955         exist.
44956
44957 2006-08-21  Bruno Haible  <bruno@clisp.org>
44958
44959         BeOS portability.
44960         * lib/mbchar.h: Include <wctype.h> only if it exists.
44961
44962 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
44963
44964         Remove files that are no longer needed by their respective modules.
44965         * m4/obstack.m4: Remove.
44966         * m4/strerror_r.m4: Remove.
44967         * m4/uint32_t.m4: Remove.
44968         * m4/uintptr_t.m4: Remove.
44969         * m4/ullong_max.m4: Remove.
44970         * m4/xstrtoimax.m4: Remove.
44971         * m4/xstrtoumax.m4: Remove.
44972
44973         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
44974         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
44975         dependencies now capture this.
44976
44977         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
44978         Do not use AC_LIBSOURCES, since gnulib modules now do this.
44979         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
44980         * m4/human.m4 (gl_HUMAN): Likewise.
44981         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
44982         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
44983
44984         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
44985
44986         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
44987         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
44988         stdint.
44989         * m4/human.m4 (gl_HUMAN): Likewise.
44990         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
44991         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
44992         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
44993         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
44994         * m4/xstrtol (gl_XSTRTOL): Likewise.
44995
44996         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
44997         AC_TYPE_LONG_LONG_INT.
44998         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
44999         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
45000         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
45001         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
45002
45003         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
45004         on stdbool.
45005
45006         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
45007         (gl_PREREQ_XSTRTOUL): Remove.
45008
45009         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
45010
45011         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
45012         mode.
45013
45014 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
45015
45016         Add and change modules to make it easier for coreutils to use
45017         gnulib-tool.
45018         * modules/backupfile (Files): Remove m4/d-ino.m4.
45019         (Depends-on): Add d-ino.
45020         * modules/cycle-check (Depends-on): Add stdint.
45021         (lib_SOURCES): Add cycle-check.h.
45022         * modules/d-ino: New module.
45023         * modules/d-type: New module.
45024         * modules/error (Files): Remove m4/strerror_r.m4.
45025         * modules/filemode (Files): Add m4/st_dm_mode.m4.
45026         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
45027         m4/inttypes_h.m4, m4/uintmax_t.m4.
45028         (Depends-on): Add stdint.
45029         (lib_SOURCES): Add fsusage.h.
45030         * modules/getcwd (Files): Remove d-ino.m4.
45031         (Depends-on): Add d-ino.
45032         * modules/getndelim2 (Depends-on): Add stdint.
45033         * modules/glob (Files): Remove m4/d-type.m4.
45034         (Depends-on): Add d-type.
45035         * modules/host-os: New module.
45036         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
45037         m4/inttypes_h.m4, m4/uintmax_t.m4.
45038         * Depends-on: Add stdint.
45039         (lib_SOURCES): Add human.h.
45040         * modules/inttostr (Files): Remove m4/intmax_t.m4,
45041         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
45042         m4/uintmax_t.m4, m4/ulonglong.m4.
45043         (Depends-on): Add stdint.
45044         (EXTRA_DIST): Add inttostr.h.
45045         * modules/lchmod: New module.
45046         * modules/link-follow: New module.
45047         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
45048         (Depends-on): Add lchmod.
45049         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
45050         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
45051         (Depends-on): Add stdint.
45052         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
45053         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
45054         (Depends-on): Add stdint.
45055         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
45056         * modules/perl: New module.
45057         * modules/regex (Depends-on): Add stdint.
45058         * modules/rmdir-errno: New module.
45059         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
45060         m4/intmax_t.m4.
45061         (Depends-on): Add stdint.
45062         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
45063         m4/uintmax_t.m4.
45064         (Depends-on): Add stdint.
45065         * modules/unlink-busy: New module.
45066         * modules/utimecmp (Depends-on): Add stdint.
45067         * modules/uptime: New module.
45068         * modules/winsz-ioctl: New module.
45069         * modules/winsz-termios: New module.
45070         * modules/xnanosleep (Depends-on): Add nanosleep.
45071         * modules/ullong_max: Remove.
45072         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
45073         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
45074         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
45075         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
45076         (Depends-on): Add inttypes.
45077         (lib_SOURCES): Add xstrtol.h.
45078         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
45079         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
45080         * MODULES.html.sh: Move 'assert' into the assert section.
45081         Move 'dummy' into the linking section.
45082         Remove ullong_max.
45083         Add section for compatibility checks for POSIX:2001 functions,
45084         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
45085         winsz-ioctl, and winsz-termios into it.
45086         Add lchmod.
45087         Add top-level Misc section and put host-os, perl, and uptime
45088         into it.
45089
45090 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
45091
45092         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
45093         now assume the stdint module.  Do not include inttypes.h.
45094         * lib/fsusage.h: Likewise.
45095         * lib/getndelim2.c: Likewise.
45096         * lib/human.h: Likewise.
45097         * lib/inttostr.h: Likewise.
45098         * lib/obstack.c: Likewise.
45099         * lib/regex_internal.h: Likewise.
45100         * lib/tempname.c: Likewise.
45101         * lib/utimecmp.c: Likewise.
45102         * lib/xstrtol.h: Likewise.
45103
45104         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
45105
45106         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
45107         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
45108         * lib/xtime.h: Likewise.
45109
45110 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
45111
45112         * modules/openat (Files): Add lib/fchmodat.c.
45113         Fixes problem reported by Jay Youngman.
45114
45115 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
45116
45117         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
45118         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
45119
45120 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
45121             Bruno Haible  <bruno@clisp.org>
45122
45123         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
45124         and is a script that invokes bison. Tighten the code. Add comments.
45125
45126 2006-08-18  Jim Meyering  <jim@meyering.net>
45127
45128         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
45129         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
45130         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
45131         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
45132
45133 2006-08-18  Bruno Haible  <bruno@clisp.org>
45134
45135         * modules/bison-i18n: New file.
45136         * MODULES.html.sh (Internationalization functions): Add it.
45137
45138 2006-08-18  Bruno Haible  <bruno@clisp.org>
45139
45140         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
45141         sys/statvfs.h. When getmntinfo was found, check its declaration and
45142         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
45143
45144 2006-08-18  Bruno Haible  <bruno@clisp.org>
45145
45146         * m4/bison-i18n.m4: New file, from bison.
45147
45148 2006-08-18  Bruno Haible  <bruno@clisp.org>
45149
45150         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
45151         (ME_DUMMY): Treat "kernfs" as a dummy.
45152         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
45153
45154 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
45155
45156         Update from coreutils.
45157
45158         2006-08-15  Jim Meyering  <jim@meyering.net>
45159
45160         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
45161
45162         2006-01-17  Jim Meyering  <jim@meyering.net>
45163
45164         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
45165
45166         2006-01-11  Jim Meyering  <jim@meyering.net>
45167
45168         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
45169         Check for the lchmod function.
45170
45171 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
45172
45173         Update from coreutils.
45174
45175         * lib/__fpending.h: Add copyright notice.
45176         * lib/fprintftime.h: Likewise.
45177         * lib/savedir.c: Use (C) in copyright notice.
45178         * lib/savedir.h: Likewise.
45179
45180         2006-08-15  Jim Meyering  <jim@meyering.net>
45181
45182         * lib/at-func.c: New file, with the logic of all emulated at-functions.
45183         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
45184         in support of the EXPECTED_ERRNO macro.
45185         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
45186         definitions.  Instead, define the appropriate symbols and include
45187         "at-func.c".
45188         * lib/mkdirat.c (mkdirat): Likewise.
45189         * lib/fchmodat.c (fchmodat): Likewise.
45190         (ENOSYS): Remove definition.
45191         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
45192         it.  Don't include "unistd--.h" -- it wasn't ever used.
45193
45194         2006-01-17  Jim Meyering  <jim@meyering.net>
45195
45196         Rewrite fts.c not to change the current working directory,
45197         by using openat, fstatat, fdopendir, etc..
45198
45199         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
45200         (HAVE_OPENAT_SUPPORT): Define.
45201         [_LIBC] (fchdir): Don't undef or define; no longer used.
45202         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
45203         Now, this `function' always succeeds, and consumes its file descriptor
45204         parameter -- so callers must not close such FDs.  Update callers.
45205         (diropen_fd, opendirat, cwd_advance_fd): New functions.
45206         (diropen): Add parameter, SP.  Adjust all callers.
45207         Implement using diropen_fd, rather than open.
45208         (fts_open): Initialize new member, fts_cwd_fd.
45209         Remove fts_rft-setting code.
45210         (fts_close): Close fts_cwd_fd, if necessary.
45211         (__opendir2): Define in terms of opendir or opendirat,
45212         depending on whether the FST_NOCHDIR flag is set.
45213         (fts_build): Since fts_safe_changedir consumes its FD, and since
45214         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
45215         and close the dup'd file descriptor upon failure.
45216         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
45217         (fts_safe_changedir): Tweak semantics to reflect that this function
45218         now calls cwd_advance_fd and hence consumes its FD argument.
45219         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
45220         [struct FTS] (fts_rft): Remove now-unused member.
45221         [struct FTS] (fts_cycle.state): Improve comment.
45222
45223         * lib/openat.c (openat_needs_fchdir): New function.
45224         * lib/openat.h (openat_needs_fchdir): Declare it.
45225
45226 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
45227
45228         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
45229         Problem and fix reported by Pádraig Brady in
45230         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
45231
45232 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
45233
45234         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
45235
45236 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
45237
45238         * lib/memcoll.c (memcoll): Optimize for the common case where the
45239         arguments are bytewise equal.
45240
45241 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
45242
45243         * doc/regexprops-generic.texi: Add a copyright notice.
45244
45245 2006-08-15  Bruno Haible  <bruno@clisp.org>
45246
45247         * modules/tmpdir (License): Change to LGPL.
45248
45249 2006-08-15  Bruno Haible  <bruno@clisp.org>
45250
45251         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
45252         module.
45253
45254 2006-08-14  Simon Josefsson  <jas@extundo.com>
45255
45256         * config/srclist.txt: Add gnupload.
45257
45258 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
45259
45260         Change copyright notice from LGPL 2 to GPL 2, since that's the
45261         standard form used in the gnulib repository.
45262         * tests/test-lock.c: Likewise.
45263         * tests/test-stdint.c: Likewise.
45264         * tests/test-tls.c: Likewise.
45265
45266         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
45267         prelude-manager.  User shorter URLs for GNU projects, without '?'.
45268         Add copyright notice.
45269
45270         * check-module: Add copyright notice.  Output a copyright
45271         notice if "--version" is specified.
45272         * modules/COPYING: New file.
45273         * tests/test-getaddrinfo.c: Add copyright notice.
45274         * tests/test-verify.c: Likewise.
45275
45276 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
45277
45278         Change copyright notice from LGPL 2 to GPL 2, since that's the
45279         standard form used in the gnulib repository.
45280         * lib/lock.c: LGPL -> GPL.
45281         * lib/lock.h: Likewise.
45282         * lib/strnlen1.c: Likewise.
45283         * lib/strnlen1.h: Likewise.
45284         * lib/tls.c: Likewise.
45285         * lib/tls.h: Likewise.
45286         * lib/tmpdir.c: Likewise.
45287
45288         * lib/TODO: Remove; this belongs only in coreutils.
45289
45290 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
45291
45292         Add copyright notices to long-enough files that lack them, since
45293         otherwise the files aren't clearly free.  Use the same notice that
45294         getdate.texi already uses.
45295         * doc/alloca-opt.texi: Add copyright notice.
45296         * doc/alloca.texi: Likewise.
45297         * doc/ctime.texi: Likewise.
45298         * doc/functions.texi: Likewise.
45299         * doc/gcd.texi: Likewise.
45300         * doc/gnulib-tool.texi: Likewise.
45301         * doc/inet_ntoa.texi: Likewise.
45302         * doc/visibility.texi: Likewise.
45303
45304         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
45305         * doc/quote.texi: Add copyright notice.
45306
45307         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
45308         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
45309         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
45310         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
45311         is now obsolete, and give a pointer to the Sun list.
45312         Add copyright notice.
45313
45314 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
45315
45316         * config/srclistvars.sh: Add copyright notice.
45317
45318 2006-08-14  Eric Blake  <ebb9@byu.net>
45319
45320         Import the following change from libc:
45321
45322         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
45323
45324         Upstream bug 2997.
45325         * lib/misc/error.c: Add space between program name and message if file
45326         name is missing.
45327
45328 2006-08-12  Karl Berry  <karl@gnu.org>
45329
45330         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
45331         remove, these originate in gnulib now.
45332
45333 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45334
45335         * doc/Makefile (standards.info standards.html standards.dvi):
45336         Also depend on make-stds.texi.
45337
45338 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
45339
45340         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
45341         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
45342
45343         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
45344         in wchar_t.  Problem reported by Eric Blake.
45345
45346         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
45347         LEN is smaller than SIZE.  Suggested by Bruno Haible.
45348         Also, help the compiler to keep LEN in a register.
45349
45350 2006-08-11  Eric Blake  <ebb9@byu.net>
45351
45352         * users.txt: Sort.  Add tar.
45353
45354 2006-08-11  Bruno Haible  <bruno@clisp.org>
45355
45356         * users.txt: New file.
45357
45358 2006-08-11  Bruno Haible  <bruno@clisp.org>
45359
45360         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
45361         before <wchar.h>. Needed for OSF/1 and BSD/OS.
45362
45363 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
45364
45365         * modules/snprintf (Depends-on): Remove minmax.
45366         (Maintainer): Add self and Bruno.
45367
45368 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
45369
45370         * lib/.cppi-disable: Add snprintf.h, socket_.h.
45371         * lib/snprintf.c: Include <errno.h> and <limits.h>.
45372         (EOVERFLOW): Define if the system does not.
45373         Do not include "minmax.h"; it wasn't used.
45374         (snprintf): Don't assume size_t promotes to an unsigned type.
45375         Fix bug when generated string was too long for the buffer: the
45376         buffer's contents are supposed to be the initial prefix of the
45377         output.  Don't assume vasnprintf returns EOVERFLOW if the size
45378         exceeds INT_MAX; do the check ourselves.
45379
45380         Import the following changes from libc:
45381
45382         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
45383
45384         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
45385         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
45386         set wc to the byte which couldn't be converted.
45387         (re_string_reconstruct): Don't clear valid_raw_len before calling
45388         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
45389         tip_context using re_string_context_at.
45390
45391         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
45392
45393         * lib/posix/regex.h: g++ still cannot handled [restrict].
45394
45395         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
45396
45397         * lib/posix/regex.h: Remove special handling for VMS.
45398
45399 2006-08-10  Jim Meyering  <jim@meyering.net>
45400
45401         * modules/same-inode: New module.
45402         * modules/dev-ino: New module.
45403         * modules/cycle-check: Depend on these modules, rather than simply
45404         including their .h files.
45405         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
45406         required via m4/cycle-check.m4.
45407         * modules/same: Depend on new same-inode module, rather than
45408         including same-inode.h.
45409         * modules/chdir-safer: New file.
45410
45411         * modules/chown (Depends-on): Add stat-macros.
45412
45413 2006-08-10  Jim Meyering  <jim@meyering.net>
45414
45415         * m4/cycle-check.m4: New file.
45416         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
45417         * m4/dev-ino.m4, m4/same-inode.m4: New files.
45418
45419 2006-08-10  Eric Blake  <ebb9@byu.net>
45420
45421         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
45422         in from original proposal.
45423
45424 2006-08-10  Eric Blake  <ebb9@byu.net>
45425         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
45426
45427         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
45428         namespace.
45429
45430 2006-08-10  Bruno Haible  <bruno@clisp.org>
45431
45432         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
45433         as well.
45434
45435 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
45436
45437         Sync from coreutils.
45438
45439         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
45440
45441         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
45442         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
45443
45444 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
45445
45446         * modules/restrict: Remove; no longer needed now that we assume
45447         Autoconf 2.59 or later.
45448         * MODULES.html.sh: Remove 'restrict'.
45449         * modules/argp (Depends-on): Remove 'restrict'.
45450         * modules/base64 (Depends-on): Likewise.
45451         * modules/gc (Depends-on): Likewise.
45452         * modules/getaddrinfo (Depends-on): Likewise.
45453         * modules/glob (Depends-on): Likewise.
45454         * modules/inet_ntop (Depends-on): Likewise.
45455         * modules/inet_pton (Depends-on): Likewise.
45456         * modules/memxor (Depends-on): Likewise.
45457         * modules/regex (Depends-on): Likewise.
45458         * modules/strtok_r (Depends-on): Likewise.
45459         * modules/time_r (Depends-on): Likewise.
45460
45461 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
45462
45463         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
45464         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
45465         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
45466         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
45467         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
45468         * m4/memxor.m4 (gl_MEMXOR): Likewise.
45469         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
45470         gl_C_RESTRICT replaced by AC_C_RESTRICT.
45471
45472         Merge from coreutils.
45473         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
45474         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
45475         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
45476         * m4/time_r.m4 (gl_TIME_R): Likewise.
45477
45478 2006-08-09  Karl Berry  <karl@gnu.org>
45479
45480         * config/srclist.txt: no more gettext-tools, per Bruno.
45481
45482 2006-08-08  Eric Blake  <ebb9@byu.net>
45483
45484         * modules/verror: New module.
45485         * MODULES.html.sh: Document it.
45486
45487 2006-08-08  Eric Blake  <ebb9@byu.net>
45488
45489         * lib/verror.h, lib/verror.c: New files.
45490
45491 2006-08-08  Eric Blake  <ebb9@byu.net>
45492
45493         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
45494         verror_at_line output complies with GNU Coding Standards even when
45495         file is NULL.
45496
45497 2006-08-07  Bruno Haible  <bruno@clisp.org>
45498
45499         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
45500         versions of AIX.
45501         Reported by Ralf Wildenhues.
45502
45503 2006-08-07  Bruno Haible  <bruno@clisp.org>
45504
45505         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
45506         in an AC_DEFUN. Needed so that the autoconf snippets can use
45507         AC_REQUIRE.
45508
45509 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45510
45511         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
45512         Initialize pkgdata_DATA.
45513         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
45514         overriding it.
45515
45516 2006-08-06  Eric Blake  <ebb9@byu.net>
45517
45518         * lib/error.h: Fold in some upstream changes from glibc.
45519         * lib/error.c: Likewise.
45520
45521 2006-08-04  Bruno Haible  <bruno@clisp.org>
45522
45523         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
45524         Make the mostlyclean-local rule depend on mostlyclean-generic.
45525         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
45526
45527 2006-07-31  Bruno Haible  <bruno@clisp.org>
45528
45529         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
45530         <stdlib.h>, <string.h>.
45531
45532 2006-07-30  Bruno Haible  <bruno@clisp.org>
45533
45534         * modules/readlink (License): Change to LGPL.
45535
45536 2006-07-30  Bruno Haible  <bruno@clisp.org>
45537
45538         * modules/javaversion (Makefile.am): Distribute javaversion.java and
45539         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
45540         set PKGDATADIR to point to it.
45541
45542 2006-07-30  Bruno Haible  <bruno@clisp.org>
45543
45544         * modules/csharpexec (configure.ac): Comment out macro invocation.
45545         * modules/javaexec (configure.ac): Likewise.
45546         * modules/javacomp-script (configure.ac): Likewise.
45547
45548         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
45549
45550 2006-07-30  Bruno Haible  <bruno@clisp.org>
45551
45552         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
45553         linked-list.
45554
45555 2006-07-30  Bruno Haible  <bruno@clisp.org>
45556
45557         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
45558
45559 2006-07-30  Bruno Haible  <bruno@clisp.org>
45560
45561         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
45562         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
45563         get removed.
45564
45565 2006-07-29  Bruno Haible  <bruno@clisp.org>
45566
45567         Make it possible for gnulib-tool to work with locally modified or
45568         augmented gnulib repositories.
45569         * gnulib-tool (func_usage): Document --local-dir option.
45570         (local_gnulib_dir): New variable.
45571         Handle --local-dir option.
45572         (func_lookup_file): New function.
45573         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
45574         (func_get_description, func_get_filelist, func_get_description,
45575         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
45576         func_get_automake_snippet, func_get_include_directive,
45577         func_get_license, func_get_maintainer): Use func_lookup_file.
45578         (func_import, func_create_testdir): Use func_lookup_file.
45579
45580 2006-07-29  Bruno Haible  <bruno@clisp.org>
45581
45582         * modules/setenv (Depends-on): Add unistd.
45583
45584 2006-07-29  Bruno Haible  <bruno@clisp.org>
45585
45586         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
45587
45588 2006-07-29  Bruno Haible  <bruno@clisp.org>
45589
45590         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
45591
45592 2006-07-29  Bruno Haible  <bruno@clisp.org>
45593
45594         * gnulib-tool (import, update): If there is no Makefile.am, look at
45595         aclocal.m4, instead of bailing out.
45596
45597 2006-07-29  Bruno Haible  <bruno@clisp.org>
45598
45599         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
45600         Categorize the options by when they are useful.
45601
45602 2006-07-29  Bruno Haible  <bruno@clisp.org>
45603
45604         * gnulib-tool (func_usage): Document option --no-libtool.
45605         Handle option --no-libtool.
45606         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
45607         for changed semantics of $libtool variable.
45608         (func_import): Likewise. If libtool is not used, show this through
45609         an option --no-libtool.
45610         (func_create_testdir): Update.
45611
45612 2006-07-29  Bruno Haible  <bruno@clisp.org>
45613
45614         * gnulib-tool (func_import): Extend error message about missing
45615         --doc-base.
45616
45617 2006-07-29  Bruno Haible  <bruno@clisp.org>
45618
45619         * gnulib-tool (func_import): Don't create the $docbase directory if
45620         there is no file to store there.
45621
45622 2006-07-29  Bruno Haible  <bruno@clisp.org>
45623
45624         * gnulib-tool (autoconf_minversion): If a --dir option is given and
45625         relevant, look for configure.ac there, not in the current directory.
45626         Also use a simple search for AC_PREREQ, not "autoconf --trace".
45627
45628 2006-07-29  Bruno Haible  <bruno@clisp.org>
45629
45630         * gnulib-tool (SORT): New variable.
45631         (func_usage): Undocument --assume-autoconf option.
45632         Remove --assume-autoconf option handling.
45633         (autoconf_minversion): Determine from the contents of configure.ac.
45634         (func_import): Remove autoconf_minversion handling.
45635         Suggested by Eric Blake.
45636
45637 2006-07-29  Bruno Haible  <bruno@clisp.org>
45638
45639         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
45640
45641 2006-07-29  Bruno Haible  <bruno@clisp.org>
45642
45643         * config/srclist.txt (*setenv.[ch]): Remove rules.
45644
45645 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45646
45647         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
45648
45649 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45650
45651         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
45652         arpa/inet.h.
45653
45654 2006-07-28  Simon Josefsson  <jas@extundo.com>
45655
45656         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
45657         * modules/inet_pton (Depends-on): Likewise.
45658
45659 2006-07-28  Simon Josefsson  <jas@extundo.com>
45660
45661         * m4/netinet_in_h.m4: New file.
45662
45663 2006-07-28  Simon Josefsson  <jas@extundo.com>
45664
45665         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
45666         #include's.
45667
45668 2006-07-28  Simon Josefsson  <jas@extundo.com>
45669
45670         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
45671         #include's.
45672
45673 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
45674
45675         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
45676         setgid on directories only if they set these bits.
45677         * lib/modechange.h: Remove obsolete comment about masks.
45678
45679 2006-07-28  Eric Blake  <ebb9@byu.net>
45680
45681         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
45682         macro expansion.
45683
45684 2006-07-28  Bruno Haible  <bruno@clisp.org>
45685
45686         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
45687
45688 2006-07-28  Bruno Haible  <bruno@clisp.org>
45689
45690         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
45691
45692 2006-07-28  Bruno Haible  <bruno@clisp.org>
45693
45694         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
45695         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
45696         Define fallbacks.
45697         Avoids link error on FreeBSD 4.x.
45698         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
45699
45700         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
45701         encoding.
45702         * lib/mbswidth.c (iswcntrl): Likewise.
45703
45704 2006-07-27  Bruno Haible  <bruno@clisp.org>
45705
45706         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
45707         test.
45708
45709 2006-07-27  Bruno Haible  <bruno@clisp.org>
45710
45711         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
45712         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
45713         defined.
45714
45715 2006-07-26  Eric Blake  <ebb9@byu.net>
45716
45717         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
45718
45719 2006-07-26  Eric Blake  <ebb9@byu.net>
45720
45721         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
45722         like mingw that lack mkstemp.
45723         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
45724         avoid compilation warning on mingw.
45725
45726 2006-07-26  Bruno Haible  <bruno@clisp.org>
45727
45728         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
45729         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
45730         INT_FAST*_MIN, INTPTR_MIN.
45731
45732 2006-07-25  Bruno Haible  <bruno@clisp.org>
45733
45734         * modules/version-etc (Depends-on): Add stdarg.
45735
45736 2006-07-25  Bruno Haible  <bruno@clisp.org>
45737
45738         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
45739         complex commands.
45740
45741 2006-07-25  Bruno Haible  <bruno@clisp.org>
45742
45743         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
45744         defined in <stdarg.h> or config.h.
45745
45746 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
45747
45748         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
45749         (gl_STDIO_SAFER): Remove.
45750
45751 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
45752
45753         * MODULES.html.sh (File stream based Input/Output):
45754         Add fopen-safer, tmpfile-safer; remove stdio-safer.
45755         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
45756         * modules/fopen-safer, modules/tmpfile-safer: New files.
45757         * modules/stdio-safer: Remove.
45758
45759 2006-07-24  Bruno Haible  <bruno@clisp.org>
45760
45761         * modules/tmpdir: New file.
45762         * MODULES.html.sh (File system functions): Add it.
45763
45764 2006-07-24  Bruno Haible  <bruno@clisp.org>
45765
45766         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
45767         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
45768
45769 2006-07-24  Bruno Haible  <bruno@clisp.org>
45770
45771         * modules/clean-temp: New file.
45772
45773 2006-07-24  Bruno Haible  <bruno@clisp.org>
45774
45775         * m4/tmpdir.m4: New file, from GNU gettext.
45776
45777 2006-07-24  Bruno Haible  <bruno@clisp.org>
45778
45779         * lib/tmpdir.h: New file, from GNU gettext.
45780         * lib/tmpdir.c: New file, from GNU gettext.
45781
45782 2006-07-24  Bruno Haible  <bruno@clisp.org>
45783
45784         * lib/clean-temp.h: New file, from GNU gettext.
45785         * lib/clean-temp.c: New file, from GNU gettext.
45786
45787 2006-07-23  Eric Blake  <ebb9@byu.net>
45788
45789         * modules/stdio-safer (Files): Add tmpfile-safer.c.
45790         (Depends-on): Add binary-io.
45791
45792 2006-07-23  Eric Blake  <ebb9@byu.net>
45793
45794         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
45795
45796 2006-07-23  Eric Blake  <ebb9@byu.net>
45797
45798         * lib/tmpfile-safer.c: New file.
45799         * lib/stdio-safer.h (fopen_safer): Add prototype.
45800         * lib/stdio--.h (tmpfile): Make safer.
45801
45802 2006-07-23  Bruno Haible  <bruno@clisp.org>
45803
45804         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
45805         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
45806         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
45807         gl_linked_remove_at): Use it.
45808
45809 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45810         and Simon Josefsson <jas@extundo.com>
45811
45812         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
45813
45814         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
45815
45816 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
45817
45818         * modules/close-stream: New file.
45819         * modules/closeout (Description): Make it clear that it exits
45820         with a diagnostic on error.
45821         (Depends-on): Add close-stream.  Remove fpending, stdbool.
45822         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
45823
45824 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
45825
45826         * m4/close-stream.m4: New file.
45827
45828 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
45829
45830         * lib/close-stream.c, lib/close-stream.h: New files.
45831
45832 2006-07-22  Bruno Haible  <bruno@clisp.org>
45833
45834         Merge from GNU gettext 0.15.
45835
45836         2006-05-01  Bruno Haible  <bruno@clisp.org>
45837
45838                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
45839
45840         2006-07-22  Bruno Haible  <bruno@clisp.org>
45841
45842                 * modules/javaversion: New file.
45843                 * MODULES.html.sh (Java): Add javaversion.
45844
45845         2006-03-12  Bruno Haible  <bruno@clisp.org>
45846
45847                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
45848
45849         2005-12-04  Bruno Haible  <bruno@clisp.org>
45850
45851                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
45852                 (untested).
45853
45854         2006-06-21  Bruno Haible  <bruno@clisp.org>
45855
45856                 Avoid warnings from recent versions of mcs.
45857                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
45858                 -o, -L, -r any more. Use options documented since mcs-1.0
45859                 instead. Similarly for -g.
45860
45861         2005-12-04  Bruno Haible  <bruno@clisp.org>
45862
45863                 * build-aux/csharpcomp.sh.in: Suffix for resources is
45864                 .resources, not .resource.
45865
45866         2005-07-09  Bruno Haible  <bruno@clisp.org>
45867
45868                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
45869                 add a .dll suffix.
45870                 Reported by Mark Junker <mjscod@gmx.de>.
45871
45872         2006-07-22  Bruno Haible  <bruno@clisp.org>
45873
45874                 * modules/gettext: Upgrade to gettext-0.15.
45875                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
45876                 m4/visibility.m4.
45877                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
45878
45879 2006-07-22  Bruno Haible  <bruno@clisp.org>
45880
45881         Merge from GNU gettext 0.15.
45882
45883         2006-03-25  Bruno Haible  <bruno@clisp.org>
45884
45885                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
45886
45887         2006-07-21  Bruno Haible  <bruno@clisp.org>
45888
45889                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
45890                 "1.1".
45891
45892         2006-05-09  Bruno Haible  <bruno@clisp.org>
45893
45894                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
45895                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
45896                 for the conftestver execution.
45897
45898         2006-05-01  Bruno Haible  <bruno@clisp.org>
45899
45900                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
45901                 optional target-version argument. Verify that the compiler
45902                 groks source of the specified source-version, or add -source
45903                 option as necessary. Verify that the compiler produces
45904                 bytecode in the specified target-version, or add -target and
45905                 -source options as necessary. Make the result of the test
45906                 available as variable CONF_JAVAC. Also log error output in
45907                 config.log.
45908
45909         2006-03-11  Bruno Haible  <bruno@clisp.org>
45910
45911                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
45912
45913         2006-05-09  Bruno Haible  <bruno@clisp.org>
45914
45915                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
45916                 CLASSPATH_SEPARATOR to a semicolon.
45917
45918         2006-03-12  Bruno Haible  <bruno@clisp.org>
45919
45920                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
45921                 available as variable CONF_JAVA, for subsequent autoconf
45922                 tests. Also log error output in config.log.
45923
45924         2006-07-19  Bruno Haible  <bruno@clisp.org>
45925
45926                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
45927                 that getline works on glibc2 systems. Needed to avoid trouble
45928                 in relocatable.c.
45929                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
45930
45931         2005-12-04  Bruno Haible  <bruno@clisp.org>
45932
45933                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
45934                 launcher (untested).
45935
45936         2005-12-04  Bruno Haible  <bruno@clisp.org>
45937
45938                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
45939
45940         2006-07-22  Bruno Haible  <bruno@clisp.org>
45941
45942                 * gettext.m4: Update from GNU gettext-0.15.
45943                 * nls.m4: Likewise.
45944                 * po.m4: Likewise.
45945                 * inttypes-pri.m4: Likewise.
45946                 * inttypes-h.m4: Renamed from inttypes.m4.
45947                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
45948
45949 2006-07-22  Bruno Haible  <bruno@clisp.org>
45950
45951         Merge from GNU gettext 0.15.
45952
45953         2005-07-05  Bruno Haible  <bruno@clisp.org>
45954
45955                 * printf-args.c (printf_fetchargs): Work around broken
45956                 definition of wint_t on mingw.
45957
45958         2005-02-12  Bruno Haible  <bruno@clisp.org>
45959
45960                 * xallocsa.h: Add extern "C" for C++.
45961
45962         2006-05-17  Bruno Haible  <bruno@clisp.org>
45963
45964                 Cygwin portability.
45965                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
45966
45967         2006-04-30  Bruno Haible  <bruno@clisp.org>
45968
45969                 * progreloc.c: Include <mach-o/dyld.h> if available.
45970                 (find_executable): Use _NSGetExecutablePath when possible.
45971
45972         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
45973
45974                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
45975                 function.
45976
45977         2005-12-29  Bruno Haible  <bruno@clisp.org>
45978
45979                 * progreloc.c (set_program_name_and_installdir): Fix
45980                 compilation error.
45981
45982         2005-12-04  Bruno Haible  <bruno@clisp.org>
45983
45984                 Cygwin portability.
45985                 * progreloc.c: Include <windows.h> also on Cygwin.
45986                 (find_executable): Add support for Cygwin.
45987                 (set_program_name_and_installdir): Handle also platforms with
45988                 nonempty EXEEXT.
45989
45990         2006-07-11  Bruno Haible  <bruno@clisp.org>
45991
45992                 * javacomp.c: Fix a comment.
45993                 Reported by Jim Meyering.
45994
45995         2006-04-30  Bruno Haible  <bruno@clisp.org>
45996
45997                 * javacomp.h (compile_java_class): Add source_version,
45998                 target_version arguments.
45999                 * javacomp.c: Rewritten to choose only a compiler that
46000                 respects the specified source_version and target_version.
46001
46002         2006-06-27  Bruno Haible  <bruno@clisp.org>
46003
46004                 Assume correct S_ISDIR macro.
46005                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
46006
46007         2006-07-22  Bruno Haible  <bruno@clisp.org>
46008
46009                 * javaversion.h: New file, from GNU gettext.
46010                 * javaversion.c: New file, from GNU gettext.
46011                 * javaversion.java: New file, from GNU gettext.
46012                 * javaversion.class: New file, from GNU gettext.
46013
46014         2006-05-17  Bruno Haible  <bruno@clisp.org>
46015
46016                 Cygwin portability.
46017                 * javaexec.c (execute_java_class): Test for jview program
46018                 also on Cygwin.
46019
46020         2006-04-09  Bruno Haible  <bruno@clisp.org>
46021
46022                 * fatal-signal.c: Don't include string.h.
46023                 (at_fatal_signal): Use a copying loop instead of memcpy.
46024
46025         2005-12-04  Bruno Haible  <bruno@clisp.org>
46026
46027                 * csharpexec.c: Add support for 'clix' launcher (untested).
46028                 (execute_csharp_using_sscli): New function.
46029                 (execute_csharp_program): Call it.
46030
46031         2006-06-21  Bruno Haible  <bruno@clisp.org>
46032
46033                 Avoid warnings from recent versions of mcs.
46034                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
46035                 -o, -L, -r any more. Use options documented since mcs-1.0
46036                 instead. Similarly for -g.
46037
46038         2005-07-09  Bruno Haible  <bruno@clisp.org>
46039
46040                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
46041                 add a .dll suffix.
46042                 Reported by Mark Junker <mjscod@gmx.de>.
46043
46044         2006-06-17  Bruno Haible  <bruno@clisp.org>
46045
46046                 * config.charset: Update for NetBSD 3.0.
46047
46048         2006-05-17  Bruno Haible  <bruno@clisp.org>
46049
46050                 Cygwin portability.
46051                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
46052
46053         2006-05-16  Bruno Haible  <bruno@clisp.org>
46054
46055                 * localcharset.c [CYGWIN]: Include <windows.h>.
46056                 (get_charset_aliases): For Cygwin, return the same CPxxx
46057                 aliases list as under WIN32.
46058                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
46059                 the environment variables. Fall back to GetACP().
46060
46061         2006-04-05  Bruno Haible  <bruno@clisp.org>
46062
46063                 * config.charset: Update Juan Manuel Guerrero's address.
46064
46065         2005-02-12  Bruno Haible  <bruno@clisp.org>
46066
46067                 * allocsa.h: Add extern "C" for C++.
46068
46069         2005-02-10  Bruno Haible  <bruno@clisp.org>
46070
46071                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
46072                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
46073
46074         2006-07-22  Bruno Haible  <bruno@clisp.org>
46075
46076                 * gettext.h: Update to GNU gettext-0.15.
46077
46078 2006-07-22  Bruno Haible  <bruno@clisp.org>
46079
46080         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
46081         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
46082         lib-prefix.m4, longdouble.m4, ssize_t.m4.
46083
46084 2006-07-21  Eric Blake  <ebb9@byu.net>
46085
46086         * modules/stdlib-safer: New file.
46087         * MODULES.html.sh (File stream based Input/Output): Add
46088         stdlib-safer.
46089
46090 2006-07-21  Eric Blake  <ebb9@byu.net>
46091
46092         * lib/stdlib-safer.h: New file from coreutils, required by
46093         stdlib--.h.
46094
46095 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
46096
46097         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
46098
46099 2006-07-20  Bruno Haible  <bruno@clisp.org>
46100
46101         * gnulib-tool: Recognize new option --assume-autoconf.
46102         (autoconf_minversion): New variable.
46103         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
46104
46105 2006-07-20  Bruno Haible  <bruno@clisp.org>
46106
46107         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
46108
46109 2006-07-19  Derek R. Price  <derek@ximbiot.com>
46110
46111         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
46112         Reindent and repaginate.
46113
46114 2006-07-19  Derek Price  <derek@ximbiot.com>
46115
46116         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
46117         Correct grammar.
46118
46119 2006-07-17  Bruno Haible  <bruno@clisp.org>
46120
46121         * modules/list: New file.
46122         * modules/array-list: New file.
46123         * modules/carray-list, modules/carray-list-tests: New files.
46124         * modules/linked-list, modules/linked-list-tests: New files.
46125         * modules/avltree-list, modules/avltree-list-tests: New files.
46126         * modules/rbtree-list, modules/rbtree-list-tests: New files.
46127         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
46128         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
46129         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
46130         * modules/oset: New file.
46131         * modules/array-oset: New file.
46132         * modules/avltree-oset, modules/avltree-oset-tests: New files.
46133         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
46134         * tests/test-carray_list.c: New file.
46135         * tests/test-linked_list.c: New file.
46136         * tests/test-avltree_list.c: New file.
46137         * tests/test-rbtree_list.c: New file.
46138         * tests/test-linkedhash_list.c: New file.
46139         * tests/test-avltreehash_list.c: New file.
46140         * tests/test-rbtreehash_list.c: New file.
46141         * tests/test-avltree_oset.c: New file.
46142         * tests/test-rbtree_oset.c: New file.
46143         * MODULES.html.sh (Container data structures): New section.
46144
46145 2006-07-17  Bruno Haible  <bruno@clisp.org>
46146
46147         * m4/gl_list.m4: New file.
46148
46149 2006-07-17  Bruno Haible  <bruno@clisp.org>
46150
46151         * lib/gl_list.h: New file.
46152         * lib/gl_list.c: New file.
46153         * lib/gl_array_list.h: New file.
46154         * lib/gl_array_list.c: New file.
46155         * lib/gl_carray_list.h: New file.
46156         * lib/gl_carray_list.c: New file.
46157         * lib/gl_linked_list.h: New file.
46158         * lib/gl_linked_list.c: New file.
46159         * lib/gl_anylinked_list1.h: New file.
46160         * lib/gl_anylinked_list2.h: New file.
46161         * lib/gl_avltree_list.h: New file.
46162         * lib/gl_avltree_list.c: New file.
46163         * lib/gl_anyavltree_list1.h: New file.
46164         * lib/gl_anyavltree_list2.h: New file.
46165         * lib/gl_rbtree_list.h: New file.
46166         * lib/gl_rbtree_list.c: New file.
46167         * lib/gl_anyrbtree_list1.h: New file.
46168         * lib/gl_anyrbtree_list2.h: New file.
46169         * lib/gl_anytree_list1.h: New file.
46170         * lib/gl_anytree_list2.h: New file.
46171         * lib/gl_linkedhash_list.h: New file.
46172         * lib/gl_linkedhash_list.c: New file.
46173         * lib/gl_anyhash_list1.h: New file.
46174         * lib/gl_anyhash_list2.h: New file.
46175         * lib/gl_avltreehash_list.h: New file.
46176         * lib/gl_avltreehash_list.c: New file.
46177         * lib/gl_rbtreehash_list.h: New file.
46178         * lib/gl_rbtreehash_list.c: New file.
46179         * lib/gl_anytreehash_list1.h: New file.
46180         * lib/gl_anytreehash_list2.h: New file.
46181
46182         * lib/gl_oset.h: New file.
46183         * lib/gl_oset.c: New file.
46184         * lib/gl_array_oset.h: New file.
46185         * lib/gl_array_oset.c: New file.
46186         * lib/gl_avltree_oset.h: New file.
46187         * lib/gl_avltree_oset.c: New file.
46188         * lib/gl_rbtree_oset.h: New file.
46189         * lib/gl_rbtree_oset.c: New file.
46190         * lib/gl_anytree_oset.h: New file.
46191
46192 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
46193
46194         * m4/mkancesdirs.m4: New file.
46195         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
46196         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
46197         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
46198         it.
46199
46200 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
46201
46202         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
46203         * lib/mkancesdirs.h: New files.
46204         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
46205         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
46206         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
46207         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
46208         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
46209         callers changed.  Revamp internals significantly, by not
46210         attempting to create directories that are temporarily more
46211         permissive than the final results.  Do not attempt to use
46212         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
46213         This removes some race conditions, fixes some bugs, and simplifies
46214         things.  Use new dirchownmod function to do owner and mode changes.
46215         * lib/mkdir-p.h: Likewise.
46216         * lib/modechange.c (octal_to_mode): New function.
46217         (struct mode_change): New member mentioned.
46218         (make_node_op_equals): New arg mentioned.  All callers changed.
46219         (mode_compile): Keep track of which mode bits the user has explicitly
46220         mentioned.
46221         (mode_adjust): New arg DIR, so that we implement the X op correctly.
46222         New arg PMODE_BITS, to keep track of which mode bits the user
46223         mentioned; it treats S_ISUID and S_ISGID speciall.
46224         All callers changed.
46225         * lib/modechange.h: Likewise.
46226
46227 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
46228
46229         * MODULES.html.sh: Add mkancestors.
46230         * modules/mkancesdirs: New module.
46231         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
46232         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
46233         The chdir-safer and afs files are now orphans; I'll remove them
46234         unless someone speaks up.
46235         Add lib/dirchownmod.c, lib/dirchownmod.h.
46236         (Depends-on): Remove alloca, chown, save-cwd, dirname.
46237         Add lchown, mkancesdirs.
46238         (Maintainer): Add self.
46239
46240 2006-07-15  Karl Berry  <karl@gnu.org>
46241
46242         * gnulib-tool: help message wording/arrangement.
46243
46244 2006-07-14  Simon Josefsson  <jas@extundo.com>
46245
46246         * doc/gnulib.texi (Libtool and Windows): New section.
46247
46248 2006-07-12  Simon Josefsson  <jas@extundo.com>
46249
46250         * modules/gendocs (License): Fix license, approved by Karl.
46251
46252 2006-07-12  Eric Blake  <ebb9@byu.net>
46253
46254         * MODULES.html.sh: Add gendocs.
46255
46256 2006-07-11  Eric Blake  <ebb9@byu.net>
46257
46258         * modules/fdl: New module, to install doc/fdl.texi.
46259         * MODULES.html.sh: Add new section for documentation modules.
46260         * gnulib-tool: Avoid space-tab.
46261         (--doc-base): New option, to manage files from doc.
46262
46263 2006-07-11  Eric Blake  <ebb9@byu.net>
46264
46265         * m4/absolute-header.m4: Fix comments to match recent change.
46266
46267 2006-07-11  Eric Blake  <ebb9@byu.net>
46268
46269         * gnulib-tool: List --doc-base before --tests-base.
46270
46271 2006-07-11  Derek R. Price  <derek@ximbiot.com>
46272
46273         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
46274
46275 2006-07-11  Bruno Haible  <bruno@clisp.org>
46276
46277         * README: Mention where to put documentation.
46278
46279 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46280
46281         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
46282
46283 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
46284
46285         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
46286         to stdint.m4.
46287
46288 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
46289
46290         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
46291         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
46292         "no/such/file/stdint.h" when there is no such file, so that
46293         the resulting C code can be parsed by dodgy compilers.
46294         Problems reported by Bob Proulx.
46295
46296 2006-07-10  Derek R. Price  <derek@ximbiot.com>
46297
46298         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
46299         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
46300         macros into the GNU _D_EXACT_NAMLEN.
46301         * lib/savedir.c:  Likewise.
46302         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
46303
46304 2006-07-10  Derek R. Price  <derek@ximbiot.com>
46305         and Paul Eggert  <eggert@cs.ucla.edu>
46306
46307         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
46308         * m4/savedir.m4:
46309         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
46310         macros into the GNU _D_EXACT_NAMLEN.
46311
46312 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
46313
46314         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
46315         around the absolute name, to work around a problem with the HP-UX
46316         11.23 native C compiler, reported by Bob Proulx.
46317
46318 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
46319
46320         * doc/maintain.texi, make-stds.texi: Sync from
46321         <http://savannah.gnu.org/projects/gnustandards>.
46322
46323 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
46324
46325         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
46326
46327 2006-07-09  Jim Meyering  <jim@meyering.net>
46328
46329         * m4/glob.m4: Remove a doubled word in a comment.
46330
46331 2006-07-09  Jim Meyering  <jim@meyering.net>
46332
46333         * lib/argp-pv.c: Remove a doubled word in a comment.
46334         * lib/check-version.c (check_version): Likewise.
46335         * lib/javacomp.c (compile_java_class): Likewise.
46336
46337 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
46338
46339         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
46340         for the benefit of people using Autoconf 2.60.  If you want to
46341         support older Autoconf versions you can copy m4/onceonly_2_57.m4
46342         (or m4/onceonly.m4, if pre-2.57) manually.
46343
46344 2006-07-08  Jim Meyering  <jim@meyering.net>
46345
46346         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
46347         comment.
46348         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
46349         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
46350         comment.
46351
46352 2006-07-08  Jim Meyering  <jim@meyering.net>
46353
46354         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
46355
46356 2006-07-07  Simon Josefsson  <jas@extundo.com>
46357
46358         * tests/test-crc.c: Change expected crc value, the test vector
46359         were probably computed using the old broken crc.c?
46360
46361 2006-07-06  Simon Josefsson  <jas@extundo.com>
46362
46363         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
46364         now the canonical place for the M4 file).
46365
46366         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
46367         from the sys_socket dependency now.
46368
46369         * modules/inet_pton (Files): Ditto.
46370
46371         * modules/inet_ntop (Files): Ditto.
46372
46373 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
46374
46375         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
46376         not gl_PREREQ_GETUSERSHELL.
46377
46378 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46379
46380         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
46381         with only one argument, for Autoconf 2.60.
46382         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
46383         expand to nothing, so add a shell command to avoid syntax error.
46384         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
46385
46386 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46387
46388         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
46389
46390 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
46391
46392         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
46393         no longer needed.  Check for isblank decl.
46394         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
46395         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
46396         of existence.
46397
46398 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
46399
46400         * lib/getloadavg.c: Use __VMS, not VMS.
46401         * lib/getopt.c: Likewise.
46402         * lib/getpagesize.h: Likewise.
46403         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
46404         and probably does not work.
46405
46406 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
46407
46408         * lib/.cppi-disable: Add wcwidth.
46409         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
46410         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
46411         (ISGRAPH): Remove.  All uses changed to isgraph.
46412         (FOLD) [!defined _LIBC]: Remove special case.
46413         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
46414         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
46415         HAVE_ISBLANK.
46416         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
46417         case.
46418
46419 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
46420
46421         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
46422         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
46423         brackets.  Other minor changes to suppress some compiler
46424         warnings.
46425
46426 2006-07-06  Derek R. Price  <derek@ximbiot.com>
46427         and Paul Eggert  <eggert@cs.ucla.edu>
46428
46429         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
46430         of invoking obsolescent AC_HEADER_DIRENT macro.
46431         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
46432         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
46433         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
46434         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
46435         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
46436         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
46437         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
46438         * m4/readdir.m4: Remove; no longer needed.
46439
46440 2006-07-06  Derek R. Price  <derek@ximbiot.com>
46441         and Paul Eggert  <eggert@cs.ucla.edu>
46442
46443         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
46444         Don't worry about this obsolete case any more.
46445         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
46446         directories.
46447         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
46448         worry about this obsolete case any more.
46449         * lib/fts.c: Likewise.
46450         * lib/getcwd.c: Likewise.
46451         * lib/glob.h: Likewise.
46452         * lib/savedir.c: Likewise.
46453
46454 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
46455
46456         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
46457         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
46458         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
46459         needed.
46460         All uses removed.
46461         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
46462         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
46463         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
46464         needed.
46465         * m4/getdate.m4 (gl_GETDATE): Likewise.
46466         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
46467         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
46468         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
46469         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
46470         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
46471         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
46472         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
46473         needed.
46474
46475 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
46476
46477         * lib/memcasecmp.c: Include <limits.h>.
46478         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
46479         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
46480         Don't assume isdigit succeeds only on '0' through '9'.
46481
46482 2006-07-05  Eric Blake  <ebb9@byu.net>
46483
46484         * modules/getaddrinfo (Depends-on): Add snprintf.
46485
46486 2006-07-05  Eric Blake  <ebb9@byu.net>
46487
46488         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
46489         to avoid 'header present but could not be compiled' on cygwin.
46490
46491 2006-07-05  Eric Blake  <ebb9@byu.net>
46492
46493         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
46494         missing from netdb.h.
46495         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
46496
46497 2006-07-05  Derek R. Price  <derek@ximbiot.com>
46498
46499         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
46500         no longer needed.
46501         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
46502         * m4/getdate.m4 (gl_GETDATE): Likewise.
46503         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
46504         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
46505         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
46506         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
46507         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
46508
46509 2006-07-05  Derek R. Price  <derek@ximbiot.com>
46510
46511         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
46512         All uses of is_space replaced by isspace.
46513         * lib/exit.h: Don't talk about STDC_HEADERS.
46514         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
46515         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
46516         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
46517         replaced by isprint etc.
46518         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
46519         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
46520         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
46521         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
46522         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
46523         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
46524
46525 2006-07-05  Bruno Haible  <bruno@clisp.org>
46526
46527         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
46528         the function exists, before testing against AIX.
46529         Reported by Martin Lambers <marlam@marlam.de>.
46530
46531 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
46532
46533         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
46534         From Mark D. Baushke.
46535
46536 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
46537
46538         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
46539         to the absolute name, not just one, to bypass Sun C 5.8's
46540         "warning: #include of /usr/include/... may be non-portable".
46541
46542 2006-07-04  Eric Blake  <ebb9@byu.net>
46543
46544         * modules/dirname-tests: New test module.
46545         * tests/test-dirname.c: New file, replacing dirname.c
46546         TEST_DIRNAME section that was recently deleted.
46547
46548 2006-07-04  Bruno Haible  <bruno@clisp.org>
46549
46550         Assume ANSI C header files and <ctype.h> functions.
46551         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
46552         (mbsnwidth): Use isprint, iscntrl instead.
46553
46554 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
46555
46556         Merge from coreutils.
46557         * MODULES.html.sh: Add xstrtold.
46558         * modules/xstrtold: New file.
46559         * modules/cycle-check (Files): Add lib/same-inode.h.
46560         * modules/dirname (Files): Add m4/double-slash-root.m4.
46561         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
46562         * modules/mkdir-p (Files): Add lib/same-inode.h.
46563         * modules/same (Files): Add lib/same-inode.h.
46564
46565 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
46566
46567         * m4/absolute-header.m4: Renamed from full-header-path.m4.
46568         This is to keep the terminology clean; POSIX talks about
46569         "absolute pathnames", not "full pathnames", but the GNU
46570         Coding Standards say to use "path" for something else;
46571         so use "absolute" to keep both sides happy.
46572         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
46573         Set gl_absolute_header, not gl_full_header_path.
46574         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
46575         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
46576         All uses changed.
46577
46578         Merge from coreutils.
46579
46580         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
46581
46582         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
46583         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
46584         want to require the building of c-strtod.o.
46585         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
46586         needs -lm directly.
46587         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
46588
46589         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
46590
46591         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
46592         --as-needed option if available.  Problem reported by Albert Chin in
46593         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
46594         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
46595         cc merely issues a bunch of annoying warnings for --as-needed
46596         (this problem was reported by Bob Proulx).  Also, try linking with
46597         -lm to detect a bug in binutils 2.16 (this problem was reported
46598         by Ralf Wildenhues).
46599
46600         2006-06-18  Jim Meyering  <jim@meyering.net>
46601
46602         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
46603         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
46604         macro.
46605         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
46606         also check for glibc-2.4's abort-inducing bug.
46607
46608         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
46609         Low-probability clean-up should be to use rmdir to get rid of
46610         the just-created directory, not unlink.
46611
46612         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
46613         configure fail, and request a bug report to inform us about it.
46614         Add a comment that, barring reports to the contrary, in 2007 we'll
46615         assume ftruncate is universally available.
46616
46617         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
46618
46619         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
46620
46621         2006-03-12  Jim Meyering  <jim@meyering.net>
46622
46623         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
46624         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
46625         * m4/same.m4 (gl_SAME): Likewise.
46626         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
46627
46628         2006-03-11  Eric Blake  <ebb9@byu.net>
46629
46630         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
46631         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
46632         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
46633         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
46634
46635 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
46636
46637         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
46638         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
46639         reported by Mark D. Baushke, one in
46640         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
46641
46642         Merge from coreutils.
46643
46644         * lib/.cppi-disable: Add stdint_.h.
46645         * lib/.cvsignore: Add stdint.h.
46646
46647         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
46648
46649         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
46650         both double and long double versions.
46651         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
46652         * lib/xstrtold.c: New file.
46653         * lib/xstrtod.h (xstrtold): New decl.
46654
46655         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
46656
46657         * lib/filemode.c (setst): Remove.
46658         (strmode): Rewrite to avoid setst.  This makes the code shorter,
46659         (arguably) clearer, and the generated code is a bit smaller on my
46660         Debian GNU/Linux stable x86 host.
46661
46662         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
46663
46664         * lib/filemode.c: Include "filemode.h" first, to test the interface.
46665         Assume that filemode.h includes sys/types.h and sys/stat.h.
46666         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
46667         (ftypelet): Reorder to put common cases first, for efficiency.
46668         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
46669         to do 'M'.
46670         (strmode): Renamed from mode_string, and now stores 12 bytes instead
46671         of 10, for compatibility with FreeBSD.  All callers changed.
46672         (filemodestring): Now stores 12 bytes instead of 10, and sets file
46673         types that can't be deduced solely from st_mode.  First arg is now a
46674         const pointer.
46675         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
46676         (strmode): Renamed from mode_string.
46677         (filemodestring): New decl.
46678         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
46679         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
46680         needed.
46681         (S_ISPORT, S_ISWHT): New macros, if not already defined.
46682
46683         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
46684
46685         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
46686         fsusage.h now does that.  Include fsusage.h first, to test interface.
46687         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
46688         at most one method (the old code could have generated decls that
46689         didn't conform to C89, not that this was ever exercised).
46690         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
46691
46692         2006-03-19  Jim Meyering  <jim@meyering.net>
46693
46694         Work even in a chroot where d_ino values for entries in "/"
46695         don't match the stat.st_ino values for the same names.
46696         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
46697         number, iterate through all entries again, using lstat instead.
46698         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
46699         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
46700
46701         * lib/getcwd.c (__getcwd): Clarify a comment.
46702         Use memcpy in place of a call to strcpy.
46703
46704         2006-03-12  Jim Meyering  <jim@meyering.net>
46705
46706         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
46707         matches that of the current directory (which we're about to chdir ".."
46708         out of), then save the dev-ino of the parent, instead.
46709
46710         * lib/same-inode.h (SAME_INODE): New file/macro.
46711         * lib/chdir-safer.c (SAME_INODE): Remove definition.
46712         Include "same-inode.h", instead.
46713         * lib/same.c: Likewise.
46714         * lib/cycle-check.h: Include "same-inode.h".
46715         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
46716         * lib/cycle-check.c (SAME_INODE): Remove definition.
46717         * lib/root-dev-ino.h: Include "same-inode.h".
46718
46719         2006-03-11  Eric Blake  <ebb9@byu.net>
46720
46721         * lib/same.c (same_name): s/base_name/last_component/
46722         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
46723         * lib/filenamecat.c (file_name_concat): Likewise.
46724
46725         2006-03-11  Eric Blake  <ebb9@byu.net>,
46726                     Paul Eggert  <eggert@cs.ucla.edu>
46727
46728         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
46729         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
46730         drive prefix.
46731         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
46732         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
46733         (last_component): New method.
46734         * lib/dirname.c (dir_len): Determine when drive letters need a
46735         subsequent slash.  Preserve // when it is special.
46736         (dir_name): Don't append dot when drive letter is absolute.
46737         [TEST_DIRNAME]: Move into a full-blown gnulib test.
46738         * lib/basename.c (base_name): New semantics - malloc the result.
46739         Preserve // when it is special.  Preserve relative files that look
46740         like drive letters.
46741         (base_len): Preserve // when it is special.
46742         (last_component): New method, similar to old base_name semantics.
46743         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
46744         base_name.  Strip redundant slashes from ///.
46745
46746 2006-07-03  Jim Meyering  <jim@meyering.net>
46747
46748         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
46749         macro is used before the first cycle_check call.
46750
46751 2006-07-03  Eric Blake  <ebb9@byu.net>
46752
46753         * modules/dirname (Depends-on): Add xstrndup.
46754
46755 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
46756
46757         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
46758         test cases, so that config.log is a bit easier to follow.
46759
46760 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
46761
46762         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
46763         both are 64 bits, since this seems to be the tradition, and this
46764         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
46765         we ever run into a host that prefers long long to long in this
46766         case, we'll need another configure-time test.  Problem reported by
46767         Jim Meyering.
46768
46769 2006-07-02  Eric Blake  <ebb9@byu.net>
46770
46771         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
46772
46773 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
46774
46775         * modules/inttypes (Depends-on): No longer depends on stdint.
46776         * modules/stdint (Description): Say more about assumptions.
46777         Say that the fast types might differ.  Say macros are used.
46778         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
46779         (Makefile.am): Revise list of substituted symbols to match
46780         new stdint.m4.
46781         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
46782         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
46783         * tests/test-stdint.c (verify_same_types)
46784         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
46785         the code conforms to C99/C89.
46786         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
46787         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
46788
46789 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
46790
46791         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
46792         but fix a bug, by requiring at least 64 bits.
46793         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
46794         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
46795         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
46796         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
46797
46798         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
46799         changes.  Make 2.59 a prerequisite.  Check and substitute for
46800         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
46801         inttypes.h.  Do not use special include files; just use the
46802         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
46803         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
46804         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
46805         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
46806         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
46807         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
46808         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
46809         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
46810         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
46811         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
46812         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
46813         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
46814         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
46815         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
46816         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
46817         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
46818         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
46819         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
46820         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
46821         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
46822         WINT_MAX.  Check for C99 conformance more strictly, by detecting
46823         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
46824         not check for things that C99 does not require, e.g., int8_t.  If
46825         a test isn't needed unless <stdint.h> isn't working, and is
46826         unlikely to be needed for any other reason, then don't do it
46827         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
46828         size_t, since we assume C89 freestanding at least.  Do not check
46829         for sig_atomic_t, wchar_t, or wint_t, since the code now does
46830         the right thing even if the types are not defined.  Instead use:
46831         (gl_STDINT_TYPE_PROPERTIES): New macro.
46832         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
46833         testing whether <sys/types.h> clashes, as Autoconf does this for
46834         us now.  All uses removed.
46835         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
46836         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
46837         (gl_CHECK_TYPE_SAME):
46838         Remove; no longer needed.
46839         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
46840         exists, since we'll return 0 anyway in that case.
46841         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
46842
46843 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
46844
46845         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
46846         possible collision with system files.
46847         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
46848         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
46849         WCHAR_MIN and WCHAR_MAX in this case.
46850         (<stddef.h>): Do not include; no longer needed.
46851         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
46852         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
46853         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
46854         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
46855         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
46856         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
46857         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
46858         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
46859         !defined(__c99))]: Include in this case too, since it's harmless
46860         now.
46861         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
46862         dangerous to do so.
46863         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
46864         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
46865         (_STDINT_MIN, _STDINT_MAX): New macros.
46866         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
46867         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
46868         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
46869         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
46870         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
46871         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
46872         macros, not typedefs; this simplifies things quite a bit.
46873         Use long int for all types narrower than int64_t.
46874         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
46875         Define in terms of long long int or int64_t or long int,
46876         not int64_t or int32_t.  This saves some compile-time testing.
46877         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
46878         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
46879         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
46880         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
46881         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
46882         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
46883         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
46884         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
46885         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
46886         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
46887         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
46888         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
46889         undef any previous version and define our own version, for
46890         simplicity and consistency with the new macros for types.
46891         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
46892         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
46893         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
46894         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
46895         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
46896         @WINT_T_SUFFIX@ to keep things simple here.
46897         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
46898         Simplify by assuming typical 8/16/32/64 host, since we're
46899         already doing that elsewhere anyway.
46900         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
46901         and assume long long int is 64 bits if available.  This
46902         speeds up 'configure'.
46903
46904 2006-07-01  Eric Blake  <ebb9@byu.net>
46905
46906         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
46907         Reported by Andreas Buening.
46908
46909 2006-07-01  Eric Blake  <ebb9@byu.net>
46910
46911         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
46912
46913 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
46914
46915         * lib/getaddrinfo.c: fixed typo
46916
46917 2006-06-29  Jim Meyering  <jim@meyering.net>
46918
46919         * modules/strftime (Maintainer): Add my name, since with the
46920         FPRINTFTIME changes strftime.c has forked from glibc.
46921
46922 2006-06-29  Eric Blake  <ebb9@byu.net>
46923
46924         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
46925
46926 2006-06-29  Eric Blake  <ebb9@byu.net>
46927
46928         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
46929
46930 2006-06-29  Eric Blake  <ebb9@byu.net>
46931
46932         * lib/stat_.h: New file.
46933
46934 2006-06-29  Eric Blake  <ebb9@byu.net>
46935
46936         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
46937         unused static function.
46938
46939 2006-06-29  Eric Blake  <ebb9@byu.net>
46940
46941         * doc/functions.texi (Function Portability): Document missing lstat
46942         on mingw.
46943
46944 2006-06-29  Eric Blake  <ebb9@byu.net>
46945
46946         * MODULES.html.sh: Add sys_stat.
46947         * modules/sys_stat: New module.
46948         * modules/mkstemp (Depends-on): Add sys_stat.
46949
46950 2006-06-29  Derek R. Price  <derek@ximbiot.com>
46951
46952         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
46953
46954 2006-06-29  Derek R. Price  <derek@ximbiot.com>
46955
46956         * m4/c-bs-a.m4: Removed.
46957
46958 2006-06-29  Derek R. Price  <derek@ximbiot.com>
46959
46960         * lib/strftime.c: Assume strftime() exists.
46961
46962 2006-06-29  Derek Price  <derek@ximbiot.com>
46963
46964         * modules/c-bs-a: Removed - \a is C89.
46965         * MODULES.html.sh: Remove c-bs-a.
46966
46967 2006-06-29  Bruno Haible  <bruno@clisp.org>
46968
46969         * modules/wcwidth (License): Change to LGPL.
46970
46971 2006-06-28  Simon Josefsson  <jas@extundo.com>
46972
46973         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
46974         on _WIN32.
46975
46976         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
46977         getnameinfo.
46978
46979 2006-06-28  Simon Josefsson  <jas@extundo.com>
46980
46981         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
46982
46983 2006-06-28  Simon Josefsson  <jas@extundo.com>
46984
46985         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
46986         functions there.  It will succeed on Windows XP, but on Windows
46987         2000 and (presumably) earlier, it will fail, and use the internal
46988         re-implementation.
46989         (use_win32_p): New function.
46990         (getaddrinfo): Use strtoul on servname, to support numeric ports.
46991         Support AI_NUMERICSERV to disable getservbyname.
46992         (getnameinfo): New function, only supports
46993         NI_NUMERICHOST|NI_NUMERICSERV for now.
46994
46995         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
46996         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
46997         getnameinfo.
46998
46999 2006-06-28  Eric Blake  <ebb9@byu.net>
47000
47001         * modules/wcwidth: New file.
47002         * modules/mbchar (Depends-on): Add wcwidth.
47003         * modules/mbswidth (Depends-on): Add wcwidth.
47004         * MODULES.html.sh: Add wcwidth.
47005
47006 2006-06-28  Eric Blake  <ebb9@byu.net>
47007
47008         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
47009         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
47010
47011 2006-06-28  Eric Blake  <ebb9@byu.net>
47012
47013         * lib/xvasprintf.h: Fix comments.
47014
47015 2006-06-28  Eric Blake  <ebb9@byu.net>
47016
47017         * lib/mbchar.h (wcwidth): Include wcwidth.h.
47018         * lib/mbswidth.c (wcwidth): Move from here...
47019         * lib/wcwidth.h: ...to this new file.
47020
47021 2006-06-28  Derek R. Price  <derek@ximbiot.com>
47022
47023         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
47024
47025         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
47026         it's obsolete.
47027         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
47028
47029 2006-06-28  Derek R. Price  <derek@ximbiot.com>
47030
47031         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
47032         Autoconf 2.60 says this stuff was obsolete.
47033
47034 2006-06-28  Bruno Haible  <bruno@clisp.org>
47035
47036         * modules/wcwidth (Files): Add m4/wchar_t.m4.
47037
47038 2006-06-28  Bruno Haible  <bruno@clisp.org>
47039
47040         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
47041         gt_TYPE_WCHAR_T.
47042
47043 2006-06-28  Bruno Haible  <bruno@clisp.org>
47044
47045         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
47046         declaration for wcwidth.
47047         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
47048
47049 2006-06-28  Bruno Haible  <bruno@clisp.org>
47050
47051         * lib/mkdtemp.c [MINGW]: Include <io.h>.
47052         (mkdir): Define using _mkdir.
47053
47054 2006-06-28  Bruno Haible  <bruno@clisp.org>
47055
47056         * lib/getaddrinfo.h: Fix POSIX URL.
47057         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
47058         _WIN32.
47059         (use_win32_p): Make static.
47060         (getaddrinfo): Reject service name if it is empty or does not consist
47061         solely of decimal digits, or if its value is > 65535.
47062         (getnameinfo): Remove useless casts.
47063
47064 2006-06-27  Simon Josefsson  <jas@extundo.com>
47065
47066         * modules/sys_select: New file, suggested by Bruno Haible, Paul
47067         Eggert and Martin Lambers.
47068
47069 2006-06-27  Simon Josefsson  <jas@extundo.com>
47070
47071         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
47072         Eggert and Martin Lambers.
47073
47074 2006-06-27  Bruno Haible  <bruno@clisp.org>
47075
47076         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
47077         result to 0, not to empty.
47078         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
47079
47080 2006-06-27  Bruno Haible  <bruno@clisp.org>
47081
47082         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
47083
47084 2006-06-26  Simon Josefsson  <jas@extundo.com>
47085
47086         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
47087         present.
47088
47089 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
47090
47091         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
47092         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
47093         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
47094
47095 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
47096
47097         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
47098
47099 2006-06-26  Bruno Haible  <bruno@clisp.org>
47100
47101         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
47102
47103 2006-06-26  Bruno Haible  <bruno@clisp.org>
47104
47105         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
47106
47107 2006-06-26  Bruno Haible  <bruno@clisp.org>
47108
47109         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
47110         SGI C compiler in pre-C99 mode.
47111         Suggested by Mark D. Baushke and Larry Jones.
47112
47113 2006-06-26  Bruno Haible  <bruno@clisp.org>
47114
47115         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
47116         WCHAR_MAX.
47117         Reported by Mark D. Baushke and Larry Jones.
47118
47119 2006-06-26  Bruno Haible  <bruno@clisp.org>
47120
47121         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
47122         in pre-C99 mode.
47123         Suggested by Mark D. Baushke and Larry Jones.
47124
47125 2006-06-23  Simon Josefsson  <jas@extundo.com>
47126             Bruno Haible  <bruno@clisp.org>
47127
47128         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
47129         Emit mostlyclean-local rule.
47130         (func_emit_tests_Makefile_am): Likewise.
47131         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
47132
47133 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
47134
47135         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
47136
47137 2006-06-23  Bruno Haible  <bruno@clisp.org>
47138
47139         * tests/test-stdint.c: Update to match ISO C 99 Technical
47140         Corrigendum 1.
47141
47142 2006-06-23  Bruno Haible  <bruno@clisp.org>
47143
47144         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
47145
47146 2006-06-23  Bruno Haible  <bruno@clisp.org>
47147
47148         * lib/stdint_.h: Treat IRIX like OpenBSD.
47149
47150 2006-06-23  Bruno Haible  <bruno@clisp.org>
47151
47152         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
47153         ISO C 99 Technical Corrigendum 1.
47154
47155 2006-06-22  Simon Josefsson  <jas@extundo.com>
47156
47157         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
47158         MinGW.
47159
47160 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
47161
47162         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
47163         needed.  Some compiler complained about some of them.  Problem reported
47164         by Larry Jones in
47165         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
47166
47167 2006-06-21  Simon Josefsson  <jas@extundo.com>
47168
47169         * tests/test-getaddrinfo.c: New file.
47170
47171         * modules/getaddrinfo-tests: New file.
47172
47173         * MODULES.html.sh: Add inet_pton.
47174
47175         * modules/inet_pton: New file.
47176
47177 2006-06-21  Simon Josefsson  <jas@extundo.com>
47178
47179         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
47180         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
47181         of using the (limited) gnulib implementation on Windows XP.
47182
47183         * m4/inet_pton.m4: New file.
47184
47185 2006-06-21  Simon Josefsson  <jas@extundo.com>
47186
47187         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
47188         variable.
47189
47190         * lib/socket_.h: Don't define WINVER.
47191
47192         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
47193         slightly modified to work in gnulib.
47194
47195 2006-06-21  Simon Josefsson  <jas@extundo.com>
47196
47197         * doc/gnulib.texi (Windows sockets): Add.
47198
47199 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
47200
47201         * lib/read-file.c (fread_file): Start with buffer allocation of
47202         0 bytes rather than 1 byte; this simplifies the code.
47203         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
47204         code to free buffer and save/restore errno.
47205         (internal_read_file): Remove unused local.
47206
47207 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
47208
47209         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
47210         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
47211         Problem reported by Denis Excoffier in
47212         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
47213
47214 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47215
47216         * modules/sys_socket, modules/socklen: Include sys/types since
47217         FreeBSD 4.x's sys/socket.h needs it.
47218
47219 2006-06-19  Simon Josefsson  <jas@extundo.com>
47220
47221         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
47222
47223 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
47224
47225         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
47226
47227 2006-06-19  Bruno Haible  <bruno@clisp.org>
47228
47229         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
47230         and FULL_PATH_INTTYPES_H in angle brackets.
47231         Reported by Mark D. Baushke <mdb@gnu.org>.
47232
47233 2006-06-17  Eric Blake  <ebb9@byu.net>
47234
47235         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
47236         errno.
47237
47238 2006-06-17  Bruno Haible  <bruno@clisp.org>
47239
47240         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
47241         <sys/inttypes.h>.
47242
47243 2006-06-17  Bruno Haible  <bruno@clisp.org>
47244
47245         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
47246         whether errno is declared. Assume <errno.h> declares errno.
47247
47248 2006-06-17  Bruno Haible  <bruno@clisp.org>
47249
47250         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
47251
47252 2006-06-17  Bruno Haible  <bruno@clisp.org>
47253
47254         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
47255         problem on Solaris 2.5.1.
47256
47257 2006-06-16  Eric Blake  <ebb9@byu.net>
47258
47259         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
47260         * lib/unicodeio.c [!defined errno]: Likewise.
47261         * lib/strtol.c [!defined errno]: Likewise.
47262         * lib/strtod.c [!defined errno]: Likewise.
47263
47264 2006-06-15  Eric Blake  <ebb9@byu.net>
47265
47266         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
47267
47268 2006-06-15  Eric Blake  <ebb9@byu.net>
47269
47270         * config/srclist.txt (ssize_t.m4): Lose sync.
47271
47272 2006-06-15  Bruno Haible  <bruno@clisp.org>
47273
47274         * modules/stdint (Files): Include m4/full-header-path.m4,
47275         m4/size_max.m4, m4/wchar_t.m4.
47276         (Makefile.am): Many more substitutions.
47277         * modules/stdint-tests: New file.
47278         * tests/test-stdint.c: New file.
47279
47280 2006-06-15  Bruno Haible  <bruno@clisp.org>
47281
47282         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
47283         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
47284         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
47285         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
47286         gl_CHECK_TYPE_SAME): New macros.
47287
47288 2006-06-15  Bruno Haible  <bruno@clisp.org>
47289
47290         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
47291
47292 2006-06-15  Bruno Haible  <bruno@clisp.org>
47293
47294         * lib/stdint_.h: Rewritten to be fully auto-configured.
47295         Fixes bug on HP-UX/IA64.
47296
47297 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
47298
47299         * lib/getdate.y (__attribute__): Don't define if already defined.
47300         Problem reported by Larry Jones.
47301         * lib/utimens.c (__attribute__): Likewise.
47302
47303 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
47304
47305         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
47306         reported by Andreas Schwab.
47307
47308 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47309             Bruno Haible  <bruno@clisp.org>
47310
47311         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
47312         check for the declaration of strnlen and a run test that exposes the
47313         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
47314         rpl_strndup.
47315
47316 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47317             Bruno Haible  <bruno@clisp.org>
47318
47319         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
47320
47321 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47322
47323         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
47324         compile test, for Tru64 4.0D.
47325
47326 2006-05-28  Karl Berry  <karl@gnu.org>
47327
47328         * config/srclist.txt (printf-args.c): lose sync.
47329
47330 2006-05-26  Martin Lambers  <marlam@marlam.de>
47331
47332         * lib/getpass.c: Updates the test for the native W32 API, and adds
47333         missing includes, thus fixing compilation warnings.
47334
47335 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
47336
47337         * lib/exclude.c (exclude_fnmatch): New function.
47338         (excluded_file_name): Call exclude_fnmatch.
47339         * lib/exclude.h (excluded_file_name): New prototype
47340
47341 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
47342
47343         * lib/tempname.c (small_open, large_open): New macros.
47344         (__open, __open64) [!_LIBC]: Remove.
47345         (__gen_tempname): Use small_open and large_open instead of __open
47346         and __open64.  This fixes a portability bug on HP-UX 11.11i
47347         reported by Simon Wing-Tang in
47348         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
47349
47350 2006-05-24  Bruno Haible  <bruno@clisp.org>
47351
47352         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
47353         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
47354         Reported by Thorsten Maerz <torte@netztorte.de> via
47355         Aaron Stone <aaron@serendipity.cx>.
47356
47357 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
47358
47359         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
47360         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
47361         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
47362         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
47363         not really conditional on the cache.
47364         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
47365
47366 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
47367
47368         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
47369         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
47370         (my_usleep): Don't mishandle maximum value.
47371
47372 2006-05-19  Jim Meyering  <jim@meyering.net>
47373
47374         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
47375
47376 2006-05-17  Bruno Haible  <bruno@clisp.org>
47377
47378         Cygwin portability.
47379         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
47380
47381 2006-05-17  Bruno Haible  <bruno@clisp.org>
47382
47383         * lib/stdint_.h: Fix recognition of Cygwin.
47384
47385 2006-05-15  Bruno Haible  <bruno@clisp.org>
47386
47387         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
47388         on libtool patch by Ralf Wildenhues.
47389
47390 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
47391
47392         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
47393         test for C99 conformance; (bool) 0.5 is an integer constant
47394         expression, but (bool) -0.5 is not.  Problem reported by Fedor
47395         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
47396
47397 2006-05-11  Simon Josefsson  <jas@extundo.com>
47398
47399         * m4/xvasprintf.m4: Fix obvious typo.
47400
47401 2006-05-11  Jim Meyering  <jim@meyering.net>
47402
47403         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
47404         James Lemley.
47405
47406 2006-05-10  Simon Josefsson  <jas@extundo.com>
47407
47408         * lib/md4.c: Typo fix, update copyright years.
47409         (K1, K2): Don't use L because it turn computations into 64-bit on
47410         64-bit platforms.
47411
47412 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
47413
47414         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
47415         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
47416         unwanted sign propagation, e.g., on hosts with 64-bit int.
47417         There still are some problems with reeelly weird theoretical hosts
47418         (e.g., 33-bit int) but it's not worth worrying about now.
47419         * lib/sha1.c (rol): Likewise.
47420         (K1, K2, K3, K4): Remove unnecessary L suffix.
47421
47422 2006-05-10  Bruno Haible  <bruno@clisp.org>
47423
47424         * lib/des.c: Cast to avoid warnings.
47425
47426 2006-05-09  Bruno Haible  <bruno@clisp.org>
47427
47428         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
47429         (Depends-on): Depend also on xsize, stdarg.
47430         (configure.ac): Add gl_XVASPRINTF.
47431
47432 2006-05-09  Bruno Haible  <bruno@clisp.org>
47433
47434         * m4/xvasprintf.m4: New file.
47435
47436 2006-05-09  Bruno Haible  <bruno@clisp.org>
47437
47438         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
47439         (EOVERFLOW): Define fallback value.
47440         (xstrcat): New function.
47441         (xvasprintf): Recognize the special case of a string concatenation.
47442
47443 2006-05-08  Eric Blake  <ebb9@byu.net>
47444
47445         * gnulib-tool (func_version): Base copyright year on CVS date.
47446         (func_emit_copyright_notice): New function.
47447         (func_emit_lib_Makefile_am): Use it.
47448         (func_emit_tests_Makefile_am): Likewise.
47449         (func_import): Likewise.
47450
47451 2006-05-08  Bruno Haible  <bruno@clisp.org>
47452
47453         * modules/stdarg: New file.
47454         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
47455
47456 2006-05-08  Bruno Haible  <bruno@clisp.org>
47457
47458         * m4/stdarg.m4: New file, from GNU gettext.
47459
47460 2006-05-08  Bruno Haible  <bruno@clisp.org>
47461
47462         * config/srclist.txt (build-aux/config.rpath): different from latest
47463         release.
47464
47465 2006-05-08  Bruno Haible  <bruno@clisp.org>
47466
47467         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
47468
47469 2006-05-05  Jim Meyering  <jim@meyering.net>
47470
47471         * m4/warning.m4: New file, derived from bison's file by the same name.
47472
47473 2006-05-03  Bruno Haible  <bruno@clisp.org>
47474
47475         * lib/stdint_.h: Shorter URL.
47476         * lib/inttypes.h: Likewise.
47477
47478 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
47479
47480         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
47481
47482 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
47483
47484         * lib/verify.h: Document the internals better.  Most of this change
47485         was written by Bruno Haible.
47486
47487 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
47488
47489         * doc/verify.texi: New file, partly based on a proposal by
47490         Bruno Haible.
47491
47492 2006-05-02  Bruno Haible  <bruno@clisp.org>
47493
47494         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
47495         test from here...
47496         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
47497
47498 2006-04-29  Bruno Haible  <bruno@clisp.org>
47499
47500         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
47501         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
47502
47503 2006-04-29  Bruno Haible  <bruno@clisp.org>
47504
47505         * gnulib-tool: Make --update option actually work.
47506
47507 2006-04-29  Bruno Haible  <bruno@clisp.org>
47508
47509         * doc/gcd.texi: New file.
47510         * doc/gnulib.texi: Include it.
47511
47512 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
47513
47514         * lib/getdate.y (get_date): When adding relative date, start with the
47515         initial time, not with the result of the first mktime call.
47516
47517 2006-04-25  Bruno Haible  <bruno@clisp.org>
47518
47519         * gnulib-tool (func_import): Output the include directives in three
47520         blocks, sorted separately.
47521         Reported by Ben Pfaff <blp@cs.stanford.edu>.
47522
47523 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
47524
47525         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
47526         to define main with arguments, for C++.  Reported by Eric Blake.
47527         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
47528         Prefer 'int main ()' to 'int main (void)', for C++.
47529         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
47530         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
47531         for 'main', for C99 and C++.
47532
47533 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
47534
47535         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
47536         Don't assume that exit status -1 is valid.
47537         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
47538         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
47539         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
47540         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
47541         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
47542         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
47543         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
47544         functions can be used without declaring them, or that you can
47545         exit with status -1.
47546         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
47547
47548 2006-04-24  Karl Berry  <karl@gnu.org>
47549
47550         * config/srclist.txt (longdouble.m4): sync lost.
47551
47552 2006-04-24  Eric Blake  <ebb9@byu.net>
47553
47554         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
47555
47556 2006-04-24  Bruno Haible  <bruno@clisp.org>
47557
47558         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
47559         poll() implementation in AIX.
47560         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47561
47562 2006-04-24  Bruno Haible  <bruno@clisp.org>
47563
47564         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
47565         assigned exactly once.
47566
47567 2006-04-23  Claudio Fontana  <claudio@gnu.org>
47568             Bruno Haible  <bruno@clisp.org>
47569
47570         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
47571         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
47572         for AM_CPPFLAGS.
47573
47574 2006-04-23  Bruno Haible  <bruno@clisp.org>
47575
47576         * modules/copy-file: Depend on unistd.
47577         * modules/execute: Likewise.
47578         * modules/fatal-signal: Likewise.
47579         * modules/findprog: Likewise.
47580         * modules/mkdtemp : Likewise.
47581         * modules/pipe: Likewise.
47582         * modules/wait-process: Likewise.
47583
47584 2006-04-23  Bruno Haible  <bruno@clisp.org>
47585
47586         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
47587         condition was already detected.
47588         Reported by Ben Pfaff <blp@cs.stanford.edu>.
47589
47590 2006-04-23  Bruno Haible  <bruno@clisp.org>
47591
47592         * lib/copy-file.c: Include <unistd.h> unconditionally.
47593         * lib/execute.c: Likewise.
47594         * lib/fatal-signal.c: Likewise.
47595         * lib/findprog.c: Likewise.
47596         * lib/mkdtemp.c: Likewise.
47597         * lib/pipe.h: Likewise.
47598         * lib/pipe.c: Likewise.
47599         * lib/wait-process.h: Likewise.
47600
47601 2006-04-23  Bruno Haible  <bruno@clisp.org>
47602
47603         * gnulib-tool (func_usage): Fix --import description. Document
47604         --update.
47605         (func_import): Create temporary file in a temporary directory, if
47606         --dry-run is specified. Silence errors from 'grep' when there are no
47607         m4 files in $m4dir.
47608         (func_create_testdir): Silence errors from 'grep' when there are no
47609         m4 files in $m4dir.
47610         Reported by Karl Berry <karl@freefriends.org>.
47611
47612 2006-04-20  Bruno Haible  <bruno@clisp.org>
47613
47614         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
47615         one argument, so that the code will be portable to Autoconf 2.60.
47616         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
47617         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
47618         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
47619
47620 2006-04-19  Derek Price  <derek@ximbiot.com>
47621             Eric Blake  <ebb9@byu.net>
47622
47623         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
47624         rather than "/full/path.h".  Update comment to match.  Shorten &
47625         generalize m4_translit call via AS_TR_CPP.
47626
47627 2006-04-19  Derek Price  <derek@ximbiot.com>
47628             Eric Blake  <ebb9@byu.net>
47629
47630         * lib/inttypes.h: Correct grammar in comment.
47631
47632 2006-04-18  Derek Price  <derek@ximbiot.com>
47633             Paul Eggert  <eggert@cs.ucla.edu>
47634
47635         * modules/inttypes: New file.
47636         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
47637
47638 2006-04-18  Derek Price  <derek@ximbiot.com>
47639             Paul Eggert  <eggert@cs.ucla.edu>
47640
47641         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
47642         New files.
47643
47644 2006-04-18  Derek Price  <derek@ximbiot.com>
47645             Paul Eggert  <eggert@cs.ucla.edu>
47646
47647         * lib/inttypes.h: New file.
47648         * lib/strtoimax.c: Assume <inttypes.h>.
47649
47650 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
47651
47652         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
47653         isn't mounted.  Problem reported by Kir Kolyshkin.
47654
47655 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
47656
47657         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
47658         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
47659         Derek R. Price.
47660         * lib/regex.h (RE_DUP_MAX): Update comment to match current
47661         implementation.
47662
47663 2006-04-12  Eric Blake  <ebb9@byu.net>
47664
47665         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
47666         is now done automatically by the corresponding Autoconf macro.
47667
47668 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
47669
47670         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
47671         time_r.h.
47672
47673 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
47674
47675         Merge regex changes from libc, removing some of our
47676         POSIX-conformance changes that were rejected and redoing them in a
47677         less-intrusive way.
47678
47679         * lib/regcomp.c (re_compile_internal, init_dfa):
47680         Length arg is now size_t, not Idx.  All uses changed.
47681         (peek_token): Forward decl now says internal_function.
47682         (__re_error_msgid, __re_error_msgid_idx):
47683         Now static rather than extern with attribute_hidden.
47684         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
47685         For some reason libc prefers K&R style defns for external functions.
47686         (regerror) [!defined _LIBC]: Likewise.
47687         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
47688         (seek_collating_symbol_entry, lookup_collation_sequence_value):
47689         (build_range_exp, build_collating_symbol):
47690         Use K&R-style defn.
47691         (re_compile_fastmap): Use '\0' to memset, not 0.
47692         (utf8_sb_map): Make the calculations more obvious.
47693         (init_dfa, parse_bracket_exp, build_charclass_op):
47694         Call calloc and cast result, as glibc does.
47695         (init_word_char, fetch_token, peek_token, peek_token_bracket):
47696         (build_range_exp, build_collating_symbol):
47697         Now internal functions.
47698
47699         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
47700
47701         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
47702         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
47703         Don't depend on VMS; depend on __VMS instead, for POSIX
47704         namespace cleanness.
47705         (regoff_t): Define to ssize_t, not long int.
47706
47707         Remove the REG_ macros named below.  Instead, make the old names
47708         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
47709         __USE_GNU_REGEX.
47710         (REG_BACKSLASH_ESCAPE_IN_LISTS):
47711         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
47712         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
47713         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
47714         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
47715         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
47716         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
47717         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
47718         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
47719         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
47720         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
47721         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
47722         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
47723         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
47724         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
47725         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
47726         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
47727         (REG_NREGS):
47728         Remove.  All uses replaced by the old RE_* names.
47729         (RE_BACKSLASH_ESCAPE_IN_LISTS):
47730         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
47731         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
47732         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
47733         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
47734         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
47735         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
47736         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
47737         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
47738         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
47739         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
47740         Don't bother having these macros be independent of each others'
47741         values, since they no longer exist in the POSIX name space.
47742
47743         Rename the following member names back to their old names,
47744         unless !__USE_GNU_REGEX.  All uses changed back.
47745         (buffer): Renamed from re_buffer.
47746         (allocated): Renamed from re_allocated.
47747         (used): Renamed from re_used.
47748         (syntax): Renamed from re_syntax.
47749         (fastmap): Renamed from re_fastmap.
47750         (translate): Renamed from re_translate.
47751         (can_be_null): Renamed from re_can_be_null.
47752         (regs_allocated): Renamed from re_regs_allocated.
47753         (fastmap_accurate): Renamed from re_fastmap_accurate.
47754         (no_sub): Renamed from re_no_sub.
47755         (not_bol): Renamed from re_not_bol.
47756         (not_eol): Renamed from re_not_eol.
47757         (newline_anchor): Renamed from re_newline_anchor.
47758         (num_regs): Renamed from rm_num_regs.
47759         (start): Renamed from rm_start.
47760         (end): Renamed from rm_end.
47761
47762         (free_state): Move up a bit.
47763
47764         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
47765         #define to be empty.
47766         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
47767         when that is what is intended.
47768         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
47769         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
47770         (MAX): New macro.
47771         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
47772         All uses changed back to re_malloc, etc.  It's now the caller's
47773         responsibility to check for overflow; all callers changed.
47774         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
47775         (re_x2nrealloc): Remove.
47776         (free_state): Remove decl.
47777
47778         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
47779         (re_set_registers, re_exec):
47780         Use K&R-style defn.
47781
47782         2006-01-31  Roland McGrath  <roland@redhat.com>
47783
47784         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
47785         Reported by Mike Frysinger <vapier@gentoo.org>.
47786
47787         2006-01-15  Andreas Jaeger  <aj@suse.de>
47788
47789         [BZ #1950]
47790         * lib/regex_internal.c (re_string_reconstruct): Adjust for
47791         build_wcs_upper_buffer change.
47792         (build_wcs_upper_buffer): Change return type.
47793
47794         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
47795
47796         * lib/regex_internal.h: Include <stdint.h> if available.
47797
47798         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
47799
47800         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
47801
47802         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
47803
47804         * lib/regcomp.c: Adjust for changed secondary hash function.
47805
47806         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
47807
47808         * lib/regex.h: Pretty printing.
47809         Clean up namespace a bit.
47810
47811         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
47812
47813         * lib/regexec.c (update_cur_sifted_state, check_arrival,
47814         check_arrival_add_next_nodes): Avoid using uninitialized variable.
47815
47816         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
47817                     Ulrich Drepper  <drepper@redhat.com>
47818
47819         [BZ #1302]
47820         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
47821         changed.
47822         (bitset_word_t): Renamed from bitset_word.  All uses changed.
47823
47824         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
47825
47826         [BZ #281]
47827         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
47828         * lib/regcomp.c: Remove unnecessary uses of
47829         unsigned RE_TRANSLATE_TYPE.
47830         * lib/regex_internal.h: Likewise.
47831         * lib/regex_internal.c: Likewise.
47832         * lib/regexec.c: Likewise.
47833         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
47834
47835         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
47836
47837         * lib/regexec.c (find_recover_state): Remove unnecessary
47838         initialization.
47839         (transit_state_bkref): Make DFA a const pointer.
47840         (get_subexp): Likewise.
47841         (check_arrival): Likewise.
47842         (update_cur_sifted_state): Likewise.
47843         (re_search_internal): Likewise.
47844         (prune_impossible_nodes): Likewise.
47845         (acquire_init_state_context): Likewise.
47846         (proceed_next_node): Likewise.
47847         (set_regs): Likewise.
47848         (free_fail_stack_return): Likewise.
47849         (check_arrival_expand_ecl): Mark DFA parameter as const.
47850         (check_arrival_expand_ecl_sub): Likewise.
47851         (check_subexp_limits): Likewise.
47852         (sub_epsilon_src_nodes):  Likewise.
47853         (add_epsilon_src_nodes):  Likewise.
47854         (merge_state_array): Likewise.
47855         (update_regs): Likewise.
47856         (build_trtable): Likewise.
47857         (sift_states_backward): Mark MCTX parameter as const.
47858         (build_sifted_states): Likewise.
47859         (update_cur_sifted_state): Likewise.
47860         (sift_states_mkref): Likewise.
47861         (check_arrival_expand_ecl): Mark eclosure as const.
47862         (check_dst_limits_calc_pos_1): Likewise.
47863         * lib/regex_internal.h (re_match_context_t): Make dfa a const
47864         pointer.
47865
47866         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
47867
47868         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
47869         (transit_state_sb): Likewise.
47870         (transit_state_mb): Likewise.
47871         (sift_states_iter_mb): Likewise.
47872         (check_arrival_add_next_nodes): Likewise.
47873         (check_node_accept_bytes): Change first parameter to pointer-to-const.
47874         [_LIBC] (re_search_2_stub): Use mempcpy.
47875
47876         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
47877         mbrtowc for very simple UTF-8 case.
47878
47879         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
47880         a pointer-to-const.
47881         (re_acquire_state_context): Likewise.
47882         * lib/regex_internal.h: Adjust prototypes.
47883
47884         * lib/regex.c: Prevent using C++ compilers.
47885
47886         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
47887         (re_acquire_state_context): Likewise.
47888
47889 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
47890
47891         * modules/regex (Depends-on): Add ssize_t.
47892
47893 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
47894
47895         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
47896         translation table.
47897
47898 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
47899
47900         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
47901
47902 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
47903             Bruno Haible  <bruno@clisp.org>
47904
47905         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
47906         <sys/types.h> and <inttypes.h>.
47907
47908 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47909
47910         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
47911         `__error_t_defined', so argp.h will not typedef the former.
47912
47913 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
47914
47915         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
47916         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
47917         glibc names.  Even if glibc is changed to conform to POSIX, the
47918         traditional names will be available anyway, since regex depends on
47919         the extensions module.  Also, fix a longstanding typo in the
47920         implementation of Spencer ERE test #75 from grep 2.3.  Problems
47921         reported by Emanuele Giaquinta.  Also, change sense of cached
47922         variable, so that the message makes sense.
47923
47924 2006-03-24  Simon Josefsson  <jas@extundo.com>
47925
47926         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
47927         including some doc fixes.
47928         (base64_encode_alloc): Fix +1 bug on allocation failures.
47929
47930 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47931
47932         * lib/base64.c (base64_encode): Do not read past end of array with
47933         unsanitized input on systems with CHAR_BIT > 8.
47934
47935 2006-03-24  Eric Blake  <ebb9@byu.net>
47936
47937         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
47938
47939 2006-03-22  Karl Berry  <karl@gnu.org>
47940
47941         * config/srclist.txt (*setenv.[ch]): get from coreutils.
47942         * config/srclistvars.sh (COREUTILS): new var.
47943
47944 2006-03-17  Jim Meyering  <jim@meyering.net>
47945
47946         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
47947         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
47948
47949 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
47950
47951         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
47952         no longer needs it.  Instead, check that regoff_t is as least
47953         as wide as ptrdiff_t.
47954
47955         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
47956         so that our regex.h stays compatible with the installed regex.
47957         This is helpful for installers who configure --without-included-regex.
47958         Problem reported by Emanuele Giaquinta.
47959
47960 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
47961
47962         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
47963         Typedef to long int, not to off_, as POSIX will likely change
47964         in that direction.
47965
47966 2006-03-15  Eric Blake  <ebb9@byu.net>
47967
47968         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
47969
47970 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
47971
47972         * lib/argp-help.c (validate_uparams): Fix typo
47973         * lib/argp-parse.c (argp_default_options): Consistently begin help
47974         messages with a lowercase letter.
47975
47976 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
47977
47978         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
47979         overrun buffers and shouldn't be used (much as gets shouldn't be
47980         used).
47981         * lib/time_r.c (asctime_r, ctime_r): Likewise.
47982
47983 2006-03-08  Simon Josefsson  <jas@extundo.com>
47984
47985         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
47986         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47987
47988 2006-03-08  Simon Josefsson  <jas@extundo.com>
47989
47990         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
47991         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47992
47993 2006-03-08  Simon Josefsson  <jas@extundo.com>
47994
47995         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
47996         signal that configure disabled the device.
47997
47998 2006-03-08  Simon Josefsson  <jas@extundo.com>
47999
48000         * build-aux/maint.mk: Fix refresh-po, to handle no translated
48001         languages.
48002
48003 2006-03-07  Simon Josefsson  <jas@extundo.com>
48004
48005         * modules/getopt (Depends-on): Add unistd.
48006
48007         * modules/unistd: New file.
48008
48009 2006-03-07  Simon Josefsson  <jas@extundo.com>
48010
48011         * modules/gc-random: New file.
48012
48013 2006-03-07  Simon Josefsson  <jas@extundo.com>
48014
48015         * m4/unistd_h.m4: New file.
48016
48017 2006-03-07  Simon Josefsson  <jas@extundo.com>
48018
48019         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
48020         test to be side-effect free by storing the result in the cache
48021         variable gl_cv_lib_readline, and moving the assignment of
48022         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
48023         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48024
48025 2006-03-07  Simon Josefsson  <jas@extundo.com>
48026
48027         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
48028         error on missing devices (the functions will return an error).
48029
48030         * m4/gc.m4: Move random stuff to gc-random.m4
48031
48032 2006-03-07  Simon Josefsson  <jas@extundo.com>
48033
48034         * lib/unistd_.h: New file.
48035
48036 2006-03-07  Simon Josefsson  <jas@extundo.com>
48037
48038         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
48039
48040 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
48041
48042         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
48043         Problem reported by Juan Manuel Guerrero.
48044
48045 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
48046
48047         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
48048         the unistd module.
48049         * lib/getlogin_r.c: Likewise.
48050         * lib/getlogin_r.h: Likewise.
48051         * lib/glob.c: Likewise.
48052         * lib/pagealign_alloc.c: Likewise.
48053         * lib/unistd_.h: Remove; no longer needed.
48054
48055 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
48056
48057         * MODULES.html.sh (Support for systems lacking POSIX:2001):
48058         Add unistd.
48059         * modules/c-stack (Depends-on): Add unistd.
48060         * modules/getlogin_r: Likewise.
48061         * modules/glob: Likewise.
48062         * modules/pagealign_alloc: Likewise.
48063         * modules/unistd (Files): Remove lib/unistd_.h.
48064         (EXTRA_DIST): Remove.
48065         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
48066         need unistd_.h.
48067         (MOSTLYCLEANFILES): Remove unistd.h-t.
48068
48069 2006-03-03  Simon Josefsson  <jas@extundo.com>
48070
48071         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
48072
48073 2006-03-03  Simon Josefsson  <jas@extundo.com>
48074
48075         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
48076         libidn and bison.
48077
48078 2006-03-03  Simon Josefsson  <jas@extundo.com>
48079
48080         * build-aux/maint.mk: Add indent target.
48081
48082 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
48083
48084         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
48085         our replacement poll.h in any case, to avoid a differing
48086         declaration from a system header.  Seen on AIX.
48087
48088 2006-03-01  Simon Josefsson  <jas@extundo.com>
48089
48090         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
48091         <kasal@ucw.cz>.
48092
48093 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
48094
48095         * modules/gettime (Depends-on): Add extensions module.
48096         * modules/nanosleep (Depends-on): Likewise.
48097         * modules/settime (Depends-on): Likewise.
48098
48099 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
48100
48101         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
48102         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
48103         pedantically.
48104         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
48105         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
48106
48107         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
48108         not "==".  Reported by Ralf Wildenhues.
48109
48110 2006-03-01  Karl Berry  <karl@gnu.org>
48111
48112         * doc/Copyright/request-*: new files, synced from gnuorg.
48113
48114 2006-03-01  Karl Berry  <karl@gnu.org>
48115
48116         * config/srclist.txt (Copyright/*): new entries.
48117
48118 2006-02-28  Simon Josefsson  <jas@extundo.com>
48119
48120         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
48121
48122 2006-02-27  Simon Josefsson  <jas@extundo.com>
48123
48124         * lib/base64.h: Indent #define's.  From Jim Meyering
48125         <jim@meyering.net>.
48126
48127 2006-02-27  Jim Meyering  <jim@meyering.net>
48128
48129         Revert the change of 2006-02-24, so these files can continue
48130         to be sync'd from gettext.
48131         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
48132         of `config.h'.
48133
48134 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
48135
48136         * modules/intprops: New file.
48137         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
48138         Add intprops.
48139         * modules/getloadavg (Files): Remove lib/intprops.h.
48140         (Depends-on): Add intprops.
48141         * modules/human: Likewise.
48142         * modules/inttostr: Likewise.
48143         * modules/openat: Likewise.
48144         * modules/sig2str: Likewise.
48145         * modules/userspec: Likewise.
48146         * modules/utimecmp: Likewise.
48147         * modules/xnanosleep: Likewise.
48148         * modules/xstrtol: Likewise.
48149
48150 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
48151
48152         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
48153         * modules/lock-tests (TESTS): Use $(EXEEXT).
48154         * modules/tls-tests: Likewise.
48155         * modules/argp-tests: Likewise.
48156         (check_PROGRAMS): New var, replacing...
48157         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
48158
48159 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48160
48161         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
48162         `config.h'.
48163
48164 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
48165
48166         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
48167
48168 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48169
48170         Sync from coreutils.
48171         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
48172         gl_CHDIR_SAFER.
48173
48174 2006-02-22  Jim Meyering  <jim@meyering.net>
48175
48176         Sync from coreutils.
48177         * m4/chdir-safer.m4: New file.
48178
48179 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
48180
48181         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
48182         AT_FDCWD exceeds INT_MAX.
48183         * lib/openat.h (AT_FDCWD): Likewise.
48184
48185 2006-02-17  Eric Blake  <address@hidden>
48186
48187         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
48188
48189 2006-02-16  Simon Josefsson  <jas@extundo.com>
48190
48191         * modules/getaddrinfo (Depends-on): Add sys_socket.
48192
48193 2006-02-15  Simon Josefsson  <jas@extundo.com>
48194
48195         * build-aux/maint.mk: Add dsyntax-check rule.
48196
48197 2006-02-15  Eric Blake  <ebb9@byu.net>
48198
48199         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
48200         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
48201         'present but cannot compile' warnings on cygwin.
48202         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
48203         use ws2tcpip.h if sys/socket.h works.
48204         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
48205         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
48206
48207 2006-02-14  Simon Josefsson  <jas@extundo.com>
48208
48209         * modules/maintainer-makefile (Files): Rename.
48210
48211         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
48212         and (the local) Makefile.cfg to maint-cfg.mk.
48213
48214         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
48215         to the latter.
48216
48217         * modules/maintainer-makefile: New module.
48218
48219         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
48220         severaly stripped to make it possible to build it up from scratch
48221         with reliable tests.
48222
48223         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
48224         fixes to permit overriding the default actions when configure and
48225         makefile are not available.
48226
48227 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
48228
48229         Sync from coreutils.
48230         * modules/lstat (Depends-on): Don't depend on xalloc.
48231         (License): Change from GPL to LGPL, since this is now simply a
48232         replacement for a libc function.
48233
48234 2006-02-14  Jim Meyering  <jim@meyering.net>
48235
48236         Sync from coreutils.
48237
48238         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
48239         failure on deficient systems, and simplify gnulib lgpl dependencies.
48240         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
48241         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
48242
48243         * lib/xalloc-die.c: Remove unused definition of N_.
48244
48245 2006-02-14  Jim Meyering  <jim@meyering.net>
48246
48247         Sync from coreutils.
48248         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
48249         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
48250         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
48251         double-quote uses of that variable, to accommodate the rare case in
48252         which getmntent is available in none of the libraries checked.  This
48253         happens at least on FreeBSD 5.0.
48254
48255 2006-02-13  Simon Josefsson  <jas@extundo.com>
48256
48257         * gnulib-tool (Usage): Fix --import, from
48258         karl@freefriends.org (Karl Berry).
48259
48260 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
48261
48262         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
48263
48264 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
48265
48266         * lib/argp-namefrob.h: Restore changes accidentally lost during the
48267         "autoupdate" on 2005-12-12.
48268
48269 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
48270
48271         * modules/closeout (Depends-on): Remove atexit.
48272
48273 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
48274
48275         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
48276         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
48277
48278 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
48279
48280         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
48281         __EXTENSIONS__ if this causes compilation to fail.  Problem
48282         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
48283         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
48284
48285 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
48286
48287         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
48288         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
48289         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
48290         All uses changed.
48291
48292 2006-01-26  Simon Josefsson  <jas@extundo.com>
48293
48294         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
48295         prototype is visible on mingw32.
48296
48297         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
48298         for mingw32.
48299
48300         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
48301         mingw32).
48302
48303 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
48304
48305         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
48306         attempt to open for write; this always fails, at least on POSIX
48307         hosts.  This reinstates the 2006-01-09 change, which was
48308         inadvertently removed.
48309
48310 2006-01-26  Bruno Haible  <bruno@clisp.org>
48311
48312         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
48313         Reported by Paul Eggert.
48314
48315 2006-01-26  Bruno Haible  <bruno@clisp.org>
48316             Paul Eggert  <eggert@cs.ucla.edu>
48317
48318         * lib/stdbool_.h (_Bool)
48319         [(! (defined __cplusplus || defined __BEOS__)
48320           && !defined __GNUC__
48321           && !(defined __HP_cc || defined __xlc__
48322                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
48323                || defined __sgi))]:
48324         #define to signed char in these cases too; this simplifies
48325         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
48326         etc., separately) and makes it more conservative.
48327
48328 2006-01-25  Simon Josefsson  <jas@extundo.com>
48329
48330         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
48331         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
48332         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
48333
48334 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
48335
48336         * lib/argp-namefrob.h: Bugfix. Remove stray #
48337
48338 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
48339
48340         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
48341         so that we test the test.
48342         Check for yet another HP-UX cc bug involving *bool |= bool.
48343
48344 2006-01-25  Karl Berry  <karl@gnu.org>
48345
48346         * config/srclist.txt (vasnprintf.c): sync lost.
48347
48348 2006-01-25  Jim Meyering  <jim@meyering.net>
48349
48350         Sync from the stable (b5) branch of coreutils:
48351
48352         * lib/fts.c (fts_children): Don't let close() clobber errno from
48353         failed fchdir().
48354
48355         * lib/fts.c (fts_stat): When following a symlink-to-directory,
48356         don't necessarily interpret stat-fails+lstat-succeeds as indicating
48357         a dangling symlink.  That can also happen at least for ELOOP.
48358         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
48359         FYI, this bug predates the inclusion of fts.c in coreutils.
48360
48361         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
48362         in their own block, so pre-c99 compilers don't object.
48363
48364         Avoid the double-free (first in fts_read, second in fts_close) that
48365         would occur when an `active' directory is made inaccessible (e.g.,
48366         via chmod a-x) during a traversal.
48367         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
48368         before returning.  Reproduce this failure by
48369         mkdir -p a/b; cd a; chmod a-x . b
48370         Reported by Stavros Passas.
48371
48372 2006-01-25  Jim Meyering  <jim@meyering.net>
48373
48374         * lib/fileblocks.c: Remove more useless parentheses.
48375         * lib/readutmp.h: Likewise.
48376
48377 2006-01-25  Bruno Haible  <bruno@clisp.org>
48378
48379         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
48380         warnings.
48381         Reported by Paul Eggert.
48382
48383 2006-01-25  Bruno Haible  <bruno@clisp.org>
48384
48385         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
48386         rid of a trap command. For Solaris sh.
48387         Reported by Mark D. Baushke <mdb@gnu.org>.
48388
48389 2006-01-24  Simon Josefsson  <jas@extundo.com>
48390
48391         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
48392         Bruno.
48393
48394 2006-01-24  Karl Berry  <karl@gnu.org>
48395
48396         * config/srclist.txt (argp-namefrob.h): sync lost.
48397
48398 2006-01-24  Jim Meyering  <jim@meyering.net>
48399
48400         * modules/openat (Files): Add lib/intprops.h.
48401         From Mark D. Baushke.
48402
48403 2006-01-24  Jim Meyering  <jim@meyering.net>
48404
48405         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
48406         Reported by Mark D. Baushke.
48407
48408 2006-01-24  Jim Meyering  <jim@meyering.net>
48409
48410         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
48411
48412 2006-01-24  Bruno Haible  <bruno@clisp.org>
48413
48414         * modules/strnlen (Maintainer): Change from glibc to all.
48415
48416 2006-01-24  Bruno Haible  <bruno@clisp.org>
48417
48418         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
48419         Patch by Paul Eggert.
48420
48421 2006-01-24  Bruno Haible  <bruno@clisp.org>
48422
48423         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
48424         already has it.
48425         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
48426         2005-11-26.
48427
48428         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
48429         'signed char' to avoid problems with the built-in _Bool type.
48430         Reported by Paul Eggert on 2005-11-26.
48431
48432 2006-01-24  Bruno Haible  <bruno@clisp.org>
48433
48434         * gnulib-tool (func_import): Avoid constructing complicated sed
48435         expressions inside backquote.
48436         Report and solution by Mark D. Baushke <mdb@gnu.org>.
48437
48438 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
48439
48440         These changes imported from libc.
48441         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
48442         test and two separate function calls.
48443         * lib/strndup.c (__strndup): Add libc_hidden_def.
48444
48445 2006-01-23  Simon Josefsson  <jas@extundo.com>
48446
48447         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
48448         Remove the test_*_SOURCES variable: automake infers it by default.
48449         * modules/tls-tests: Likewise.
48450
48451 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
48452
48453         Work around porting bugs reported by Dieter in
48454         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
48455         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
48456         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
48457         Include "getopt.h" first, to check interface.
48458         (getenv): Declare only if defined HAVE_DECL_GETENV &&
48459         !HAVE_DECL_GETENV.
48460         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
48461         (__strndup): Revert to K&R-style function dfns, the glibc style.
48462         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
48463         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
48464         Include strnlen.h first, to get prototype properly.
48465         (strnlen): Renamed from __strnlen.
48466         Remove weak alias.
48467
48468 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
48469
48470         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
48471
48472 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
48473
48474         * config/srclist.txt: Adjust to reflect glibc reorganization.
48475         This affects only comments.
48476
48477 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
48478
48479          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
48480          Reported by Bruce Korb <bkorb@gnu.org>.
48481
48482 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
48483
48484         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
48485         to pacify gcc -Wswitch-default.
48486
48487 2006-01-22  Bruno Haible  <bruno@clisp.org>
48488
48489         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
48490         temporary buffer for sprintf, take into account the precision also
48491         for 'd', 'i', 'u', 'o', 'x', 'X'.
48492
48493 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
48494
48495         * modules/argp-tests: New module
48496         * tests/test-argp.c: New file
48497         * tests/test-argp-2.sh: New file
48498
48499 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
48500
48501         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
48502         (__argp_base_name): Removed
48503         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
48504         typo.
48505         (__argp_base_name): Provide macro definition or extern declaration
48506         depending on the configuration
48507
48508 2006-01-20  Simon Josefsson  <jas@extundo.com>
48509
48510         * modules/inet_ntop (Depends-on): Depend on sys_socket.
48511
48512 2006-01-20  Simon Josefsson  <jas@extundo.com>
48513
48514         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
48515
48516 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
48517
48518         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
48519         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
48520         Suggested by Bruno Haible.
48521
48522 2006-01-20  Karl Berry  <karl@gnu.org>
48523
48524         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
48525         until changes propagate, I guess.
48526
48527 2006-01-19  Simon Josefsson  <jas@extundo.com>
48528
48529         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
48530
48531 2006-01-19  Simon Josefsson  <jas@extundo.com>
48532
48533         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
48534
48535 2006-01-19  Simon Josefsson  <jas@extundo.com>
48536
48537         * gnulib-tool: Set check_PROGRAMS.
48538
48539         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
48540         modules/des-tests, modules/gc-arcfour-tests,
48541         modules/gc-arctwo-tests, modules/gc-des-tests,
48542         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
48543         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
48544         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
48545         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
48546         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
48547         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
48548         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
48549         test_*_SOURCES.
48550
48551 2006-01-18  Simon Josefsson  <jas@extundo.com>
48552
48553         * modules/socklen (Depends-on): Depend on sys_socket.
48554
48555 2006-01-18  Simon Josefsson  <jas@extundo.com>
48556
48557         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
48558         modules/des-tests, modules/gc-arcfour-tests,
48559         modules/gc-arctwo-tests, modules/gc-des-tests,
48560         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
48561         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
48562         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
48563         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
48564         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
48565         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
48566         $(EXEEXT) to automake TESTS variable, for mingw32.
48567
48568 2006-01-17  Simon Josefsson  <jas@extundo.com>
48569
48570         * modules/socklen (Include): Need sys/socket.h.
48571
48572 2006-01-17  Bruno Haible  <bruno@clisp.org>
48573
48574         * modules/ssize_t (Include): Add <sys/types.h>.
48575
48576 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
48577
48578         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
48579         it's not portable and it doesn't work with cross-compiles.
48580         Problem reported by Bruno Haible.  Fix missing-$ typo in
48581         'test "gl_cv_ignore_unused_libraries" ...' that prevented
48582         -zignore from being used with Sun's C compiler.
48583
48584 2006-01-12  Simon Josefsson  <jas@extundo.com>
48585
48586         * lib/base64.c: Fix warning, reported by Bruno Haible
48587         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
48588
48589 2006-01-12  Bruno Haible  <bruno@clisp.org>
48590
48591         * modules/ldd: New file.
48592         * build-aux/ldd.sh.in: New file.
48593         * MODULES.html.sh (Support for building libraries and executables): Add
48594         ldd.
48595
48596 2006-01-12  Bruno Haible  <bruno@clisp.org>
48597
48598         * m4/ldd.m4: New file.
48599
48600 2006-01-12  Bruno Haible  <bruno@clisp.org>
48601
48602         * gnulib-tool (func_import, func_create_testdir): Don't go into an
48603         endless loop while replacing $auxdir with build-aux.
48604
48605 2006-01-11  Simon Josefsson  <jas@extundo.com>
48606
48607         * lib/stdint_.h (SIZE_MAX): Add missing (.
48608
48609 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
48610
48611         Sync from coreutils.
48612         * lib/md5.c: Fix commentary typos.
48613         (alignof, UNALIGNED_P): No need for a GCC-specific version.
48614         * lib/md5.h (__attribute__): Remove; unused.
48615         * lib/sha1.c: Fix commentary to match md5 better.
48616         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
48617         so that we don't need to worry about alignment.  All uses changed.
48618         This merges the 2005-10-28 md5 change into sha1.
48619
48620 2006-01-11  Jim Meyering  <jim@meyering.net>
48621
48622         Sync from coreutils.
48623         * lib/md5.c (OP): Fix spacing.
48624
48625 2006-01-11  Bruno Haible  <bruno@clisp.org>
48626
48627         Ensure automatic ordering between gl_LOCK and gl_ARGP.
48628         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
48629         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
48630
48631 2006-01-11  Bruno Haible  <bruno@clisp.org>
48632
48633         Ensure automatic ordering between gl_LOCK and gl_ARGP.
48634         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
48635         the "early" section as well.
48636
48637 2006-01-11  Bruno Haible  <bruno@clisp.org>
48638
48639         Avoid "ar: no archive members specified" error on MacOS X.
48640         * gnulib-tool (func_modules_add_dummy): New function.
48641         (func_import, func_create_testdir): Invoke it.
48642
48643 2006-01-11  Bruno Haible  <bruno@clisp.org>
48644
48645         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
48646         with $auxdir in AC_CONFIG_FILES statements.
48647
48648 2006-01-11  Bruno Haible  <bruno@clisp.org>
48649
48650         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
48651         Initialize also noinst_HEADERS to empty.
48652
48653 2006-01-11  Bruno Haible  <bruno@clisp.org>
48654
48655         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
48656         variables.
48657         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
48658         autoreconf.
48659
48660 2006-01-11  Bruno Haible  <bruno@clisp.org>
48661
48662         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
48663         overridable by the user.
48664         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48665
48666 2006-01-10  Simon Josefsson  <jas@extundo.com>
48667
48668         * modules/sys_socket: New file.
48669
48670 2006-01-10  Simon Josefsson  <jas@extundo.com>
48671
48672         * m4/sys_socket_h.m4: New file.
48673
48674 2006-01-10  Simon Josefsson  <jas@extundo.com>
48675
48676         * lib/socket_.h: New file.
48677
48678 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
48679
48680         * modules/readutmp (Maintainer): Add myself.
48681
48682 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
48683
48684         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
48685         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
48686         People who are still concerned with buggy memcmp implementations
48687         can invoke gl_FUNC_MEMCMP themselves.
48688
48689 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
48690
48691         * lib/regex_internal.h (BITSET_WORD_BITS):
48692         Work around a bug in 64-bit PGC (before version 6.1-2), where the
48693         preprocessor mishandles large unsigned values as if they were signed.
48694         Problem reported by Claudio Fontana in
48695         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
48696
48697 2006-01-10  Jim Meyering  <jim@meyering.net>
48698
48699         Avoid the double-free (first in fts_read, second in fts_close) that
48700         would occur when an `active' directory is made inaccessible (e.g.,
48701         via chmod a-x) during a traversal.
48702         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
48703         before returning.  Reproduce this failure by
48704         mkdir -p a/b; cd a; chmod a-x . b
48705         Reported by Stavros Passas.
48706
48707         Sync from coreutils.
48708         * lib/sha1.c: Tweak grammar in a comment.
48709
48710 2006-01-10  Jim Meyering  <jim@meyering.net>
48711
48712         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
48713         Patch by Joerg Sonnenberger.
48714
48715 2006-01-10  Bruno Haible  <bruno@clisp.org>
48716
48717         * modules/readutmp: Depend on module free.
48718         * modules/strtok_r: Depend on module restrict.
48719
48720 2006-01-10  Bruno Haible  <bruno@clisp.org>
48721
48722         * modules/gettext (configure.ac): Add an invocation of
48723         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
48724
48725 2006-01-10  Bruno Haible  <bruno@clisp.org>
48726
48727         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
48728         Reported by Werner Lemberg <wl@gnu.org>.
48729
48730 2006-01-10  Bruno Haible  <bruno@clisp.org>
48731
48732         * lib/localcharset.c: Update from GNU gettext.
48733
48734 2006-01-10  Bruno Haible  <bruno@clisp.org>
48735
48736         * lib/argp.h (__const): Remove macro. Use const instead.
48737         * lib/argp-fmtstream.h (__const): Likewise.
48738         * lib/glob_.h (__const): Remove macro.
48739         * lib/glob-libc.h: Use const instead of __const.
48740
48741 2006-01-10  Bruno Haible  <bruno@clisp.org>
48742
48743         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
48744         variable.
48745         Needed to avoid an automake error regarding the 'gettext' module.
48746
48747 2006-01-09  Simon Josefsson  <jas@extundo.com>
48748
48749         * modules/inet_ntop (Depends-on): Add restrict.
48750
48751 2006-01-09  Simon Josefsson  <jas@extundo.com>
48752
48753         * modules/gc-rijndael-tests (License): Put under LGPL.
48754
48755         * modules/gc-des-tests (License): Likewise.
48756
48757         * modules/gc-arcfour-tests (License): Likewise.
48758
48759         * modules/gc-arctwo-tests (License): Likewise.
48760
48761         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
48762
48763         * modules/gc-hmac-sha1-tests (Files): Likewise.
48764
48765         * modules/gc-hmac-md5-tests (License): Likewise.
48766
48767         * modules/gc-sha1-tests (License): Likewise.
48768
48769         * modules/gc-md5-tests (License): Likewise.
48770
48771         * modules/gc-md4-tests (License): Likewise.
48772
48773         * modules/gc-md2-tests (License): Likewise.
48774
48775         * modules/gc-tests (License): Likewise.
48776
48777         * modules/des-tests (License): Likewise.
48778
48779         * modules/md4-tests (License): Likewise.
48780
48781         * modules/md2-tests (License): Likewise.
48782
48783 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
48784
48785         Sync from coreutils:
48786
48787         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
48788         * modules/lib-ignore: New file.
48789         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
48790         chdir-safer.m4, lchmod.m4.
48791         * modules/openat: Add mkdirat.c, openat-priv.h.
48792
48793 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
48794
48795         Sync from coreutils.
48796         * m4/lib-ignore.m4: New file.
48797         * m4/lchmod.m4: New file.
48798
48799 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
48800
48801         Sync from coreutils.
48802         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
48803         for write access: POSIX says that must fail.
48804         * lib/fts.c (diropen): Likewise.
48805         * lib/save-cwd.c (save_cwd): Likewise.
48806         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
48807         well, for minor improvements on hosts that lack O_DIRECTORY.
48808         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
48809         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
48810         Fall back on chown if open failed with EACCES.
48811
48812         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
48813         Report an error at compile-time if only a 1-second nominal clock
48814         resolution is found.
48815
48816         * lib/lchmod.h: New file.
48817         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
48818         (make_dir_parents): Use lchown rather than chown, and
48819         lchmod rather than chmod.
48820
48821         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
48822         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
48823         "proc" reported by n0dalus.
48824
48825         * lib/mountlist.c: Include <limits.h>.
48826         (dev_from_mount_options)
48827         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
48828         New function.  It no longer assumes "dev=" has the System V meaning
48829         on Linux (since it doesn't).  It also parses "dev=" more carefully.
48830         (read_file_system_list)
48831         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
48832         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
48833         dev= in that case.
48834
48835         * lib/posixtm.h (PDS_PRE_2000): New macro.
48836         * lib/posixtm.c (year): Arg is now syntax_bits rather than
48837         allow_century.  All usages changed.  Reject dates outside the range
48838         1969-1999 if PDS_PRE_2000 is used.
48839
48840 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
48841
48842         Sync from coreutils.
48843         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
48844         (Time of day items): Mention the possibility of leap seconds.
48845         Problem reported by Dr. David Alan Gilbert.
48846
48847 2006-01-09  Jim Meyering  <jim@meyering.net>
48848
48849         Sync from coreutils.
48850
48851         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
48852
48853         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
48854
48855         * lib/modechange.c (mode_compile): Reject an invalid mode string
48856         that starts with an octal digit.  From Andreas Gruenbacher.
48857
48858         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
48859         and dup to open_safer and dup_safer, respectively.
48860         (openat_permissive): Fix typo in comment.
48861
48862         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
48863         "gettext.h"; either no longer needed or are guaranteed by openat.h.
48864         (_): Remove; no longer needed.
48865         (openat): Renamed from rpl_openat; no need for rpl_openat
48866         since openat.h renames openat for us.
48867         Replace most of the body with a call to openat_permissive,
48868         to avoid duplicate code.
48869         Port to (probably hypothetical) environments were mode_t is
48870         wider than int.
48871         (openat_permissive): Require mode arg, so that we can check
48872         types better.  Put it just after flags.  Change cwd failure
48873         indicator from pointer-to-bool to pointer-to-errno-value.
48874         All callers changed.
48875         Invoke openat_save_fail and/or openat_restore_fail if
48876         cwd_errno is null, so that openat can call us.
48877         (openat_permissive, fdopendir, fstatat, unlinkat):
48878         Simplify errno handling to avoid some duplicate code,
48879         as it's OK to set errno on success.
48880         * lib/openat.h: Revamp code so that function macros depend on
48881         __OPENAT_PREFIX only, not also on AT_FDCWD.
48882         (openat_ro): Remove.  Caller changed to use openat_permissive.
48883         (openat_permissive): Now a macro, if not a function.
48884         (openat_restore_fail, openat_save_fail): Now always functions,
48885         since mkdirat needs them even if __OPENAT_PREFIX is defined.
48886
48887         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
48888         and openat.c.
48889         * lib/mkdirat.c: Include openat-priv.h.
48890         Remove definitions of macros defined therein.
48891         * lib/openat.c: Likewise.
48892
48893         * lib/mkdirat.c (mkdirat): New file and function.
48894         * lib/openat.h (mkdirat): Declare.
48895
48896         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
48897
48898         * lib/openat.h (openat_permissive): Declare.
48899         (openat_ro): Define.
48900
48901         * lib/openat.c (EXPECTED_ERRNO): New macro.
48902         (openat_permissive): New function -- used in remove.c rewrite.
48903         (all functions): Set errno just before returning, only if there
48904         was an actual failure.
48905         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
48906
48907         Emulate openat-family functions using Linux's procfs, if possible.
48908         Idea and some code based on Ulrich Drepper's glibc changes.
48909
48910         * lib/openat.c: (BUILD_PROC_NAME): New macro.
48911         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
48912         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
48913         before falling back on save_cwd and restore_cwd.
48914         (fdopendir, fstatat, unlinkat): Likewise.
48915
48916         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
48917         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
48918
48919         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
48920         as second argument to va_arg.  Otherwise, some versions of gcc
48921         warn that `if this code is reached, the program will abort'.
48922
48923 2006-01-09  Jim Meyering  <jim@meyering.net>
48924
48925         Sync from coreutils.
48926         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
48927         Require openat-priv.h.
48928
48929 2006-01-09  Bruno Haible  <bruno@clisp.org>
48930
48931         * modules/strnlen (Include): Use strnlen.h.
48932
48933 2006-01-09  Bruno Haible  <bruno@clisp.org>
48934
48935         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
48936
48937 2006-01-09  Bruno Haible  <bruno@clisp.org>
48938
48939         * lib/sysexit_.h (EX_OK): New macro.
48940         Suggested by Martin Lambers <marlam@marlam.de>.
48941
48942 2006-01-09  Bruno Haible  <bruno@clisp.org>
48943
48944         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
48945         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
48946
48947 2006-01-09  Bruno Haible  <bruno@clisp.org>
48948
48949         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
48950         numbers.
48951
48952 2006-01-09  Bruno Haible  <bruno@clisp.org>
48953
48954         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
48955         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
48956         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
48957         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
48958
48959 2006-01-09  Bruno Haible  <bruno@clisp.org>
48960
48961         * build-aux/javacomp.sh.in: New file, moved from lib/.
48962         * modules/javacomp-script (Files): Update.
48963         (configure.ac): Add AC_CONFIG_FILES invocation.
48964         (EXTRA_DIST): Remove variable.
48965
48966         * build-aux/javaexec.sh.in: New file, moved from lib/.
48967         * modules/javaexec (Files): Update.
48968         (configure.ac): Add AC_CONFIG_FILES invocation.
48969         (EXTRA_DIST): Remove javaexec.sh.in.
48970
48971         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
48972         * modules/csharpcomp-script (Files): Update.
48973         (configure.ac): Add AC_CONFIG_FILES invocation.
48974         (EXTRA_DIST): Remove variable.
48975
48976         * build-aux/csharpexec.sh.in: New file, moved from lib/.
48977         * modules/csharpexec (Files): Update.
48978         (configure.ac): Add AC_CONFIG_FILES invocation.
48979         (EXTRA_DIST): Remove csharpexec.sh.in.
48980
48981 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
48982
48983         Sync from coreutils.
48984
48985         Add POSIX ACL support
48986         * lib/acl.h (copy_acl, set_acl): Add declarations.
48987         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
48988         systems other than Linux.
48989         (chmod_or_fchmod): New function: use fchmod when possible,
48990         and chmod otherwise.
48991         (file_has_acl): Add a POSIX ACL implementation, with a
48992         Linux-specific subcase.
48993         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
48994         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
48995         acls are unsupported.
48996         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
48997         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
48998         are unsupported.
48999
49000 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
49001
49002         Sync from coreutils.
49003         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
49004
49005 2006-01-07  Bruno Haible  <bruno@clisp.org>
49006
49007         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
49008         gl_EARLY.
49009
49010 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
49011
49012         * lib/strftime.c (tzname): Don't declare if it is already #defined.
49013         Problem reported for Mingw by Mark Junker.
49014
49015 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
49016
49017         * README: Gnulib normally doesn't generate a tarball.
49018
49019 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
49020
49021         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
49022         long int, not int, for nanosecond counts, so that people who are
49023         used to POSIX struct timespec won't be surprised.  Reported by Jim
49024         Meyering.
49025
49026 2005-12-28  Bruno Haible  <bruno@clisp.org>
49027
49028         * build-aux/config.rpath: Update from GNU gettext.
49029
49030 2005-12-16  Jim Meyering  <jim@meyering.net>
49031
49032         * modules/fprintftime: New module.
49033         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
49034
49035 2005-12-16  Jim Meyering  <jim@meyering.net>
49036
49037         * m4/fprintftime.m4: New file.
49038
49039 2005-12-16  Jim Meyering  <jim@meyering.net>
49040
49041         * lib/fprintftime.c, lib/fprintftime.h: New files.
49042
49043 2005-12-15  Simon Josefsson  <jas@extundo.com>
49044
49045         * modules/socklen (configure.ac): Fix M4 macro name, to align with
49046         new m4/socklen.m4.
49047
49048 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
49049
49050         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
49051         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
49052
49053 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
49054
49055         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
49056         * lib/argp-help.c (fill_in_uparams): Check if the constructed
49057         struct uparams is valid. Fall back to the default values if it is
49058         not.
49059
49060 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
49061
49062         * modules/argp (Files): Add argp-pin.c
49063         (Depends-on): dirname
49064         (lib_SOURCES): Add argp-pin.c
49065
49066 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
49067
49068         * m4/argp.m4:  Check if program_invocation_name and
49069         program_invocation_short_name are declared and define appropriate
49070         macros if they are not.
49071
49072 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
49073
49074         * lib/argp-help.c (__argp_base_name): New function
49075         (__argp_short_program_name): Rewrite using __argp_base_name
49076         * lib/argp-namefrob.h: Define program_invocation_name and
49077         program_invocation_short_name if requested
49078         (__argp_base_name): Add prototype
49079         * lib/argp-parse.c (argp_def): Use gettext wrappers
49080         (argp_default_parser): Use __argp_base_name
49081         * lib/argp-pin.c: New file. Defines program_invocation_name and
49082         program_invocation_short_name on systems that lack them.
49083
49084 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
49085
49086         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
49087         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
49088         porting problem reported by Georg Schwarz in
49089         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
49090
49091 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
49092
49093         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
49094         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
49095         porting problem reported by Georg Schwarz in
49096         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
49097
49098 2005-12-05  Bruno Haible  <bruno@clisp.org>
49099
49100         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
49101         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
49102         Reported by Mark Junker <mjscod@gmx.de>.
49103
49104 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
49105
49106         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
49107         Use implementation from Albert Chin, with some
49108         comments/corrections by Stepan Kasal and myself.
49109
49110 2005-12-02  Bruno Haible  <bruno@clisp.org>
49111
49112         * gnulib-tool (func_import): Accept GPLed build tool modules when
49113         --lgpl is given.
49114         * modules/csharpcomp-script: New file.
49115         * modules/csharpcomp: Depend on it.
49116         * modules/javacomp-script: New file.
49117         * modules/javacomp: Depend on it.
49118         Suggested by Simon Josefsson.
49119
49120 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
49121
49122         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
49123         statement, to work around an HP-UX 10.20 compiler bug reported by
49124         Peter O'Gorman.
49125
49126 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
49127
49128         * modules/savedir (Depends-on): Add openat.
49129
49130 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
49131
49132         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
49133         (uintmax_t) [defined uintmax_t]: Do not declare.
49134         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
49135         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
49136         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
49137         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
49138         sake of portability to weird hosts that C allows (though we don't
49139         know of any practical examples).
49140
49141         * lib/savedir.h (fdsavedir): New decl.
49142         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
49143         contains most of the former guts of savedir.
49144         (savedir): Use savedirstream.
49145         Include "openat.h".
49146
49147 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
49148
49149         * modules/obstack (Files): Add m4/ulonglong.m4.
49150         Problem reported by Davide Angelocola.
49151
49152 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
49153
49154         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
49155         coreutils no longer futzes with rounding modes.
49156
49157 2005-11-14  Jim Meyering  <jim@meyering.net>
49158
49159         * lib/mkstemp-safer.c: Include <config.h>, required for possible
49160         replacement of mkstemp.
49161
49162 2005-11-10  Simon Josefsson  <jas@extundo.com>
49163
49164         * lib/readline.c: Remove EOL.
49165
49166 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
49167
49168         * modules/gethrxtime (Depends-on): Add gettime.
49169
49170 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
49171
49172         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
49173         or gettimeofday; no longer needed.
49174
49175 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
49176
49177         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
49178         time business.
49179         (gethrxtime) [! (HAVE_NANOUPTIME
49180         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
49181         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
49182         our own approximation.
49183
49184 2005-11-08  Eric Blake  <ebb9@byu.net>
49185
49186         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
49187
49188 2005-11-08  Eric Blake  <ebb9@byu.net>
49189
49190         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
49191
49192 2005-11-04  Bruno Haible  <bruno@clisp.org>
49193
49194         * gnulib-tool: Implement --update mode.
49195
49196 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
49197
49198         Fix porting problem reported by Theodoros V. Kalamatianos.
49199         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
49200         Don't assume that futimes failing means we must fail.
49201
49202 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
49203
49204         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
49205         variables to suggest the intended function of the PATH_MAX check.
49206
49207 2005-10-30  Kean Johnston  <jkj@sco.com>
49208
49209         Trivial changes to support SCO systems.
49210         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
49211         as PATH_MAX.
49212         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
49213         where __ptr is null when no I/O is pending.
49214
49215 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
49216
49217         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
49218         leave errno alone.  Problem reported by Dmitry V. Levin.
49219
49220 2005-10-28  Simon Josefsson  <jas@extundo.com>
49221
49222         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
49223         Test more.
49224
49225         * tests/test-gc-md2.c, tests/test-md2.c: New files.
49226
49227         * modules/md2, modules/md2-tests: New files.
49228
49229 2005-10-28  Simon Josefsson  <jas@extundo.com>
49230
49231         * m4/inet_ntop.m4: More tests.
49232
49233         * m4/gc-md2.m4, md2.m4: New file.
49234
49235 2005-10-28  Simon Josefsson  <jas@extundo.com>
49236
49237         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
49238         "restrict" keywords, as per POSIX.  Protect the function
49239         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
49240         Don't use K&R prototypes.  Check the sprintf return values.
49241         Re-define EAFNOSUPPORT if not present.  Indent.
49242
49243         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
49244         suggested by Bruno Haible <bruno@clisp.org>.
49245
49246         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
49247
49248         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
49249
49250         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
49251         libgcrypt).
49252
49253         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
49254
49255         * lib/md2.h, lib/md2.c: New files.
49256
49257 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
49258
49259         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
49260         errno alone.  Problem reported by Frederic Jolliton.
49261
49262 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
49263
49264         * modules/verify (License): Change from GPL to LGPL.  This is a
49265         tiny module and there are apparently near-equivalents that are
49266         under the BSD license.
49267
49268 2005-10-24  Simon Josefsson  <jas@extundo.com>
49269
49270         * modules/sha1: Relicense to LGPL.
49271
49272 2005-10-24  Simon Josefsson  <jas@extundo.com>
49273
49274         * lib/md4.h: Shrink buffer size, now that we changed the type.
49275
49276 2005-10-23  Simon Josefsson  <jas@extundo.com>
49277
49278         * gnulib-tool (func_import): Fix --tests-base.
49279
49280 2005-10-22  Simon Josefsson  <jas@extundo.com>
49281
49282         * modules/arcfour (Depends-on): Need stdint.
49283
49284 2005-10-22  Simon Josefsson  <jas@extundo.com>
49285
49286         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
49287         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
49288
49289 2005-10-22  Simon Josefsson  <jas@extundo.com>
49290
49291         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
49292         suggested by Bruno Haible <bruno@clisp.org>.
49293
49294 2005-10-22  Simon Josefsson  <jas@extundo.com>
49295
49296         * lib/crc.h: Include stddef.h, for size_t.
49297
49298 2005-10-22  Simon Josefsson  <jas@extundo.com>
49299
49300         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
49301         arcfour_context struct (simplify test vector testing in GNU
49302         Shishi).
49303
49304 2005-10-21  Simon Josefsson  <jas@extundo.com>
49305
49306         * modules/des, modules/des-tests: New files.
49307
49308         * modules/gc-des, modules/gc-des-tests: New files.
49309
49310         * tests/test-des.c, tests/test-gc-des.c: New file.
49311
49312 2005-10-21  Simon Josefsson  <jas@extundo.com>
49313
49314         * modules/arctwo, modules/arctwo-tests: New files.
49315
49316         * tests/test-arctwo.c: New file.
49317
49318         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
49319
49320         * tests/test-gc-arctwo.c: New file.
49321
49322 2005-10-21  Simon Josefsson  <jas@extundo.com>
49323
49324         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
49325         Bruno Haible <bruno@clisp.org>.
49326
49327         * m4/gc-des.m4: New file.
49328
49329 2005-10-21  Simon Josefsson  <jas@extundo.com>
49330
49331         * m4/arctwo.m4: New file.
49332
49333         * m4/gc-arctwo.m4: New file.
49334
49335 2005-10-21  Simon Josefsson  <jas@extundo.com>
49336
49337         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
49338         block.
49339
49340 2005-10-21  Simon Josefsson  <jas@extundo.com>
49341
49342         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
49343         <bruno@clisp.org>.
49344
49345         * lib/hmac-sha1.c (hmac_sha1): Likewise.
49346
49347         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
49348         Bruno Haible <bruno@clisp.org>.
49349
49350         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
49351         <bruno@clisp.org>.
49352
49353 2005-10-21  Simon Josefsson  <jas@extundo.com>
49354
49355         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
49356
49357 2005-10-21  Simon Josefsson  <jas@extundo.com>
49358
49359         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
49360
49361 2005-10-21  Simon Josefsson  <jas@extundo.com>
49362
49363         * lib/des.h, lib/des.c: New files.
49364
49365         * lib/gc-gnulib.c: Support DES.c
49366
49367 2005-10-21  Simon Josefsson  <jas@extundo.com>
49368
49369         * lib/arctwo.h, lib/arctwo.c: New files.
49370
49371         * lib/gc-gnulib.c: Support ARCTWO.
49372
49373 2005-10-21  Simon Josefsson  <jas@extundo.com>
49374
49375         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
49376         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49377
49378 2005-10-21  Simon Josefsson  <jas@extundo.com>
49379
49380         * gnulib-tool (func_import, func_create_testdir): Define automake
49381         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
49382         Makefile.am snippet),
49383         suggested by Bruno Haible <bruno@clisp.org>.
49384
49385         * modules/gc (Makefile.am): Use it.
49386
49387 2005-10-21  Bruno Haible  <bruno@clisp.org>
49388
49389         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
49390         patch.
49391
49392 2005-10-19  Simon Josefsson  <jas@extundo.com>
49393
49394         * tests/test-gc-rijndael.c: New file.
49395
49396         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
49397
49398 2005-10-19  Simon Josefsson  <jas@extundo.com>
49399
49400         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
49401         interface too.
49402
49403 2005-10-19  Simon Josefsson  <jas@extundo.com>
49404
49405         * tests/test-gc-arcfour.c: New file.
49406
49407         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
49408
49409 2005-10-19  Simon Josefsson  <jas@extundo.com>
49410
49411         * modules/gc-md4, modules/gc-md4-tests: New file.
49412
49413         * tests/test-gc-md4.c: New file.
49414
49415 2005-10-19  Simon Josefsson  <jas@extundo.com>
49416
49417         * m4/gc-md4.m4: New file.
49418
49419 2005-10-19  Simon Josefsson  <jas@extundo.com>
49420
49421         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
49422         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
49423         <kasal@ucw.cz>.
49424
49425 2005-10-19  Simon Josefsson  <jas@extundo.com>
49426
49427         * m4/gc-arcfour.m4: New file.
49428
49429         * m4/gc-rijndael.m4: New file.
49430
49431 2005-10-19  Simon Josefsson  <jas@extundo.com>
49432
49433         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
49434
49435 2005-10-19  Simon Josefsson  <jas@extundo.com>
49436
49437         * lib/gc-gnulib.c: Support ARCFOUR.
49438
49439 2005-10-19  Simon Josefsson  <jas@extundo.com>
49440
49441         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
49442         support.
49443
49444         * lib/gc.h: Add ECB enum type.
49445
49446         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
49447
49448 2005-10-18  Simon Josefsson  <jas@extundo.com>
49449
49450         * tests/test-md5.c: New file.
49451
49452         * modules/md5-tests: New file.
49453
49454 2005-10-18  Simon Josefsson  <jas@extundo.com>
49455
49456         * tests/test-md4.c: New file.
49457
49458         * modules/md4, modules/md4-tests: New files.
49459
49460 2005-10-18  Simon Josefsson  <jas@extundo.com>
49461
49462         * m4/md4.m4: New file.
49463
49464 2005-10-18  Simon Josefsson  <jas@extundo.com>
49465
49466         * lib/md4.h, lib/md4.c: New files, based on md5.?.
49467
49468 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
49469
49470         * gnulib-tool (func_create_testdir): Omit the second check whether
49471         BUILT_SOURCES in nonempty.
49472
49473 2005-10-17  Simon Josefsson  <jas@extundo.com>
49474
49475         * tests/test-rijndael.c: New file.
49476
49477 2005-10-17  Simon Josefsson  <jas@extundo.com>
49478
49479         * modules/sha1: Depend on stdint instead of md5.
49480
49481         * modules/md5: Depend on stdint, remove uint32_t.
49482
49483 2005-10-17  Simon Josefsson  <jas@extundo.com>
49484
49485         * modules/gc-sha1-tests: New file.
49486
49487         * tests/test-gc-sha1.c: New file.
49488
49489 2005-10-17  Simon Josefsson  <jas@extundo.com>
49490
49491         * m4/md5.m4: Remove call to uint32_t.m4.
49492
49493 2005-10-17  Simon Josefsson  <jas@extundo.com>
49494
49495         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
49496
49497         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
49498         md5.h.
49499
49500         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
49501
49502         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
49503
49504 2005-10-17  Simon Josefsson  <jas@extundo.com>
49505
49506         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
49507
49508 2005-10-17  Simon Josefsson  <jas@extundo.com>
49509
49510         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
49511
49512 2005-10-17  Simon Josefsson  <jas@extundo.com>
49513
49514         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
49515
49516         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
49517
49518 2005-10-17  Bruno Haible  <bruno@clisp.org>
49519
49520         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
49521         that it can also be used in a test.
49522
49523 2005-10-16  Bruno Haible  <bruno@clisp.org>
49524
49525         * gnulib-tool (func_emit_tests_Makefile_am): Also define
49526         TESTS_ENVIRONMENT, so that individual tests can augment it.
49527
49528         * gnulib-tool (func_create_testdir): Use an intermediate target for
49529         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
49530         macros, like $(ALLOCA_H), which cannot be passed through the command
49531         line.
49532
49533 2005-10-15  Simon Josefsson  <jas@extundo.com>
49534
49535         * modules/rijndael-tests: New file.
49536
49537         * modules/rijndael: New file.
49538
49539 2005-10-15  Simon Josefsson  <jas@extundo.com>
49540
49541         * m4/rijndael.m4: New file.
49542
49543 2005-10-15  Simon Josefsson  <jas@extundo.com>
49544
49545         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
49546
49547         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
49548
49549 2005-10-14  Simon Josefsson  <jas@extundo.com>
49550
49551         * tests/test-arcfour.c: New file.
49552
49553         * modules/arcfour, modules/arcfour-tests: New files.
49554
49555 2005-10-14  Simon Josefsson  <jas@extundo.com>
49556
49557         * m4/arcfour.m4: New file.
49558
49559 2005-10-14  Simon Josefsson  <jas@extundo.com>
49560
49561         * lib/arcfour.h, lib/arcfour.c: New files.
49562
49563 2005-10-14  Roland McGrath  <roland@redhat.com>
49564
49565         Import from libc.  [BZ #1331]
49566         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
49567         macro argument.
49568         Reported by Matej Vela <vela@debian.org>.
49569
49570 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
49571
49572         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
49573         include <wchar.h>; no longer needed.
49574
49575 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
49576
49577         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
49578
49579 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
49580         and  Ulrich Drepper  <drepper@redhat.com>
49581
49582         Import from libc.
49583         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
49584         instead of inline stream orientation test and two separate
49585         function calls.  Pay no attention to USE_IN_LIBIO.
49586
49587 2005-10-13  Simon Josefsson  <jas@extundo.com>
49588
49589         * modules/gc-hmac-md5-tests: New file.
49590
49591         * tests/test-gc-hmac-sha1.c: New file.
49592
49593         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
49594
49595         * modules/gc-hmac-md5-tests: New file.
49596
49597         * tests/test-gc-md5.c: New file.
49598
49599         * modules/gc-md5-tests: New file.
49600
49601 2005-10-13  Simon Josefsson  <jas@extundo.com>
49602
49603         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
49604         Move memory allocation outside of loop.
49605
49606 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
49607
49608         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
49609         intermediate directory is in a read-only file system.  Problem
49610         reported by Eric Blake.
49611
49612 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
49613
49614         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
49615
49616 2005-10-12  Simon Josefsson  <jas@extundo.com>
49617
49618         * tests/test-hmac-sha1.c: New file.
49619
49620         * modules/hmac-sha1-tests: New file.
49621
49622         * modules/hmac-sha1: New file.
49623
49624 2005-10-12  Simon Josefsson  <jas@extundo.com>
49625
49626         * modules/gc-sha1: New file.
49627
49628 2005-10-12  Simon Josefsson  <jas@extundo.com>
49629
49630         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
49631
49632         * tests/test-gc-pbkdf2-sha1.c: New file.
49633
49634 2005-10-12  Simon Josefsson  <jas@extundo.com>
49635
49636         * modules/gc-md5, modules/gc-hmac-md5: New files.
49637
49638         * modules/gc (Files): Remove md5, memxor and hmac files.
49639
49640 2005-10-12  Simon Josefsson  <jas@extundo.com>
49641
49642         * m4/gc-pbkdf2-sha1.m4: New file.
49643
49644         * m4/gc-hmac-sha1.m4: New file.
49645
49646         * m4/gc-sha1: New file.
49647
49648         * m4/hmac-sha1.m4: New file.
49649
49650 2005-10-12  Simon Josefsson  <jas@extundo.com>
49651
49652         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
49653
49654         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
49655
49656 2005-10-12  Simon Josefsson  <jas@extundo.com>
49657
49658         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
49659         suggested by Bruno Haible <bruno@clisp.org>.
49660
49661 2005-10-12  Simon Josefsson  <jas@extundo.com>
49662
49663         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
49664
49665 2005-10-12  Simon Josefsson  <jas@extundo.com>
49666
49667         * lib/gc-pbkdf2-sha1.c: New file.
49668
49669         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
49670
49671 2005-10-12  Simon Josefsson  <jas@extundo.com>
49672
49673         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
49674
49675         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
49676
49677 2005-10-12  Simon Josefsson  <jas@extundo.com>
49678
49679         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
49680         GC_USE_HMAC_MD5, respectively.
49681
49682         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
49683         (gc_md5): Fix typo.
49684
49685         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
49686
49687         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
49688
49689         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
49690
49691 2005-10-12  Bruno Haible  <bruno@clisp.org>
49692
49693         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
49694         Reported by Stepan Kasal <kasal@ucw.cz>.
49695
49696 2005-10-11  Simon Josefsson  <jas@extundo.com>
49697
49698         * tests/test-crc.c: New file.
49699
49700         * modules/crc, modules/crc-tests: New files.
49701
49702 2005-10-11  Simon Josefsson  <jas@extundo.com>
49703
49704         * m4/crc.m4: New file.
49705
49706 2005-10-11  Simon Josefsson  <jas@extundo.com>
49707
49708         * lib/gc.h: Add gc_hash and gc_hash_buffer.
49709
49710         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
49711
49712         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
49713
49714 2005-10-11  Simon Josefsson  <jas@extundo.com>
49715
49716         * lib/crc.h, lib/crc.c: New files.
49717
49718         * lib/gc.h (gc_hash_buffer): Add doc.
49719
49720 2005-10-11  Bruno Haible  <bruno@clisp.org>
49721
49722         * modules/c-strcasestr: New file.
49723         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
49724
49725 2005-10-11  Bruno Haible  <bruno@clisp.org>
49726
49727         * modules/c-strcase: New file.
49728         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
49729
49730 2005-10-11  Bruno Haible  <bruno@clisp.org>
49731
49732         * lib/strcasecmp.c: Include limits.h.
49733         (strcasecmp): Avoid integer overflow on exotic platforms.
49734         * lib/strncasecmp.c: Include limits.h.
49735         (strncasecmp): Avoid integer overflow on exotic platforms.
49736         Reported by Paul Eggert.
49737
49738 2005-10-11  Bruno Haible  <bruno@clisp.org>
49739
49740         * lib/c-strcasestr.h: New file, from GNU gettext.
49741         * lib/c-strcasestr.c: New file, from GNU gettext.
49742
49743 2005-10-11  Bruno Haible  <bruno@clisp.org>
49744
49745         * lib/c-strcase.h: New file, from GNU gettext.
49746         * lib/c-strcasecmp.c: New file, from GNU gettext.
49747         * lib/c-strncasecmp.c: New file, from GNU gettext.
49748
49749 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
49750
49751         * modules/mempcpy (License): GPL -> LGPL.
49752         * modules/strchrnul (License): Likewise.
49753         * modules/sysexits (License): Likewise.
49754
49755 2005-10-08  Simon Josefsson  <jas@extundo.com>
49756
49757         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
49758
49759 2005-10-07  Simon Josefsson  <jas@extundo.com>
49760
49761         * m4/memxor.m4: Remove gl_C_RESTRICT call.
49762
49763 2005-10-06  Simon Josefsson  <jas@extundo.com>
49764
49765         * tests/test-hmac-md5.c: New file.
49766
49767         * modules/hmac-md5-tests: New file.
49768
49769         * modules/hmac-md5: New file.
49770
49771 2005-10-06  Simon Josefsson  <jas@extundo.com>
49772
49773         * m4/hmac-md5.m4: New file.
49774
49775         * m4/memxor.m4: Require gl_C_RESTRICT.
49776
49777 2005-10-06  Simon Josefsson  <jas@extundo.com>
49778
49779         * lib/memxor.c (memxor): Avoid casts and warnings.
49780
49781 2005-10-06  Simon Josefsson  <jas@extundo.com>
49782
49783         * lib/hmac-md5.c: New file.
49784
49785         * lib/hmac.h: New file.
49786
49787 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
49788
49789         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
49790         promotes to int, not unsigned int, to catch the AIX 5.3
49791         compiler bug.
49792
49793 2005-10-05  Simon Josefsson  <jas@extundo.com>
49794
49795         * modules/memxor: New file.
49796
49797         * modules/iconv (Files): Move config.rpath to havelib, it is used
49798         there.
49799
49800         * modules/havelib (Files): Add config.rpath.
49801
49802 2005-10-05  Simon Josefsson  <jas@extundo.com>
49803
49804         * m4/memxor.m4: New file.
49805
49806 2005-10-05  Simon Josefsson  <jas@extundo.com>
49807
49808         * lib/memxor.c (memxor): Fix compiler error.
49809
49810         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
49811         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
49812
49813         * lib/memxor.h, lib/memxor.c: New files.
49814
49815         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
49816         we assume all systems have it, suggested by Jim Meyering
49817         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
49818         any systems lack sys/socket.h; mingw32 is known to lack it, but we
49819         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
49820         same reasons.
49821
49822 2005-10-05  Simon Josefsson  <jas@extundo.com>
49823
49824         * config/srclist.txt: Add glibc bug 1423 for md5.h.
49825
49826 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
49827
49828         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
49829         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
49830         needed, since the source code now assumes these .h files.
49831
49832 2005-10-05  Derek Price  <derek@ximbiot.com>
49833
49834         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
49835
49836 2005-10-05  Bruno Haible  <bruno@clisp.org>
49837
49838         * modules/stdint (License): Change to LGPL.
49839
49840 2005-10-04  Simon Josefsson  <jas@extundo.com>
49841
49842         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
49843         D. Baushke" <mdb@gnu.org>.
49844
49845 2005-10-04  Bruno Haible  <bruno@clisp.org>
49846
49847         * lib/verify.h (verify_true): Provide alternative definition for C++.
49848
49849 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
49850
49851         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
49852         (SSIZE_MAX): New macro, if not already defined.
49853         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
49854         than 2 GiB.
49855
49856 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
49857
49858         Sync from coreutils.
49859         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
49860         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
49861         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
49862         ULLONG_MAX doesn't work with 2.7.2.1.
49863
49864 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
49865
49866         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
49867         From Ben Pfaff.
49868
49869         * modules/exclude (Depends-on): Depend on verify.
49870         * modules/strtoimax (Depends-on): Likewise.
49871         * modules/utimecmp (Depends-on): Likewise.
49872
49873 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
49874
49875         * lib/exclude.c: Include verify.h.
49876         (verify): Remove.  All callers changed to use verify.h's version.
49877         * lib/strtoimax.c: Likewise.
49878         * lib/utimecmp.c: Likewis.e
49879
49880         Sync from coreutils.
49881         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
49882         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
49883         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
49884         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
49885         bother returning ENOSYS if settimeofday or stime fails; just let
49886         them return whatever errno they want to return.
49887         * lib/utimens.c: Include unistd.h, for dup2.
49888         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
49889         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
49890
49891 2005-10-02  Jim Meyering  <jim@meyering.net>
49892
49893         Sync from coreutils.
49894         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
49895         from glibc-2.2.5 that fails for read-only files.
49896
49897 2005-10-02  Jim Meyering  <jim@meyering.net>
49898
49899         Sync from coreutils.
49900         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
49901         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
49902         `#if HAVE_CONFIG_H'.
49903         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
49904         Remove AT_FDCWD test.
49905         Do not consume the fd unless successful.
49906         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
49907         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
49908         block, so that we don't even try to compile it if settimeofday is
49909         available.  This works around a compilation failure on OSF1 V5.1,
49910         due to stime requiring a `long int*' while tv_sec is `int'.
49911
49912 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
49913
49914         Sync from coreutils.
49915         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
49916         against `yes', rather than just testing for nonempty.
49917
49918 2005-10-01  Simon Josefsson  <jas@extundo.com>
49919
49920         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
49921         and Darwin.
49922
49923         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
49924         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
49925         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
49926         freeaddrinfo and gai_strerror are declared by the POSIX headers.
49927         Check if struct addrinfo is declared.
49928
49929 2005-10-01  Simon Josefsson  <jas@extundo.com>
49930
49931         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
49932         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
49933         AI_* and EAI_* definitions.  Protect function declarations.
49934
49935 2005-10-01  Jim Meyering  <jim@meyering.net>
49936
49937         Sync from coreutils.
49938
49939         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
49940         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
49941         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
49942         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
49943         in the inet and nsl libraries.  Required on Solaris 5.7.
49944
49945 2005-10-01  Jim Meyering  <jim@meyering.net>
49946
49947         Sync from coreutils.
49948         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
49949         in the inet and nsl libraries.  Required on Solaris 5.7.
49950
49951 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
49952
49953         * lib/getdelim.c (getdelim): Remove unused variables.
49954
49955 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
49956
49957         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
49958         so that the code works even with ancient cpp.  Portability problem
49959         with GCC 2.7.2.1 reported by Thomas M.Ott.
49960
49961 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
49962
49963         * modules/regex (Depends-on): Add strcase.
49964
49965         * modules/gethostname (Licence): Change from GPL to LGPL, since
49966         gethostname.c is a trivial implementation of a standard library
49967         function.
49968         * modules/poll (License): Change from GPL to LGPL, since it's
49969         derived from LGPL code.
49970
49971 2005-09-27  Jim Meyering  <jim@meyering.net>
49972
49973         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
49974         HAVE_CONFIG_H.
49975
49976         * lib/intprops.h (signed_type_or_expr__): Define.
49977         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
49978         for unsigned types.
49979
49980 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
49981
49982         * lib/verify.h (verify_expr): Remove, replacing with:
49983         (verify_true): New macro that returns true instead of void.
49984         (verify_type__): Remove.
49985         (verify): Use verify_true rather than verify_type__.
49986
49987 2005-09-26  Bruno Haible  <bruno@clisp.org>
49988
49989         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
49990         is necessary.
49991         (lib_SOURCES): Remove mbchar.c.
49992         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
49993         (Files): Add m4/mbrtowc.m4.
49994         * modules/mbiter: Likewise.
49995         * modules/mbuiter: Likewise.
49996
49997 2005-09-26  Bruno Haible  <bruno@clisp.org>
49998
49999         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
50000         compile mbchar.c if they are not both present.
50001         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
50002         * m4/mbiter.m4 (gl_MBITER): Likewise.
50003         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
50004         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
50005         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
50006
50007 2005-09-25  Jim Meyering  <jim@meyering.net>
50008
50009         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
50010         also uses socklen_t.
50011
50012 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
50013
50014         * lib/utimens.c (ENOSYS): Define if not already defined.
50015         (futimens): Support having a null PATH if the file descriptor
50016         is nonnegative.
50017
50018         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
50019         Remove.
50020         (__attribute): Define to empty unless GCC 3.1 or later.
50021         This works around a core dump on OpenBSD 3.4, which has GCC
50022         2.95.3, which dumps core when given __attribute__(()).  It also
50023         simplifies other tests, since we really don't want to bother with
50024         worrying about which ancient version of GCC supported what.
50025         Original problem reported by Yoann Vandoorselaere, with part of
50026         the fix suggested by Derek Price.
50027
50028 2005-09-24  Jim Meyering  <jim@meyering.net>
50029
50030         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
50031         so we can once again use a positive bitfield width of 1 -- now we
50032         don't have to explain why we were using a bitfield width of 2.
50033
50034 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
50035
50036         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
50037         and similarly for the other external symbols.  Problem reported
50038         by James Gallager.
50039
50040         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
50041         bug reported by Jim Meyering.
50042
50043         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
50044         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
50045         not needed, since socklen is a prerequisite module.
50046
50047 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
50048
50049         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
50050         Problem reported by Eric Blake.
50051         (getaddrinfo): Initialize se so that it's not garbage.
50052         Redo internal storage allocation so that it doesn't make unportable
50053         assumptions about alignment.
50054         Fix a memory leak.
50055
50056         * lib/utimens.c (futimens): Use futimesat if available.
50057         Prefer it to futimes since it doesn't have the futimes bug.
50058
50059         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
50060         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
50061         Instead, declare a function that returns a pointer to an array,
50062         and use verify_type__ to declare the size of the array.
50063         Problem and germ of a solution reported by Bruno Haible.
50064         (verify_type__): Use 2, not 1, for bitfield size, to avoid
50065         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
50066
50067 2005-09-23  Jim Meyering  <jim@meyering.net>
50068
50069         Sync from coreutils.
50070         Correct build failure (socklen_t not defined) on at least
50071         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
50072         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
50073
50074 2005-09-23  Jim Meyering  <jim@meyering.net>
50075
50076         * modules/getaddrinfo (Depends-on): Add socklen.
50077
50078 2005-09-23  Bruno Haible  <bruno@clisp.org>
50079
50080         * tests/test-verify.c: New file.
50081
50082 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
50083
50084         Sync from coreutils.
50085
50086         * modules/argmatch (Depends-on): Add verify.
50087         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
50088         unistd-safer.
50089         * modules/save-cwd (Depends-on): Likewise.
50090
50091         * modules/openat (Files): Add lib/openat-die.c.
50092         (Depends-on): Remove error, exitfail.
50093         Add dirname.
50094
50095         * modules/verify: New file.
50096         * MODULES.html.sh (Diagnostics <assert.h>): New section,
50097         with "verify" module.
50098
50099 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
50100
50101         Sync from coreutils.
50102
50103         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
50104         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
50105         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
50106         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
50107         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
50108         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
50109         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
50110         Don't bother checking for string.h, stdlib.h, unistd.h.
50111         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
50112         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
50113         module's job.
50114         * m4/jm-macros.m4 (gl_MACROS): Likewise.
50115         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
50116
50117         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
50118         (gl_GETDATE): Use it.
50119
50120         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
50121
50122 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
50123
50124         Sync from coreutils.
50125
50126         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
50127         stat-time.h.
50128         * lib/argmatch.h: Include verify.h
50129         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
50130         (ARGMATCH_ASSERT): Remove; unused.
50131         * lib/canonicalize.c: Assume STDC_HEADERS.
50132         * lib/exclude.c: Include "strcase.h".
50133         * lib/regex_internal.h [!defined _LIBC]: Likewise.
50134         * lib/getusershell.c: Include stdio--.h rather than stdio.h
50135         and stdio-safer.h.
50136         (getusershell): Call fopen, not fopen_safer.
50137         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
50138         Do not include unistd-safer.h.
50139         (save_cwd): Don't call fd_safer; no longer needed
50140         now that we include fcntl--.h.
50141
50142         * lib/getdate.y (relative_time): New type.
50143         (RELATIVE_TIME_0): New constant.
50144         (parser_control): Use relative_time instead of doing it ourselves.
50145         (%union): Add new relative_time rel member.
50146         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
50147         Now typeless.
50148         (relunit, relunit_snumber): Now of type rel.
50149         (zone, rel, relunit, get_date): Adjust to above changes.
50150
50151         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
50152         Do not include unistd-safer.h.
50153         (getloadavg): Don't call fd_safer; no longer needed
50154         now that we include fcntl--.h.
50155
50156         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
50157         (make_dir_parents): Treat ENOSYS like EEXIST.
50158
50159         Improve quality of diagnostics on restore_cwd failure.
50160         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
50161         (make_dir_parents): Last arg is now int * (for errno), not bool *.
50162         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
50163         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
50164         each time through the loop.  Do not diagnose restore_cwd failure;
50165         that is the caller's job (and perhaps the caller does not care).
50166
50167         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
50168         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
50169         If the file already exists but is not a directory, don't bother
50170         to try to make its parents.
50171         Close potential file descriptor leak if we can't chdir("/") (!).
50172         Don't always return true if chdir($PWD) fails; return true only
50173         if the requested action was done successfully (except for the
50174         chdir($PWD)).
50175         Don't log final directory unless we actually made it.
50176         Refactor to avoid duplicate code to fix up permissions.
50177         Don't attempt to fix up parent permissions if chdir($PWD) fails.
50178
50179         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
50180         to make it a bit faster and (I hope) clearer.
50181         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
50182         Fix bug in formats like %2N.
50183
50184         * lib/verify.h: New file.
50185
50186 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
50187
50188         Sync from coreutils.
50189         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
50190
50191 2005-09-22  Jim Meyering  <jim@meyering.net>
50192
50193         Sync from coreutils.
50194
50195         * m4/lstat.m4 (gl_FUNC_LSTAT):
50196         Use AC_LIBSOURCES to require lstat.c and lstat.h.
50197         Remove obsolete comment.
50198         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
50199         * m4/xstrtod.m4: Likewise.
50200
50201         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
50202
50203 2005-09-22  Jim Meyering  <jim@meyering.net>
50204
50205         Sync from coreutils.
50206
50207         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
50208
50209         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
50210         the .tm_year member, since otherwise gcc-4.0 would now warn about
50211         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
50212
50213         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
50214         order to avoid an unsuppressible warning from gcc on 64-bit systems.
50215
50216         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
50217         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
50218         when run in a time zone for which daylight savings time is in effect
50219         for the starting date.
50220
50221         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
50222         stop us from restricting permissions of just-created absolute-named
50223         directories.
50224         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
50225         to restore initial working directory.
50226         * lib/mkdir-p.c (make_dir_parents): New parameter:
50227         different_working_dir, to tell caller if/when we change the working
50228         directory and are unable to return to the initial one.
50229         * lib/mkdir-p.h (make_dir_parents): Update prototype.
50230         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
50231         `return false'.  This fixes a bug introduced on 2004-07-30.
50232
50233         * lib/openat.c (fdopendir): Be sure to close the supplied
50234         file descriptor before returning.  This makes our replacement
50235         implementation a little closer to Solaris's, where fdopendir
50236         ties the file descriptor to the returned DIR* pointer.
50237         * lib/openat.c (unlinkat): New function.
50238         * lib/openat.h (unlinkat): Add prototype.
50239         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
50240         (openat_restore_fail): Rename from openat_restore_die.
50241         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
50242
50243         Provide an alternative to exiting immediately upon save_cwd or
50244         restore_cwd failure.  Now, an application can arrange e.g.,
50245         to perform a longjump in that case.
50246         * lib/openat.c: Include dirname.h.
50247         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
50248         (rpl_openat, fdopendir, fstatat): Call openat_save_die
50249         and openat_restore_die rather than calling error directly.
50250         Don't include "error.h" or "exitfail.h"; they're no longer needed.
50251
50252         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
50253         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
50254         define.
50255
50256         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
50257         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
50258                             int utc, int nanoseconds);
50259         Background:
50260         date should not have to allocate a megabyte of virtual memory to
50261         handle a format argument like +%1048575T.  When implemented with
50262         strftime, it must allocate such a buffer, use strftime to fill it
50263         in, print it, then free it.
50264         With fprintftime, it simply prints everything and exits.
50265         With no need for memory allocation, that's one fewer way to fail.
50266         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
50267         optional field width, not before, so we accept %9:z, not %:9z.
50268         (my_strftime): Be sure to use L_('x') for literals.
50269
50270         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
50271         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
50272         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
50273         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
50274         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
50275         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
50276         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
50277         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
50278         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
50279         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
50280         * lib/xgethostname.c, lib/xreadlink.c:
50281         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
50282
50283         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
50284         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
50285         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
50286         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
50287         and don't include <sys/file.h>).
50288
50289 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
50290
50291         Sync from coreutils.
50292
50293         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
50294         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
50295         [!LDAV_DONE]: Avoid unused variable warning.
50296
50297 2005-09-21  Bruno Haible  <bruno@clisp.org>
50298
50299         * lib/unicodeio.h (unicode_to_mb): New declaration.
50300
50301 2005-09-20  Derek Price  <derek@ximbiot.com>
50302
50303         * lib/getaddrinfo.c: Don't include <netdb.h> included from
50304         getaddrinfo.h.
50305
50306 2005-09-20  Bruno Haible  <bruno@clisp.org>
50307
50308         * gnulib-tool: Remove trailing slashes from the values specified for
50309         --source-base, --m4-base, --tests-base, --aux-dir.
50310         Suggested by Simon Josefsson <jas@extundo.com>.
50311
50312 2005-09-20  Bruno Haible  <bruno@clisp.org>
50313
50314         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
50315         func_modules_to_filelist, func_import, func_create_testdir): Make all
50316         sorting results locale-independent, so that gnulib-cache.m4 doesn't
50317         change when gnulib-tool is invoked in a different locale.
50318
50319 2005-09-19  Simon Josefsson  <jas@extundo.com>
50320
50321         * m4/socklen.m4: Fix typo.
50322
50323 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50324
50325         Use a consistent style for including <config.h>.
50326         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
50327         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
50328         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
50329         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
50330         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
50331         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
50332         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
50333         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
50334         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
50335         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
50336         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
50337         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
50338         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
50339         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
50340         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
50341         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
50342         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
50343         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
50344         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
50345         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
50346         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
50347         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
50348         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
50349         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
50350         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
50351         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
50352         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
50353         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
50354         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
50355         lib/xstrtoumax.c, lib/yesno.c:
50356         Standardize inclusion of config.h.
50357         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
50358         lib/inttostr.h:  Removed inclusion of config.h from header files.
50359         * lib/inttostr.c:  Adjusted in-tree users.
50360         * lib/timespec.h: Remove superfluous warning to include config.h.
50361         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
50362         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
50363         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
50364         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
50365         config.h with HAVE_CONFIG_H.
50366
50367 2005-09-19  Jim Meyering  <jim@meyering.net>
50368
50369         * modules/pathmax (License): Change to LGPL.
50370
50371 2005-09-19  Derek Price  <derek@ximbiot.com>
50372
50373         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
50374
50375 2005-09-19  Bruno Haible  <bruno@clisp.org>
50376
50377         * gnulib-tool (import): Provide default for --tests-base.
50378
50379 2005-09-19  Bruno Haible  <bruno@clisp.org>
50380
50381         * doc/quote.texi: New file, extracted from gnulib.texi.
50382         * doc/ctime.texi: New file, extracted from gnulib.texi.
50383         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
50384         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
50385         * doc/gnulib.texi: Include them.
50386
50387 2005-09-18  Bruno Haible  <bruno@clisp.org>
50388
50389         Portability fix.
50390         * gnulib-tool (func_readlink): New function.
50391         (func_ln_if_changed): Use it.
50392
50393 2005-09-18  Bruno Haible  <bruno@clisp.org>
50394
50395         * gnulib-tool: Support --with-tests also with --import.
50396         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
50397         (func_import): Use variables $testsbase and $inctests. Emit a
50398         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
50399         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
50400         SUBDIRS += $testsdir.
50401         (func_create_testdir): Update.
50402
50403 2005-09-18  Bruno Haible  <bruno@clisp.org>
50404
50405         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
50406         instead of $dry_run.
50407         (func_cp_if_changed, func_mv_if_changed): Remove functions.
50408         (func_ln_if_changed): Don't handle dry-run here.
50409         (func_import): In dry-run mode, detect more precisely which actions
50410         would be performed, and don't use "...ing" verbs.
50411
50412 2005-09-18  Bruno Haible  <bruno@clisp.org>
50413
50414         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
50415         (func_import): Use join on two temporary files instead of three nested
50416         loops, in order to determine which files are new or old.
50417
50418 2005-09-18  Bruno Haible  <bruno@clisp.org>
50419
50420         * gnulib-tool (func_import): Comment out code that spits out the
50421         new files with --dry-run.
50422
50423 2005-09-18  Bruno Haible  <bruno@clisp.org>
50424
50425         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
50426
50427 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
50428
50429         * lib/stat-time.h: New file.
50430         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
50431         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
50432         in a different way.
50433         (timespec_cmp): New function.
50434         * lib/utimecmp.c: Include stat-time.h.
50435         (SYSCALL_RESOLUTION): Depend on whether various struct stat
50436         members exist, not on the obsolescent ST_MTIM_NSEC.
50437         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
50438
50439 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
50440
50441         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
50442
50443 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
50444
50445         * MODULES.html.sh (File system functions): Add stat-time.
50446         * modules/stat-time: New file.
50447         * modules/timespec (Files): Remove m4/st_mtim.m4; this
50448         is now done in a different way, by the stat-time module.
50449         * modules/utimecmp (Depends-on): Add stat-time.
50450
50451 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
50452
50453         * m4/st_mtim.m4: Remove.  Superseded by...
50454         * m4/stat-time.m4: New file.
50455         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
50456         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
50457
50458 2005-09-15  Derek Price  <derek@ximbiot.com>
50459
50460         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
50461
50462 2005-09-15  Derek Price  <derek@ximbiot.com>
50463
50464         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
50465         * lib/regex_internal.c: Ditto, using this...
50466         (__GNUC_PREREQ): ...new macro.
50467         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
50468         using...
50469         (__GNUC_PREREQ): ...this new macro.
50470
50471         * lib/strstr.h: Include string.h. Define strstr as a macro here.
50472
50473 2005-09-15  Derek Price  <derek@ximbiot.com>
50474             Paul Eggert  <eggert@cs.ucla.edu>
50475
50476         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
50477         changes, consolidating in...
50478         * lib/regex_internal.h: ...this file.
50479
50480 2005-09-13  Jim Meyering  <jim@meyering.net>
50481
50482         * lib/canon-host.c: Filter through gnu indent and reword comments
50483         slightly.
50484         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
50485
50486 2005-09-13  Derek Price  <derek@ximbiot.com>
50487
50488         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
50489         failure.
50490         Reported by Jim Meyering  <jim@meyering.net>.
50491
50492 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
50493
50494         * lib/base64.c: Typo.
50495         (base64_encode): Put b64str in initialized data section.
50496
50497 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
50498
50499         Merge glibc and coreutils changes into gnulib, plus a few
50500         extra fixes.
50501         * lib/md5.c: Use #error rather than a string.
50502         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
50503         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
50504         (__attribute__): Define to empty for non recent-GCC.
50505         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
50506         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
50507         Renamed from their non-__ counterparts, with new macros replacing
50508         them if not _LIBC.  Add __THROW attribute.
50509         (rol): Remove.
50510         (struct md5_ctx): Align buffer if using GCC.
50511         * lib/sha1.h (struct sha1_ctx): Likewise.
50512         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
50513         The old name was backwards.
50514         (NOTSWAP): Remove; not used.
50515         (rol): New macro, moved here from md5.h.
50516         (sha1_process_block): Remove a FIXME that doesn't make sense.
50517
50518 2005-09-12  Derek Price  <derek@ximbiot.com>
50519
50520         Return usable errors from canon-host.
50521         * lib/canon-host.h: New file.
50522         * lib/canon-host.c (canon_host): Wrap...
50523         (canon_host_r): ...this new function, which now relies exclusively on
50524         getaddrinfo.
50525         (ch_strerror): New function.
50526         (last_cherror): New global.
50527         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
50528         interface.
50529         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
50530         void *.
50531         (freeaddrinfo): Free ai->ai_canonname when set.
50532
50533 2005-09-12  Derek Price  <derek@ximbiot.com>
50534
50535         Make canon-host require getaddrinfo.
50536         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
50537         AC_LIBSOURCE canon-host.h.  Call...
50538         (gl_PREREQ_CANON_HOST): ...this new function, which requires
50539         gl_GETADDRINFO.
50540         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
50541
50542 2005-09-12  Derek Price  <derek@ximbiot.com>
50543
50544         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
50545         LGPL.
50546         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
50547
50548 2005-09-12  Derek Price  <derek@ximbiot.com>
50549
50550         * lib/gai_strerror.c: Include config.h when available.  Include
50551         getaddrinfo.h before other headers to test interface.
50552         Reported by Larry Jones <lawrence.jones@ugs.com>.
50553
50554 2005-09-12  Derek Price  <derek@ximbiot.com>
50555             Paul Eggert  <eggert@cs.ucla.edu>
50556
50557         * modules/glob (Files): Add glob-libc.h.
50558
50559 2005-09-12  Derek Price  <derek@ximbiot.com>
50560             Paul Eggert  <eggert@cs.ucla.edu>
50561
50562         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
50563         glob_.h, glob-libc.h.
50564         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
50565
50566 2005-09-12  Derek Price  <derek@ximbiot.com>
50567             Paul Eggert  <eggert@cs.ucla.edu>
50568
50569         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
50570         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
50571         protecting things that should be done only in gnulib contexts.
50572         * lib/glob_.h: New file, containing only the glob things needed for
50573         gnulib.
50574         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
50575         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
50576         (glob, globfree, glob_pattern_p): Now defined simply in terms of
50577         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
50578         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
50579         and to respect the namespace rules better.
50580
50581 2005-09-08  Simon Josefsson  <jas@extundo.com>
50582
50583         * modules/socklen: New file.
50584
50585 2005-09-08  Simon Josefsson  <jas@extundo.com>
50586
50587         * m4/socklen.m4: New file.
50588
50589 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
50590
50591         * modules/utimens (Files): Add m4/utimbuf.m4, since
50592         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
50593         Reported by Sergey Poznyakoff.
50594
50595 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
50596
50597         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
50598         definitions, since that's the preferred style in glibc.
50599         Fix a minor spacing issue, and update copyright notice to match
50600         glibc's.
50601
50602 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
50603
50604         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
50605
50606 2005-09-06  Simon Josefsson  <jas@extundo.com>
50607
50608         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
50609         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
50610
50611 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
50612
50613         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
50614         warning.
50615
50616 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
50617
50618         * config/srclist.txt: Add glibc bug 1302.
50619
50620 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
50621
50622         Change bitset word type from unsigned int to unsigned long int,
50623         as this has better performance on typical 64-bit hosts.
50624         Port bitset code to hosts with unusual word sizes.
50625         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
50626         (build_collating_symbol):
50627         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
50628         argument is a bitset.  This is merely a style issue, but it makes
50629         it clearer that an entire array is expected.
50630         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
50631         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
50632         Port to the case where bitset_word is not the same as unsigned int.
50633         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
50634         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
50635         Likewise.
50636         * lib/regexec.c (check_dst_limits_calc_pos_1,
50637         check_subexp_matching_top):
50638         (build_trtable, group_nodes_into_DFAstates):
50639         Likewise.
50640         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
50641         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
50642         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
50643         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
50644         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
50645         * lib/regcomp.c (optimize_subexps, lower_subexp):
50646         Work even if bitset_word has holes in its bitwise representation.
50647         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
50648         * lib/regexec.c (check_dst_limits_calc_pos_1,
50649         check_subexp_matching_top):
50650         Likewise.
50651         * lib/regex_internal.c (re_string_reconstruct):
50652         Don't assume UCHAR_MAX == 255.
50653         * lib/regex_internal.h (bitset_set_all): Likewise.
50654         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
50655         All uses changed.
50656         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
50657         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
50658         All uses changed.
50659         (BITSET_WORD_MAX): New macro.
50660         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
50661         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
50662         (bitset_empty, bitset_copy):
50663         Prefer sizeof (bitset) to multiplying it out ourselves.
50664         (bitset_not_merge): Remove; unused.
50665         (bitset_contain): Return bool, not unsigned int with one bit on.
50666         All callers changed.
50667         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
50668         alignment than re_node_set; do this by defining a new internal
50669         type struct dests_alloc and using it to allocate memory.
50670
50671 2005-09-05  Bruno Haible  <bruno@clisp.org>
50672
50673         * gnulib-tool (func_import): Fix comparison in handling of symbolic
50674         links.
50675
50676 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
50677
50678         * modules/size_max (Makefile.am): Add size_max.h
50679
50680 2005-09-04  Derek Price  <derek@ximbiot.com>
50681
50682         * gnulib-tool (func_import): Fix reversed $symbolic logic.
50683
50684 2005-09-03  Simon Josefsson  <jas@extundo.com>
50685
50686         * gnulib-tool: Fix typo.
50687
50688 2005-09-03  Simon Josefsson  <jas@extundo.com>
50689
50690         * config/srclist.txt: Add glibc bug 1293.
50691
50692 2005-09-03  Derek Price  <derek@ximbiot.com>
50693
50694         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
50695         From Larry Jones <lawrence.jones@ugs.com>.
50696
50697 2005-09-02  Simon Josefsson  <jas@extundo.com>
50698
50699         * modules/socklen: New file.
50700
50701 2005-09-02  Simon Josefsson  <jas@extundo.com>
50702
50703         * modules/havelib: New module.
50704
50705         * modules/gettext, modules/iconv, modules/lock, modules/readline:
50706         Use havelib.
50707
50708 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
50709
50710         Check for arithmetic overflow when calculating sizes, to prevent
50711         some buffer-overflow issues.  These patches are conservative, in the
50712         sense that when I couldn't determine whether an overflow was possible,
50713         I inserted a run-time check.
50714         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
50715         macros.
50716         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
50717         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
50718         (re_xnrealloc, re_x2nrealloc): New inline functions.
50719         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
50720         parse_bracket_exp):
50721         (build_equiv_class, build_charclass): Check for arithmetic overflow
50722         in size expression calculations.
50723         * lib/regex_internal.c (re_string_realloc_buffers):
50724         (build_wcs_upper_buffer, re_node_set_add_intersect):
50725         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
50726         (re_dfa_add_node, register_state): Likewise.
50727         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
50728         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
50729         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
50730         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
50731
50732 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
50733
50734         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
50735         m4/ulonglong.m4.  Problem reported by Martin Lambers.
50736
50737 2005-09-02  Bruno Haible  <bruno@clisp.org>
50738
50739         Support for lib vs. lib64 distinction on biarch platforms.
50740         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
50741         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
50742         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
50743
50744 2005-09-02  Bruno Haible  <bruno@clisp.org>
50745
50746         * gnulib-tool (import): In the other first-use case, provide defaults
50747         as well.
50748
50749 2005-09-02  Bruno Haible  <bruno@clisp.org>
50750
50751         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
50752         patches not yet found in the latest gettext release.
50753
50754 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
50755
50756         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
50757         to avoid a collision with bits/local_lim.h in glibc.
50758         All uses changed.  Problem reported by Dmitry V. Levin in
50759         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
50760
50761         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
50762         bugs in int versus size_t comparisons.
50763         (re_string_context_at): Fix bug where the code assumed that
50764         Idx is signed.
50765
50766         Use bool where appropriate.
50767         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
50768         All callers changed.
50769         (calc_eclosure_iter): Likewise, for ROOT arg.
50770         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
50771         (build_charclass_op): Likewise, for NON_MATCH arg.
50772         * lib/regex_internal.c (re_string_allocate, re_string_construct):
50773         (re_string_construct_common): Likewise, for ICASE arg.
50774         * lib/regexec.c (re_search_2_stub, re_search_stub):
50775         Likewise, for RET_LEN arg.
50776         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
50777         (set_regs): Likewise, for FL_BACKTRACK arg.
50778         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
50779         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
50780         (calc_eclosure_iter, parse_bracket_exp):
50781         Use bool for internal variables that are booleans.
50782         * lib/regexec.c (re_search_internal, check_matching,
50783         proceed_next_node):
50784         (set_regs, build_sifted_states, sift_states_bkref):
50785         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
50786         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
50787         (find_collation_sequence_value):
50788         Likewise.
50789         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
50790         (re_node_set_compare):
50791         Return bool, not int. All callers changed.
50792         * lib/regexec.c (check_halt_node_context, check_dst_limits):
50793         (build_trtable, check_node_accept): Likewise.
50794         * lib/regex_internal.h: Include stdbool.h.
50795
50796         Fix bugs uncovered when converting to bool.
50797         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
50798         failure instead of charging ahead blindly.
50799         * lib/regex_internal.c (register_state): Likewise.
50800         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
50801         for freeing internal storage.
50802         (group_nodes_into_DFA_states): Use unsigned int, not int, for
50803         bitset pieces used as boolean, to avoid undefined behavior
50804         on hosts that do int overflow checking.
50805
50806 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
50807
50808         * config/srclist.txt: Add glibc bugs 1285-1287.
50809
50810 2005-09-01  Jim Meyering  <jim@meyering.net>
50811
50812         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
50813         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
50814         Require gl_STAT_MACROS, too.
50815
50816 2005-09-01  Bruno Haible  <bruno@clisp.org>
50817
50818         * gnulib-tool (import): In the first-use case, provide defaults.
50819
50820 2005-09-01  Bruno Haible  <bruno@clisp.org>
50821
50822         * gnulib-tool (func_import): Remove the .tmp files.
50823
50824 2005-09-01  Bruno Haible  <bruno@clisp.org>
50825
50826         * gnulib-tool (func_import): Fix handling of symbolic links.
50827
50828 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
50829
50830         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
50831         old glibc regex code mishandles strings longer than 2**31 bytes.
50832         This patch fixes this when the regex code is used in gnulib
50833         (i.e., outside glibc).
50834
50835         This patch should not affect the use of the regex code inside
50836         glibc.  No doubt this problem also needs to be handled for glibc
50837         as well, but the result will be an incompatible change to the
50838         glibc ABI, and the old ABI will have to be supported too.  That
50839         can be the the subject for another patch.
50840
50841         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
50842         governing whether the rest of this patch is active.  By default,
50843         the macro is disabled and the patch has no effect.
50844         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
50845         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
50846         (struct re_pattern_buffer, re_search, re_search_2, re_match):
50847         (re_match_2, re_set_registers): Use the new types.
50848         * lib/regex_internal.h (Idx, re_hashval_t): New types.
50849         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
50850         New macros.
50851         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
50852         (re_string_context_at, bin_tree_t, re_dfastate_t):
50853         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
50854         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
50855         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
50856         (re_string_char_size_at, re_string_wchar_at):
50857         (re_string_elem_size_at):
50858         Use the new types and macros to port to 64-bit hosts.
50859         Use unsigned types for internal values, so that the code
50860         mostly works even for arrays larger than SSIZE_MAX.
50861         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
50862         (search_duplicated_node, calc_eclosure_iter, fetch_number):
50863         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
50864         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
50865         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
50866         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
50867         (calc_inveclosure, parse_dup_op, build_range_exp):
50868         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
50869         (fetch_number, create_token_tree, mark_opt_subexp):
50870         Likewise.
50871         * lib/regex_internal.c (re_string_construct_common,
50872         create_ci_newstate):
50873         (create_cd_newstate, re_string_allocate, re_string_construct):
50874         (re_string_realloc_buffers, build_wcs_upper_buffer):
50875         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
50876         (re_string_reconstruct, re_string_peek_byte_case):
50877         (re_string_fetch_byte_case, re_string_context_at):
50878         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
50879         (re_node_set_init_copy, re_node_set_add_intersect):
50880         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
50881         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
50882         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
50883         (re_acquire_state, re_acquire_state_context, register_state):
50884         Likewise.
50885         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
50886         search_cur_bkref_entry):
50887         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
50888         (re_search_internal, re_search_2_stub, re_search_stub)
50889         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
50890         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
50891         (update_cur_sifted_state, check_dst_limits):
50892         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
50893         (check_subexp_limits, sift_states_bkref, merge_state_array):
50894         (check_subexp_matching_top, get_subexp, get_subexp_sub):
50895         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
50896         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
50897         (expand_bkref_cache, check_node_accept_bytes):
50898         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
50899         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
50900         (acquire_init_state_context, check_halt_node_context):
50901         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
50902         (sift_states_backward, clean_state_log_if_needed):
50903         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
50904         (find_recover_state, transit_state_sb, transit_state_mb):
50905         (transit_state_bkref, build_trtable, match_ctx_clean):
50906         Likewise.
50907         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
50908         to work around an assumption that REG_MISSING is negative.
50909
50910         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
50911         (seek_collating_symbol_entry) [defined _LIBC]:
50912         (lookup_collation_sequence_value) [defined _LIBC]:
50913         (build_range_exp, build_collating_symbol) [defined _LIBC]:
50914         Use prototypes rather than old-style function definitions.
50915         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
50916         (transit_state_sb) [0]:
50917         (find_collation_sequence_value) [defined _LIBC]: Likewise.
50918
50919         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
50920         rm_eo.
50921
50922         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
50923         (optimize_subexps, lower_subexp):
50924         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
50925         since the signed shift might overflow.  Use 1u<<31 instead.
50926         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
50927         Likewise.
50928         * lib/regexec.c (check_dst_limits_calc_pos_1,
50929         check_subexp_matching_top): Likewise.
50930
50931         * lib/regcomp.c (optimize_subexps, lower_subexp):
50932         Use CHAR_BIT rather than 8, for clarity.
50933         * lib/regexec.c (check_dst_limits_calc_pos_1):
50934         (check_subexp_matching_top): Likewise.
50935         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
50936         have to worry about portability issues when shifting it left.
50937         Remove no-longer-needed test for table_size > 0.
50938         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
50939         in a word, as the resulting behavior is undefined.
50940         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
50941         in one case, a <= should have been an <, and in another case the
50942         whole test was missing.
50943         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
50944         the standard name CHAR_BIT.
50945         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
50946         this is not true on one's complement and signed-magnitude hosts.
50947
50948         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
50949         next_last_offset.
50950         (struct re_dfa_t): Remove unused member states_alloc.
50951         * lib/regcomp.c (init_dfa): Don't initialize unused members.
50952
50953 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
50954
50955         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
50956         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
50957         and large-file glibc and in 32-bit large-file Solaris.
50958
50959 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
50960
50961         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
50962         lengths fit in regoff_t; this isn't true if regoff_t is the same
50963         width as size_t.
50964         * lib/regex.c (re_search_internal): 5th arg is LAST_START
50965         (= START + RANGE) instead of RANGE.  This avoids overflow
50966         problems when regoff_t is the same width as size_t.
50967         All callers changed.
50968         (re_search_2_stub): Check for overflow when adding the
50969         sizes of the two strings.
50970         (re_search_stub): Check for overflow when adding START
50971         to RANGE; if it occurs, substitute the extreme value.
50972
50973 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
50974
50975         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
50976
50977 2005-08-31  Jim Meyering  <jim@meyering.net>
50978
50979         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
50980         a pointer-to-const.
50981         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
50982         (register_state): Likewise.
50983         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
50984         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
50985         (group_nodes_into_DFAstates): Likewise.
50986
50987 2005-08-31  Jim Meyering  <jim@meyering.net>
50988
50989         * check-module: Add a FIXME comment.
50990
50991 2005-08-31  Eric Blake  <ebb9@byu.net>
50992
50993         * modules/unistd-safer (Files): Add unistd--.h.
50994         * modules/stdio-safer (Files): Add stdio--.h.
50995
50996 2005-08-31  Derek Price  <derek@ximbiot.com>
50997
50998         * lib/getdelim.c (getdelim): Return EOF on EOF.
50999         Reported by Larry Jones <lawrence.jones@ugs.com>.
51000
51001 2005-08-31  Bruno Haible  <bruno@clisp.org>
51002
51003         Avoid unnecessary diffs in the generated lib/Makefile.am.
51004         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
51005         the generated files.
51006         (func_import): Don't set cmd.
51007
51008 2005-08-31  Bruno Haible  <bruno@clisp.org>
51009
51010         * lib/strstr.c: Include <stddef.h>, for NULL.
51011         * lib/strcasestr.c: Likewise.
51012         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
51013
51014 2005-08-31  Bruno Haible  <bruno@clisp.org>
51015
51016         * gnulib-tool: New option --macro-prefix.
51017         (func_import): Use macro_prefix.
51018         (import): Handle option --macro-prefix.
51019
51020 2005-08-31  Bruno Haible  <bruno@clisp.org>
51021
51022         * gnulib-tool (import): Rename most ac_* variables to cached_*.
51023         Also use new variables cached_lgpl, cached_libtool.
51024
51025 2005-08-31  Bruno Haible  <bruno@clisp.org>
51026
51027         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
51028         always instantiating them.
51029
51030 2005-08-31  Bruno Haible  <bruno@clisp.org>
51031
51032         * gnulib-tool (func_import): Read the previous cached settings
51033         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
51034         earlier added by gnulib but are now dropped. Warn when a gnulib file
51035         overwrites a non-gnulib file.
51036
51037 2005-08-31  Bruno Haible  <bruno@clisp.org>
51038
51039         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
51040         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
51041         projects that don't keep autogenerated files in CVS. Put into
51042         actioncmd only the specified modules, not the transitive closure.
51043
51044 2005-08-31  Bruno Haible  <bruno@clisp.org>
51045
51046         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
51047         Create directories that shall be filled.
51048         (import): Don't look for gl_* macros in configure.ac. Recurse across
51049         all directories containing a gnulib-cache.m4 files, if meaningful.
51050
51051 2005-08-31  Bruno Haible  <bruno@clisp.org>
51052
51053         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
51054         (import): Set seen_libtool when we see gl_LIBTOOL.
51055
51056 2005-08-31  Bruno Haible  <bruno@clisp.org>
51057
51058         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
51059         declaration macro definitions from generated gnulib.m4.
51060
51061 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
51062
51063         * lib/iconvme.h: Add prototype for iconv_alloc.
51064
51065 2005-08-29  Simon Josefsson  <jas@extundo.com>
51066
51067         * lib/iconvme.c: Fix errno.
51068
51069 2005-08-29  Bruno Haible  <bruno@clisp.org>
51070
51071         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
51072         that it works when the directory contains spaces.
51073
51074 2005-08-29  Bruno Haible  <bruno@clisp.org>
51075
51076         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
51077
51078 2005-08-29  Bruno Haible  <bruno@clisp.org>
51079
51080         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
51081         Emit more advice.
51082
51083 2005-08-29  Bruno Haible  <bruno@clisp.org>
51084         and Stepan Kasal  <kasal@ucw.cz>
51085
51086         * check-module: If more parameters are given, check each of them
51087         separately; add more exceptions, as noted by Jim Meyering.
51088         (check_module): New procedure.
51089         (%exempt_header): Now contains all exceptions.
51090
51091 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
51092
51093         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
51094
51095 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
51096
51097         * lib/iconvme.c: Split iconv_string into iconv_alloc.
51098
51099 2005-08-28  Bruno Haible  <bruno@clisp.org>
51100
51101         * m4/gnulib-tool.m4: New file.
51102
51103 2005-08-27  Jim Meyering  <jim@meyering.net>
51104
51105         * modules/unistd-safer (Files): Add pipe-safer.c.
51106         * modules/fcntl-safer (Files): Add creat-safer.c.
51107
51108 2005-08-27  Jim Meyering  <jim@meyering.net>
51109
51110         * m4/stdlib-safer.m4: New file.  From coreutils.
51111         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
51112         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
51113         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
51114         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
51115         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
51116
51117 2005-08-27  Jim Meyering  <jim@meyering.net>
51118
51119         * lib/fopen-safer.c: Merge minor changes from coreutils.
51120         * lib/dup-safer.c: Likewise.
51121         * lib/fd-safer.c: Likewise.
51122
51123         Merge from coreutils.
51124         * lib/stdio--.h: New file.
51125         * lib/stdlib--.h: New file.
51126         * lib/mkstemp-safer.c: New file.
51127
51128         GNU tar needs these.
51129         * lib/pipe-safer.c: New file.
51130         * lib/creat-safer.c: New file.
51131         * lib/fcntl--.h (creat): Define to creat_safer.
51132         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
51133         * lib/unistd--.h (pipe): Define to pipe_safer.
51134         * lib/unistd-safer.h: Declare pipe_safer.
51135
51136 2005-08-26  Simon Josefsson  <jas@extundo.com>
51137
51138         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
51139         Haible <bruno@clisp.org>.
51140
51141 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
51142
51143         * lib/regex_internal.h: Remove all references to
51144         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
51145         or better.
51146         (bitset_not, bitset_merge, bitset_not_merge):
51147         (bitset_mask, re_string_allocate, re_string_construct):
51148         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
51149         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
51150         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
51151         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
51152         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
51153         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
51154         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
51155         (re_acquire_state_context):
51156         Remove unnecessary forward decls.
51157         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
51158         Put __attribute at function definition,
51159         now that the function decl has been removed.
51160         * lib/regex_internal.c (re_string_peek_byte_case):
51161         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
51162         Likewise.
51163
51164 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
51165
51166         * m4/regex.m4: Add AC_PREREQ(2.50).
51167         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
51168
51169 2005-08-25  Simon Josefsson  <jas@extundo.com>
51170
51171         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
51172         __fsetlocking.
51173
51174 2005-08-25  Simon Josefsson  <jas@extundo.com>
51175
51176         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
51177         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
51178         GLIBC specific code.
51179
51180 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
51181
51182         Make regex safe for g++.  This fixes one real bug (an "err"
51183         that should have been "*err").  g++ problem reported by
51184         Sam Steingold.
51185         * lib/regex_internal.h (re_calloc): New macro, consistent with
51186         re_malloc etc.  All callers of calloc changed to use re_calloc.
51187         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
51188         not int.  All callers changed.
51189         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
51190         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
51191         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
51192         (find_recover_state): Change "err" to "*err"; this fixes what
51193         appears to be a real bug.
51194         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
51195         versus int.
51196
51197 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
51198
51199         * modules/regex (Depends-on): Add malloc, since the code
51200         assumes that !malloc(0) means failure.
51201
51202 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
51203
51204         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
51205
51206         alloca modernization/simplification for regex.
51207         * lib/regex.c: Remove portability cruft for alloca.  This no longer
51208         needs to be at the start of the file, and can be moved into
51209         regex_internal.h and simplified.
51210         * lib/regex_internal.h: Include <alloca.h>.
51211         (__libc_use_alloca) [!defined _LIBC]: New macro.
51212         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
51213         now works outside glibc.
51214
51215 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
51216
51217         * config/srclist.txt: Add glibc bugs 1241, 1245.
51218
51219 2005-08-25  Jim Meyering  <jim@meyering.net>
51220
51221         * lib/open-safer.c: Include <config.h>.
51222         Otherwise, we'd lose LARGEFILE support in any file using
51223         e.g. "fcntl--.h"
51224
51225 2005-08-25  Bruno Haible  <bruno@clisp.org>
51226
51227         * m4/minmax.m4: Require autoconf 2.52.
51228         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
51229         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
51230         alternatives of translit over the alphabet.
51231         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
51232
51233 2005-08-24  Simon Josefsson  <jas@extundo.com>
51234
51235         * tests/test-getpass.c: New file.
51236
51237 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
51238
51239         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
51240         for GNU regex features.
51241
51242 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
51243
51244         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
51245         * lib/regex.h (regerror): Likewise.
51246
51247         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
51248         requires this.  (The code never needed it.)
51249
51250         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
51251         All uses of recently-renamed identifiers changed to use the new,
51252         POSIX-compliant names.  The code will build and run just fine
51253         without these changes, but it's better to eat our own dog food
51254         and use the standard-conforming names.
51255
51256         * lib/regex.h: Fix a multitude of POSIX name space violations.
51257         These changes have an effect only for programs that define
51258         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
51259         do not change anything for programs compiled in the normal way.
51260         Also, there is no effect on the ABI.
51261
51262         (_REGEX_SOURCE): New macro.
51263         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
51264         defined and _GNU_SOURCE is not; this fixes a name space violation.
51265
51266         Rename the following macros to obey POSIX requirements.
51267         The old names are still visible as macros if _REGEX_SOURCE is defined.
51268         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
51269         RE_BACKSLASH_ESCAPE_IN_LISTS.
51270         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
51271         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
51272         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
51273         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
51274         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
51275         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
51276         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
51277         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
51278         (REG_INTERVALS): renamed from RE_INTERVALS.
51279         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
51280         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
51281         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
51282         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
51283         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
51284         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
51285         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
51286         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
51287         RE_UNMATCHED_RIGHT_PAREN_ORD.
51288         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
51289         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
51290         (REG_DEBUG): renamed from RE_DEBUG.
51291         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
51292         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
51293         unusual, since we can't clash with the POSIX REG_ICASE.
51294         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
51295         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
51296         (REG_NO_SUB): renamed from RE_NO_SUB.
51297         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
51298         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
51299         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
51300         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
51301         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
51302         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
51303         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
51304         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
51305         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
51306         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
51307         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
51308         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
51309         RE_SYNTAX_POSIX_MINIMAL_BASIC.
51310         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
51311         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
51312         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
51313         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
51314         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
51315         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
51316         (REG_FIXED): Renamed from REGS_FIXED.
51317         (REG_NREGS): Renamed from RE_NREGS.
51318
51319         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
51320         of other REG_* macros, since POSIX says the user is allowed to
51321         #undef these macros selectively.
51322
51323         (reg_errcode_t): Update comment stating what other tables need
51324         to be consistent.
51325
51326         Rename the following enum values to obey POSIX requirements.
51327         The old names are still visible as macros.
51328         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
51329         is not defined, since GNU is supposed to be a superset of POSIX as
51330         much as possible, and since we want reg_errcode_t to be a signed
51331         type for implementation consistency.
51332         (_REG_NOERROR): Renamed from REG_NOERROR.
51333         (_REG_NOMATCH): Renamed from REG_NOMATCH.
51334         (_REG_BADPAT): Renamed from REG_BADPAT.
51335         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
51336         (_REG_ECTYPE): Renamed from REG_ECTYPE.
51337         (_REG_EESCAPE): Renamed from REG_EESCAPE.
51338         (_REG_ESUBREG): Renamed from REG_ESUBREG.
51339         (_REG_EBRACK): Renamed from REG_EBRACK.
51340         (_REG_EPAREN): Renamed from REG_EPAREN.
51341         (_REG_EBRACE): Renamed from REG_EBRACE.
51342         (_REG_BADBR): Renamed from REG_BADBR.
51343         (_REG_ERANGE): Renamed from REG_ERANGE.
51344         (_REG_ESPACE): Renamed from REG_ESPACE.
51345         (_REG_BADRPT): Renamed from REG_BADRPT.
51346         (_REG_EEND): Renamed from REG_EEND.
51347         (_REG_ESIZE): Renamed from REG_ESIZE.
51348         (_REG_ERPAREN): Renamed from REG_ERPAREN.
51349         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
51350         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
51351         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
51352         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
51353
51354         (_REG_RE_NAME, _REG_RM_NAME): New macros.
51355         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
51356         changed.  But support the old name if the new one is not defined
51357         and if _REGEX_SOURCE.
51358
51359         Change the following member names in struct re_pattern_buffer.
51360         The old names are still supported if !_REGEX_SOURCE.
51361         The new names are always supported, regardless of _REGEX_SOURCE.
51362         (re_buffer): Renamed from buffer.
51363         (re_allocated): Renamed from allocated.
51364         (re_used): Renamed from used.
51365         (re_syntax): Renamed from syntax.
51366         (re_fastmap): Renamed from fastmap.
51367         (re_translate): Renamed from translate.
51368         (re_can_be_null): Renamed from can_be_null.
51369         (re_regs_allocated): Renamed from regs_allocated.
51370         (re_fastmap_accurate): Renamed from fastmap_accurate.
51371         (re_no_sub): Renamed from no_sub.
51372         (re_not_bol): Renamed from not_bol.
51373         (re_not_eol): Renamed from not_eol.
51374         (re_newline_anchor): Renamed from newline_anchor.
51375
51376         Change the following member names in struct re_registers.
51377         The old names are still supported if !_REGEX_SOURCE.
51378         The new names are always supported, regardless of _REGEX_SOURCE.
51379         (rm_num_regs): Renamed from num_regs.
51380         (rm_start): Renamed from start.
51381         (rm_end): Renamed from end.
51382
51383         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
51384         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
51385         Prepend __ to parameter names.
51386
51387         Undo yesterday's changes.
51388
51389 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
51390
51391         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
51392         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
51393         lib/regex.c.
51394
51395 2005-08-24  Jim Meyering  <jim@meyering.net>
51396
51397         Sync from coreutils.
51398         * m4/fcntl-safer.m4: New file.
51399
51400         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
51401         and object files for this module.
51402
51403 2005-08-24  Jim Meyering  <jim@meyering.net>
51404
51405         Sync from coreutils.
51406         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
51407
51408 2005-08-24  Jim Meyering  <jim@meyering.net>
51409
51410         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
51411         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
51412
51413 2005-08-24  Jim Meyering  <jim@meyering.net>
51414
51415         * modules/fcntl-safer: New module.
51416         * modules/fts (Depends-on): Add fcntl-safer.
51417         * MODULES.html.sh (File descriptor based Input/Output):
51418         Add fcntl-safer.
51419
51420 2005-08-24  Bruno Haible  <bruno@clisp.org>
51421
51422         Support for unit test modules.
51423         * modules/README: Mention tests modules.
51424         * modules/TEMPLATE-TESTS: New file.
51425         * gnulib-tool: New options --extract-tests-module, --with-tests and
51426         --tests-base (unused for the moment).
51427         (testsbase, inctests): New variables.
51428         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
51429         (func_verify_module): Exclude TEMPLATE-TESTS.
51430         (func_verify_nontests_module, func_verify_tests_module): New functions.
51431         (func_get_dependencies): Add implicit dependency for tests modules.
51432         (func_get_tests_module): New function.
51433         (func_modules_transitive_closure): When --with-tests was specified,
51434         include the unit tests as well, unless explicitly avoided.
51435         (func_emit_lib_Makefile_am): Ignore the tests modules here.
51436         (func_emit_tests_Makefile_am): New function.
51437         (func_create_testdir): When --with-tests was specified, emit a
51438         tests/ directory.
51439         * MODULES.html.sh (Future developments): Update.
51440
51441 2005-08-24  Bruno Haible  <bruno@clisp.org>
51442
51443         * modules/tls-tests: New file.
51444         * tests/test-tls.c: New file, from GNU gettext.
51445
51446 2005-08-24  Bruno Haible  <bruno@clisp.org>
51447
51448         * modules/lock-tests: New file.
51449         * tests/test-lock.c: New file, from GNU gettext.
51450
51451 2005-08-24  Bruno Haible  <bruno@clisp.org>
51452
51453         * lib/lock.h: Add multiple inclusion guard.
51454         * lib/tls.h: Add multiple inclusion guard.
51455
51456 2005-08-24  Bruno Haible  <bruno@clisp.org>
51457
51458         * gnulib-tool: Add support for the --aux-dir option to
51459         --create-testdir, --create-megatestdir, --test, --megatest.
51460         (func_create_testdir, func_create_megatestdir): Optionally emit a
51461         AC_CONFIG_AUX_DIR directive.
51462         (create-testdir, create-megatestdir, test, megatest): Provide a
51463         default value for $auxdir.
51464
51465 2005-08-24  Bruno Haible  <bruno@clisp.org>
51466
51467         * gnulib-tool (import): Use compound statement instead of subshell
51468         where possible.
51469
51470 2005-08-24  Bruno Haible  <bruno@clisp.org>
51471
51472         * gnulib-tool (import): Change --aux-dir default to "build-aux".
51473
51474 2005-08-24  Bruno Haible  <bruno@clisp.org>
51475
51476         * gnulib-tool (func_version): Update.
51477
51478 2005-08-24  Bruno Haible  <bruno@clisp.org>
51479
51480         * gnulib-tool (func_import, func_create_testdir,
51481         func_create_megatestdir): Quote all autoconf macro arguments.
51482
51483 2005-08-24  Bruno Haible  <bruno@clisp.org>
51484
51485         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
51486         option --force, because --force causes the aclocal.m4 of each
51487         subdirectory to be newer than the corresponding config.h.in.
51488
51489 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
51490
51491         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
51492         All contents moved to gl_REGEX.
51493         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
51494         assume that it does.
51495
51496 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
51497
51498         * lib/regex.h (REG_NOSYS)
51499         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
51500         Define, since POSIX requires it as of 2001.
51501         (_REG_ENOSYS)
51502         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
51503         New private symbol, used to keep the enum signed in all cases.
51504         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
51505         Youngman in
51506         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
51507
51508         * lib/regex_internal.c (re_string_skip_chars, register_state):
51509         (calc_state_hash):
51510         Remove forward decls; no longer needed now that we use prototypes.
51511         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
51512         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
51513         (clean_state_log_if_needed): Likewise.
51514
51515 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
51516
51517         * config/srclist.txt: Add glibc bugs 1231-1233.
51518
51519 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
51520
51521         Fix problems reported by Sam Steingold in
51522         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
51523         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
51524         assumed that reg_errcode_t is a signed type, which is not
51525         necessarily true if _XOPEN_SOURCE is not defined.
51526         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
51527         since some compilers warn about it otherwise.
51528
51529 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
51530
51531         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
51532         (init_word_char, create_initial_state, duplicate_node_closure):
51533         (fetch_token, peek_token_bracket, build_range_exp):
51534         (build_collating_symbol): Remove forward decls; no longer needed
51535         now that we use prototypes.
51536
51537         * lib/regcomp.c:
51538         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
51539         (re_compile_fastmap_iter, regcomp, regerror, regfree):
51540         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
51541         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
51542         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
51543         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
51544         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
51545         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
51546         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
51547         (build_range_exp, build_collating_symbol, parse_bracket_exp):
51548         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
51549         (build_charclass, build_charclass_op, fetch_number, create_tree):
51550         (create_token_tree, mark_opt_subexp, duplicate_tree):
51551         Use prototypes rather than old-style definitions.
51552
51553         * lib/regex_internal.c:
51554         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
51555         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
51556         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
51557         (re_string_reconstruct, re_string_peek_byte_case):
51558         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
51559         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
51560         (re_node_set_init_copy, re_node_set_add_intersect):
51561         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
51562         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
51563         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
51564         (re_acquire_state, re_acquire_state_context, register_state):
51565         (create_ci_newstate, create_cd_newstate, free_state):
51566         Likewise.
51567         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
51568         re_search_2):
51569         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
51570         (re_search_internal, prune_impossible_nodes):
51571         (acquire_init_state_context, check_matching, static):
51572         (check_halt_node_context, check_halt_state_context, proceed_next_node):
51573         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
51574         (update_regs, sift_states_backward, build_sifted_states):
51575         (clean_state_log_if_needed, merge_state_array):
51576         (update_cur_sifted_state, add_epsilon_src_nodes):
51577         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
51578         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
51579         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
51580         (find_recover_state, check_subexp_matching_top, transit_state_mb):
51581         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
51582         (check_arrival, check_arrival_add_next_nodes):
51583         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
51584         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
51585         (check_node_accept_bytes, check_node_accept, extend_buffers):
51586         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
51587         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
51588         (sift_ctx_init):
51589         Likewise.
51590
51591         * lib/regex_internal.h:
51592         (re_string_allocate, re_string_construct, re_string_reconstruct):
51593         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
51594         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
51595         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
51596         (re_string_context_at, re_string_peek_byte_case):
51597         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
51598         is defined, since we now use prototypes always.
51599
51600         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
51601         C89 or better.  All uses removed.
51602
51603 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
51604
51605         * config/srclist.txt: Add glibc bugs 1220-1227.
51606
51607 2005-08-20  Jim Meyering  <jim@meyering.net>
51608
51609         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
51610         of unused local, dfa.
51611
51612 2005-08-20  Bruno Haible  <bruno@clisp.org>
51613
51614         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
51615
51616 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
51617
51618         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
51619         (re_node_set_insert_last, re_dfa_add_node):
51620         Rename local variables to avoid GCC shadowing warnings.
51621
51622 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
51623
51624         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
51625         [defined lint]: Suppress bogus uninitialized-variable warnings.
51626
51627         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
51628         and let the caller return REG_ESPACE if out of space.  This
51629         removes an uninitialied-variable warning with GCC 4.0.1, and also
51630         avoids taking the address of a local variable.  All callers
51631         changed.
51632
51633 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
51634
51635         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
51636         $LIBCSRC/posix/regexec.c.
51637         Add glibc bug 1217 for regcomp.c.
51638
51639 2005-08-19  Jim Meyering  <jim@meyering.net>
51640
51641         * lib/regexec.c (proceed_next_node): Redo local variables to
51642         avoid GCC shadowing warnings.
51643
51644 2005-08-18  Bruno Haible  <bruno@clisp.org>
51645
51646         * lib/strstr.c (strstr): Fix return value in multibyte case.
51647         * lib/strcasestr.c (strcasestr): Likewise.
51648
51649 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
51650
51651         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
51652
51653 2005-08-17  Jim Meyering  <jim@meyering.net>
51654
51655         Make the %s format (seconds since the epoch) work for a negative
51656         number and when used with a zero-padded field width, e.g. %015s.
51657
51658         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
51659         label so that it precedes the code to set `digits'.  Otherwise,
51660         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
51661         print `00-22'.  Now, it prints `-0022', as it should.
51662
51663 2005-08-17  Bruno Haible  <bruno@clisp.org>
51664
51665         * modules/strstr (Files): Add m4/mbrtowc.m4.
51666         (Depends-on): Add mbuiter.
51667
51668 2005-08-17  Bruno Haible  <bruno@clisp.org>
51669
51670         * modules/strcasestr: New file.
51671         * MODULES.html.sh (String handling, based on ANSI C 89): Add
51672         strcasestr.
51673
51674 2005-08-17  Bruno Haible  <bruno@clisp.org>
51675
51676         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
51677
51678 2005-08-17  Bruno Haible  <bruno@clisp.org>
51679
51680         * modules/mbuiter: New file.
51681         * MODULES.html.sh (Extended multibyte and wide character utilities):
51682         Add mbuiter.
51683
51684 2005-08-17  Bruno Haible  <bruno@clisp.org>
51685
51686         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
51687         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
51688
51689 2005-08-17  Bruno Haible  <bruno@clisp.org>
51690
51691         * m4/strcasestr.m4: New file.
51692
51693 2005-08-17  Bruno Haible  <bruno@clisp.org>
51694
51695         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
51696         * lib/strstr.c: Completely rewritten, with multibyte locale support.
51697
51698 2005-08-17  Bruno Haible  <bruno@clisp.org>
51699
51700         * lib/strcasestr.h: New file.
51701         * lib/strcasestr.c: New file.
51702
51703 2005-08-17  Bruno Haible  <bruno@clisp.org>
51704
51705         * lib/strcasecmp.c: Use mbuiter.h.
51706
51707 2005-08-17  Bruno Haible  <bruno@clisp.org>
51708
51709         * lib/mbuiter.h: New file.
51710
51711 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
51712
51713         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
51714         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
51715         and gl_GETOPT are both invoked via different paths (as happens
51716         with GNU tar CVS because it uses both argp and getopt), the former
51717         wins.
51718
51719 2005-08-16  Bruno Haible  <bruno@clisp.org>
51720
51721         * modules/tls: New file.
51722         * MODULES.html.sh (Multithreading): Add tls.
51723
51724 2005-08-16  Bruno Haible  <bruno@clisp.org>
51725
51726         * modules/strnlen1: New file.
51727         * MODULES.html.sh (String handling): Add strnlen1.
51728
51729 2005-08-16  Bruno Haible  <bruno@clisp.org>
51730
51731         * modules/strcase (Files): Add m4/mbrtowc.m4.
51732         (Depends-on): Add strnlen1, mbchar.
51733
51734 2005-08-16  Bruno Haible  <bruno@clisp.org>
51735
51736         * modules/mbiter: New file.
51737         * MODULES.html.sh (Extended multibyte and wide character utilities):
51738         Add mbiter.
51739
51740 2005-08-16  Bruno Haible  <bruno@clisp.org>
51741
51742         * modules/mbfile: New file.
51743         * MODULES.html.sh (Extended multibyte and wide character utilities):
51744         Add mbfile.
51745
51746 2005-08-16  Bruno Haible  <bruno@clisp.org>
51747
51748         * modules/mbchar: New file.
51749         * MODULES.html.sh (Extended multibyte and wide character utilities):
51750         New section.
51751
51752 2005-08-16  Bruno Haible  <bruno@clisp.org>
51753
51754         * m4/tls.m4: New file, from GNU gettext.
51755
51756 2005-08-16  Bruno Haible  <bruno@clisp.org>
51757
51758         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
51759         always.
51760         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
51761
51762 2005-08-16  Bruno Haible  <bruno@clisp.org>
51763
51764         * m4/mbiter.m4: New file.
51765
51766 2005-08-16  Bruno Haible  <bruno@clisp.org>
51767
51768         * m4/mbfile.m4: New file.
51769
51770 2005-08-16  Bruno Haible  <bruno@clisp.org>
51771
51772         * m4/mbchar.m4: New file.
51773
51774 2005-08-16  Bruno Haible  <bruno@clisp.org>
51775
51776         * lib/tls.h: New file, from GNU gettext.
51777         * lib/tls.c: New file, from GNU gettext.
51778
51779 2005-08-16  Bruno Haible  <bruno@clisp.org>
51780
51781         * lib/strnlen1.h: New file.
51782         * lib/strnlen1.c: New file.
51783
51784 2005-08-16  Bruno Haible  <bruno@clisp.org>
51785
51786         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
51787         (mbi_init): Update.
51788         (mbi_avail, mbi_advance): Let the iteration end before the terminating
51789         NUL byte, not after it.
51790
51791 2005-08-16  Bruno Haible  <bruno@clisp.org>
51792
51793         * lib/strcase.h (strcasecmp): Add note in comments.
51794         * lib/strncasecmp.c: Use code from strcasecmp.c.
51795         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
51796         (strcasecmp): Work correctly in multibyte locales.
51797
51798 2005-08-16  Bruno Haible  <bruno@clisp.org>
51799
51800         * lib/mbiter.h: New file.
51801
51802 2005-08-16  Bruno Haible  <bruno@clisp.org>
51803
51804         * lib/mbfile.h: New file.
51805
51806 2005-08-16  Bruno Haible  <bruno@clisp.org>
51807
51808         * lib/mbchar.h: New file.
51809         * lib/mbchar.c: New file.
51810
51811 2005-08-16  Bruno Haible  <bruno@clisp.org>
51812
51813         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
51814         the valid ones. Makes the comparison operations transitive:
51815         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
51816         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
51817
51818 2005-08-15  Simon Josefsson  <jas@extundo.com>
51819
51820         * modules/ssize_t (License): Change to 'unlimited'.
51821
51822         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
51823
51824 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
51825
51826         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
51827         Add comments for each pending glibc patch.
51828
51829 2005-08-15  Bruno Haible  <bruno@clisp.org>
51830
51831         * lib/regex.h (__restrict_arr): Don't define to __restrict if
51832         __cplusplus is defined.
51833
51834 2005-08-14  Jim Meyering  <jim@meyering.net>
51835
51836         Sync from coreutils.
51837
51838         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
51839         Use the hash-table-based cycle-detection code not just when
51840         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
51841         Reported by James Youngman in
51842         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
51843         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
51844         FTS_TIGHT_CYCLE_CHECK.
51845         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
51846         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
51847         once again.
51848         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
51849         * lib/fts.c (fd_safer): Remove decl.
51850         Include fcntl--.h rather than unistd-safer.h
51851         (fts_safe_changedir): Don't call fd_safer; no longer needed
51852         now that we include fcntl--.h.
51853
51854 2005-08-12  Simon Josefsson  <jas@extundo.com>
51855
51856         * modules/getndelim2: Use ssize_t module.
51857         * modules/getnline: Likewise.
51858         * modules/safe-read: Likewise.
51859         * modules/xreadlink: Likewise.
51860
51861         * modules/ssize_t: New file.
51862
51863 2005-08-12  Simon Josefsson  <jas@extundo.com>
51864
51865         * m4/readline.m4: Look for termcap, curses or ncurses if required.
51866
51867 2005-08-12  Simon Josefsson  <jas@extundo.com>
51868
51869         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51870         ssize_t.
51871
51872 2005-08-12  Simon Josefsson  <jas@extundo.com>
51873
51874         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
51875         readline, getdelim and check_version.
51876         (Support for systems lacking ISO C 99: Sizes of integer types):
51877         Add size_max.
51878
51879 2005-08-12  Bruno Haible  <bruno@clisp.org>
51880
51881         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
51882
51883 2005-08-11  Simon Josefsson  <jas@extundo.com>
51884
51885         * modules/readline: New file.
51886
51887         * modules/strnlen (Files): Add strnlen.h.
51888
51889 2005-08-11  Simon Josefsson  <jas@extundo.com>
51890
51891         * m4/readline.m4: New file.
51892
51893 2005-08-11  Simon Josefsson  <jas@extundo.com>
51894
51895         * lib/readline.h, readline.c: New file.
51896
51897 2005-08-11  Simon Josefsson  <jas@extundo.com>
51898
51899         * doc/gnulib.texi (Initial import, Finishing touches): Mention
51900         gl_AVOID.
51901
51902 2005-08-11  Bruno Haible  <bruno@clisp.org>
51903
51904         * lib/strnlen.h (strnlen): Change parameter name to match comment.
51905
51906 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
51907
51908         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
51909
51910 2005-08-10  Simon Josefsson  <jas@extundo.com>
51911
51912         * tests/test-iconvme.c: New file.
51913
51914 2005-08-10  Simon Josefsson  <jas@extundo.com>
51915
51916         * m4/strnlen.m4: New file.
51917
51918         * m4/strndup.m4: Don't check for strnlen declaration, done in
51919         strnlen.m4.
51920
51921 2005-08-10  Simon Josefsson  <jas@extundo.com>
51922
51923         * lib/strndup.c: Use strnlen.h.
51924
51925         * lib/strnlen.h: New file.
51926
51927 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
51928
51929         * README: Typos.
51930
51931 2005-08-02  Simon Josefsson  <jas@extundo.com>
51932
51933         * modules/readline: New file.
51934
51935 2005-08-02  Simon Josefsson  <jas@extundo.com>
51936
51937         * modules/getdelim: New file.
51938
51939         * modules/getline: Rewrite, don't use getndelim2.
51940
51941 2005-08-02  Simon Josefsson  <jas@extundo.com>
51942
51943         * m4/getline.m4: Separate out getdelim stuff into separate module.
51944
51945         * m4/getdelim.m4: New file.
51946
51947 2005-08-02  Simon Josefsson  <jas@extundo.com>
51948
51949         * lib/getline.h, getline.c: Rewrite.
51950
51951         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
51952
51953 2005-07-31  Bruno Haible  <bruno@clisp.org>
51954
51955         * lib/lock.h (gl_lock_initializer): New macro.
51956         (gl_lock_define_initialized): Use it.
51957         (gl_rwlock_initializer): New macro.
51958         (gl_rwlock_define_initialized): Use it.
51959         (gl_recursive_lock_initializer): New macro.
51960         (gl_recursive_lock_define_initialized): Use it.
51961
51962 2005-07-30  Karl Berry  <karl@gnu.org>
51963
51964         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
51965         Report from Ben Pfaff, regarding getopt.
51966
51967 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
51968
51969         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
51970         normal way.
51971         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
51972         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
51973         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
51974         (gl_GETOPT): Use the new macros.  Most of the implementation
51975         is moved to the new macros.  This is for programs like Emacs
51976         that don't want all the functionality of gl_GETOPT.
51977
51978 2005-07-26  Bruno Haible  <bruno@clisp.org>
51979
51980         * m4/lock.m4: Update from GNU gettext.
51981
51982 2005-07-26  Bruno Haible  <bruno@clisp.org>
51983
51984         * lib/lock.h: Update from GNU gettext.
51985         * lib/lock.c: Update from GNU gettext.
51986
51987 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
51988
51989         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
51990         obsolescent AC_TRY_RUN.  Include the default includes files, for
51991         'exit'.
51992
51993 2005-07-24  Bruno Haible  <bruno@clisp.org>
51994
51995         * modules/visibility: New file.
51996         * MODULES.html.sh (Misc): Add visibility.
51997
51998 2005-07-24  Bruno Haible  <bruno@clisp.org>
51999
52000         * m4/visibility.m4: New file.
52001
52002 2005-07-24  Bruno Haible  <bruno@clisp.org>
52003
52004         * doc/visibility.texi: New file.
52005
52006 2005-07-22  Bruno Haible  <bruno@clisp.org>
52007
52008         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
52009         $(ALLOCA_H), redundant through BUILT_SOURCES.
52010         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
52011         redundant through BUILT_SOURCES.
52012         * modules/byteswap (Makefile.am): Remove explicit dependency on
52013         $(BYTESWAP_H), redundant through BUILT_SOURCES.
52014         * modules/fnmatch (Makefile.am): Remove explicit dependency on
52015         $(FNMATCH_H), redundant through BUILT_SOURCES.
52016         * modules/getopt (Makefile.am): Remove explicit dependency on
52017         $(GETOPT_H), redundant through BUILT_SOURCES.
52018         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
52019         redundant through BUILT_SOURCES.
52020         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
52021         redundant through BUILT_SOURCES.
52022         * modules/stdbool (Makefile.am): Remove explicit dependency on
52023         $(STDBOOL_H), redundant through BUILT_SOURCES.
52024         * modules/stdint (Makefile.am): Remove explicit dependency on
52025         $(STDINT_H), redundant through BUILT_SOURCES.
52026         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
52027         Remove explicit dependency on $(SYSEXITS_H).
52028         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
52029
52030 2005-07-18  Simon Josefsson  <jas@extundo.com>
52031
52032         * lib/check-version.c (check_version): Accept identical versions too.
52033
52034 2005-07-18  Bruno Haible  <bruno@clisp.org>
52035
52036         * modules/lock: New file.
52037         * MODULES.html.sh (Multithreading): New section.
52038
52039 2005-07-18  Bruno Haible  <bruno@clisp.org>
52040
52041         * m4/lock.m4: New file, from GNU gettext.
52042
52043 2005-07-18  Bruno Haible  <bruno@clisp.org>
52044
52045         * lib/lock.h: New file, from GNU gettext.
52046         * lib/lock.c: New file, from GNU gettext.
52047
52048 2005-07-18  Bruno Haible  <bruno@clisp.org>
52049
52050         * lib/lock.h (gl_once_t): New type.
52051         (gl_once_define, gl_once): New macros.
52052         * lib/lock.c (fresh_once): New variable.
52053         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
52054         functions.
52055
52056 2005-07-16  Simon Josefsson  <jas@extundo.com>
52057
52058         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
52059         workaround, suggested by Bruno.
52060
52061 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
52062
52063         * modules/xalloc (Depends-on): Add xalloc-die.
52064         * modules/xvasprintf (Depends-on): Add xalloc-die.
52065
52066 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
52067
52068         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
52069         with a minor change.
52070
52071 2005-07-15  Bruno Haible  <bruno@clisp.org>
52072
52073         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
52074         When using lib/poll.c, define poll as rpl_poll.
52075
52076 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
52077
52078         * modules/argp (Depends-on): Remove unlocked-io.
52079
52080 2005-07-14  Derek Price  <derek@ximbiot.com>
52081
52082         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
52083         for glob symlink bug.
52084
52085 2005-07-14  Bruno Haible  <bruno@clisp.org>
52086
52087         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
52088         Instead, test for *_unlocked function declarations directly.
52089
52090 2005-07-11  Simon Josefsson  <jas@extundo.com>
52091
52092         * modules/size_max: New file.
52093
52094         * modules/xsize: Depend on size_max module for size_max.m4.
52095
52096 2005-07-11  Simon Josefsson  <jas@extundo.com>
52097
52098         * lib/size_max.h: New file.
52099
52100 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
52101
52102         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
52103         copyright symbol and the year.
52104         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
52105         (version_etc_va): Use parameterized copyright notice.
52106         Reword to conform to the current GNU coding standards.
52107
52108 2005-07-11  Karl Berry  <karl@gnu.org>
52109
52110         * doc/gnulib.texi (Quoting): new node.
52111         (Initial import): more info, from Patrice.
52112
52113 2005-07-11  Bruno Haible  <bruno@clisp.org>
52114
52115         * gnulib-tool (func_usage): Document option --avoid.
52116         (Command line options): Handle --avoid.
52117         (func_acceptable): New function.
52118         (func_modules_transitive_closure): Use it.
52119
52120 2005-07-11  Bruno Haible  <bruno@clisp.org>
52121
52122         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
52123         Reported by Jim Meyering.
52124
52125 2005-07-10  Bruno Haible  <bruno@clisp.org>
52126
52127         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
52128         Needed when size_t is smaller than 'unsigned int'.
52129         Reported by Paul Eggert.
52130
52131 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
52132
52133         * modules/argp (Depends-on): Add unlocked-io
52134
52135 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
52136
52137         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
52138         block of defines.
52139
52140 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
52141
52142         * config/srclist.txt: Comment out regcomp.c, since we have a porting
52143         fix now.
52144
52145 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
52146         and Paul Eggert  <eggert@cs.ucla.edu>
52147
52148         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
52149         in wint_t, not wchar_t.  Remove now-unnecessary cast.
52150
52151 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
52152
52153         * modules/regex (Files): Add lib/regex_internal.c,
52154         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
52155         (Depends-on): Add extensions.
52156         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
52157
52158 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
52159
52160         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
52161         pathconf.
52162         * m4/same.m4 (gl_SAME): Likewise.
52163         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
52164
52165         * m4/regex.m4: Adjust to new libc regex implementation.
52166         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
52167         all the .c and .h parts of (the new) regex.
52168         Quote the m4 stuff better.
52169         Check for RE_ICASE bug of old gnulib.
52170         Check for REG_STARTEND of recent libc.
52171         Rename local variables from jm_* to gl_*.
52172         Quote operand of "test -f".
52173         Say "recent enough" version of libc, not "version 2".
52174         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
52175         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
52176         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
52177         Remove check for btowc, isascii.
52178         Require AM_LANGINFO_CODESET.
52179
52180 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
52181
52182         * lib/regex.c, regex.h: Sync from libc.
52183         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
52184         * lib/regexec.c:
52185         New files, synced from libc, except that regex_internal.h
52186         currently has a small porting fix.
52187
52188 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
52189
52190         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
52191         regex_internal.c, regexec.c.
52192         Add regex_internal.h too, but as a comment, since the libc version
52193         is currently broken in gnulib mode.
52194
52195 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
52196
52197         Support programs like Emacs that use gnulib but not gettext.
52198         * MODULES.html.sh (Internationalization functions): Add gettext-h.
52199         * modules/gettext-h: New file.
52200         * modules/gettext (Files): Remove lib/gettext.h.
52201         (Depends-on): Add gettext-h.
52202         (Makefile.am): Remove lib_SOURCES.
52203         * modules/argmatch, modules/c-stack, modules/closeout:
52204         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
52205         * modules/execute, modules/file-type, modules/getaddrinfo:
52206         * modules/getopt, modules/human, modules/javacomp:
52207         * modules/javaexec, modules/mkdir-p, modules/obstack:
52208         * modules/openat, modules/pagealign_alloc, modules/pipe:
52209         * modules/quotearg, modules/regex, modules/rpmatch:
52210         * modules/unicodeio, modules/userspec, modules/version-etc:
52211         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
52212         * modules/xsetenv:
52213         Depend on gettext-h, not gettext.
52214
52215 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
52216
52217         * gnulib-tool (func_import): Add support for 'public domain' license.
52218         * modules/alloca, modules/atexit, modules/memmove:
52219         Now public domain, not GPL.
52220         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
52221         * modules/realloc, modules/strerror, modules/strtod:
52222         Now LGPL, not GPL.
52223
52224 2005-07-05  Bruno Haible  <bruno@clisp.org>
52225
52226         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
52227         autoconf CVS. Needed for mingw.
52228
52229 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
52230
52231         Remove the dependency of the strftime module on the tzset module.
52232         * modules/strftime (Depends-on): Remove dependency on tzset.
52233
52234 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
52235
52236         Remove the dependency of the strftime module on the tzset module.
52237         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
52238         gl_FUNC_TZSET_CLOBBER.
52239
52240 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
52241
52242         Remove the dependency of the strftime module on the tzset module.
52243         * lib/strftime.c (my_strftime)
52244         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
52245         Copy the input structure, to work around some of the bug with
52246         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
52247         Solaris releases, you should also use the tzset module, but we won't
52248         require it as a dependency any more since we don't want LGPLed code
52249         to depend on GPLed code.
52250
52251 2005-07-02  Jim Meyering  <jim@meyering.net>
52252
52253         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
52254         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
52255         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
52256         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
52257
52258 2005-07-02  Jim Meyering  <jim@meyering.net>
52259
52260         * lib/backupfile.c (backup_args): Change a `0' to NULL.
52261
52262 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
52263
52264         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
52265         declares only 'struct timespec;' (!).
52266
52267 2005-07-01  Jim Meyering  <jim@meyering.net>
52268
52269         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
52270         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
52271         * lib/save-cwd.c, tempname.c:
52272         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
52273         and don't include <sys/file.h>).
52274
52275 2005-06-29  Jim Meyering  <jim@meyering.net>
52276
52277         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
52278         type name.  Use the variable name instead.
52279         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
52280         Likewise.
52281
52282 2005-06-28  Simon Josefsson  <jas@extundo.com>
52283
52284         * modules/check-version (Files): Add check-version.m4.
52285
52286 2005-06-28  Simon Josefsson  <jas@extundo.com>
52287
52288         * m4/check-version.m4: New file, suggested by Jim Meyering
52289         <jim@meyering.net>.
52290
52291 2005-06-28  Simon Josefsson  <jas@extundo.com>
52292
52293         * lib/check-version.h, lib/check-version.c: New files.
52294
52295 2005-06-28  Simon Josefsson  <jas@extundo.com>
52296
52297         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
52298         collision with global variable.  Better indentation.  Don't
52299         increment buffer pointer beyond buffer end.  Based on comments
52300         from Paul Eggert <eggert@cs.ucla.edu>.
52301
52302         * lib/base64.h: Indent.
52303
52304 2005-06-28  Simon Josefsson  <jas@extundo.com>
52305
52306         * doc/gnulib.texi (Library version handling): New section.
52307
52308 2005-06-28  Jim Meyering  <jim@meyering.net>
52309
52310         * check-module (find_included_lib_files): Hard-code another
52311         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
52312         but modules/fts-lgpl (correctly) does not list those files.
52313
52314         * modules/canonicalize (Files): Add lib/pathmax.h.
52315
52316 2005-06-25  Simon Josefsson  <jas@extundo.com>
52317
52318         * modules/check-version: New file.
52319
52320 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
52321
52322         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
52323         initializer of struct addrinfo, as an indication that we don't
52324         care how many members the structure has.
52325
52326 2005-06-24  Derek Price  <derek@ximbiot.com>
52327         and Bruno Haible  <bruno@clisp.org>
52328
52329         Remove stat module & update lstat.
52330         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
52331         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
52332         * m4/stat.m4: Remove this file.
52333
52334 2005-06-24  Derek Price  <derek@ximbiot.com>
52335         and Bruno Haible  <bruno@clisp.org>
52336
52337         Remove stat module & update lstat.
52338         * lib/stat.c: Remove this file...
52339         (slash_aware_lstat): ...moving this content and its support...
52340         * lib/lstat.c (rpl_lstat): ...into here.
52341         * lib/lstat.h: New file.
52342
52343 2005-06-24  Derek Price  <derek@ximbiot.com>
52344         and Bruno Haible  <bruno@clisp.org>
52345
52346         Remove stat module & update lstat.
52347         * config/srclist.txt (libc sources): Remove stat.
52348
52349 2005-06-24  Derek Price  <derek@ximbiot.com>
52350         and Bruno Haible  <bruno@clisp.org>
52351
52352         Remove stat module & update lstat.
52353         * MODULES.html.sh (stat): Remove.
52354         * MODULES.html: Regenerated.
52355         * modules/lstat (Description): Correct function name.
52356         (Files): Add "lstat.h".
52357         (Depends-on): Remove stat, add xalloc, stat-macros.
52358         * modules/stat: Remove this file.
52359         (Include): Add "lstat.h", remove <sys/stat.h>.
52360
52361 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
52362
52363         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
52364         (ranged_convert): Don't save conversion in a temporary struct.
52365         This causes a warning with GCC 4.0.0, and anyway in the typical
52366         case it's not worth the extra 100 bytes or so of code.
52367         (ranged_convert, __mktime_internal): When calling a function via a
52368         pointer P, use P () rather than (*P) (), as we now assume C89 or
52369         better.
52370
52371 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
52372
52373         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
52374         "who -r" failed to give output.  Problem reported by Tim Waugh.
52375
52376         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
52377         (xcalloc): Use it to avoid needless tests.
52378         Problem reported by Jim Meyering.
52379
52380 2005-06-20  Derek Price  <derek@ximbiot.com>
52381
52382         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
52383         unnecessary for Autoconfs > 2.59c.
52384
52385 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52386
52387         * lib/argp.h (__option_is_short): Check upper limit of
52388         __key. Isprint() requires its argument to have the value
52389         of an unsigned char or EOF.
52390
52391 2005-06-16  Jim Meyering  <jim@meyering.net>
52392
52393         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
52394         when either N or S is zero.
52395
52396 2005-06-16  Derek Price  <derek@ximbiot.com>
52397
52398         * m4/bison.m4: Declare YACC & YFLAGS precious.
52399
52400 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
52401
52402         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
52403         multibyte string or pattern, fall back on unibyte matching.
52404         Problem reported by James Youngman.
52405
52406 2005-06-08  Bruno Haible  <bruno@clisp.org>
52407
52408         * modules/csharpcomp: New file.
52409         * MODULES.html.sh (C#): Add csharpcomp.
52410
52411 2005-06-08  Bruno Haible  <bruno@clisp.org>
52412
52413         * m4/csharpcomp.m4: New file, from GNU gettext.
52414
52415 2005-06-08  Bruno Haible  <bruno@clisp.org>
52416
52417         * lib/csharpcomp.h: New file, from GNU gettext.
52418         * lib/csharpcomp.c: New file, from GNU gettext.
52419         * lib/csharpcomp.sh.in: New file, from GNU gettext.
52420
52421 2005-06-08  Bruno Haible  <bruno@clisp.org>
52422
52423         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
52424         warning on mingw.
52425
52426 2005-06-07  Derek Price  <derek@ximbiot.com>
52427
52428         Sync from CVS.
52429         * lib/glob_.h: Indent nested #ifdef.
52430
52431 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
52432
52433         Sync from coreutils.
52434         Use "file name" when talking about file names, instead of "filename"
52435         or "path", as per the GNU coding standards.
52436         * lib/mkdir-p.c: Renamed from makepath.c.
52437         (make_dir_parents): Renamed from make_path.  All callers changed.
52438         * lib/mkdir-p.h: Likewise.  All includers changed.
52439         * lib/filenamecat.c: Renamed from path-concat.c.
52440         (file_name_concat): Renamed from path_concat.  All callers changed.
52441         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
52442         * lib/filenamecat.h: Likewise.  All includers changed.
52443         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
52444         in comments or local variable names.
52445         * lib/basename.c: Likewise.
52446         * lib/canonicalize.c, canonicalize.h: Likewise.
52447         * lib/dirname.c, dirname.h: Likewise.
52448         * lib/euidaccess.c: Likewise.
52449         * lib/exclude.c: Likewise
52450         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
52451         * lib/fsusage.c, fsuage.h: Likewise.
52452         * lib/fts.c, fts_.h: Likewise.
52453         * lib/getcwd.c: Likewise.
52454         * lib/getloadavg.c: Likewise.
52455         * lib/mkstemp.c: Likewise.
52456         * lib/mountlist.c, mountlist.h: Likewise.
52457         * lib/openat.c, openat.h: Likewise.
52458         * lib/readlink-stub.c: Likewise.
52459         * lib/readutmp.c, readutmp.h: Likewise.
52460         * lib/rename.c: Likewise.
52461         * lib/rmdir.c: Likewise.
52462         * lib/same.c: Likewise.
52463         * lib/savedir.c: Likewise.
52464         * lib/stripslash.c: Likewise.
52465         * lib/tempname.c: Likewise.
52466         * lib/xreadlink.c: Likewise.
52467         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
52468         All uses changed.
52469         * lib/exclude.h: Likewise.
52470
52471         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
52472         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
52473         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
52474         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
52475         * lib/pathmax.h: Include <limits.h> unconditionally, since other
52476         files have been getting away with it for years (MORE/BSD 4.3
52477         is extinct now).
52478         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
52479         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
52480
52481         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
52482         Define to 256, not 255, as per modern POSIX.
52483
52484 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
52485
52486         Sync from coreutils.
52487         Use "file name" when talking about file names, instead of "filename"
52488         or "path", as per the GNU coding standards.
52489         * MODULES.html.sh: mkdir-p renamed from makepath.
52490         filenamecat renamed from path-concat.
52491         * modules/filenamecat: Renamed from modules/path-concat.
52492         (Files): filenamecat.h and filenamecat.c renamed from
52493         path-concat.h and path-concat.c.
52494         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
52495         (Include): filenamecat.h, not path-concat.h.
52496         * modules/mkdir-p: Renamed from modules/makepath.
52497         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
52498         makepath.c.
52499         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
52500         (Include): mkdir-p.h, not makepath.h.
52501
52502 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
52503
52504         Sync from coreutils.
52505         * m4/mkdir-p.m4: Renamed from makepath.m4.
52506         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
52507         Rename files from makepath.c to mkdir-p.c, and from
52508         makepath.h to mkdir-p.h.
52509         * m4/filenamecat.m4: Renamed from path-concat.m4.
52510         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
52511         Rename files from path-concat.c to filenamecat.c,
52512         and from path-concat.h to filenamecat.h.
52513         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
52514         "file name" in local variables or comments.
52515         * m4/rename.m4: Likewise.
52516
52517 2005-06-01  Bruno Haible  <bruno@clisp.org>
52518
52519         * modules/csharpexec: New file.
52520         * MODULES.html.sh (C#): New section.
52521
52522 2005-06-01  Bruno Haible  <bruno@clisp.org>
52523
52524         * m4/csharp.m4: New file, from GNU gettext.
52525         * m4/csharpexec.m4: New file, from GNU gettext.
52526
52527 2005-06-01  Bruno Haible  <bruno@clisp.org>
52528
52529         * lib/csharpexec.h: New file, from GNU gettext.
52530         * lib/csharpexec.c: New file, from GNU gettext.
52531         * lib/csharpexec.sh.in: New file, from GNU gettext.
52532
52533 2005-05-31  Derek Price  <derek@ximbiot.com>
52534             Paul Eggert  <eggert@cs.ucla.edu>
52535
52536         Sync from cvs.
52537         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
52538
52539 2005-05-31  Derek Price  <derek@ximbiot.com>
52540             Paul Eggert  <eggert@cs.ucla.edu>
52541
52542         Sync from cvs.
52543         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
52544
52545 2005-05-29  Derek Price  <derek@ximbiot.com>
52546
52547         * config/srclist.txt (glob_.h, glob.c): Add these files.
52548
52549 2005-05-29  Derek Price  <derek@ximbiot.com>
52550
52551         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
52552         * modules/glob: New file.
52553         * modules/getlogin_r: Add link to POSIX spec in description.
52554
52555 2005-05-29  Derek Price  <derek@ximbiot.com>
52556             Paul Eggert  <eggert@cs.ucla.edu>
52557
52558         * m4/glob.m4: New file.
52559
52560 2005-05-29  Derek Price  <derek@ximbiot.com>
52561             Paul Eggert  <eggert@cs.ucla.edu>
52562
52563         * lib/glob_.h, lib/glob.c: New files.
52564
52565 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
52566
52567         * modules/fts (Files): Remove m4/inttypes-pri.m4.
52568         * modules/fts-lgpl (Depends-on): Remove gettext.
52569
52570 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
52571
52572         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
52573         and don't require gt_INTTYPES_PRI.
52574
52575 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
52576
52577         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
52578
52579         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
52580         the configuration hassle isn't worth it.
52581         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
52582         (LONGEST_MODIFIER, PRIuMAX): Remove.
52583
52584 2005-05-27  Bruno Haible  <bruno@clisp.org>
52585
52586         * lib/getlogin_r.h: Remove second include of <stddef.h>.
52587
52588 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
52589
52590         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
52591         _POSIX_PTHREAD_SEMANTICS for Solaris.
52592
52593 2005-05-25  Derek Price  <derek@ximbiot.com>
52594
52595         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
52596
52597 2005-05-25  Derek Price  <derek@ximbiot.com>
52598             Paul Eggert  <eggert@cs.ucla.edu>
52599
52600         * modules/getlogin_r, m4/getlogin_r.m4: New files.
52601         * lib/getlogin_r.c, getlogin_r.h: New files.
52602
52603 2005-05-25  Bruno Haible  <bruno@clisp.org>
52604             Derek Price  <derek@ximbiot.com>
52605
52606         * lib/getlogin_r.h: Simplify API documentation.
52607
52608 2005-05-23  Derek Price  <derek@ximbiot.com>
52609
52610         * modules/minmax (Files): Add m4/minmax.m4.
52611         (configure.ac): Add gl_MINMAX.
52612
52613 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
52614
52615         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
52616         so that unistd-safer.h (GPL'ed code) need not be included.
52617
52618 2005-05-22  Bruno Haible  <bruno@clisp.org>
52619
52620         * m4/minmax.m4: New file.
52621         Based on a patch by Derek Price <derek@ximbiot.com>.
52622
52623 2005-05-22  Bruno Haible  <bruno@clisp.org>
52624
52625         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
52626         (INT64_MIN): Fix definition.
52627         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
52628
52629         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
52630         NEED_SIGNED_INT_TYPES.
52631
52632         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
52633         HAVE_SYSTEM_INTTYPES.
52634
52635 2005-05-22  Bruno Haible  <bruno@clisp.org>
52636
52637         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
52638         Also include <sys/param.h> if it defines MIN, MAX.
52639         Based on a patch by Derek Price <derek@ximbiot.com>.
52640
52641 2005-05-21  Jim Meyering  <jim@meyering.net>
52642
52643         * modules/fts (Files): Add m4/inttypes-pri.m4.
52644         (Depends-on): Add lstat and remove gettext.  Alphabetize.
52645
52646 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
52647
52648         New fts module.
52649         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
52650         (setup_dir, free_dir): New functions.
52651         (enter_dir, leave_dir): Define trivial
52652         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
52653         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
52654         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
52655         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
52656         Move to fts-cycle.c.
52657         (fts_open): Use setup_dir.
52658         (fts_close): Use free_dir.
52659         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
52660         This adds a label and some gotos, but the alternatives were messier.
52661         Check for memory allocation failure when entering a dir.
52662         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
52663         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
52664         (FTS): New member fts_cycle, that is a union that contains the
52665         old active_dir_ht and cycle_state.  All uses changed to mention
52666         fts_cycle.ht and fts_cycle.state.
52667         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
52668         fts.c, with the following changes:
52669         (setup_dir, free_dir): New functions.
52670         (enter_dir): Now returns bool.  Return true if successful, false
52671         if memory exhausted.  All callers changed.
52672         Do not bother partly cleaning up on
52673         memory allocation failure; that is free_dir's job.
52674         However, free ad if hash_insert fails, to avoid memory leak.
52675         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
52676         fts->fts_options to see which union member to use.
52677
52678 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
52679
52680         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
52681         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
52682
52683 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
52684
52685         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
52686
52687 2005-05-20  Jim Meyering  <jim@meyering.net>
52688
52689         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
52690         Now a macro, to pacify GCC.
52691
52692 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
52693
52694         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
52695         of -1.
52696
52697 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
52698
52699         * lib/chown.c (rpl_chown): Return -1 on failure.
52700
52701 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
52702
52703         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
52704         Don't check for stddef.h.
52705         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
52706         don't use its results.
52707         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
52708         since we include them unconditionally.  Don't require
52709         AM_STDBOOL_H, since stdbool is a prerequisite.
52710         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
52711         since we assume C89 or better.
52712         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
52713         as we don't use their results.
52714         Don't check for fchdir, memmove, memset, strrchr, as we use
52715         them unconditionally.
52716         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
52717         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
52718
52719 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
52720
52721         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
52722         Include <stddef.h> unconditionally, since we assume C89 now.
52723         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
52724         * lib/fts.c: Include fts_.h first, to check interface.
52725         Do not include intprops.h; no longer needed.
52726         Include cycle-check.h and hash.h, since fts_.h no longer does.
52727         Remove unnecessary casts of closedir to void.
52728         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
52729         decide whether to decrement nlinks.
52730         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
52731         (FTS): Use struct hash_table * instead of Hash_table, so that
52732         we no longer need to include hash.h here.
52733
52734 2005-05-18  Jim Meyering  <jim@meyering.net>
52735
52736         * modules/dirfd (License): Change to LGPL.  Most of the code
52737         is already in the public domain.
52738
52739 2005-05-18  Jim Meyering  <jim@meyering.net>
52740
52741         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
52742         Reported by Yoann Vandoorselaere.
52743
52744 2005-05-17  Jim Meyering  <jim@meyering.net>
52745
52746         * m4/fts.m4: New file, from coreutils.
52747
52748 2005-05-17  Jim Meyering  <jim@meyering.net>
52749
52750         * lib/fts.c, lib/fts_.h: New files, from coreutils.
52751
52752 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
52753
52754         Sync from coreutils.
52755         * m4/unlinkdir.m4: New file.
52756
52757 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
52758
52759         Sync from coreutils.
52760         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
52761         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
52762         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
52763         White space changes only.
52764         * lib/makepath.c (make_path): Port to hosts where leading "//" is
52765         special.
52766         * lib/yesno.c: Include getline.h, not ctype.h.
52767         (yesno): Don't remove leading white space; POSIX doesn't allow it.
52768         Use getline to remove arbitrary restriction on response length.
52769
52770 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
52771
52772         * config/srclist-update: Spell out "Street" in FSF postal
52773         mail address; this is the style the FSF seems to prefer.
52774
52775         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
52776         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
52777         this updates FSF postal mail address.
52778
52779         Sync from coreutils.
52780         * modules/unlinkdir: New file.
52781         * modules/yesno (Depends-on): Add getline.
52782         * MODULES.html.sh (File system functions): Add unlinkdir.
52783
52784 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
52785
52786         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
52787         lib/strsep.h:
52788         Change the initial comment to refer to GPL, not LGPL.
52789         gnulib-tool will change it to LGPL as needed.
52790
52791         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
52792         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
52793         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
52794         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
52795         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
52796         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
52797         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
52798         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
52799         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
52800         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
52801         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
52802         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
52803         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
52804         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
52805         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
52806         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
52807         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
52808         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
52809         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
52810         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
52811         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
52812         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
52813         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
52814         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
52815         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
52816         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
52817         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
52818         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
52819         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
52820         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
52821         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
52822         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
52823         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
52824         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
52825         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
52826         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
52827         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
52828         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
52829         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
52830         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
52831         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
52832         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
52833         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
52834         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
52835         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
52836         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
52837         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
52838         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
52839         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
52840         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
52841         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
52842         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
52843         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
52844         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
52845         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
52846         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
52847         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
52848         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
52849         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
52850         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
52851         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
52852         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
52853         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
52854         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
52855         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
52856         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
52857         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
52858         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
52859         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
52860         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
52861         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
52862         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
52863         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
52864         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
52865         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
52866         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
52867         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
52868         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
52869         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
52870         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
52871         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
52872         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
52873         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
52874         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
52875         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
52876         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
52877         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
52878         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
52879         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
52880         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
52881         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
52882         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
52883         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
52884         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
52885         lib/yesno.c, lib/yesno.h:
52886         Update FSF postal mail address.
52887
52888 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
52889
52890         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
52891         tests/test-memmem.c, tests/test-stpncpy.c:
52892         Update FSF postal mail address.
52893
52894 2005-05-13  Bruno Haible  <bruno@clisp.org>
52895
52896         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
52897         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
52898         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
52899         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
52900         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
52901         Add support for 64-bit integers in the MSVC compiler.
52902
52903 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52904
52905         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
52906
52907 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
52908
52909         * gnulib-tool (func_import): Sort and uniquify recommended includes.
52910
52911 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
52912
52913         * doc/getdate.texi (General date syntax): Don't say that date
52914         date --iso-8601=ns generates acceptable dates; it doesn't yet.
52915         Problem reported by Nic Ferrier.
52916
52917 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52918
52919         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
52920         specified in ai_socktype. Fix invalid ai_protocol
52921         check. ai_protocol is usually set to 0 or depending on
52922         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
52923         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
52924         ai_socktype / ai_protocol in the returned addrinfo structure.
52925
52926 2005-05-10  Simon Josefsson  <jas@extundo.com>
52927
52928         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
52929         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52930
52931 2005-05-10  Karl Berry  <karl@gnu.org>
52932
52933         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
52934         (from http://www.gnu.org/licenses).
52935         * doc/COPYING.LIB: also rename to COPYING.LESSER.
52936         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
52937         fdl.texi suffices.
52938
52939 2005-05-10  Karl Berry  <karl@gnu.org>
52940
52941         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
52942         (COPYING.DOC): remove.
52943
52944         * config/srclist-update: new FSF address.
52945
52946 2005-05-10  Derek Price  <derek@ximbiot.com>
52947
52948         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
52949         possible.
52950
52951 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52952             Bruno Haible  <bruno@clisp.org>
52953
52954         * modules/inet_ntop: New file.
52955         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52956         inet_ntop.
52957
52958 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52959             Bruno Haible  <bruno@clisp.org>
52960
52961         * m4/inet_ntop.m4: New file.
52962
52963 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52964             Bruno Haible  <bruno@clisp.org>
52965
52966         * lib/inet_ntop.h: New file.
52967         * lib/inet_ntop.c: New file, from glibc with modifications.
52968
52969 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
52970
52971         * modules/time_r (License): Change to LGPL.
52972         * modules/extensions (License): Change to LGPL.  Actually,
52973         the license is more permissive than that, but currently gnulib-tool
52974         doesn't know how to handle more-permissive licenses.
52975
52976         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
52977         Problem reported by Dave Love.
52978
52979 2005-05-08  Jim Meyering  <jim@meyering.net>
52980
52981         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
52982         blank.
52983
52984 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
52985
52986         * modules/argmatch (Depends-on): Add stdbool.
52987         * modules/backupfile (Depends-on): Likewise.
52988         * modules/chdir-long (Depends-on): Likewise.
52989         * modules/closeout (Depends-on): Likewise.
52990         * modules/cycle-check (Depends-on): Likewise.
52991         * modules/dirname (Depends-on): Likewise.
52992         * modules/fnmatch (Depends-on): Likewise.
52993         * modules/fsusage (Depends-on): Likewise.
52994         * modules/fwriteerror (Depends-on): Likewise.
52995         * modules/getcwd (Depends-on): Likewise.
52996         * modules/getloadavg (Depends-on): Likewise.
52997         * modules/hard-locale (Depends-on): Likewise.
52998         * modules/makepath (Depends-on): Likewise.
52999         * modules/mountlist (Depends-on): Likewise.
53000         * modules/nanosleep (Depends-on): Likewise.
53001         * modules/posixtm (Depends-on): Likewise.
53002         * modules/quotearg (Depends-on): Likewise.
53003         * modules/readtokens (Depends-on): Likewise.
53004         * modules/readtokens0 (Depends-on): Likewise.
53005         * modules/readutmp (Depends-on): Likewise.
53006         * modules/save-cwd (Depends-on): Likewise.
53007         * modules/strftime (Depends-on): Likewise.
53008         * modules/userspec (Depends-on): Likewise.
53009         * modules/utimecmp (Depends-on): Likewise.
53010         * modules/xgetcwd (Depends-on): Likewise.
53011         * modules/xnanosleep (Depends-on): Likewise.
53012         * modules/xstrtod (Depends-on): Likewise.
53013         * modules/yesno (Depends-on): Likewise.
53014
53015 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
53016
53017         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
53018         needless checks.
53019
53020 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
53021
53022         Merge from coreutils.  Among other things,
53023         add bulletproofing for cases where stdin, stdout, or stderr are closed.
53024         * lib/fd-safer.c: New file.
53025         * lib/fcntl-safer.h, open-safer.c: Remove.
53026         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
53027         * lib/dup-safer.c: Include unistd-safer.h first.
53028         Don't include errno.h.
53029         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
53030         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
53031         * lib/file-type.c: Rely on file-type.h change.
53032         * lib/getloadavg.c: Include unistd-safer.h.
53033         (getloadavg): Use safer open.
53034         * lib/getusershell.c: Include "stdio-safer.h".
53035         (getusershell): Use safer fopen.
53036         * lib/long-options.c (long_options): Use NULL rather than 0.
53037         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
53038         'free'.
53039         * lib/modechange.c: Likewise.
53040         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
53041         (MODE_DONE): New constant.
53042         (struct mode_change): Remove 'next' member.
53043         (make_node_op_equals): New function; like the old one of the
53044         same name, except it allocates an array.
53045         (mode_compile, mode_create_from_ref): Use it.
53046         (mode_compile): Allocate result as an array, not a linked list.
53047         Parse octal string ourself, so that we catch mistakes like "+0".
53048         (mode_adjust): Arg is an array, not a linked list.
53049         * lib/modechange.c: Include stat-macros.h, xalloc.h.
53050         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
53051         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
53052         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
53053         Remove.  This is now stat-macros.h's job.
53054         (talloc): Remove.  All callers replaced by xalloc, so that
53055         our invokers don't have to worry about reporting memory failures.
53056         (make_node_op_equals): Remove.
53057         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
53058         New constants.
53059         (struct mode_change): Moved here from modechange.h.
53060         (mode_append_entry): Remove.
53061         (mode_compile): Remove MASKED_OPS arg, since it encouraged
53062         apps to have incorrect behavior.  Use simpler algorithm for head
53063         and tail.  Don't futz with umask; that's now the job of mode_adjust.
53064         Detect more invalid usages rather than having somewhat-random behavior.
53065         Don't insert an "a=" action, as that leads to incorrect behavior.
53066         (mode_compile, mode_create_from_ref): Return NULL on error instead
53067         of an enum, since now there's only one way to have an error.  All
53068         callers changed.
53069         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
53070         at the correct time.  Simplify calculation of "+u" and its ilk.
53071         Don't mishandle "+X".
53072         (mode_free): Remove "register" and localize decls.
53073         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
53074         (struct mode_change): Move to modechange.c; callers don't
53075         need to see this stuff.
53076         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
53077         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
53078         (mode_change, mode_adjust): Reflect the new signatures noted above.
53079         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
53080         that might redefine system include files.
53081         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
53082         (my_usleep): Use NULL rather than (void *) 0.
53083         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
53084         Use siginterrupt to specify that system calls should be interrupted.
53085         (rpl_nanosleep): Move initialization of suspended closer to call of
53086         my_usleep.
53087         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
53088         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
53089         (desirable_utmp_entry): New function.
53090         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
53091         using x2nrealloc, to simplify logic.
53092         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
53093         size calculation.  Do not assume utmp file is a regular file.
53094         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
53095         (READ_UTMP_CHECK_PIDS): New constant.
53096         * lib/save-cwd.c: Include unistd-safer.h.
53097         (save_cwd): Use fd_safer.
53098         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
53099         [!_LIBC] Include "stat-macros.h" instead.
53100         * lib/unistd-safer.h (fd_safer): New decl.
53101
53102 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
53103
53104         * modules/getloadavg (Depends-on): Add unistd-safer.
53105         * modules/getusershell (Depends-on): Add stdio-safer.
53106         * modules/lstat (Depends-on): Remove xalloc.
53107         * modules/mkstemp (Depends-on): Add stat-macros.
53108         * modules/modechange (Depends-on): Remove xstrtol.
53109         Add stat-macros, xalloc.
53110         * modules/save-cwd (Depends-on): Add unistd-safer.
53111         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
53112         * modules/unistd-safer (Files): Add lib/fd-safer.c
53113         (Makefile.am): Remove lib_SOURCES.
53114
53115         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
53116         Remove fcntl-safer; unistd-safer supersedes it.
53117
53118 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
53119
53120         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
53121         AC_HEADER_STAT.
53122         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
53123         (gl_PREREQ_CHOWN): Remove.
53124         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
53125         it.  Don't require AC_HEADER_STAT.
53126         (gl_PREREQ_LSTAT): Remove.
53127         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
53128         Don't require AC_HEADER_STAT.
53129         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
53130         (gl_PREREQ_RMDIR): Remove.
53131         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
53132         mention stat-macros.h or AC_HEADER_STAT, since we'll make
53133         the stat-macros module a prerequisite.
53134         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
53135         * m4/filemode.m4 (gl_FILEMODE): Likewise.
53136         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
53137         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
53138         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
53139         variable names.
53140         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
53141         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
53142         variable prefixes.
53143         * m4/fcntl-safer.m4: Remove.
53144         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
53145         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
53146         Invoke gl_PREREQ_FD_SAFER.
53147         (gl_PREREQ_FD_SAFER): New macro.
53148         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
53149         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
53150         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
53151         Remove duplicate call to AC_LIBOBJ(readutmp).
53152         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
53153
53154         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
53155         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
53156
53157 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
53158
53159         * MODULES.html.sh (Misc): Add byteswap.
53160
53161 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
53162
53163         * modules/getcwd (Depends-on): Add extensions.
53164         * modules/openat (Depends-on): Likewise.
53165
53166 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
53167
53168         * modules/byteswap: New file.
53169
53170 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
53171
53172         * m4/byteswap.m4: New file.
53173
53174 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
53175
53176         * lib/byteswap_.h: New file.
53177
53178 2005-04-25  Karl Berry  <karl@gnu.org>
53179
53180         * m4/gettext.m4: Update from GNU gettext 0.14.4.
53181
53182 2005-04-25  Albert Chin  <china@thewrittenword.com>
53183
53184         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
53185         Toolkit C bug.
53186
53187 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
53188
53189         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
53190         (func_ln_if_changed) Remove forcibly for no error message
53191         in case file does not exist.
53192
53193 2005-04-19  Simon Josefsson  <jas@extundo.com>
53194
53195         * gnulib-tool (Options): Make --symlink mean --symbolic.
53196
53197 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
53198
53199         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
53200
53201 2005-04-16  Simon Josefsson  <jas@extundo.com>
53202
53203         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
53204
53205 2005-04-15  Simon Josefsson  <jas@extundo.com>
53206
53207         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
53208
53209 2005-04-15  Simon Josefsson  <jas@extundo.com>
53210
53211         * gnulib-tool: Rename --symlink to --symbolic.
53212
53213 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
53214
53215         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
53216         symbolic links to files instead of copying/moving.  Add --aux-dir,
53217         specifying directory relative --dir where auxiliary build tools
53218         are placed.
53219
53220 2005-04-14  Bruno Haible  <bruno@clisp.org>
53221
53222         * modules/allocsa (License): Change to LGPL.
53223         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
53224
53225 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
53226
53227         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
53228         that "UTC +1 second" continues to work.  Problem reported
53229         by Dmitry V. Levin.
53230         (relunit_snumber): New rule.
53231         (relunit): Use it.
53232
53233 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
53234
53235         * lib/getdate.y (universal_time_zone_table): New constant.
53236         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
53237         universal_time_zone_table.
53238         (lookup_zone): Prefer universal_time_zone_table to
53239         local_time_zone_table, so that "GMT" time stamps are allowed in
53240         London during the summer.  Problem reported by Ian Abbott.
53241
53242 2005-04-12  Jim Meyering  <jim@meyering.net>
53243
53244         * lib/human.c (humblock): Set *options even when returning due to
53245         xstrtoumax conversion failure.  Thanks to a used-uninitialized
53246         warning from gcc-4.
53247
53248 2005-04-09  Jim Meyering  <jim@meyering.net>
53249
53250         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
53251         -Wuninitialized: initialize tm0.tm_year.
53252
53253 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
53254
53255         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
53256         count, since there's no maximum.  All uses changed.
53257         Add member dsts_seen.
53258         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
53259         not being INT_MAX.
53260         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
53261         Use pc_rels_seen to decide whther a date is absolute.
53262
53263         * lib/getdate.y (number): Don't overwrite year.
53264         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
53265         check.
53266
53267 2005-04-02  Simon Josefsson  <jas@extundo.com>
53268
53269         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
53270         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
53271
53272 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
53273
53274         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
53275         where no absolute path name can be longer than PATH_MAX.
53276
53277 2005-03-27  Jim Meyering  <jim@meyering.net>
53278
53279         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
53280
53281 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
53282
53283         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
53284         "one's complement" -> "ones' complement" in comment, as per Knuth.
53285         "value of type" -> "type or expression" in comment.
53286         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
53287
53288 2005-03-26  Jim Meyering  <jim@meyering.net>
53289
53290         Comment nits.
53291         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
53292         Correct typos: s/or/of/.
53293
53294 2005-03-26  Jim Meyering  <jim@meyering.net>
53295
53296         * modules/check-include-files: Move to ../ and rename to...
53297         * check-module: ...this.
53298
53299 2005-03-25  Jim Meyering  <jim@meyering.net>
53300
53301         * modules/xvasprintf (Files): Add xalloc.h.
53302
53303 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
53304
53305         * modules/gettext (Files): config/config.rpath ->
53306         build-aux/config.rpath
53307         * modules/iconv (Files): Likewise.
53308         Problem reported by Oskar Liljeblad.
53309
53310 2005-03-23  Jim Meyering  <jim@meyering.net>
53311
53312         * modules/check-include-files: New script to check for
53313         missing dependencies, multiple includes, etc.
53314
53315         * modules/c-strtold (Depends-on): Add xalloc.
53316         * modules/c-strtod (Depends-on): Add xalloc.
53317         * modules/hash (Depends-on): Add xalloc.
53318         (Files): Remove lib/xalloc.h.
53319
53320         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
53321         * modules/userspec (Files): Add lib/inttostr.h.
53322
53323 2005-03-23  Jim Meyering  <jim@meyering.net>
53324
53325         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
53326
53327 2005-03-22  Jim Meyering  <jim@meyering.net>
53328
53329         * modules/stat-macros: New module.
53330         * modules/canonicalize, modules/euidaccess, modules/file-type,
53331         * modules/filemode, modules/lchown, modules/makepath,
53332         * modules/rmdir, modules/stat: Depend on new stat-macros module
53333         rather than listing lib/stat-macros.h manually.
53334         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
53335
53336 2005-03-22  Jim Meyering  <jim@meyering.net>
53337
53338         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
53339
53340 2005-03-22  Bruno Haible  <bruno@clisp.org>
53341
53342         * config/srclist.txt: Replace target directory 'config' with
53343         'build-aux'.
53344         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
53345         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
53346         ../build-aux/.
53347
53348 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
53349
53350         * modules/chdir-long (Depends-on): Add mempcpy.
53351
53352         * modules/acl, modules/backupfile, modules/c-strtod,
53353         modules/c-strtold, modules/canon-host, modules/canonicalize,
53354         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
53355         modules/exclude, modules/exitfail, modules/file-type,
53356         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
53357         modules/getdate, modules/getline, modules/getpagesize,
53358         modules/getpass, modules/getugroups, modules/group-member,
53359         modules/hard-locale, modules/hash, modules/human, modules/idcache,
53360         modules/inttostr, modules/long-options, modules/makepath,
53361         modules/md5, modules/memcasecmp, modules/memcoll,
53362         modules/modechange, modules/mountlist, modules/path-concat,
53363         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
53364         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
53365         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
53366         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
53367         modules/strftime, modules/strndup, modules/strverscmp,
53368         modules/timespec, modules/unlocked-io, modules/userspec,
53369         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
53370         modules/yesno:
53371         Remove lib_SOURCES line from Makefile.am section, as this is now
53372         done automatically by the corresponding Autoconf macro.
53373
53374 2005-03-21  Jim Meyering  <jim@meyering.net>
53375
53376         Changes imported from coreutils.
53377
53378         * lib/cycle-check.c: Don't include xalloc.h.
53379
53380         * lib/path-concat.c: Don't include assert.h.
53381         (path_concat): Remove assertion that would have triggered
53382         for ABASE starting with more than one slash.
53383         Reported by Andreas Schwab.
53384
53385         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
53386         properly when ABASE is an absolute file name.
53387         Correct the description of this function.
53388         Include <assert.h>.
53389         Add an assertion and a test driver.
53390         This fixes a bug introduced on 2004-07-02.
53391         Andreas Schwab reported the resulting failure of cp --parents:
53392         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
53393
53394 2005-03-21  Jim Meyering  <jim@meyering.net>
53395
53396         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
53397         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
53398
53399 2005-03-21  Jim Meyering  <jim@meyering.net>
53400         and  Paul Eggert  <eggert@cs.ucla.edu>
53401
53402         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
53403         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
53404         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
53405         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
53406         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
53407         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
53408         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
53409         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
53410         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
53411         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
53412         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
53413         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
53414         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
53415         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
53416         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
53417         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
53418         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
53419         for these modules.
53420
53421 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
53422
53423         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
53424         (which shouldn't happen), generate nothing instead of returning 0
53425         immediately, so that nstrftime (NULL, ...) doesn't return 0.
53426
53427 2005-03-16  Bruno Haible  <bruno@clisp.org>
53428
53429         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
53430         HAVE_LONGLONG_64BIT.
53431
53432 2005-03-16  Bruno Haible  <bruno@clisp.org>
53433
53434         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
53435         HAVE_LONGLONG_64BIT.
53436
53437 2005-03-16  Bruno Haible  <bruno@clisp.org>
53438
53439         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
53440         HAVE_LONGLONG_64BIT.
53441
53442 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
53443
53444         * lib/strftime.c (my_strftime): Prepend space to format so that we can
53445         reliably distinguish strftime failure from empty output on POSIX
53446         hosts.
53447
53448 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
53449
53450         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
53451         (iconv_string): Don't guess a size-zero buffer, as that might cause
53452         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
53453         result would be 'too large', where 'too large' is (heuristically)
53454         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
53455         overflow concerns.  This will prevent some unwanted malloc failures
53456         when the inputs are very large.
53457
53458 2005-03-15  Karl Berry  <karl@gnu.org>
53459
53460         * config/srclist.txt (config.rpath): from gettext.
53461         * config/config.rpath: update.
53462
53463 2005-03-15  Bruno Haible  <bruno@clisp.org>
53464
53465         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
53466         to 'negate'.
53467
53468         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
53469         variable.
53470
53471         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
53472         results.
53473
53474 2005-03-14  Simon Josefsson  <jas@extundo.com>
53475
53476         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
53477         <fx@gnu.org>.
53478
53479 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
53480
53481         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
53482         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
53483         intprops.h.
53484         * lib/strtol.c: Likewise.
53485
53486 2005-03-14  Jim Meyering  <jim@meyering.net>
53487
53488         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
53489         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
53490         to be nonzero so that we (and caller) can detect the difference
53491         between a valid zero-length expansion and an error return, even
53492         when the underlying strftime fails before writing anything into
53493         that location.
53494
53495 2005-03-14  Bruno Haible  <bruno@clisp.org>
53496
53497         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
53498         Update from GNU gettext 0.14.3.
53499
53500 2005-03-10  Jim Meyering  <jim@meyering.net>
53501
53502         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
53503
53504 2005-03-10  Jim Meyering  <jim@meyering.net>
53505
53506         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
53507         so that this module works on systems without fchdir.
53508
53509 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
53510
53511         Factor int-properties macros into a single file, except for
53512         glibc-related files.
53513         * lib/intprops.h: New file.
53514         * lib/getloadavg.c: Include it instead of limits.h.
53515         (INT_STRLEN_BOUND): Remove.
53516         * lib/human.c: Include intprops.h.
53517         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
53518         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
53519         302/1000.
53520         * lib/inttostr.h: Include intprops.h instead of limits.h.
53521         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
53522         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
53523         for consistency with intprops.h.
53524         (time_t_is_integer, twos_complement_arithmetic): Use them.
53525         * lib/sig2str.h: Include <signal.h>, intprops.h.
53526         (INT_STRLEN_BOUND): Remove.
53527         * lib/strftime.c (TYPE_SIGNED): Remove.
53528         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
53529         * lib/strtol.c: Adjust comments to match intprops.h.
53530         * lib/userspec.c: Include intprops.h.
53531         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
53532         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
53533         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
53534         instead of rolling our own expressions.
53535         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
53536
53537         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
53538         instead of int.
53539         (my_strftime): Do not mishandle years close to INT_MAX, by doing
53540         the right thing even if adding 1900 would overflow.  Similarly
53541         for tm_mon + 1 and tm_yday + 1.
53542         Make %Y always equivalent to %C%y, and similarly for %G and %g.
53543         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
53544         (DO_SIGNED_NUMBER): New macro.
53545         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
53546
53547 2005-03-07  Bruno Haible  <bruno@clisp.org>
53548
53549         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
53550
53551 2005-03-07  Bruno Haible  <bruno@clisp.org>
53552
53553         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
53554
53555 2005-03-04  Derek R. Price  <derek@ximbiot.com>
53556
53557         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
53558         (func_import): Only replace files via --import when they have actually
53559         changed.
53560
53561 2005-03-03  Derek R. Price  <derek@ximbiot.com>
53562
53563         * m4/mmap-anon.m4: New file.
53564         * m4/pagealign_alloc.m4: New file.
53565
53566 2005-03-03  Derek R. Price  <derek@ximbiot.com>
53567             Bruno Haible  <bruno@clisp.org>
53568
53569         * modules/pagealign_alloc: New file.
53570         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
53571
53572 2005-03-03  Derek R. Price  <derek@ximbiot.com>
53573             Bruno Haible  <bruno@clisp.org>
53574
53575         * lib/pagealign_alloc.h: New file.
53576         * lib/pagealign_alloc.c: New file.
53577
53578 2005-03-03  Bruno Haible  <bruno@clisp.org>
53579
53580         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
53581         Use an all-permissive copyright notice, recommended by RMS.
53582
53583 2005-03-02  Bruno Haible  <bruno@clisp.org>
53584
53585         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
53586         of AIX, the replacement has to be done only after <string.h> is
53587         included, therefore not in config.h. stpncpy.h does the replacement,
53588         and stpncpy.c uses it.
53589
53590 2005-03-02  Bruno Haible  <bruno@clisp.org>
53591
53592         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
53593         stpncpy.c uses it.
53594
53595 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
53596
53597         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
53598         The workaround isn't strictly needed for POSIX conformance, and
53599         it's too much of a pain to configure and maintain.  We'll ask
53600         people to fix their kernels instead.
53601         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
53602         (NANOSLEEP_BUG_WORKAROUND): Remove.
53603         (xnanosleep): Remove the workaround.
53604
53605 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
53606
53607         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
53608         Reported by Derek Price.
53609         (Include): Add "timespec.h".
53610
53611         * modules/xnanosleep (Depends-on): Remove gethrxtime.
53612
53613 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
53614
53615         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
53616         to detect nanosleep bug.
53617
53618 2005-03-01  Bruno Haible  <bruno@clisp.org>
53619
53620         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
53621
53622 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
53623
53624         * modules/gethrxtime: New file.
53625         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
53626         (Depends-on): Add gethrxtime.
53627         (configure.ac): Add gl_XNANOSLEEP.
53628         (Makefile.am): Remove lib_SOURCES line.
53629
53630 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
53631
53632         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
53633         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
53634
53635 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
53636
53637         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
53638         * lib/timespec.h (gettime): Return void, since it always
53639         succeeds now.  All uses changed.
53640         * lib/gettime.c (gettime) Likewise.
53641         [HAVE_NANOTIME]: Prefer nanotime.
53642         Assume gettimeofday succeeds, as POSIX requires.
53643         Assime time () succeeds, since other code already does.
53644         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
53645         (timespec_subtract): Remove.
53646         (NANOSLEEP_BUG_WORKAROUND): New constant.
53647         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
53648         things considerably.  Use it only on GNU/Linux hosts, since the
53649         workaround shouldn't be needed elsewhere.
53650
53651 2005-02-24  Bruno Haible  <bruno@clisp.org>
53652
53653         * modules/gettext (Files): Add m4/glibc2.m4.
53654
53655 2005-02-24  Bruno Haible  <bruno@clisp.org>
53656
53657         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
53658         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
53659         * m4/progtest.m4:
53660         Update from GNU gettext 0.14.2.
53661         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
53662
53663 2005-02-24  Bruno Haible  <bruno@clisp.org>
53664
53665         * lib/localcharset.c: Update from GNU gettext 0.14.2.
53666         * lib/config.charset: Update from GNU gettext 0.14.2.
53667
53668 2005-02-24  Bruno Haible  <bruno@clisp.org>
53669
53670         * lib/gettext.h: Update from GNU gettext 0.14.2.
53671
53672 2005-02-23  Simon Josefsson  <jas@extundo.com>
53673
53674         * m4/iconvme.m4: New file.
53675
53676 2005-02-23  Jim Meyering  <jim@meyering.net>
53677
53678         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
53679         change.
53680         Thanks to Bruno Haible for catching it.
53681
53682 2005-02-22  Simon Josefsson  <jas@extundo.com>
53683
53684         * modules/iconvme: New file.
53685
53686         * MODULES.html.sh: Add iconvme.
53687
53688 2005-02-22  Simon Josefsson  <jas@extundo.com>
53689
53690         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
53691
53692 2005-02-22  Simon Josefsson  <jas@extundo.com>
53693
53694         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
53695
53696 2005-02-22  Jim Meyering  <jim@meyering.net>
53697
53698         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
53699         s/ifndef/ifdef/.
53700
53701 2005-02-20  Neil Conway  <neilc@samurai.com>
53702
53703         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
53704         returned by OSX/Darwin if the specified buffer is not large
53705         enough for the hostname.
53706
53707 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53708
53709         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
53710         pass it to _help, otherwise the latter coredumps trying to
53711         dereference state.root_argp.
53712
53713 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
53714
53715         * modules/chdir-long (Depends-on): Add memrchr.
53716         * modules/memrchr (Files): Add lib/memrchr.h.
53717         (Include): "memrchr.h".
53718
53719 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
53720
53721         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
53722
53723 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
53724
53725         * lib/memrchr.h: New file.
53726         * lib/chdir-long.c: Include it.
53727         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
53728         Don't bother including stddef.h.
53729
53730 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
53731
53732         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
53733         inclusion.
53734         Include <sys/types.h>, for dev_t.
53735         (ME_DUMMY, ME_REMOTE): Move from here....
53736         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
53737         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
53738         Dmitry V. Levin.
53739         Include mountlist.h first, to test the interface.
53740
53741 2005-01-29  Bruno Haible  <bruno@clisp.org>
53742
53743         * lib/progname.c (program_name): Initialize.
53744         Needed when linking statically on MacOS X.
53745
53746 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
53747
53748         Sync from coreutils.
53749         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
53750         (Depends-on): Add c-strtod.
53751         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
53752
53753 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
53754
53755         Sync from coreutils.
53756         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
53757
53758         Remove files that are specific to coreutils.
53759         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
53760
53761 2005-01-28  Bruno Haible  <bruno@clisp.org>
53762
53763         * modules/javacomp: New file.
53764         * MODULES.html.sh (Java): Add javacomp.
53765
53766 2005-01-28  Bruno Haible  <bruno@clisp.org>
53767
53768         * m4/javacomp.m4: New file, from GNU gettext.
53769
53770 2005-01-28  Bruno Haible  <bruno@clisp.org>
53771
53772         * lib/javacomp.sh.in: New file, from GNU gettext.
53773         * lib/javacomp.h: New file, from GNU gettext.
53774         * lib/javacomp.c: New file, from GNU gettext.
53775
53776 2005-01-26  Simon Josefsson  <jas@extundo.com>
53777
53778         * lib/gai_strerror.c: Use GPL in header.
53779
53780 2005-01-26  Bruno Haible  <bruno@clisp.org>
53781
53782         * modules/javaexec: New file.
53783         * MODULES.html.sh (Java): Add javaexec.
53784
53785 2005-01-26  Bruno Haible  <bruno@clisp.org>
53786
53787         * m4/javaexec.m4: New file, from GNU gettext.
53788
53789 2005-01-26  Bruno Haible  <bruno@clisp.org>
53790
53791         * lib/javaexec.sh.in: New file, from GNU gettext.
53792         * lib/javaexec.h: New file, from GNU gettext.
53793         * lib/javaexec.c: New file, from GNU gettext.
53794
53795 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53796
53797         * modules/lchown (Depends-on): Remove lchown.h
53798
53799 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53800
53801         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
53802         must be defined if the header file was not found, in order
53803         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
53804
53805 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53806
53807         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
53808         initializers for struct pentry_state.
53809         (__argp_error): Check return value of __asprintf
53810         (__argp_failure): Translate error message
53811
53812         * lib/argp-parse.c: Removed braces around the expansion of N_()
53813
53814 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
53815
53816         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
53817         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
53818         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
53819         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
53820         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
53821         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
53822         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
53823         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
53824         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
53825         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
53826         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
53827         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
53828         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
53829         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
53830         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
53831         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
53832         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
53833         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
53834         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
53835         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
53836         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
53837         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
53838         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
53839         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
53840         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
53841         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
53842         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
53843         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
53844         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
53845         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
53846         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
53847         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
53848         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
53849         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
53850         xstrtol.m4, xstrtoumax.m4, yesno.m4:
53851         Use an all-permissive copyright notice, recommended by RMS.
53852
53853 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
53854
53855         * modules/chdir-long (Depends-on): Remove mempcpy.
53856
53857 2005-01-21  Jim Meyering  <jim@meyering.net>
53858
53859         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
53860         same value as for Solaris 9.
53861
53862         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
53863         component length.  This included changing the parameter to be
53864         of type `char *' rather than `char const *'.
53865         * lib/chdir-long.h (chdir_long): Update prototype.
53866
53867         * lib/openat.c (fdopendir, fstatat): New functions.
53868         * lib/openat.h: Include headers required for use of DIR and struct
53869         stat.
53870         [AT_SYMLINK_NOFOLLOW]: Define.
53871         (fdopendir, fstatat): Add prototypes.
53872
53873 2005-01-21  Bruno Haible  <bruno@clisp.org>
53874
53875         * modules/classpath: New file.
53876         * MODULES.html.sh (Java): Add classpath.
53877
53878 2005-01-21  Bruno Haible  <bruno@clisp.org>
53879
53880         * lib/classpath.h: New file, from GNU gettext.
53881         * lib/classpath.c: New file, from GNU gettext.
53882
53883 2005-01-20  Simon Josefsson  <jas@extundo.com>
53884
53885         * modules/version-etc-fsf: New file.
53886
53887 2005-01-20  Simon Josefsson  <jas@extundo.com>
53888
53889         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
53890         * lib/version-etc.c: Remove version_etc_copyright.
53891         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
53892         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
53893
53894 2005-01-20  Simon Josefsson  <jas@extundo.com>
53895
53896         * lib/base64.h (isbase64): Add.
53897
53898         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
53899         using a unsigned prototype, don't inline.
53900         (base64_decode): Use it.
53901
53902 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
53903
53904         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
53905         it.
53906
53907 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
53908
53909         * lib/save-cwd.c (save_cwd): Remove code to support the case
53910         where fchdir is missing or flaky.
53911
53912 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
53913
53914         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
53915
53916 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
53917
53918         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
53919         AC_LIBSOURCES now does this.
53920         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
53921         with new ullong_max module.
53922
53923 2005-01-19  Bruno Haible  <bruno@clisp.org>
53924
53925         * modules/sh-quote: New file.
53926         * MODULES.html.sh (Executing programs): Add sh-quote.
53927
53928 2005-01-19  Bruno Haible  <bruno@clisp.org>
53929
53930         * lib/sh-quote.h: New file, from GNU gettext.
53931         * lib/sh-quote.c: New file, from GNU gettext.
53932
53933 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
53934
53935         Merge from coreutils.
53936         * m4/ullong_max.m4: New file.
53937         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
53938         (gl_MACROS): Assume localeconv exists.
53939
53940 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
53941
53942         Merge changes from coreutils, as described below in several
53943         changelogs dated today.
53944
53945         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
53946         (O_DIRECTORY): Remove; not needed here, since "." must be
53947         a directory.  All uses removed.
53948         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
53949         universal on Suns, and we also need to test for IRIX.
53950         Revamp code to use 'if' rather than '#if'.
53951         Avoid unnecessary comparison of cwd->desc to 0.
53952
53953         * lib/utimens.c (futimens): Robustify the previous patch, by checking
53954         for known valid error numbers rather than observed invalid ones.
53955
53956 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
53957
53958         * modules/ullong_max: New file.
53959
53960         * modules/chdir-long, modules/openat: New files.
53961         * modules/save-cwd (Depends-on): Depend on chdir-long.
53962         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
53963
53964 2005-01-18  Jim Meyering  <jim@meyering.net>
53965
53966         Merge from coreutils.
53967         * m4/chdir-long.m4, m4/openat.m4: New files.
53968         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
53969         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
53970         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
53971         is sane and DOES follow symlinks.  Besides, testing 20 different
53972         systems found no broken chown implementations.
53973         Prompted by a change in rsync's copy of this macro.
53974         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
53975
53976         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
53977
53978         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
53979         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
53980         NULL-means-set-to-current-time semantics.
53981         Remove temporary file immediately, rather than waiting
53982         for configure's at-exit trap code to do it.
53983
53984 2005-01-18  Jim Meyering  <jim@meyering.net>
53985
53986         * lib/version-etc.c (version_etc_copyright): Update copyright date.
53987
53988         * lib/utimens.c (futimens): Account for the fact that futimes
53989         can also fail with errno == ENOSYS or errno == ENOENT.
53990         Patch from Dmitry V. Levin.
53991
53992         Change the name of the robust chdir function from chdir to chdir_long.
53993         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
53994         (restore_cwd): Use chdir_long, not chdir.
53995         * lib/chdir-long.c: Renamed from chdir.c.
53996         * lib/chdir-long.h: Renamed from chdir.h.
53997         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
53998         Hurd.
53999
54000 2005-01-18  Bruno Haible  <bruno@clisp.org>
54001
54002         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
54003         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
54004         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
54005         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
54006         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
54007         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
54008         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
54009         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
54010         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
54011         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
54012         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
54013         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
54014         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
54015         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
54016         Use an all-permissive copyright notice, recommended by RMS.
54017
54018 2005-01-18  Bob Proulx  <bob@proulx.com>
54019
54020         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
54021         simplify offsetof() macro construct to avoid compile failure with
54022         native HP-UX 11.0 ANSI C compiler.
54023
54024 2005-01-17  Bruno Haible  <bruno@clisp.org>
54025
54026         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
54027         redundant because stpncpy.m4 takes care of it.
54028
54029 2005-01-17  Bruno Haible  <bruno@clisp.org>
54030
54031         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
54032
54033 2005-01-17  Bruno Haible  <bruno@clisp.org>
54034
54035         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
54036         used.
54037
54038 2005-01-17  Bruno Haible  <bruno@clisp.org>
54039
54040         * lib/fwriteerror.h (fwriteerror): Change specification to include
54041         fclose.
54042         * lib/fwriteerror.c: Include <stdbool.h>.
54043         (fwriteerror): At the end, close the file stream. Record whether
54044         stdout was already closed.
54045
54046 2005-01-17  Bruno Haible  <bruno@clisp.org>
54047
54048         * lib/execute.c (environ): Declare if needed.
54049         * lib/pipe.c (environ): Likewise.
54050         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
54051
54052 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
54053
54054         * modules/argp: Depend on vsnprintf
54055
54056 2005-01-10  Jim Meyering  <jim@meyering.net>
54057
54058         * modules/closeout (Depends-on): Add atexit.
54059
54060 2005-01-06  Bruno Haible  <bruno@clisp.org>
54061
54062         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
54063
54064 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
54065
54066         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
54067         definitions to be after all include files, to avoid collisions.
54068         Problem reported by Bob Proulx.
54069
54070 2005-01-04  Jim Meyering  <jim@meyering.net>
54071
54072         Changes imported from coreutils.
54073         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
54074         as the mkstemp template, use a temporary directory and an
54075         8.3-friendly template to avoid trouble on systems like DJGPP.
54076         Reported by Juan M. Guerrero via Stepan Kasal.
54077         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
54078         close. Remove the temporary directory right away, rather than waiting
54079         for configure's at-exit trap code to do it.
54080         Suggestion from Stepan Kasal.
54081
54082 2005-01-01  Simon Josefsson  <jas@extundo.com>
54083
54084         * gnulib-tool: Print #include directives when --import'ing.
54085
54086 2004-12-28  Simon Josefsson  <jas@extundo.com>
54087
54088         * tests/test-base64.c: Include required header files.  Remove
54089         unused variables.
54090
54091 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
54092
54093         * modules/error (Depends-on): Remove gettext.
54094
54095 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
54096
54097         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
54098         not needed.  This removes a dependency on the gettext module.
54099         [defined _LIBC]: Do not include <libintl.h>; not needed.
54100
54101 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
54102
54103         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
54104         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
54105
54106 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
54107
54108         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
54109         HAVE_DECL_STRTOLD.
54110
54111 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
54112
54113         * modules/getdate (Depends-on): Remove alloca-opt.
54114
54115 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
54116
54117         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
54118
54119 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
54120
54121         * lib/argp-parse.c: Include <stddef.h>.
54122         (alignof, alignto): New macros.
54123         (parser_init): Don't assume that void * is aligned sufficiently
54124         for struct option.
54125
54126         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
54127         need to extend the stack.
54128         (YYINITDEPTH): New macro, so that the initial stack isn't overly
54129         large.
54130
54131 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
54132
54133         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
54134
54135 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
54136
54137         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
54138         (2004-10-24) change.  Apparently this was a false alarm.
54139
54140         * modules/getdate: Depend on alloca-opt, not alloca.
54141
54142 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
54143
54144         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
54145         Remove now-obsolete comment about AIX.
54146         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
54147         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
54148         (YYMAXDEPTH): New macro.
54149
54150 2004-12-18  Simon Josefsson  <jas@extundo.com>
54151
54152         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
54153
54154 2004-12-18  Bruno Haible  <bruno@clisp.org>
54155
54156         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
54157
54158 2004-12-18  Bruno Haible  <bruno@clisp.org>
54159
54160         * lib/fatal-signal.c (fatal_signals): Make non-const.
54161         (init_fatal_signals): New function.
54162         (uninstall_handlers, install_handlers): Ignore signals that were set to
54163         SIG_IGN.
54164         (at_fatal_signal): Call init_fatal_signals.
54165         (init_fatal_signal_set): Likewise. Ignore signals that were set to
54166         SIG_IGN.
54167         Reported by Paul Eggert.
54168
54169 2004-12-18  Bruno Haible  <bruno@clisp.org>
54170
54171         * doc/alloca.texi: New file.
54172         * doc/alloca-opt.texi: New file.
54173
54174 2004-12-17  Jim Meyering  <jim@meyering.net>
54175
54176         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
54177         Otherwise, install-sh could exit with improper exit status when
54178         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
54179
54180 2004-12-16  Simon Josefsson  <jas@extundo.com>
54181
54182         * tests/test-base64.c: Add license.
54183
54184 2004-12-15  Stepan Kasal  <address@hidden>
54185
54186         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
54187
54188 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
54189
54190         * modules/getcwd (Files): Add m4/d-ino.m4.
54191         Suggested by Mark D. Baushke.
54192
54193 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
54194
54195         * lib/getdate.y (textint): New member "negative".
54196         (time_zone_hhmm): New function.
54197         Expect 14 shift-reduce conflicts, not 13.
54198         (o_colon_minutes): New rule.
54199         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
54200         (yylex): Set the "negative" member of signed numbers.
54201
54202 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
54203
54204         * doc/getdate.texi (Time of day items, Time zone items):
54205         Describe new formats +00:00, UTC+00:00.
54206
54207 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
54208
54209         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
54210         spurious "-l"s.  Problem reported by Stepan Kasal.
54211
54212 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
54213
54214         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
54215         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
54216
54217 2004-12-04  Simon Josefsson  <jas@extundo.com>
54218
54219         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
54220         Vandoorselaere <yoann@prelude-ids.org>.
54221
54222 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
54223
54224         Changes imported from coreutils.
54225         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
54226         exist.
54227         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
54228
54229 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
54230
54231         Changes imported from coreutils.
54232         * lib/hard-locale.c: Assume <locale.h> exists.
54233         Include "strdup.h".
54234         (GLIBC_VERSION): New macro.
54235         (hard_locale): Assume setlocale exists.
54236         Rewrite to avoid #ifdef.
54237         Use strdup rather than malloc + strcpy.
54238         * lib/human.c: Assume <locale.h> exists.
54239         (human_readable): Assume localeconv exists.
54240
54241 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
54242
54243         * modules/hard-locale (Depends-on): Add strdup.
54244
54245 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
54246
54247         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
54248         convert T2, not T.  (Imported from libc.)
54249
54250 2004-11-30  Simon Josefsson  <jas@extundo.com>
54251
54252         * modules/restrict (License): Change to LGPL.
54253
54254 2004-11-30  Simon Josefsson  <jas@extundo.com>
54255
54256         * m4/restrict.m4: Add copyright and copying conditions.
54257
54258 2004-11-30  Simon Josefsson  <jas@extundo.com>
54259
54260         * m4/base64.m4: New file.
54261
54262 2004-11-30  Simon Josefsson  <jas@extundo.com>
54263
54264         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
54265         base64.
54266
54267         * tests/test-base64.c: New file.
54268
54269         * modules/base64: New file.
54270
54271 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
54272
54273         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
54274         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
54275
54276         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
54277
54278 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
54279
54280         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
54281         (__getcwd.c): Don't restore errno; glibc doesn't.
54282         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
54283         first, falling back to our code only if its results look suspicious.
54284         Ensure that the resulting buffer is only as large as necessary.
54285
54286         * lib/readutmp.c: Include readutmp.h first.
54287         Include <errno.h>, since readutmp.h no longer does that.
54288         * lib/readutmp.h: Don't include <errno.h>,
54289         <sys/param.h>, <time.h>; not needed to establish interface.
54290         (errno): Remove decl.
54291         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
54292         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
54293         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
54294
54295 2004-11-28  Simon Josefsson  <jas@extundo.com>
54296
54297         * lib/base64.h, base64.c: New file.
54298
54299 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
54300
54301         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
54302
54303 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
54304
54305         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
54306         (Depends-on): Remove pathmax, same.  Add mempcpy.
54307         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
54308         (Makefile.am): Append getcwd.h to lib_SOURCES.
54309         (Include): Add getcwd.h.
54310         (Maintainer): Change from Jim Meyering to "all, glibc",
54311         since getdate now uses intended-for-glibc code.
54312         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
54313         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
54314
54315 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
54316
54317         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
54318         HP's ANSI C compiler.
54319         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
54320         Declaring int functions causes warnings on some modern systems and
54321         shouldn't be needed to compile on ancient ones.
54322         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
54323         defined.
54324
54325         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
54326         with the following changes.
54327         (__set_errno): Parenthesize properly.
54328         Include <stdbool.h>.
54329         (MIN, MAX, MATCHING_INO): New macros.
54330         (__getcwd): Define with prototype, not K&R form.
54331         Use heuristics to allocate default buffer on stack if possible.
54332         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
54333         behavior, and to avoid the PATH_MAX limit when computing
54334         ../../../../...
54335         Use MATCHING_INO to compare inode number to file.
54336         Check for arithmetic overflow in size calculations.
54337         Fix bug in reallocation of dot array that caused getcwd to fail
54338         on directories nested deeper than 75.
54339         Be more careful about saving errno on error.
54340         Do not use realloc; use only free+malloc, as this is a bit
54341         more flexible and avoids a needless copy operation.
54342         Do not inspect st_dev and st_ino for symbolic links; POSIX
54343         doesn't specify the latter.
54344         Check for closedir errors.
54345         Avoid needless casts.
54346         Use "#ifdef weak_alias" around weak_alias, to be like other
54347         glibc code.
54348         The following changes to getcwd.c have effect only when used in
54349         gnulib; they have no effect inside glibc proper.
54350         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
54351         as alloca isn't used.
54352         (alloca, __alloca): Likewise.
54353         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
54354         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
54355         unconditionally, as gnulib assumes C89 or better.
54356         Do not include <sys/param.h>.
54357         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
54358         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
54359         better.
54360         (NULL) [!defined NULL]: Remove; we assume C89 or better.
54361         Include <dirent.h> in a way that is compatible with modern Autoconf.
54362         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
54363         New macros, if not already defined.
54364         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
54365         Use "_LIBC", not "defined _LIBC", for consistency.
54366         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
54367         a mempcpy module.
54368         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
54369         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
54370         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
54371         credit only to Jim Meyering and adjust the copyright dates.
54372         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
54373         <stdlib.h>, <unistd.h>, "pathmax.h".
54374         Instead, include "xgetcwd.h" (first) and "getcwd.h".
54375         (INITIAL_BUFFER_SIZE): Remove.
54376         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
54377
54378 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
54379
54380         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
54381         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
54382         Use the _ONCE methods, for efficiency.
54383         Check for fcntl.h.  In test program, include <errno.h>
54384         and <fcntl.h> if available.  Remove old K&R cruft from
54385         test program.  Check for common errors in GNU/Linux,
54386         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
54387         don't do AC_LIBOBJ, as that's getcwd.m4's job.
54388         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
54389         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
54390         name accordingly.
54391         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
54392         accommodate new getcwd.c.
54393         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
54394         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
54395         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
54396         that's all we need now.
54397
54398 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
54399
54400         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
54401         argp-parse.c depends on getopt internals, that means we should
54402         always use our getopt, to be on the safe side.
54403         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
54404         order not to spoil the result of an eventual previous invocation
54405         of gl_GETOPT_SUBSTITUTE.
54406
54407 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
54408
54409         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
54410         redefinition warnings. To avoid them, include the defines
54411         in `#if !defined __need_getopt ... #endif'. The only place
54412         where __getopt_argv_const is used is in definitions
54413         of getopt_long and getopt_long_only below, which are as well
54414         protected by `#ifndef __need_getopt'.
54415         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
54416         __need_getopt after including <stdio.h> and <unistd.h> These
54417         headers might have defined it.
54418
54419 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
54420
54421         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
54422
54423 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
54424
54425         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
54426         (futimens): New function, which uses futimes if available.
54427         (futimens, utimens): Support timespec==NULL, with same semantics
54428         as utime and utimens.
54429         * lib/utimens.h (futimens): New decl.
54430
54431 2004-11-23  Jim Meyering  <jim@meyering.net>
54432
54433         * lib/getopt_.h: Remove trailing blanks.
54434
54435 2004-11-23  Jim Meyering  <jim@meyering.net>
54436
54437         * lib/__fpending.c: Add comment.
54438
54439 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
54440
54441         * modules/canonicalize (Depends-on): Add xreadlink.
54442         Problem reported by James Youngman.
54443
54444 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
54445
54446         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
54447         New macros.
54448         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
54449         optopt): Use them instead of invoking ## directly; otherwise, the
54450         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
54451
54452 2004-11-19  Bruno Haible  <bruno@clisp.org>
54453
54454         * lib/strtok_r.c: Move comments from here...
54455         * lib/strtok_r.h: ... to here.
54456
54457 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
54458
54459         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
54460         implementations that mishandle size_t overflow.
54461
54462 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
54463
54464         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
54465         might fail.  Problem reported by Yoann Vandoorselaere.
54466         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
54467         implementations that mishandle size_t overflow.
54468
54469 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
54470
54471         * modules/canon-host (Depends-on): Add strdup.
54472
54473 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
54474
54475         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
54476
54477 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
54478
54479         * lib/canon-host.c: Include "strdup.h".
54480         (canon_host): Use getaddrinfo if available, so that IPv6 works.
54481         Use strdup instead of malloc/strcpy to duplicate strings.
54482
54483         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
54484         (human_space_before_unit): New constant.
54485         * lib/human.c (human_readable): Support it.
54486
54487         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
54488         (xgetcwd): Set errno correctly when failing.
54489         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
54490         the failure is actually due to a PATH_MAX problem.
54491
54492         Further getopt changes to make it more likely that glibc will
54493         buy the changes back.
54494         * lib/getopt.c (POSIXLY_CORRECT): New constant.
54495         (getopt): Use it, so to preserve glibc semantic
54496         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
54497         when compiling for libc.
54498         * lib/getopt_.h (__getopt_argv_const): Bring it back.
54499         (getopt_long, getopt_long_only): Use it.
54500
54501         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
54502         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
54503         (getopt): Argv is now char * const *, as per standard.
54504         (_getopt_internal_r, _getopt_internal): Argv is now char **,
54505         not char *__getopt_argv_const *.
54506         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
54507         _getopt_long_only_r): Likewise.
54508         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
54509         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
54510         _getopt_long_r, _getopt_long_only_r): Likewise.
54511         * lib/getopt_.h (__getopt_argv_const): Remove.
54512         (getopt): Argv is now char * const *, as per standard.
54513
54514         * lib/getdate.y (tORDINAL): New token.
54515         (day, relunit): Allow it for relative times.
54516         (relative_time_table): Use tORDINAL for ordinals.
54517
54518 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
54519
54520         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
54521         Document that "second" isn't allowed as an ordinal number.
54522
54523 2004-11-16  Jim Meyering  <jim@meyering.net>
54524
54525         * modules/closeout (Depends-on): Add fpending.
54526
54527 2004-11-15  Jim Meyering  <jim@meyering.net>
54528
54529         * lib/closeout.c: Include "__fpending.h" once again.
54530         Include <stdbool.h>.
54531         (close_stdout): Don't fail just because stdout was closed initially,
54532         since some programs don't write to stdout in the normal course of
54533         operation (other than --version and --help), and we don't want this
54534         function to make e.g. `touch file >&-' fail.
54535         But do fail if it was closed and someone has tried to write to it.
54536         E.g., `printf foo >&-' must fail.
54537
54538 2004-11-13  Jim Meyering  <jim@meyering.net>
54539
54540         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
54541
54542 2004-11-12  Simon Josefsson  <jas@extundo.com>
54543
54544         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
54545         small doc fix is still pending.
54546
54547 2004-11-11  Simon Josefsson  <jas@extundo.com>
54548
54549         * modules/strtok_r: New file.
54550
54551         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54552         strtok_r.
54553
54554 2004-11-11  Simon Josefsson  <jas@extundo.com>
54555
54556         * m4/strtok_r.m4: New file.
54557
54558         * m4/getopt.m4: Replace opterr.
54559
54560 2004-11-11  Simon Josefsson  <jas@extundo.com>
54561
54562         * lib/strtok_r.h, strtok_r.c: New file.
54563
54564 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
54565
54566         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
54567         of replacing opterr, getopt, etc.  This should handle the
54568         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
54569
54570 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
54571
54572         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
54573         we can stop lying to compilers about the constness of argv when we
54574         are compiled outside glibc.
54575         (getopt, getopt_long, getopt_long_only): Use it.
54576         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
54577         _getopt_internal, getopt): Likewise.
54578         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
54579         _getopt_long_only_r): Likewise.
54580         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
54581         _getopt_long_r, _getopt_long_only_r): Likewise.
54582
54583         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
54584         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
54585         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
54586         the other external symbols.
54587         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
54588         declaration, since the above renaming now works around collisions.
54589
54590 2004-11-11  Jim Meyering  <jim@meyering.net>
54591
54592         * lib/linebreak.c: Remove trailing blanks.
54593         * lib/alloca_.h: Likewise.
54594         * lib/acosl.c: Likewise.
54595         * lib/euidaccess.c: Likewise.
54596         * lib/allocsa.h: Likewise.
54597
54598 2004-11-10  Simon Josefsson  <jas@extundo.com>
54599
54600         * m4/getaddrinfo.m4: New file.
54601
54602 2004-11-10  Simon Josefsson  <jas@extundo.com>
54603
54604         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
54605
54606 2004-11-10  Simon Josefsson  <jas@extundo.com>
54607
54608         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54609         getaddrinfo.
54610
54611         * modules/getaddrinfo: New file.
54612
54613 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
54614
54615         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
54616
54617 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
54618
54619         * lib/mktime.c (SHR): New macro, which is a portable
54620         substitute for >> that should work even on Crays.
54621         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
54622         Problem reported by Mark D. Baushke in
54623         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
54624         * lib/getdate.y (SHR): Likewise.
54625         (tm_diff): Use it.
54626         * lib/strftime.c (SHR): Likewise.
54627         (tm_diff): Use it.
54628         * lib/quotearg.c (struct quoting_options): Use unsigned int for
54629         quote_these_too, so that right shifts are well defined.  All uses
54630         changed.
54631
54632 2004-11-10  Jim Meyering  <jim@meyering.net>
54633
54634         Ensure that no close failure goes unreported.
54635         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
54636         return early when it seems there's nothing to flush.
54637         Don't include __fpending.h.
54638
54639 2004-11-10  Jim Meyering  <jim@meyering.net>
54640
54641         * modules/closeout (Depends-on): Remove fpending.
54642
54643 2004-11-10  Jim Meyering  <jim@meyering.net>
54644
54645         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
54646
54647 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
54648
54649         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
54650         gl_FUNC_STRFTIME.
54651         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
54652         and AC_REQUIRE when possible, to avoid duplicate checks.
54653         Check for <wchar.h>.
54654
54655 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
54656
54657         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
54658
54659 2004-11-09  Bruno Haible  <bruno@clisp.org>
54660
54661         * m4/sockpfaf.m4: New file.
54662
54663 2004-11-05  Bruno Haible  <bruno@clisp.org>
54664
54665         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
54666         Reported by Mark D. Baushke <mdb@cvshome.org>.
54667
54668 2004-11-04  Bruno Haible  <bruno@clisp.org>
54669
54670         2004-09-11  Bruno Haible  <bruno@clisp.org>
54671                 * allocsa.valgrind: New file.
54672         2004-02-06  Bruno Haible  <bruno@clisp.org>
54673                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
54674                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
54675                 Reported by Christopher Seip <chris.seip@hp.com>.
54676
54677 2004-11-04  Bruno Haible  <bruno@clisp.org>
54678
54679         * modules/allocsa (Files): Add lib/allocsa.valgrind.
54680         (Makefile.am): Distribute it.
54681
54682 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
54683
54684         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
54685         with errno == ERANGE if the buffer is too small.
54686         Problem reported by Mark D. Baushke.
54687
54688 2004-11-03  Albert Chin  <china@thewrittenword.com>
54689             Paul Eggert  <eggert@cs.ucla.edu>
54690
54691         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
54692         equivalent, substitute $ac_type for equivalent type rather than
54693         blindly using uint32_t *always* which won't work if uint32_t is not
54694         available.  Define _UINT32_T to work around typedef of uint32_t if
54695         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
54696         2.5.1.
54697
54698 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
54699
54700         * m4/jm-macros.m4: Sync from coreutils.
54701         (gl_MACROS): Check for mbrlen, for pathchk.
54702         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
54703
54704 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
54705
54706         * lib/xreadlink.c (MAXSIZE): New macro.
54707         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
54708         size does not exceed MAXSIZE.  Avoid cast.
54709         As suggested by Mark D. Baushke in
54710         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
54711         if readlink fails with buffer size just under MAXSIZE, try again
54712         with MAXSIZE.
54713
54714 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
54715
54716         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
54717
54718 2004-11-02  Derek R. Price  <derek@ximbiot.com>
54719         and  Paul Eggert  <eggert@cs.ucla.edu>
54720
54721         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
54722         (get_date): Overparenthesize to avoid GCC warning.
54723
54724 2004-11-02  Bruno Haible  <bruno@clisp.org>
54725
54726         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
54727         returns void.
54728
54729 2004-11-02  Bruno Haible  <bruno@clisp.org>
54730
54731         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
54732         function returns void.
54733
54734 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
54735
54736         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
54737         fflush_unlocked, flockfile, funlockfile, funlockfile,
54738         fputs_unlocked, putc_unlocked.
54739
54740 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
54741
54742         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
54743         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
54744         already declared.
54745
54746 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
54747
54748         * modules/getdate (Files): Add doc/getdate.texi.
54749         (Depends-on): Add setenv, xalloc.
54750
54751 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
54752
54753         * lib/getdate.y: Add support for TZ="foo" within a date string.
54754         Fix some bugs near time_t boundaries.  Reject dates with
54755         out-of-range components, e.g., "Sept 31".
54756         Include <stdlib.h>, "setenv.h", "xalloc.h".
54757         (ISDIGIT_LOCALE): Remove; unused.
54758         Note that the TZ and time functions used here are not reentrant.
54759         (mktime_ok, get_tz): New functions.
54760         (TZBUFSIZE): New constant.
54761         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
54762         This requires that we sometimes generate our own TZ="XXX..." setting.
54763
54764 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
54765
54766         * doc/getdate.texi: New file, from coreutils with modifications for
54767         the new TZ parsing.
54768
54769 2004-10-27  Derek R. Price  <derek@ximbiot.com>
54770
54771         * lib/mktime.c (not_equal_tm): Remove redundant check.
54772
54773 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
54774
54775         * modules/regex (lib_SOURCES): Add regex.c.
54776         Reported by James Youngman in
54777         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
54778
54779 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
54780
54781         * lib/getdate.y: Use Bison 1.875 features, and some minor
54782         code cleanups.  This change does not affect semantics.
54783         Don't include <stdlib.h>; no longer needed.
54784         Don't include unlocked-io.h; only the "#if TEST" code uses
54785         stdio, and performance isn't crucial there.
54786         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
54787         Bison 1.875 features as described below.
54788         All uses of "PC." replaced by "pc->".
54789         (YYSTYPE): Add a forward declaration.
54790         (yylex, yyerror): Use full prototypes in forward decls.
54791         Use "%pure-parser" rather than obsolescent "%pure_parser".
54792         Use %parse-param and %lex-param instead of obsolescent
54793         YYPARSE_PARAM and YYLEX_PARAM.
54794         (meridian_table, month_and_day_table, time_units_table,
54795         relative_time_table, time_zone_table, military_table,
54796         lookup_zone, lookup_word, get_date):
54797         Use NULL instead of 0 where appropriate.
54798         (to_hour): Avoid abort (), to avoid a dependency on
54799         stdlib.h.
54800         (yyerror, yylex): Now accepts parser_control * arg.
54801         (main) [TEST]: Use '\0' rather than 0 for char.
54802
54803 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
54804
54805         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
54806
54807 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
54808
54809         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
54810         It's now the caller's responsibility to handle the case where
54811         !HAVE_GETPAGESIZE && !defined getpagesize.
54812
54813         * lib/mktime.c (leapyear): Arg is long int, not int.
54814
54815 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
54816
54817         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
54818
54819 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
54820
54821         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
54822         missing.  Problem reported by James Youngman.
54823
54824 2004-10-16  Simon Josefsson  <jas@extundo.com>
54825
54826         * gnulib-tool: Fix comments.  Fix parse problem.
54827         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
54828
54829 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
54830
54831         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
54832         implementation of getopt_long.  Problem reported by Alexander Taler in:
54833         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
54834
54835 2004-10-15  Bruno Haible  <bruno@clisp.org>
54836
54837         * gnulib-tool: Untabify. Initialize supplied_libname.
54838         (func_usage): More homogenous output.
54839         (func_modules_transitive_closure, func_modules_to_filelist,
54840         func_emit_lib_Makefile_am): New functions.
54841         (func_import): New function, extracted from big case statement. Use
54842         func_get_license, func_modules_transitive_closure,
54843         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
54844         opt_lgpl. Don't use test -a, as it's not portable.
54845         (func_create_testdir): Use func_modules_transitive_closure,
54846         func_modules_to_filelist, func_emit_lib_Makefile_am.
54847
54848 2004-10-15  Bruno Haible  <bruno@clisp.org>
54849
54850         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
54851
54852 2004-10-15  Bruno Haible  <bruno@clisp.org>
54853
54854         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
54855         the portions belonging to each module.
54856         Suggested by Derek Robert Price <derek@ximbiot.com>.
54857
54858 2004-10-12  Simon Josefsson  <jas@extundo.com>
54859
54860         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
54861         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
54862         to real functions.
54863
54864 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54865
54866         * modules/vsnprintf: New file.
54867
54868 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54869
54870         * m4/vsnprintf.m4: New file.
54871
54872 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54873
54874         * lib/vsnprintf.h: New file.
54875         * lib/vsnprintf.c: New file.
54876
54877 2004-10-11  Bruno Haible  <bruno@clisp.org>
54878
54879         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
54880         vsnprintf.
54881
54882 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
54883
54884         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
54885
54886 2004-10-07  Bruno Haible  <bruno@clisp.org>
54887
54888         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
54889         fits into the provided buffer.
54890
54891 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
54892
54893         * lib/diacrit.c, diacrit.h: Add GPL notice.
54894
54895         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
54896         notice.
54897         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
54898         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
54899         This avoids a potential constant-folding bug.
54900
54901 2004-10-05  Bruno Haible  <bruno@clisp.org>
54902
54903         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
54904         for the declaration of strsep.
54905
54906 2004-10-05  Bruno Haible  <bruno@clisp.org>
54907
54908         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
54909
54910 2004-10-04  Simon Josefsson  <jas@extundo.com>
54911
54912         * modules/memmem: New file.
54913         * tests/test-memmem.c: New file.
54914         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
54915
54916 2004-10-04  Simon Josefsson  <jas@extundo.com>
54917
54918         * m4/memmem.m4: New file.
54919
54920 2004-10-04  Simon Josefsson  <jas@extundo.com>
54921
54922         * lib/memmem.h: New file.
54923         * lib/memmem.c: New file, taken from glibc.
54924
54925 2004-10-04  Simon Josefsson  <jas@extundo.com>
54926
54927         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
54928         '#ifdef USE_UNLOCKED_IO'.
54929
54930 2004-10-04  Simon Josefsson  <jas@extundo.com>
54931
54932         * config/srclist.txt: Add memmem from glibc.
54933
54934 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
54935
54936         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
54937
54938         * modules/argmatch, modules/argp, modules/closeout, modules/error,
54939         modules/exclude, modules/getdate, modules/getline,
54940         modules/getndelim2, modules/getpass, modules/getpass-gnu,
54941         modules/getusershell, modules/linebuffer, modules/md5,
54942         modules/mountlist, modules/posixtm, modules/readtokens,
54943         modules/readutmp, modules/regex, modules/sha1,
54944         modules/version-etc, modules/yesno:
54945         Remove dependency on unlocked-io.
54946
54947 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
54948
54949         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
54950
54951         * m4/unlocked-io.m4: Add copyright notice.
54952         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
54953
54954 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
54955
54956         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
54957         * lib/xmalloc.c (xmemdup): Likewise.
54958         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
54959         XFREE): Remove these long-obsolescent macros.
54960         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
54961         * lib/xstrdup.c: Remove.
54962
54963         * lib/regex.c (re_comp): Cast gettext return value to char *,
54964         Problem reported by Martin Neitzel via Mark D. Baushke.
54965
54966 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
54967
54968         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
54969         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
54970         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
54971         regex.c, sha1.c, version-etc.c, yesno.c:
54972         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
54973         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
54974         the includer's responsibility.
54975
54976         Sync from coreutils.
54977
54978         * lib/modechange.c (mode_compile): Don't decrement a pointer that
54979         points to the start of a string, as the C Standard says the
54980         resulting behavior is undefined.
54981
54982         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
54983         simple -> simple_backups, numbered_existing ->
54984         numbered_existing_backups, numbered -> numbered_backups
54985         to avoid shadowing problems.  All uses changed.
54986         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
54987         * lib/backupfile.c (check_extension, numbered_backup):
54988         Rename locals to avoid shadowing 'basename'.
54989         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
54990         once.
54991
54992         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
54993         * lib/.cvsignore: Add getopt.h.
54994
54995 2004-10-04  Bruno Haible  <bruno@clisp.org>
54996
54997         * modules/README: New file.
54998         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
54999         not a module.
55000
55001 2004-10-02  Jim Meyering  <jim@meyering.net>
55002
55003         * lib/dirfd.h, getpagesize.h: Add copyright notice.
55004
55005 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
55006
55007         * modules/strsep: New file.
55008
55009 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
55010
55011         * m4/strsep.m4: New file.
55012
55013 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
55014
55015         * lib/strsep.h: New file.
55016         * lib/strsep.c: New file.
55017
55018 2004-10-01  Simon Josefsson  <jas@extundo.com>
55019
55020         * lib/snprintf.c (snprintf): Handle size==0.
55021
55022 2004-10-01  Simon Josefsson  <jas@extundo.com>
55023             Bruno Haible  <bruno@clisp.org>
55024
55025         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
55026         (snprintf): Declare 'args'.
55027
55028 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
55029
55030         * lib/snprintf.c: Remove comments as to why each header is needed.
55031
55032 2004-10-01  Bruno Haible  <bruno@clisp.org>
55033
55034         * MODULES.html.sh: Add strsep.
55035
55036 2004-09-30  Simon Josefsson  <jas@extundo.com>
55037
55038         * modules/snprintf: New file.
55039
55040 2004-09-30  Simon Josefsson  <jas@extundo.com>
55041
55042         * m4/snprintf.m4: New file.
55043
55044 2004-09-30  Simon Josefsson  <jas@extundo.com>
55045
55046         * lib/snprintf.h, lib/snprintf.c: New files.
55047
55048 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
55049
55050         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
55051         (hol_entry_help): Never translate an empty string.
55052         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
55053         * lib/argp.h (OPTION_NO_TRANS): New option.
55054
55055 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
55056
55057         * modules/argp (Maintainer): Replace Simon Josefsson
55058         by Sergey Poznyakoff.
55059
55060 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
55061
55062         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
55063         changes merged back into glibc.
55064
55065 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
55066
55067         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
55068
55069 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
55070
55071         * lib/xvasprintf.c: Include xalloc.h.
55072         (xvasprintf): Use xalloc_die, not xmalloc_die.
55073
55074 2004-09-29  Bruno Haible  <bruno@clisp.org>
55075
55076         * modules/alloca-opt: New file, derived from modules/alloca.
55077         * modules/allocsa: Depend on alloca-opt instead of alloca.
55078         * modules/setenv: Likewise.
55079         * modules/vasnprintf: Likewise.
55080         * MODULES.html.sh: Add alloca-opt.
55081
55082 2004-09-28  Simon Josefsson  <jas@extundo.com>
55083
55084         * gnulib-tool: New parameter --lgpl, to asseert that modules are
55085         LGPL, and to replace license template from GPL to LGPL.
55086
55087 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
55088
55089         * modules/dummy: Change license to LGPL.
55090
55091 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
55092
55093         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
55094
55095 2004-09-24  Simon Josefsson  <jas@extundo.com>
55096
55097         * modules/minmax (License): Change from GPL to LGPL.
55098
55099 2004-09-23  Simon Josefsson  <jas@extundo.com>
55100
55101         * gnulib-tool (--import): Typo.
55102
55103 2004-09-23  Simon Josefsson  <jas@extundo.com>
55104
55105         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
55106
55107 2004-09-22  Bruno Haible  <bruno@clisp.org>
55108
55109         * modules/*: Add 'License' field.
55110         * gnulib-tool: Accept --extract-license option.
55111         (func_get_license): New function.
55112
55113 2004-09-21  Bruno Haible  <bruno@clisp.org>
55114
55115         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
55116         Reported by Simon Josefsson.
55117
55118 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
55119
55120         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
55121         gl_AC_TYPE_LONG_LONG.
55122
55123 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
55124
55125         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
55126
55127 2004-09-18  Simon Josefsson  <jas@extundo.com>
55128         and  Paul Eggert  <eggert@cs.ucla.edu>
55129
55130         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
55131         calls with autoreconf.  Define GL_LIB.
55132
55133 2004-09-14  Karl Berry  <karl@gnu.org>
55134
55135         * config/srclist.txt: unsync setenv.c, sigh.
55136
55137 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
55138
55139         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
55140         Problem reported by Bruno Haible in:
55141         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
55142
55143 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
55144
55145         * config/srclist.txt: Comment out argp-pvh.c.
55146
55147 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
55148
55149         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
55150         in case some system header has #define'd it.  Problem reported by
55151         Soeren D. Schulze in
55152         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
55153
55154 2004-09-09  Karl Berry  <karl@gnu.org>
55155
55156         * regex.[ch]: delete from the root.  These were supposed to be
55157                 synced with emacs cvs, but this has not happened for about
55158                 a year, and anyway nothing else uses emacs regex.[ch].
55159                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
55160                 lib/regex[.ch] is untouched.
55161
55162 2004-09-09  Bruno Haible  <bruno@clisp.org>
55163
55164         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
55165
55166 2004-09-09  Bruno Haible  <bruno@clisp.org>
55167
55168         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
55169         modifications.
55170         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
55171
55172 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
55173
55174         * modules/xvasprintf: New file.
55175         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
55176
55177 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
55178
55179         * lib/xvasprintf.h: New file.
55180         * lib/xvasprintf.c: New file.
55181         * lib/xasprintf.c: New file.
55182
55183 2004-09-08  Bruno Haible  <bruno@clisp.org>
55184
55185         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
55186
55187 2004-09-08  Bruno Haible  <bruno@clisp.org>
55188
55189         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
55190         length is > INT_MAX.
55191         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
55192         more.
55193
55194 2004-09-08  Bruno Haible  <bruno@clisp.org>
55195
55196         * lib/stdint_.h: New file, taken from GNU clisp.
55197
55198 2004-09-08  Bruno Haible  <bruno@clisp.org>
55199             Oskar Liljeblad  <oskar@osk.mine.nu>
55200
55201         * modules/stdint: New file.
55202         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
55203
55204 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
55205
55206         Import from coreutils.
55207         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
55208         strings on unbounded length.  alloca's performance benefits aren't
55209         that important here.
55210         (V_STRDUP): Remove.
55211         (parse_with_separator): New function, with most of the internals
55212         of the old parse_user_spec.  Allow user to omit both user and group,
55213         for compatibility with FreeBSD.
55214         Clone only the user name, not the entire spec.
55215         Do not set *uid, *gid unless entirely successful.
55216         Avoid memory leak in some failing cases.
55217         Fix regression for USER.GROUP reported by Dmitry V. Levin in
55218         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
55219         (parse_user_spec): Rewrite to use parse_with_separator.
55220
55221 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
55222
55223         * modules/userspec: Don't depend on alloca.
55224
55225 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
55226
55227         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
55228
55229 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
55230
55231         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
55232         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
55233         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
55234
55235 2004-08-16  Simon Josefsson  <jas@extundo.com>
55236
55237         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
55238         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
55239         Add --dry-run for --import.
55240         Let user provided command line parameters override configure.ac
55241         settings.
55242
55243 2004-08-12  Simon Josefsson  <jas@extundo.com>
55244
55245         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
55246         as discussed with Paul Eggert in threads rooted at
55247         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
55248         and
55249         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
55250         Before, the test was empty, and relied on ELIDE_CODE in source
55251         code.)
55252         (gl_PREREQ_GETOPT): New macro.
55253         (gl_GETOPT): Use them.
55254
55255 2004-08-12  Simon Josefsson  <jas@extundo.com>
55256
55257         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
55258         * lib/getopt_.h: Renamed from getopt.h.
55259
55260 2004-08-12  Simon Josefsson  <jas@extundo.com>
55261
55262         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
55263         Change default library name from libfoo to libgnu.
55264         Now, if you have a configure.ac that says:
55265                 gl_SOURCE_BASE(gl)
55266                 gl_M4_BASE(gl/m4)
55267                 gl_MODULES(error getopt etcetera)
55268                 gl_INIT
55269         you can import all you need by running:
55270                 ../gnulib/gnulib-tool --import
55271
55272         * modules/getopt (Files): Rename getopt.h to getopt_.h.
55273         (Makefile.am): Rewrite, use logic from argz.
55274         (Include): Use <getopt.h> instead of "getopt.h".
55275
55276 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
55277
55278         * modules/argp (Files): Add m4/unlocked-io.m4.
55279         (Depends-on): Add extensions.
55280
55281 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
55282
55283         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
55284         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
55285         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
55286         Check for program_invocation_name, program_invocation_short_name,
55287         flockfile, funlockfile, features.h, _getopt_long_only_r.
55288
55289 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
55290
55291         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
55292         its complicated substitute.
55293         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
55294         and program_invocation_name.
55295         (__argp_basename) [!_LIBC]: Remove; the only use was
55296         replaced by its body.
55297         (__argp_short_program_name): Change condition from
55298         !defined __argp_short_program_name to
55299         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
55300         to match argp-namefrob.h.
55301         (__argp_failure): Don't assume strerror_r returns char *.
55302         * lib/argp-parse.c (N_): Define unconditionally.
55303         (argp_default_options): Fill out initializers with 0 to avoid
55304         gcc warnings.
55305
55306 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
55307
55308         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
55309         getopt1.c.
55310
55311 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
55312
55313         Merge from coreutils.
55314
55315         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
55316
55317         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
55318         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
55319
55320 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
55321
55322         Merge from coreutils.
55323
55324         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
55325         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
55326         for Reliant Unix 5.43.
55327
55328         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
55329         (union fooround): Use uintmax_t, not long int.
55330         The rest is a merge from libc:
55331         [defined _LIBC]: Include <shlib-compat.h>.
55332         (_obstack) [defined _LIBC]: Remove after 2.3.4.
55333
55334         * lib/settime.c (settime): Recode to avoid warning with
55335         Sun Forte C 6U2.
55336
55337         * lib/strverscmp.c: Convert to UTF-8.
55338
55339 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
55340
55341         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
55342         m4/uintmax_t.m4.
55343
55344 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
55345
55346         * modules/xalloc-die: New file.
55347         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
55348
55349         * modules/md5 (Files): Add m4/uint32_t.m4.
55350         * modules/sha1: Renamed from modules/sha.
55351         (Files):
55352         Rename lib/sha.h to lib/sha1.h.
55353         Rename lib/sha.c to lib/sha1.c.
55354         Rename m4/sha.m4 to m4/sha1.m4.
55355         (lib_SOURCES): Likewise.
55356         (configure.ac): Rename gl_SHA to gl_SHA1.
55357         (Include): sha.h -> sha1.h.
55358
55359 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
55360
55361         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
55362         * m4/sha1.m4: Renamed from sha.m4.
55363         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
55364
55365 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
55366
55367         * lib/obstack.h (obstack_empty_p):
55368         Don't assume that chunk->contents is suitably aligned.
55369         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
55370         Likewise. Problem reported by Benno in
55371         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
55372
55373         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
55374         readable.  This could be improved further but it'd take some work.
55375
55376 2004-08-08  Simon Josefsson  <jas@extundo.com>
55377
55378         * modules/xgethostname (Depends-on): Remove exit and error (not
55379         used).
55380
55381         * modules/getpass-gnu: Add getpass.h.
55382         (Depends-on): Add stdbool.
55383         * modules/getpass: Add getpass.h.
55384
55385 2004-08-08  Simon Josefsson  <jas@extundo.com>
55386
55387         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
55388         Check getpass declaration.
55389
55390 2004-08-08  Simon Josefsson  <jas@extundo.com>
55391
55392         * lib/xgethostname.c: Don't include error.h (not used).
55393
55394         * lib/getpass.h: Add.
55395         * lib/getpass.c: Include getpass.h first.
55396
55397 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
55398
55399         * lib/xalloc-die.c: New file.
55400         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
55401         All uses removed.
55402         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
55403         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
55404         xalloc-die.c.
55405         (_, N_, xalloc_die): Move to xalloc-die.c.
55406         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
55407         so that we needn't mess with xalloc_msg_memory_exhausted.
55408
55409         * lib/sha1.h: Renamed from sha.h.
55410         (SHA1_H): Renamed from _SHA_H.
55411         (sha1_ctx): Renamed from sha_ctx.
55412         (sha1_init_ctx): Renamed from sha_init_ctx.
55413         (sha1_process_block): Renamed from sha_process_block.
55414         (sha1_process_bytes): Renamed from sha_process_bytes.
55415         (sha1_finish_ctx): Renamed from sha_finish_ctx.
55416         (sha1_read_ctx): Renamed from sha_read_ctx.
55417         (sha1_stream): Renamed from sha_stream.
55418         (sha1_buffer): Renamed from sha_buffer.
55419         * lib/sha1.c: Likewise; renamed from sha.c.
55420         Do not include <sys/types.h>.
55421         Include <stddef.h> rather than <stdlib.h>.
55422
55423 2004-08-08  Bruno Haible  <bruno@clisp.org>
55424
55425         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
55426         FILESYSTEM_PREFIX_LEN.
55427         * lib/progreloc.c: Likewise.
55428         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
55429
55430 2004-08-06  Simon Josefsson  <jas@extundo.com>
55431
55432         * modules/progname (Depends-on): Don't depend on stdbool.
55433
55434 2004-08-06  Simon Josefsson  <jas@extundo.com>
55435
55436         * modules/getsubopt: New file.
55437         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
55438         getsubopt.
55439
55440 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
55441
55442         More merge from coreutils.
55443
55444         * m4/utimens.m4, m4/utimecmp.m4: New files.
55445         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
55446         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
55447         prereq.m4, sha.m4: Import changes from coreutils.
55448
55449 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
55450
55451         More merge from coreutils.
55452         * modules/raise, modules/readtokens0, modules/utimens:
55453         * modules/utimecmp, module/xnanosleep: New files.
55454         * modules/strftime: Add lib/strftime.h.
55455         Change include from <time.h> to "strftime.h".
55456         * modules/yesno: Add lib/yesno.h.
55457         * modules/backupfile: Remove lib/addext.c.
55458         * modules/euidaccess: Add stat-macros.h.
55459         * modules/canonicalize, modules/euidaccess,
55460         modules/filemode, modules/lchown, modules/makepath,
55461         modules/rmdir, modules/stat: Likewise.
55462
55463 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
55464
55465         Merge from tar.
55466         * lib/argp-help.c (make_hol, hol_append): Don't assume that
55467         SIZE_MAX is a valid preprocessor constant.
55468         (__argp_basename): Change from "#ifndef _LIBC"
55469         to "#ifndef __argp_short_program_name", so that
55470         we don't compile these functions for tar.
55471
55472         More merges from coreutils.
55473         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
55474         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
55475         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
55476         * lib/addext.c: Remove; no longer needed.
55477         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
55478         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
55479         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
55480         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
55481         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
55482         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
55483         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
55484         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
55485         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
55486         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
55487         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
55488         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
55489         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
55490         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
55491         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
55492         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
55493         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
55494         Import changes from coreutils.
55495
55496 2004-08-05  Simon Josefsson  <jas@extundo.com>
55497
55498         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
55499
55500 2004-08-05  Simon Josefsson  <jas@extundo.com>
55501
55502         * m4/getsubopt.m4: New file.
55503
55504 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
55505
55506         Merge from coreutils.
55507
55508         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
55509         * m4/getcwd-path-max.m4: New files.
55510
55511         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
55512         FILESYSTEM_PREFIX_LEN ->
55513         FILE_SYSTEM_PREFIX_LEN.
55514         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
55515         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
55516         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
55517         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
55518
55519         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
55520         prerequisite modules now handle the DOS stuff.
55521         Don't check for unistd.h.
55522
55523 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
55524
55525         Merge from coreutils.
55526
55527         * lib/.gdb-history: Remove; this doesn't belong here.
55528
55529         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
55530         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
55531         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
55532         * lib/getcwd.c: New files.
55533
55534         * lib/dirname.h: Include <stdbool.h>.
55535         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
55536         for consistency with POSIX terminology.  All uses changed.
55537         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
55538         (strip_trailing_slashes): Use bool for booleans.
55539         * lib/stripslash.c (strip_trailing_slashes): Likewise.
55540
55541         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
55542         sometimes returns a positive errno value even when it succeeds.
55543         (print_errno_message) [!LIBC]: Fall back on strerror if
55544         __strerror_r fails.
55545
55546         * lib/path-concat.c (mempcpy): Don't define if a system header defines
55547         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
55548         (longest_relative_suffix): New function.
55549         (path_concat): Use it.  Assume first argument is not NULL.
55550         Port to DOS.  Omit redundant separators.
55551         Report an error instead of returning NULL.
55552         Use mempcpy instead of memcpy.
55553         (xpath_concat): Remove: not declared or used.
55554
55555         * lib/same.h: Include <stdbool.h>
55556         (same_name): Return bool, not int.
55557         * lib/same.c (same_name): Likewise.
55558         (errno): Don't declare; we assume C89 or better now.
55559
55560         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
55561         if not already defined.
55562
55563         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
55564         * lib/dup-safer.c (errno): Likewise.
55565
55566 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
55567
55568         Merge from coreutils.
55569         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
55570         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
55571         * modules/path-concat: Don't depend on strdup.
55572
55573 2004-08-03  Simon Josefsson  <jas@extundo.com>
55574
55575         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
55576         * lib/progname.h: Don't include stdbool.h.
55577
55578 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
55579
55580         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
55581         * MODULES.html.sh (func_all_modules): Remove fatal.
55582
55583 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
55584
55585         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
55586
55587 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
55588
55589         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
55590         working.
55591
55592 2004-08-02  Simon Josefsson  <jas@extundo.com>
55593
55594         * lib/getsubopt.h: New file, with comments from Bruno Haible.
55595         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
55596         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
55597
55598 2004-08-01  Simon Josefsson  <jas@extundo.com>
55599
55600         * lib/xgetdomainname.c: Include stdlib.h, for free().
55601
55602 2004-07-19  Bruno Haible  <bruno@clisp.org>
55603
55604         * MODULES.html.sh (func_all_modules): Add dummy.
55605
55606 2004-07-16  Simon Josefsson  <jas@extundo.com>
55607
55608         * modules/dummy: New file.
55609
55610 2004-07-16  Simon Josefsson  <jas@extundo.com>
55611
55612         * lib/dummy.c: New file.
55613
55614 2004-07-16  Bruno Haible  <bruno@clisp.org>
55615
55616         * lib/backupfile.h: Add extern "C" for C++.
55617         * lib/closeout.h: Likewise.
55618         * lib/copy-file.h: Likewise.
55619         * lib/findprog.h: Likewise.
55620         * lib/full-write.h: Likewise.
55621         * lib/pathname.h: Likewise.
55622         * lib/progname.h: Likewise.
55623         * lib/stpcpy.h: Likewise.
55624         * lib/stpncpy.h: Likewise.
55625         * lib/strcase.h: Likewise.
55626         * lib/strstr.h: Likewise.
55627         * lib/xalloc.h: Likewise.
55628
55629         * lib/mbswidth.h: Add extern "C" for C++.
55630         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
55631
55632 2004-07-13  Robert Millan  <robertmh@gnu.org>
55633
55634         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
55635
55636 2004-07-09  Simon Josefsson  <jas@extundo.com>
55637
55638         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
55639         failed without this.)
55640
55641 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
55642
55643         * modules/chown (Files): Add lib/fchown-stub.c, since
55644         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
55645
55646 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
55647
55648         * lib/fchown-stub.c: New file.
55649
55650 2004-06-24  Jim Meyering  <jim@meyering.net>
55651
55652         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
55653
55654 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
55655
55656         * modules/argz: Omit "#include".
55657
55658         * MODULES.html.sh (func_all_modules): Add calloc, to match
55659         2004-06-01 addition of calloc module.
55660
55661 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
55662
55663         * m4/argz.m4: New file, which is autoupdated from libtool.
55664
55665 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
55666
55667         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
55668         libtool.
55669
55670 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
55671
55672         * config/srclist-update: Don't insist on "USA." before the
55673         close-comment, as libtool omits the period and puts the */ on a
55674         separate line.
55675         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
55676         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
55677
55678 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
55679
55680         * modules/argz: New file.
55681         * MODULES.html.sh (func_all_modules): Add argz.
55682
55683 2004-06-12  Jim Meyering  <jim@meyering.net>
55684         and  Paul Eggert  <eggert@cs.ucla.edu>
55685
55686         * modules/hash (Files): Add lib/xalloc.h.
55687         * modules/pipe (Depends-on): Add wait-process.
55688         * modules/stat (Depends-on): Add xalloc.
55689         * modules/userspec (Files): Add lib/userspec.h.
55690         * modules/xstrto
55691
55692         Upgrade from gettext-0.13.
55693         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
55694         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
55695         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
55696
55697 2004-06-10  Jim Meyering  <jim@meyering.net>
55698
55699         * lib/calloc.c: New file.
55700
55701 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
55702
55703         * lib/getdate.y (yylex): Allow space between sign and number.
55704         Problem reported by Dan Jacobson.
55705
55706 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
55707
55708         Merge from coreutils CVS.
55709
55710         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
55711         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
55712         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
55713         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
55714         xstrtol.m4: Fix copyright date and/or serial number.
55715
55716         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
55717         See if we need an fchown replacement.
55718         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
55719         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
55720         and use the replacement function if we detect either defect.
55721
55722         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
55723         gl_UTIMECMP.
55724
55725 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
55726         and  Jim Meyering  <jim@meyering.net>
55727
55728         Merge from coreutils CVS.
55729
55730         * lib/stat-macros.h: New file, with contents from file-type.h
55731         and coreutils' system.h.
55732         * lib/file-type.c: Include "stat-macros.h".
55733         * lib/file-type.h (file_type): Move all macro definitions to new file,
55734         stat-macros.h.
55735
55736         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
55737         Wrap old code with this conditional.
55738         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
55739         function that does not dereference symlinks.
55740         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
55741
55742         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
55743         dependency problems.
55744         (xreadlink): Accept new arg SIZE, for efficiency.
55745         All decls and uses changed.
55746         * lib/xreadlink.h: Include <stddef.h>, for size_t.
55747
55748         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
55749         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
55750
55751         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
55752         sysexits.h.
55753
55754 2004-06-01  Jim Meyering  <jim@meyering.net>
55755
55756         * m4/calloc.m4: New file.
55757
55758 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
55759
55760         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
55761         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
55762         Also, fix a typo in a diagnostic.
55763
55764 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
55765
55766         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
55767         or AC_FUNC_REALLOC.
55768
55769 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
55770
55771         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
55772         macros to be defined.
55773         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
55774         the allocator returns NULL because the requested size is zero.
55775
55776 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
55777
55778         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
55779         var.  Add comment explaining why libc still defines it.  This
55780         merges the following patch from glibc:
55781         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
55782
55783 2004-05-20  Andreas Schwab  <schwab@suse.de>
55784
55785         * m4/free.m4: Replace free if it not known to work, not the other
55786         way round.
55787
55788 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
55789
55790         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
55791         present in glibc since revision 1.1 of this file.
55792         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
55793         obstack_alignment_mask, obstack_alloc, obstack_base,
55794         obstack_blank, obstack_blank_fast, obstack_chunk_size,
55795         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
55796         obstack_grow0, obstack_init, obstack_int_grow,
55797         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
55798         obstack_next_free, obstack_object_size, obstack_ptr_grow,
55799         obstack_ptr_grow_fast, obstack_room): Remove declarations of
55800         nonexistent functions.
55801
55802 2004-05-18  Karl Berry  <karl@gnu.org>
55803
55804         * config/srclist.txt: break link for vasnprintf.c.
55805
55806 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
55807
55808         Port obstack to the AS/400, where pointers are 16 bytes wide and
55809         you cannot cast an integer to a valid pointer.  This patch is
55810         currently waiting to be integrated into glibc; see
55811         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
55812
55813         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
55814         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
55815         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
55816         (struct obstack): temp member is now a union of a pointer and
55817         an integer, instead of an integer.  All integer uses changed.
55818         This does not affect the physical layout of struct obstack,
55819         except on hosts (like the AS/400) where the size or alignment of
55820         void * is greater than that of ptrdiff_t.
55821         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
55822         __STDC__)]: Store temporary in pointer member of union, not
55823         integer member.
55824         * lib/obstack.c: Include <stddef.h>, for offsetof.
55825         (struct fooalign): Remove; it doesn't need a name.
55826         (union fooround): Change double to long double, and add void *.
55827         (DEFAULT_ALIGNMENT): Use offsetof to compute.
55828         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
55829         not a macro.  Hence the values are always int; so remove all
55830         casts-to-int in uses.
55831
55832 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
55833
55834         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
55835         we can get this patch merged into glibc.
55836
55837 2004-05-17  Derek R. Price  <derek@ximbiot.com>
55838             Paul Eggert  <eggert@cs.ucla.edu>
55839
55840         * m4/argp: Depend on alloca.
55841
55842 2004-05-17  Derek R. Price  <derek@ximbiot.com>
55843             Paul Eggert  <eggert@cs.ucla.edu>
55844
55845         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
55846         freecoding.
55847
55848 2004-05-17  Bruno Haible  <bruno@clisp.org>
55849
55850         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
55851         precision that consists of a '.' followed by an empty digit string.
55852         Patch by Tor Lillqvist <tml@iki.fi>.
55853
55854 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
55855
55856         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
55857         for backward compatibility with older code.  We need our own
55858         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
55859         it under some other name, and our alloca.h will define it.
55860
55861 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
55862             Derek Price  <derek@ximbiot.com>
55863
55864         * lib/alloca.c: Include <alloca.h>, to get our interface.
55865         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
55866         include <alloca.h> first.  Use C89 prototype for alloca; this
55867         requires including <stddef.h> for size_t.  Use extern "C" if C++.
55868         Use #elif for simplicity, since we can assume C89 now.
55869         Don't try to source the system alloca.h since it will not be found
55870         and to prevent recursively including its replacement.
55871         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
55872         * lib/regex.c: Likewise.
55873
55874 2004-05-16  Derek Price  <derek@ximbiot.com>
55875             Paul Eggert  <eggert@cs.ucla.edu>
55876
55877         getline cleanup.  This changes the getndelim2 API: both order of
55878         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
55879         no delimiter).
55880
55881         * lib/getline.c: Don't include stddef.h or stdio.h, since our
55882         interface does that.
55883         (getline): Always use getdelim, so that we don't have two
55884         copies of this code.
55885         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
55886         if available.
55887         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
55888         (GETNDELIM2_MAXIMUM): New macro.
55889         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
55890         instead of the old practice of delim2==0.  All callers changed.
55891         Return -1 on overflow, instead of returning junk.
55892         Do not set *linesize unless allocation succeeds.
55893         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
55894         that we include sys/types.h.
55895         * lib/getnline.h: Likewise.
55896         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
55897         (getndelim2): Reorder arguments.
55898         * lib/getnline.c (getnline, getndelim):
55899         Don't discard the NMAX argument.
55900         (getnline): Invoke getndelim, to avoid code duplication.
55901         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
55902         of (size_t) -1 by callers of the getnline family.
55903
55904 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
55905
55906         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
55907         Check for gettimeofday.
55908         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
55909         Check for settimeofday, stime.
55910
55911 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
55912
55913         * lib/nanosleep.c (suspended): Change its type from int to
55914         sig_atomic_t volatile.
55915         (first_call): Make it private to rpl_nanosleep, and have it
55916         be zero initially as that's a bit faster.
55917         (my_usleep): Round up fractional times instead of truncating them,
55918         as this is the usual meaning for 'sleep'.
55919
55920         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
55921         doesn't work.
55922         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
55923         (ENOSYS): Define if not defined.
55924         (settime): Fall back on stime if it exists and settimeofday fails.
55925         But don't bother with fallbacks if a method fails with errno == EPERM.
55926
55927 2004-05-11  Jim Meyering  <jim@meyering.net>
55928
55929         Prior to this change, the save_cwd caller required read access to the
55930         current directory on most systems (ones with the fchdir function).
55931
55932         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
55933         fails, try write-only, and finally, resort to using xgetcwd.
55934
55935 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
55936
55937         * lib/obstack.c, obstack.h: Import changes from libc.
55938
55939 2004-04-28  Bruno Haible  <bruno@clisp.org>
55940
55941         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
55942         also implicitly appends .exe to executables.
55943         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
55944         accepts Windows pathnames.
55945         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
55946         Treat Cygwin like Windows, since it now accepts Windows pathnames.
55947         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
55948         Treat Cygwin like Windows, since it now accepts Windows pathnames.
55949         Reported by Derek Robert Price <derek@ximbiot.com>.
55950
55951 2004-04-21  Karl Berry  <karl@gnu.org>
55952
55953         * config/srclist.txt (localcharset.c): break sync.
55954
55955 2004-04-20  Paul Eggert  <eggert@twinsun.com>
55956
55957         * m4/host-os.m4: Add a copyright notice.
55958
55959 2004-04-20  Jim Meyering  <jim@meyering.net>
55960
55961         Change UTILS_ to gl_ in AC_DEFINE'd names.
55962         Change utils_- and jm_-prefixed variables, too.
55963         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
55964         UTILS_FUNC_MKDIR_TRAILING_SLASH.
55965         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
55966
55967         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
55968         Don't emit trailing blanks.
55969         Also rename jm_-prefixed variables to have gl_ prefix.
55970
55971         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
55972         Also rename jm_-prefixed variables to have gl_ prefix.
55973
55974         * m4/jm-macros.m4: Reflect the renamings.
55975         * m4/prereq.m4: Likewise.
55976
55977 2004-04-20  Jim Meyering  <jim@meyering.net>
55978
55979         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
55980         memory.
55981
55982 2004-04-20  Jim Meyering  <jim@meyering.net>
55983             Bruno Haible  <bruno@clisp.org>
55984
55985         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
55986         memory when realloc fails.
55987
55988 2004-04-19  Jim Meyering  <jim@meyering.net>
55989
55990         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
55991         now that readutmp.c may call `free (0)'.
55992
55993 2004-04-19  Bruno Haible  <bruno@clisp.org>
55994
55995         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
55996         * m4/inttypes_h.m4: Likewise.
55997         * m4/stdint_h.m4: Likewise.
55998         * m4/intmax_t.m4: Likewise.
55999         * m4/uintmax_t.m4: Likewise.
56000
56001 2004-04-18  Jim Meyering  <jim@meyering.net>
56002
56003         * m4/prereq.m4: Don't forbid jm_ prefix.
56004
56005         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
56006         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
56007         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
56008         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
56009         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
56010         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
56011         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
56012         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
56013         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
56014         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
56015         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
56016         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
56017         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
56018         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
56019         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
56020         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
56021         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
56022         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
56023         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
56024
56025 2004-04-18  Jim Meyering  <jim@meyering.net>
56026
56027         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
56028         failure, don't leak memory and do call END_UTMP_ENT.
56029
56030 2004-04-16  Jim Meyering  <jim@meyering.net>
56031
56032         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
56033         coreutils' stat program.
56034         (gl_PREREQ): Don't require jm_PREREQ_STAT.
56035
56036 2004-04-11  Paul Eggert  <eggert@twinsun.com>
56037
56038         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
56039         C89.
56040         (CHAR_BIT): Remove, since we assume C89.
56041         Include <stdint.h> if available, as per current Autoconf CVS advice.
56042
56043 2004-03-31  Jim Meyering  <jim@meyering.net>
56044
56045         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
56046         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
56047         * m4/xalloc.m4: Likewise.
56048
56049 2004-03-30  Paul Eggert  <eggert@twinsun.com>
56050
56051         Merge from coreutils.
56052
56053         * m4/inttostr.m4: New file.
56054         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
56055         Require AM_STDBOOL_H and gl_TIMESPEC instead.
56056         Require gl_CLOCK_TIME.
56057         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
56058
56059 2004-03-30  Paul Eggert  <eggert@twinsun.com>
56060
56061         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
56062         not bool, to be more consistent with Unix conventions.
56063         Suggested by Bruno Haible.
56064
56065         Merge from coreutils.
56066
56067         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
56068         * lib/umaxtostr.c: New files.
56069
56070         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
56071         the usual <time.h> dance.
56072         (get_date): Change signature to support fractional time stamps.
56073         All callers changed.
56074         * lib/getdate.y: Include "getdate.h" first, as we can now
56075         assume C89 and don't need to worry about 'const'.
56076         Similarly, include "unlocked-io.h" near start, not in middle.
56077         Include <limits.h>.
56078         (textint.value): Use long int rather than int.
56079         (textint.digits): Use size_t rather than int.
56080         (BILLION, LOG10_BILLION): New constants.
56081         (parser_control): New member rel_ns.  Members day_ordinal,
56082         time_zone, month, day, hour, minutes, rel_year, rel_month,
56083         rel_day, rel_hour, rel_minutes, rel_seconds
56084         are now long int, not int.  Member seconds is now struct timespec,
56085         not int.  New member timespec_seen.  Members dates_seen, days_seen,
56086         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
56087         not int.
56088         (%union.intval): Now long int, not int.
56089         New member timespec.
56090         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
56091         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
56092         (spec): Now is a timespec or an item list.
56093         (timespec, items): New nonterminals.
56094         (time, rel, relunit, number, get_date):
56095         Add support for fractional seconds.
56096         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
56097         (gmtime, localtime, mktime): Remove decls; not needed with C89.
56098         (to_hour): First arg is now long int, not int.
56099         (to_year): Returns long int, not int.
56100         Don't treat year -70 like 70.
56101         (tm_diff): Returns long int, not int.
56102         (lookup_word): Use bool instead of int when appropriate.
56103         (yylex): Use size_t for count, not int.
56104         Detect overflow when parsing large integer constants.
56105         Add support for fractions.
56106         (get_date): Make pointers 'const' if possible.
56107         Use more-portable code to detect integer overflow.
56108         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
56109         Don't use ctime; it's not reliable if the year has >4 digits.
56110
56111         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
56112         This is for compatibility with BSD.
56113
56114         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
56115         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
56116         From coreutils' system.h.
56117
56118         * lib/userspec.c: Don't include "posixver.h".
56119         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
56120         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
56121         compatible extension.  Simplify code by removing a boolean int
56122         that was always nonzero if a string was nonnull.
56123
56124 2004-03-30  Jim Meyering  <jim@meyering.net>
56125
56126         Merge from coreutils.
56127
56128         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
56129         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
56130         on some systems one must include <grp.h> before it.
56131         Reported by Christian Krackowizer.
56132
56133 2004-03-30  Jim Meyering  <jim@meyering.net>
56134
56135         Merge from coreutils.
56136
56137         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
56138
56139         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
56140         an empty input stream.
56141
56142         * lib/readtokens.c: Include <stdbool.h>.
56143         (readtoken): Use `size_t' rather than int/long.
56144         All callers adjusted.
56145         Use `bool' rather than `int' where appropriate.
56146         Use memset rather than an explicit loop.
56147         Use x2nrealloc rather than xrealloc.
56148         Allow the use of `\0' as a delimiter.
56149         (readtokens): Likewise.
56150         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
56151
56152 2004-03-30  Jim Meyering  <jim@meyering.net>
56153
56154         * m4/realloc.m4: Remove file, since now it does no more than
56155         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
56156         the `configure.ac' section of module/realloc.
56157         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
56158
56159 2004-03-30  Bruno Haible  <bruno@clisp.org>
56160
56161         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
56162         nonnull.
56163
56164 2004-03-29  Paul Eggert  <eggert@twinsun.com>
56165
56166         Merge changes to getloadavg.c from coreutils and Emacs.
56167
56168         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
56169         Define to an expression, not to the empty string.
56170         Include cloexec.h and xalloc.h.
56171         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
56172         Use set_cloexec_flag rather than rolling our own.
56173         * lib/cloexec.c, lib/cloexec.h: New files.
56174
56175 2004-03-29  Paul Eggert  <eggert@twinsun.com>
56176
56177         * m4/cloexec.m4: New file.
56178
56179 2004-03-18  Paul Eggert  <eggert@twinsun.com>
56180
56181         * lib/getopt.h: Sync with libc CVS.
56182
56183 2004-03-18  Paul Eggert  <eggert@twinsun.com>
56184             Bruno Haible  <bruno@clisp.org>
56185
56186         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
56187         mbswidth.
56188
56189 2004-03-18  Paul Eggert  <eggert@twinsun.com>
56190             Bruno Haible  <bruno@clisp.org>
56191
56192         * lib/mbswidth.h: Include <wchar.h> only if
56193         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
56194         <wchar.h>.
56195         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
56196
56197 2004-03-09  Paul Eggert  <eggert@twinsun.com>
56198
56199         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
56200         Sync with libc CVS.
56201         * lib/getopt_int.h: New file, also synced from libc.
56202
56203 2004-03-09  Paul Eggert  <eggert@twinsun.com>
56204
56205         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
56206         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
56207         Bring back getopt.c, getopt.h, getopt1.c.
56208
56209 2004-03-07  Paul Eggert  <eggert@twinsun.com>
56210
56211         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
56212         All uses changed.  Check for sa_sigaction member; this fixes
56213         a bug first reported by Jason Andrade in
56214         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
56215
56216 2004-03-07  Paul Eggert  <eggert@twinsun.com>
56217
56218         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
56219         '#if' expressions.  Unlike the code it replaces, it does not
56220         depend on (defined _SC_PAGESIZE).  However, it does depend on
56221         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
56222         first reported by Jason Andrade in
56223         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
56224
56225 2004-02-25  Simon Josefsson  <jas@extundo.com>
56226
56227         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
56228
56229 2004-02-25  Simon Josefsson  <jas@extundo.com>
56230
56231         * lib/strdup.h: New file.
56232         * lib/strdup.c: Include it.
56233         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
56234         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
56235
56236 2004-02-23  Karl Berry  <karl@gnu.org>
56237
56238         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
56239         (from fencepost.gnu.org:/gd/gnuorg).
56240
56241 2004-02-23  Karl Berry  <karl@gnu.org>
56242
56243         * config/srclistvars.sh (GNUORG) [karl]: redefine.
56244         * config/srclist.txt: add maintain/standards documents.
56245
56246 2004-02-18  Bruno Haible  <bruno@clisp.org>
56247
56248         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
56249         Reported by Derek Robert Price <derek@ximbiot.com>.
56250
56251 2004-02-16  Karl Berry  <karl@gnu.org>
56252
56253         * config/mkinstalldirs, install-sh: update from automake.
56254
56255 2004-02-06  Karl Berry  <karl@gnu.org>
56256
56257         * m4/po.m4: update from gettext 0.14.1.
56258
56259 2004-02-06  Karl Berry  <karl@gnu.org>
56260
56261         * lib/config.charset: update from gettext 0.14.1.
56262
56263 2004-02-05  Paul Eggert  <eggert@twinsun.com>
56264
56265         Add comments and code, prompted by suggestions from Bruno Haible
56266         for sh-quote.
56267         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
56268         describing the enum quoting_style values.
56269         * lib/quotearg.c (quotearg_alloc): New function.
56270         (quotearg_buffer_restyled): Treat lone { and } as special.
56271         Treat = as special.  Work around bug with older shells
56272         that "see" a '\' that is really the 2nd byte of a multibyte char.
56273         Quote empty string with shell_quoting_style.
56274
56275 2004-02-03  Bruno Haible  <bruno@clisp.org>
56276
56277         * m4/pipe.m4: New file, from GNU gettext.
56278
56279 2004-02-03  Bruno Haible  <bruno@clisp.org>
56280
56281         * lib/pipe.h: New file, from GNU gettext.
56282         * lib/pipe.c: New file, from GNU gettext.
56283
56284 2004-01-27  Bruno Haible  <bruno@clisp.org>
56285
56286         * m4/execute.m4: New file, from GNU gettext.
56287
56288 2004-01-27  Bruno Haible  <bruno@clisp.org>
56289
56290         * lib/execute.h: New file, from GNU gettext.
56291         * lib/execute.c: New file, from GNU gettext.
56292         * lib/w32spawn.h: New file, from GNU gettext.
56293
56294 2004-01-24  Paul Eggert  <eggert@twinsun.com>
56295
56296         Merge from diffutils.
56297
56298         * lib/file-type.c (file_type): Add typed memory objects.
56299         * lib/file-type.h (S_TYPEISTMO): New macro.
56300
56301         * lib/c-stack.h (c_stack_action): Remove argv argument.
56302         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
56303         (die): Don't calculate message unless segv_action returns.
56304         (get_stack_location, min_address_from_argv, max_address_from_argv,
56305         volatile stack_base, volatile_stack_size): Remove.
56306         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
56307         that every segmentation violation is a stack overflow.  (Ouch!)
56308         See Debian bug 136249 (still outstanding) for more info about why
56309         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
56310
56311 2004-01-24  Paul Eggert  <eggert@twinsun.com>
56312
56313         Exit-status fix from coreutils.
56314
56315         Use exit_failure consistently in place of EXIT_FAILURE,
56316         so that program exit statuses are consistent on failure.
56317
56318         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
56319         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
56320         * lib/argmatch.h: Comment fix to match the above.
56321         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
56322         Now a macro referring to exit_failure, instead of a separate
56323         variable.  Include "exitfail.h" to get it.
56324         * lib/xstrtol.h: Include "exitfail.h".
56325         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
56326
56327         * lib/long-options.c (parse_long_options): Use prototype
56328         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
56329         for clarity.
56330
56331 2004-01-21  Jim Meyering  <jim@meyering.net>
56332
56333         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
56334         so as not to conflict with a different-sized __mktime_internal
56335         function in GNU libc.
56336         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
56337         Problem building statically-linked `ls' reported by Michael Brunnbauer.
56338
56339 2004-01-20  Karl Berry  <karl@gnu.org>
56340
56341         * config/config.guess: update from config.
56342
56343         * config/srclistvars.sh: GNUWWWLICENSES for karl.
56344
56345 2004-01-20  Bruno Haible  <bruno@clisp.org>
56346
56347         Safer stack allocation.
56348         * lib/setenv.c: Include allocsa.h.
56349         (alloca): Remove fallback definition.
56350         (freea): Remove macro.
56351         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
56352         instead of freea.
56353
56354 2004-01-20  Bruno Haible  <bruno@clisp.org>
56355
56356         * m4/eealloc.m4: New file, from GNU gettext.
56357
56358 2004-01-20  Bruno Haible  <bruno@clisp.org>
56359
56360         * m4/allocsa.m4: New file, from GNU gettext.
56361
56362 2004-01-20  Bruno Haible  <bruno@clisp.org>
56363
56364         * lib/xallocsa.h: New file, from GNU gettext.
56365         * lib/xallocsa.c: New file, from GNU gettext.
56366
56367 2004-01-20  Bruno Haible  <bruno@clisp.org>
56368
56369         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
56370
56371 2004-01-20  Bruno Haible  <bruno@clisp.org>
56372
56373         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
56374         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
56375         specially.
56376
56377 2004-01-20  Bruno Haible  <bruno@clisp.org>
56378
56379         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
56380         patch.
56381
56382 2004-01-20  Bruno Haible  <bruno@clisp.org>
56383
56384         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
56385
56386 2004-01-20  Bruno Haible  <bruno@clisp.org>
56387
56388         * lib/eealloc.h: New file.
56389
56390 2004-01-20  Bruno Haible  <bruno@clisp.org>
56391
56392         * lib/binary-io.h: Avoid warnings on Cygwin.
56393
56394 2004-01-20  Bruno Haible  <bruno@clisp.org>
56395
56396         * lib/allocsa.h: New file, from GNU gettext.
56397         * lib/allocsa.c: New file, from GNU gettext.
56398
56399 2004-01-18  Karl Berry  <karl@gnu.org>
56400
56401         * doc/gpl.texi, doc/lgpl.texi: new files.
56402
56403 2004-01-18  Karl Berry  <karl@gnu.org>
56404
56405         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
56406         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
56407
56408 2004-01-15  Paul Eggert  <eggert@twinsun.com>
56409
56410         Merge from coreutils.
56411
56412         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
56413         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
56414         (gl_DEFAULT_POSIX2_VERSION): Move
56415         the documentation from 'configure' into 'config.hin',
56416         so that 'configure --help' isn't burdened by it and
56417         we don't have to worry about its formatting there.
56418         Reword the documentation so that it's more succinct
56419         and can be run together into a single paragraph.
56420         * m4/same.m4 (gl_SAME): Check for pathconf.
56421
56422 2004-01-15  Paul Eggert  <eggert@twinsun.com>
56423
56424         Merge from coreutils.
56425
56426         * lib/posixver.c: Include posixver.h.
56427
56428         * lib/same.c: Include <stdbool.h>, <limits.h>.
56429         (_POSIX_NAME_MAX): Define if not defined.
56430         (MIN): New macro.
56431         (same_name): If file names are silently truncated, report
56432         that the file names are the same if they are the same after
56433         the silent truncation.
56434
56435         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
56436         conversion function.
56437         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
56438         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
56439         longer needed.
56440
56441 2004-01-15  Jim Meyering  <jim@meyering.net>
56442
56443         Merge from coreutils.
56444
56445         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
56446         if no library is required.
56447         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
56448         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
56449         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
56450         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
56451         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
56452         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
56453         value, $ac_cv_search_crypt, if it's "none required".
56454         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
56455         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
56456         not gl_FUNC_GETLOADAVG.
56457         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
56458         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
56459
56460 2004-01-15  Jim Meyering  <jim@meyering.net>
56461
56462         Merge from coreutils.
56463
56464         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
56465         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
56466         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
56467
56468         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
56469         optional configure-time default.
56470
56471         * lib/version-etc.c (version_etc_copyright): Update copyright date.
56472
56473         * lib/xreadlink.c (xreadlink): Correct outdated comment.
56474
56475 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
56476
56477         Merge from coreutils.
56478
56479         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
56480         value, $ac_cv_search_nanosleep, if it's "none required".
56481
56482 2004-01-14  Paul Eggert  <eggert@twinsun.com>
56483
56484         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
56485         with like-named macro in fnmatch.c.
56486         (EXT): Use an internal constant instead.
56487
56488         Merge fnmatch patches from glibc.
56489         * lib/fnmatch.c (mbsinit): Remove define.
56490         Add libc_hidden_ver (__fnmatch, fnmatch).
56491         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
56492         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
56493
56494 2004-01-14  Karl Berry  <karl@gnu.org>
56495
56496         * config/install-sh: update from automake.
56497
56498 2004-01-13  Karl Berry  <karl@gnu.org>
56499
56500         * config/install-sh: update from automake.
56501
56502 2004-01-09  Karl Berry  <karl@gnu.org>
56503
56504         * config/install-sh: update from automake.
56505
56506 2004-01-05  Karl Berry  <karl@gnu.org>
56507
56508         * config/config.{sub,guess}: update from config.
56509
56510 2003-12-31  Karl Berry  <karl@gnu.org>
56511
56512         * config/depcomp: update from automake.
56513
56514 2003-12-14  Karl Berry  <karl@gnu.org>
56515
56516         * lib/config.charset: update from gettext-runtime.
56517
56518 2003-12-03  Paul Eggert  <eggert@twinsun.com>
56519
56520         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
56521         Bug reported by Alfred M. Szmidt.
56522
56523 2003-12-03  Bruno Haible  <bruno@clisp.org>
56524
56525         * m4/gettext.m4: Upgrade from gettext-0.13.
56526         * m4/po.m4: Upgrade from gettext-0.13.
56527         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
56528         * m4/intmax.m4: New file, from gettext-0.13.
56529         * m4/printf-posix.m4: New file, from gettext-0.13.
56530
56531 2003-11-29  Karl Berry  <karl@gnu.org>
56532
56533         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
56534
56535 2003-11-25  Paul Eggert  <eggert@twinsun.com>
56536             Bruno Haible  <bruno@clisp.org>
56537
56538         * lib/printf-parse.h: Don't include sys/types.h.
56539         (ARG_NONE): New macro.
56540         (char_directive): Change type of *arg_index fields to size_t.
56541         * lib/printf-parse.c: Don't include sys/types.h.
56542         (SSIZE_MAX): Remove macro.
56543         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
56544         Remove unnecessary overflow check.
56545         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
56546         fields.
56547
56548 2003-11-25  Bruno Haible  <bruno@clisp.org>
56549
56550         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
56551
56552 2003-11-25  Bruno Haible  <bruno@clisp.org>
56553
56554         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
56555         gt_TYPE_SSIZE_T.
56556
56557 2003-11-24  Paul Eggert  <eggert@twinsun.com>
56558
56559         * modules/alloca: Remove dependency on xalloc.
56560
56561 2003-11-24  Paul Eggert  <eggert@twinsun.com>
56562
56563         * lib/alloca.c: Remove dependency on xalloc module.
56564         (xalloc_die): Remove.
56565         (memory_full) [!defined emacs]: New macro.
56566         [!defined emacs]: Don't include xalloc.h.
56567         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
56568         address arithmetic overflows.  Change datatypes a bit to avoid
56569         unnecessary casts.
56570
56571 2003-11-22  Jim Meyering  <jim@meyering.net>
56572
56573         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
56574         s/size/size_t/.
56575
56576 2003-11-21  Karl Berry  <karl@gnu.org>
56577
56578         * config/config.{sub,guess}: update from config.
56579
56580 2003-11-18  Karl Berry  <karl@gnu.org>
56581
56582         * config/config.{sub,guess}: update from config.
56583
56584         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
56585
56586 2003-11-17  Paul Eggert  <eggert@twinsun.com>
56587
56588         * README: Mention that S+T cannot overflow if S is the size of
56589         an existing object and T is sufficiently small.
56590
56591 2003-11-17  Jim Meyering  <jim@meyering.net>
56592
56593         On systems without utime and without a utimes function capable of
56594         dealing with a NULL struct utimbuf* argument, this utime replacement
56595         could -- in unusual circumstances -- leak a file descriptor.
56596         * lib/utime.c: Include <unistd.h> and <errno.h>.
56597         (utime_null): Be sure to close `fd' and to preserve errno.
56598         Reported by Geoff Collyer via Arnold Robbins.
56599
56600 2003-11-17  Bruno Haible  <bruno@clisp.org>
56601
56602         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
56603         (Depends-on): Add xsize.
56604
56605 2003-11-17  Bruno Haible  <bruno@clisp.org>
56606
56607         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
56608
56609 2003-11-17  Bruno Haible  <bruno@clisp.org>
56610
56611         * lib/vasnprintf.c (alloca): Remove fallback definition.
56612         (freea): Remove definition.
56613         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
56614         Reported by Paul Eggert.
56615
56616 2003-11-16  Paul Eggert  <eggert@twinsun.com>
56617             Bruno Haible  <bruno@clisp.org>
56618
56619         Protect against address arithmetic overflow.
56620         * lib/printf-args.h: Include stddef.h.
56621         (arguments): Change type of field 'count' to size_t.
56622         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
56623         'unsigned int' where appropriate.
56624         * lib/printf-parse.h: Include sys/types.h.
56625         (char_directive): Change type of *arg_index fields to ssize_t.
56626         (char_directives): Change type of fields 'count', max_*_length to
56627         size_t.
56628         * lib/printf-parse.c: Include sys/types.h and xsize.h.
56629         (SSIZE_MAX): Define fallback value.
56630         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
56631         instead of 'int' where appropriate. Check a_allocated, d_allocated
56632         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
56633         * lib/vasnprintf.c: Include xsize.h.
56634         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
56635         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
56636         overflow. Avoid wraparound when converting a width or precision from
56637         decimal to binary.
56638
56639 2003-11-16  Bruno Haible  <bruno@clisp.org>
56640
56641         Update from GNU gettext.
56642         * lib/printf-parse.c: Generalize to it can be compiled for wide
56643         strings.
56644         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
56645         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
56646         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
56647         SNPRINTF): New macros.
56648         Don't include <alloca.h> if the file is used inside libintl.
56649         (local_wcslen): New function, for Solaris 2.5.1.
56650         (VASNPRINTF): Use it instead of wcslen.
56651
56652 2003-11-16  Bruno Haible  <bruno@clisp.org>
56653
56654         * lib/xsize.h (xmax): New function.
56655         (xsum, xsum3, xsum4): Declare as "pure" functions.
56656
56657 2003-11-12  Paul Eggert  <eggert@twinsun.com>
56658
56659         * modules/xalloc (Files): Undo latest change, since xalloc.h
56660         no longer needs SIZE_MAX or PTRDIFF_MAX.
56661
56662 2003-11-12  Paul Eggert  <eggert@twinsun.com>
56663
56664         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
56665         gl_PTRDIFF_MAX.
56666
56667 2003-11-12  Paul Eggert  <eggert@twinsun.com>
56668
56669         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
56670         "return", to pacify some unknown compiler.  Problem reported
56671         by Joerg Schilling.
56672
56673 2003-11-12  Paul Eggert  <eggert@twinsun.com>
56674
56675         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
56676         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
56677         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
56678         heuristic is just as accurate as far as we know, and it removes a
56679         dependency on size_max.m4 and ptrdiff_max.m4.
56680
56681 2003-11-11  Bruno Haible  <bruno@clisp.org>
56682
56683         * modules/xsize (Files): Add m4/size_max.m4.
56684         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
56685
56686 2003-11-11  Bruno Haible  <bruno@clisp.org>
56687
56688         * m4/size_max.m4: New file.
56689         * m4/ptrdiff_max.m4: New file.
56690         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
56691         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
56692         (gl_XALLOC): Invoke it.
56693
56694 2003-11-11  Bruno Haible  <bruno@clisp.org>
56695
56696         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
56697         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
56698         defined.
56699
56700 2003-11-10  Paul Eggert  <eggert@twinsun.com>
56701
56702         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
56703         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
56704         rejected some allocations of exactly SIZE_MAX - 2 bytes.
56705         From Bruno Haible.
56706         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
56707         not (size_t) -1, since it's defined here.
56708
56709 2003-11-09  Karl Berry  <karl@gnu.org>
56710
56711         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
56712
56713 2003-11-06  Paul Eggert  <eggert@twinsun.com>
56714
56715         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
56716         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
56717         Reject sizes of exactly SIZE_MAX bytes.
56718         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
56719         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
56720
56721 2003-11-05  Bruno Haible  <bruno@clisp.org>
56722
56723         * lib/xsize.h: Include limits.h, to avoid a possible collision with
56724         SIZE_MAX defined in <limits.h> on Solaris.
56725
56726 2003-11-04  Jim Meyering  <jim@meyering.net>
56727
56728         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
56729         variable names, rather than @VAR@.
56730         * modules/poll: Likewise.
56731
56732 2003-11-04  Bruno Haible  <bruno@clisp.org>
56733
56734         * modules/xsize: New file.
56735         * modules/linebreak: Depend on xsize.
56736         * MODULES.html.sh (func_all_modules): Add xsize.
56737
56738 2003-11-04  Bruno Haible  <bruno@clisp.org>
56739
56740         * m4/xsize.m4: New file.
56741
56742 2003-11-04  Bruno Haible  <bruno@clisp.org>
56743
56744         * lib/xsize.h: New file.
56745         * lib/linebreak.c: Include xsize.h.
56746         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
56747         argument for overflow.
56748         Suggested by Paul Eggert.
56749
56750 2003-11-03  Karl Berry  <karl@gnu.org>
56751
56752         * config/config.{guess,sub}: update from config.
56753
56754 2003-11-03  Jim Meyering  <jim@meyering.net>
56755
56756         * modules/userspec (lib_SOURCES): Add userspec.h.
56757         (Include): Add "userspec.h".
56758         Improve description.
56759
56760 2003-11-03  Jim Meyering  <jim@meyering.net>
56761
56762         * lib/userspec.c: Include "userspec.h".
56763         * lib/userspec.h: New file.
56764
56765 2003-11-03  Bruno Haible  <bruno@clisp.org>
56766
56767         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
56768
56769 2003-11-03  Bruno Haible  <bruno@clisp.org>
56770
56771         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
56772         available, to avoid (extremely rare) race condition.
56773         Suggested by Paul Eggert.
56774
56775 2003-11-02  Karl Berry  <karl@gnu.org>
56776
56777         * config/srclist.txt (vasprintf.c): sync broken, sigh.
56778
56779 2003-10-31  Paul Eggert  <eggert@twinsun.com>
56780
56781         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
56782         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
56783         (read_filesystem_list): Set and use me_type_malloced.
56784         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
56785         whatever the type happens to be), for brevity and consistency.
56786         Check for size calculation overflow on Alphas running OSF/1.
56787
56788 2003-10-31  Jim Meyering  <jim@meyering.net>
56789
56790         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
56791
56792         * lib/linebuffer.c: Include <string.h> for declaration of memset.
56793
56794 2003-10-30  Paul Eggert  <eggert@twinsun.com>
56795             Bruno Haible  <bruno@clisp.org>
56796
56797         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
56798         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
56799
56800 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
56801
56802         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
56803         netbsd*-gnu*.  Suggested by Robert Millan.
56804
56805 2003-10-29  Paul Eggert  <eggert@twinsun.com>
56806
56807         * modules/group-member: Depend on stdbool.
56808
56809 2003-10-29  Paul Eggert  <eggert@twinsun.com>
56810
56811         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
56812
56813 2003-10-29  Paul Eggert  <eggert@twinsun.com>
56814
56815         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
56816         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
56817         after the 'gnu' in these cases.  This fixes some bugs in the
56818         previous change, and is based on suggestions by Robert Millan.
56819
56820 2003-10-29  Paul Eggert  <eggert@twinsun.com>
56821
56822         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
56823         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
56824         no longer needed.
56825         * lib/quotearg.c (quotearg_n_options): Use it.
56826         * lib/group-member.c: Include <stdbool.h>.
56827         (free_group_info): Arg is now const *; don't free arg.
56828         (get_group_info): Now returns bool and accepts struct group_info *,
56829         rather than returning a malloc'ed struct group_info *.
56830         All uses changed.  Check for overflow in internal size calculation.
56831
56832         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
56833         rather than xmalloc/xrealloc.
56834         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
56835         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
56836         conformance bug: the old code used a pointer after freeing the
56837         storage that it addressed.
56838         * lib/hash.c (hash_initialize): Simplify the code by using
56839         xalloc_oversized rather than doing it by hand.
56840         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
56841         the buffer preserved.  Use free and xmalloc instead.
56842         * lib/quotearg.c (quotearg_n_options): Likewise.
56843         Use a simpler test for size overflow.  Don't use xalloc_oversized
56844         because unsigned int might be wider than size_t (!); this suggests
56845         that we should switch from unsigned int to size_t for slot numbers.
56846
56847 2003-10-28  Paul Eggert  <eggert@twinsun.com>
56848
56849         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
56850         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
56851         NetBSD kernels.  Requested by Richard Stallman.
56852
56853 2003-10-27  Paul Eggert  <eggert@twinsun.com>
56854
56855         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
56856         to allocate the returned structure.  Do not allocate a subarray,
56857         as x2nrealloc will do that.
56858         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
56859         instead of xnrealloc.
56860         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
56861
56862 2003-10-27  Bruno Haible  <bruno@clisp.org>
56863
56864         * lib/stdbool_.h: Better support for BeOS.
56865
56866 2003-10-26  Paul Eggert  <eggert@twinsun.com>
56867
56868         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
56869         now uses inline.
56870
56871 2003-10-26  Paul Eggert  <eggert@twinsun.com>
56872
56873         * lib/xalloc.h (xalloc_oversized): New static inline function, for
56874         callers that want to do their own size-overflow checking.  Include
56875         <stdbool.h>, since xalloc_oversized returns bool.
56876         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
56877         to use xalloc_oversized.
56878
56879         Add two functions x2realloc, x2nrealloc, for programs that grow
56880         arrays dynamically by doubling their sizes.
56881         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
56882         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
56883         New functions.
56884
56885         Port to C99 semantics for 'inline' of external functions.
56886         Bug reported by Bruno Haible.
56887         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
56888         with the old contents of xnmalloc.
56889         (xnmalloc, xmalloc): Use it.
56890         (xnrealloc_inline): New static inline function,
56891         with the old contents of xnrealloc.
56892         (xnrealloc, xrealloc): Use it.
56893
56894         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
56895         that.
56896
56897 2003-10-26  Karl Berry  <karl@gnu.org>
56898
56899         * config/srclist.txt (COPYING.DOC): no longer available from
56900         /gd/gnuorg; don't know where the ultimate source is.
56901
56902 2003-10-25  Paul Eggert  <eggert@twinsun.com>
56903
56904         Fix several address-calculation bugs in the hash modules,
56905         plus some minor code cleanup.
56906
56907         * lib/hash.h: Include <stdbool.h>, for bool.
56908         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
56909         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
56910         hash_get_n_entries, hash_get_max_bucket_length,
56911         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
56912         hash_rehash): Use size_t rather than unsigned.
56913         * lib/hash.c (struct hash_table, hash_get_n_buckets,
56914         hash_get_n_buckets_used, hash_get_n_entries,
56915         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
56916         hash_get_entries, hash_do_for_each, hash_string, is_prime,
56917         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
56918         Likewise.
56919         (SIZE_MAX): Define if not defined.
56920         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
56921         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
56922         hash_print):
56923         Use const * when possible.
56924         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
56925         (check_tuning): Fix bug: if tuning parameters were very close to
56926         0 or 1, rounding errors could have caused subscript violations.
56927         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
56928         (hash_initialize): Add 'fail:' label
56929         to free table and return NULL, and use it to simplify code.
56930         Use calloc rather than clearing the storage ourself.
56931         (hash_initialize, hash_rehash): Check for arithmetic overflow in
56932         buffer size calculations.
56933         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
56934         Include <stddef.h>, for size_t.
56935         * lib/hash-pjw.c (hash_pjw): Likewise.
56936         Switch to method described by Bruno Haible.
56937         Include <limits.h>, for CHAR_BIT.
56938         (SIZE_BITS): New macro.
56939
56940 2003-10-23  Paul Eggert  <eggert@twinsun.com>
56941
56942         * m4/getline.m4 (AM_FUNC_GETLINE):
56943         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
56944         hosts.  Problem reported by Derek Robert Price in
56945         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
56946         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
56947         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
56948
56949 2003-10-21  Paul Eggert  <eggert@twinsun.com>
56950
56951         * lib/getndelim2.c (getndelim2): When size calculation overflows,
56952         ceiling the allocation at NMAX bytes rather than silently
56953         discarding input bytes before NMAX is reached.  This makes
56954         a difference only if NMAX exceeds SIZE_MAX / 2.
56955
56956         * lib/obstack.c: Merge from glibc.
56957         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
56958         Add libc_hidden_def (_obstack_newchunk).
56959         (_obstack_free) [! defined _LIBC]: Remove.
56960         [defined _LIBC]: Make a strong alias from obstack_free, rather than
56961         a clone of the function body.
56962         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
56963         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
56964
56965         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
56966         glibc.
56967         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
56968         arg to memcpy.
56969
56970         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
56971         (obstack_ptr_grow_fast, obstack_int_grow_fast):
56972         Don't use lvalue casts, as GCC plans to remove support for them
56973         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
56974         was also present in the non-GCC version, indicating that this
56975         code had always been buggy and had never been widely used.
56976         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
56977         Use the fast variant of each macro, rather than copying the
56978         definiens of the fast variant; that way, we'll be more likely to
56979         catch future bugs in the fast variants.
56980
56981 2003-10-20  Bruno Haible  <bruno@clisp.org>
56982
56983         * modules/wait-process: New file.
56984         * MODULES.html.sh (func_all_modules): Add wait-process.
56985
56986 2003-10-20  Bruno Haible  <bruno@clisp.org>
56987
56988         * m4/wait-process.m4: New file.
56989
56990 2003-10-20  Bruno Haible  <bruno@clisp.org>
56991
56992         * lib/wait-process.h: New file, from GNU gettext.
56993         * lib/wait-process.c: New file, from GNU gettext.
56994
56995 2003-10-19  Jim Meyering  <jim@meyering.net>
56996
56997         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
56998         HPUX 10.20.
56999
57000 2003-10-18  Karl Berry  <karl@gnu.org>
57001
57002         * config/config.guess: update from config.
57003
57004 2003-10-16  Paul Eggert  <eggert@twinsun.com>
57005
57006         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
57007         (getgroups): First arg is int, not size_t.
57008         Don't let 'free' mangle errno.
57009
57010 2003-10-16  Paul Eggert  <eggert@twinsun.com>
57011
57012         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
57013
57014 2003-10-16  Karl Berry  <karl@gnu.org>
57015
57016         * config/config.{guess,sub}: update from config.
57017
57018 2003-10-16  Jim Meyering  <jim@meyering.net>
57019
57020         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
57021         memcpy.
57022
57023 2003-10-15  Paul Eggert  <eggert@twinsun.com>
57024
57025         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
57026         (SIZE_MAX): Remove.
57027         (new_exclude, add_exclude_file): Initial size no longer needs to
57028         be a power of 2.
57029         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
57030         our own address arithmetic overflow checking.
57031
57032         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
57033         (fnmatch): Do not alloca more than 2000 wide characters;
57034         instead, use malloc for large buffers.
57035         Check for address arithmetic overflow, and return -1
57036         with errno set to ENOMEM in that case.
57037         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
57038         (NEW_PATTERN): Do not alloca more than 8000 bytes;
57039         instead, return -1.  Check for address arithmetic overflow.
57040
57041 2003-10-14  Paul Eggert  <eggert@twinsun.com>
57042
57043         Handle invalid suffixes and overflow independently, so that
57044         callers can treat them independently as needed.  Fix some bugs in
57045         suffix handling, e.g., "100k@" was not diagnosed as an invalid
57046         suffix for a human-readable blocksize.  The major caller-visible
57047         change is the addition of a new
57048         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
57049         that both overflow and suffix chars were found.
57050
57051         * lib/human.c (humblock): Don't check separately for invalid suffix
57052         char; that is xstrtoumax's job (now that its bug is fixed).
57053         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
57054         INTMAX_MAX]: New macros.
57055         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
57056         TYPE_MAXIMUM): New macros.
57057         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
57058         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
57059         if overflow occurs, as it's what __strtol does and it's more useful
57060         in practice.
57061         (__xstrtol): If __strtol reports some error other than ERANGE,
57062         reflect it to the caller as LONGINT_INVALID.  If it reports
57063         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
57064         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
57065         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
57066         value.
57067         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
57068         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
57069         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
57070         [defined UINTMAX_MAX]: New macros.
57071
57072 2003-10-14  Bruno Haible  <bruno@clisp.org>
57073
57074         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
57075
57076 2003-10-14  Bruno Haible  <bruno@clisp.org>
57077
57078         * m4/sig_atomic_t: New file, from GNU gettext.
57079         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
57080
57081 2003-10-14  Bruno Haible  <bruno@clisp.org>
57082
57083         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
57084         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
57085         Also use volatile where needed.
57086
57087 2003-10-12  Paul Eggert  <eggert@twinsun.com>
57088
57089         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
57090         Change maintainer from Bruno Haible to 'all'.
57091
57092 2003-10-12  Paul Eggert  <eggert@twinsun.com>
57093
57094         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
57095
57096 2003-10-12  Paul Eggert  <eggert@twinsun.com>
57097
57098         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
57099         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
57100         and define in terms of the other primitives.
57101         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
57102         (SIZE_MAX): Define if not already defined.
57103         (array_size_overflow): New function.
57104         (xalloc_die): Abort instead of exiting if 'error' returns.
57105         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
57106         (xmalloc, xrealloc): Use them.
57107         (xcalloc): Check for address arithmetic overflow.
57108         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
57109         a bit faster than strcpy.
57110
57111 2003-10-10  Simon Josefsson  <jas@extundo.com>
57112
57113         * modules/argp (Depends-on): Add restrict and strcase.
57114
57115 2003-10-10  Simon Josefsson  <jas@extundo.com>
57116
57117         * m4/argp.m4: Add AC_C_INLINE.
57118
57119 2003-10-08  Paul Eggert  <eggert@twinsun.com>
57120
57121         Merge getpass from libc, plus a few fixes.
57122
57123         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
57124         Include <stdbool.h>.
57125         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
57126         __fsetlocking to empty.
57127         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
57128         do include <bits/libc-lock.h>.
57129         Do not include <fcntl.h>; not needed.
57130         [_LIBC]: Include <wchar.h>.
57131         (NOTCANCEL_MODE): New macro.
57132         (flockfile, funlockfile) [_LIBC]: New macros.
57133         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
57134         [!_LIBC]: New macros.
57135         (call_fclose): New function.
57136         (getpass): Use it.  Save tty stream separately; this simplifies the
57137         code and makes it more reliable if stdin happens to equal stdout.
57138         Invoke __fsetlocking on tty.
57139         Handle thread cancellation if needed.
57140         Namespace cleanup (use __tcgetattr, __getline).
57141         Use bool for Booleans.
57142         [USE_IN_LIBIO]: Handle wide streams.
57143         [!_LIBC]: Unconditionally do the fseek, since we don't know what
57144         stream might go where.
57145
57146         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
57147         doesn't have to include <stdio.h> before us.
57148         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
57149         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
57150         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
57151         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
57152         if not declared, so that we can use getpass.c code from libc without
57153         rewriting it.
57154         (flockfile, ftrylockfile, funlockfile): New macros.
57155
57156 2003-10-08  Paul Eggert  <eggert@twinsun.com>
57157
57158         * modules/getpass: Depend on stdbool.
57159
57160 2003-10-08  Paul Eggert  <eggert@twinsun.com>
57161
57162         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
57163
57164 2003-10-07  Karl Berry  <karl@gnu.org>
57165
57166         * config/config.{guess,sub}: update from config.
57167
57168 2003-10-06  Jim Meyering  <jim@meyering.net>
57169             Bruno Haible  <bruno@clisp.org>
57170
57171         This lets translators provide better translations for the
57172         "Written by ..." part of --version output.
57173         * lib/version-etc.h: Include stdarg.h.
57174         (version_etc_copyright): Declare as readonly.
57175         (version_etc): Make this function variadic with a NULL-terminated list
57176         of author name strings.
57177         (version_etc_va): New declaration.
57178         * lib/version-etc.c: Include stdarg.h, stdlib.h.
57179         (version_etc_copyright): Declare as readonly.
57180         (version_etc_va): New function. Provide a different translatable string
57181         for each possible number of authors < 10. Abbreviate when there are 10
57182         authors or more.
57183         (version_etc): Make this function variadic. Call version_etc_va.
57184         Suggestion from Gary V. Vaughan.
57185
57186         * lib/long-options.h (parse_long_options): Change prototype: the
57187         authors string is moved to the end and becomes variadic.
57188         * lib/long-options.c: Include stdarg.h.
57189         (parse_long_options): Make this function variadic, too.
57190         Call version_etc_va, not version_etc.
57191
57192 2003-10-06  Bruno Haible  <bruno@clisp.org>
57193
57194         * modules/version-etc-2: Remove file.
57195         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
57196
57197 2003-10-06  Bruno Haible  <bruno@clisp.org>
57198
57199         * modules/fatal-signal: New file.
57200         * MODULES.html.sh (func_all_modules): Add fatal-signal.
57201
57202 2003-10-06  Bruno Haible  <bruno@clisp.org>
57203
57204         * m4/fatal-signal.m4: New file.
57205         * m4/signalblocking.m4: New file, from GNU gettext.
57206
57207 2003-10-06  Bruno Haible  <bruno@clisp.org>
57208
57209         * lib/version-etc-2.h: Remove file.
57210         * lib/version-etc-2.c: Remove file.
57211
57212 2003-10-06  Bruno Haible  <bruno@clisp.org>
57213
57214         * lib/fatal-signal.h: New file, from GNU gettext.
57215         * lib/fatal-signal.c: New file, from GNU gettext.
57216
57217 2003-10-05  Paul Eggert  <eggert@twinsun.com>
57218
57219         * README: Rework advice for preventing empty .o files.
57220         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
57221         not <sys/types.h>.
57222
57223 2003-10-04  Karl Berry  <karl@gnu.org>
57224
57225         * lib/argp*: update from libc.
57226
57227 2003-10-04  Karl Berry  <karl@gnu.org>
57228
57229         * config/config.{guess,sub}: update from config.
57230
57231 2003-10-02  Bruno Haible  <bruno@clisp.org>
57232
57233         * modules/lchown (Include): Add lchown.h.
57234         * modules/time_r (Include): Use "..." syntax.
57235         * modules/xgetdomainname (Include): Add xgetdomainname.h.
57236
57237 2003-10-01  Simon Josefsson  <jas@extundo.com>
57238
57239         * MODULES.html.sh (func_all_modules): Move gethostname from section
57240         'based on' to section 'lacking' POSIX:2001.
57241
57242 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
57243
57244         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
57245         to output mode on the same stream.
57246
57247 2003-09-29  Paul Eggert  <eggert@twinsun.com>
57248
57249         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
57250         Fix arg typo in previous patch.
57251
57252 2003-09-28  Jim Meyering  <jim@meyering.net>
57253
57254         * lib/error.c: Correct cpp indentation.
57255
57256 2003-09-27  Paul Eggert  <eggert@twinsun.com>
57257
57258         * modules/free: New file.
57259
57260 2003-09-27  Paul Eggert  <eggert@twinsun.com>
57261
57262         * m4/free.m4: New file.
57263
57264 2003-09-27  Paul Eggert  <eggert@twinsun.com>
57265
57266         * lib/minmax.h (MIN, MAX)
57267         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
57268         Omit the special code that used __typeof__, since we worry that
57269         it could be more trouble than it's worth.  See:
57270         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
57271         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
57272
57273         * lib/free.c: New file.
57274
57275 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
57276
57277         Trivial fixes to Makefile.am parts of module listings.
57278         * modules/strstr: Append strstr.h to lib_SOURCES.
57279         * modules/strcase: Likewise, for strcase.h.
57280
57281 2003-09-27  Karl Berry  <karl@gnu.org>
57282
57283         * config/mkinstalldirs: update from automake.
57284
57285 2003-09-26  Paul Eggert  <eggert@twinsun.com>
57286
57287         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
57288         (error_tail): Do not loop, reallocating temporary buffer, since
57289         the output cannot contain more wide characters than the input
57290         contains bytes, the size must be big enough already.  This avoids
57291         one potential size overflow calculation.  Check for size overflow
57292         when calculating temporary buffer size.  Free temporary buffer
57293         when done, if it was allocated with malloc; this plugs a memory
57294         leak.  Remove casts from void * to pointers, that are no longer
57295         needed now that we're assuming C89 or better.
57296
57297         Merge error changes from glibc.
57298
57299         * lib/error.c, error.h: Update copyright notice header to match glibc.
57300         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
57301         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
57302         Disable cancellation while printing error.
57303         * lib/error.h: Prepend __ to parameter names.
57304
57305 2003-09-26  Jim Meyering  <jim@meyering.net>
57306
57307         * lib/error.c (error_tail): Move some declarations
57308         into inner scope where the local variables are used.
57309
57310 2003-09-26  Bruno Haible  <bruno@clisp.org>
57311
57312         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
57313         stpncpy().
57314         Don't define stpncpy through config.h; it's now done through stpncpy.h.
57315
57316 2003-09-26  Bruno Haible  <bruno@clisp.org>
57317
57318         * lib/stpncpy.h (gnu_stpncpy): New declaration.
57319         (stpncpy): Define as alias for gnu_stpncpy.
57320         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
57321
57322 2003-09-25  Simon Josefsson  <jas@extundo.com>
57323
57324         * lib/xgetdomainname.h: New file.
57325         * lib/xgetdomainname.c: New file.
57326
57327 2003-09-25  Simon Josefsson  <jas@extundo.com>
57328             Bruno Haible  <bruno@clisp.org>
57329
57330         * modules/getdomainname: New file.
57331         * modules/xgetdomainname: New file.
57332         * MODULES.html.sh (func_all_modules): Add getdomainname,
57333         xgetdomainname.
57334
57335 2003-09-25  Simon Josefsson  <jas@extundo.com>
57336             Bruno Haible  <bruno@clisp.org>
57337
57338         * m4/getdomainname.m4: New file.
57339
57340 2003-09-25  Simon Josefsson  <jas@extundo.com>
57341             Bruno Haible  <bruno@clisp.org>
57342
57343         * lib/getdomainname.h: New file.
57344         * lib/getdomainname.c: New file.
57345
57346 2003-09-25  Karl Berry  <karl@gnu.org>
57347
57348         * lib/argp-fmtstream.c, argp-help.c: update from libc.
57349
57350 2003-09-25  Karl Berry  <karl@gnu.org>
57351
57352         * config/install-sh: update from automake.
57353
57354 2003-09-25  Bruno Haible  <bruno@clisp.org>
57355
57356         * modules/version-etc-2: New file, from modules/version-etc with
57357         modifications.
57358         * MODULES.html.sh (func_all_modules): Add version-etc-2.
57359
57360 2003-09-25  Bruno Haible  <bruno@clisp.org>
57361
57362         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
57363         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
57364
57365 2003-09-24  Simon Josefsson  <jas@extundo.com>
57366
57367         * modules/xgethostname: Add xgethostname.h.
57368
57369 2003-09-24  Paul Eggert  <eggert@twinsun.com>
57370
57371         * lib/linebuffer.c (freebuffer): Don't free the argument, just
57372         the buffer associated with the argument.  Bug reported by
57373         Simon Josefsson.
57374
57375 2003-09-24  Paul Eggert  <eggert@twinsun.com>
57376
57377         * README: Document assumptions that 'int' is at least 32 bits
57378         wide, that integer arithmetic is 2's complement without overflow,
57379         that there are no holes in integer values, that adding sizes of
57380         two nonoverlapping objects can't overflow, and that all-bits-zero
57381         yields scalar zero.  Fix spelling and capitalization typos.
57382
57383 2003-09-19  Karl Berry  <karl@gnu.org>
57384
57385         * lib/argp.h: update from libc.
57386
57387 2003-09-17  Paul Eggert  <eggert@twinsun.com>
57388
57389         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
57390         to avoid spurious warnings like "AC_RUN_IFELSE was called before
57391         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
57392
57393 2003-09-17  Paul Eggert  <eggert@twinsun.com>
57394
57395         * gnulib-tool: Use "test -h", not "test -L", for portability
57396         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
57397         (tags_regexp): Remove, since \| doesn't conform to POSIX.
57398         (sed_extract_prog): Issue s commands one-by-one, rather than
57399         using \| in one s command.
57400
57401 2003-09-16  Paul Eggert  <eggert@twinsun.com>
57402
57403         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
57404         input error, instead of returning NULL the next time we are called
57405         (and therefore losing track of errno).
57406
57407 2003-09-16  Bruno Haible  <bruno@clisp.org>
57408
57409         * gnulib-tool (func_create_testdir): Warn about duplicated
57410         dependencies.
57411
57412 2003-09-15  Paul Eggert  <eggert@twinsun.com>
57413
57414         * modules/argmatch, modules/fatal, modules/obstack,
57415         modules/xalloc, modules/xgethostname: Sort dependencies by
57416         importance, not alphabetically.
57417
57418 2003-09-15  Paul Eggert  <eggert@twinsun.com>
57419
57420         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
57421         fails, so that the caller gets the proper errno.
57422
57423         * lib/readutmp.c (read_utmp): Likewise.
57424         Check for fstat error.  Close stream and free storage
57425         when failing.
57426
57427 2003-09-14  Karl Berry  <karl@gnu.org>
57428
57429         * config/srclist.txt (strdup.c): disable for c89 changes.
57430
57431 2003-09-14  Jim Meyering  <jim@meyering.net>
57432
57433         * lib/getloadavg.c: Correct cpp indentation.
57434         * lib/strdup.c: Likewise.
57435         * lib/vasnprintf.c: Likewise.
57436
57437 2003-09-14  Bruno Haible  <bruno@clisp.org>
57438
57439         * modules/fwriteerror: New file.
57440         * MODULES.html.sh (func_all_modules): Add fwriteerror.
57441
57442 2003-09-14  Bruno Haible  <bruno@clisp.org>
57443
57444         * lib/fwriteerror.h: New file.
57445         * lib/fwriteerror.c: New file.
57446
57447 2003-09-12  Paul Eggert  <eggert@twinsun.com>
57448
57449         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
57450         modules/xgethostname, modules/xalloc: Depend on exit.
57451
57452 2003-09-12  Paul Eggert  <eggert@twinsun.com>
57453
57454         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
57455
57456         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
57457         and AC_MINIX, too, so that their extensions are available.
57458
57459         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
57460         This macro has been superseded by gl_BACKUPFILE.
57461
57462         More patches to assume C89 or better.
57463
57464         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
57465
57466         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
57467         unconditionally.
57468         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
57469         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
57470         Include <string.h>, <stdlib.h> unconditionally.
57471         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
57472         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
57473         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
57474         headers or for string.h.
57475         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
57476         or strtoul.
57477
57478         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
57479         headers.
57480         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
57481         * m4/userspec.m4 (gl_USERSPEC): Likewise.
57482         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
57483         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
57484         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
57485         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
57486         memcpy, memset.
57487         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
57488         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
57489         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
57490         strtol.
57491         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
57492         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
57493         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
57494         strtoul.
57495
57496 2003-09-12  Paul Eggert  <eggert@twinsun.com>
57497
57498         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
57499         * lib/obstack.c [!defined _LIBC]: Likewise.
57500         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
57501         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
57502         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
57503
57504         More changes to assume C89 or better.
57505
57506         * lib/error.c (error_tail): Assume vprintf.
57507
57508         * lib/argmatch.c (getenv): Remove decl.
57509         * lib/progreloc.c (get_full_program_name): Define via prototype.
57510         * lib/setenv.c (clearenv): Likewise.
57511         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
57512         needed.
57513         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
57514         (malloc, memcpy): Remove decls.
57515         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
57516         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
57517         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
57518         (memcpy): Remove macro.
57519         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
57520         (__P): Remove.  All uses removed.
57521         (PTR): Remove.  All uses changed to void *.
57522         (CHAR_BIT, NULL): Remove.
57523         (spaces, zeros, memset_space, memset_zero)
57524         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
57525         Remove.
57526         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
57527         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
57528         Define with prototype.
57529         Remove now-unnecessary prototype decl.
57530         (extra_args_spec): Assume ANSI C.  All uses changed.
57531         (extra_args_spec_iso): Remove.
57532         (my_strftime, emacs_strftimeu): Define via prototype.
57533         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
57534         unconditionally.
57535         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
57536         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
57537         (strtoul, strtol): Remove decls.
57538         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
57539         LONG_MAX): Remove.
57540         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
57541         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
57542         (LOCALE_PARAM_PROTO): New macro.
57543         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
57544         (INTERNAL (strtol), strtol): Define with a prototype.
57545         (PARAMS): Remove.  All uses removed.
57546         * lib/tempname.c: Include <string.h> unconditionally.
57547         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
57548         * lib/xgethostname.c (main): Define with a prototype.
57549         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
57550         Include <stdlib.h> unconditionally.
57551         (calloc, malloc, realloc, free): Remove decls.
57552         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
57553         Include <stdlib.h> unconditionally.  Sort include file names.
57554         (strtod): Remove.
57555         (xstrtod): Define with a prototype.
57556         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
57557         (strtol, strtoul): Remove decls.
57558
57559 2003-09-11  Paul Eggert  <eggert@twinsun.com>
57560
57561         More patches to assume C89 or better.
57562         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
57563         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
57564         string.h, memchr, STDC_HEADERS.
57565
57566 2003-09-11  Paul Eggert  <eggert@twinsun.com>
57567
57568         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
57569         Include <stdlib.h>, <string.h> unconditionally.
57570         Remove now-unnecessary cast to char *.
57571         * lib/strnlen.c: Include <string.h> unconditionally.
57572         * lib/yesno.c (yesno): Define with a prototype.
57573
57574 2003-09-11  Bruno Haible  <bruno@clisp.org>
57575
57576         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
57577
57578 2003-09-10  Jim Meyering  <jim@meyering.net>
57579
57580         * lib/error.c: Correct indentation of cpp directives.
57581
57582 2003-09-10  Bruno Haible  <bruno@clisp.org>
57583
57584         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
57585         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
57586         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
57587         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
57588         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
57589         <stdlib.h> and <string.h> checks.
57590         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
57591         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
57592
57593 2003-09-10  Bruno Haible  <bruno@clisp.org>
57594
57595         * lib/strcspn.c: Include <string.h> unconditionally.
57596         * lib/strpbrk.c: Include <string.h> unconditionally.
57597         * lib/strstr.c: Include <string.h> unconditionally.
57598         * lib/unicodeio.c: Include <string.h> unconditionally.
57599         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
57600         * lib/unsetenv.c: Likewise.
57601         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
57602         * lib/yesno.c: Include <stdlib.h> unconditionally.
57603         (rpmatch): Add prototype.
57604
57605 2003-09-09  Paul Eggert  <eggert@twinsun.com>
57606
57607         More patches to assume C89 or better.
57608         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
57609         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
57610         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
57611         or for string.h.
57612         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
57613         stdlib.h.
57614         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
57615         C headers.
57616         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
57617         string.h.
57618         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
57619         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
57620         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
57621         or for string.h.
57622         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
57623         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
57624         C headers.
57625         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
57626         memcpy.
57627         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
57628         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
57629         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
57630         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
57631         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
57632         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
57633         string.h, free.
57634         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
57635         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
57636         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
57637         C headers, or for string.h.
57638         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
57639         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
57640         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
57641         headers, memory.h, stdlib.h, string.h, strings.h.
57642         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
57643         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
57644         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
57645         strchr.
57646         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
57647         headers, memory.h, string.h.
57648         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
57649         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
57650         free.
57651         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
57652         headers.
57653         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
57654         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
57655         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
57656         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
57657         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
57658
57659 2003-09-09  Paul Eggert  <eggert@twinsun.com>
57660
57661         More K&R removal.
57662
57663         * lib/acosl.c (main): Use a prototype.
57664         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
57665         tanl.c: Likewise.
57666
57667         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
57668
57669         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
57670         (getopt, etopt_long, getopt_long_only, _getopt_internal)
57671         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
57672         with a prototype.
57673         * lib/getopt.c (const): Remove macro.
57674         Include <string.h> unconditionally.
57675         (my_index): Remove; all uses changed to strchr.
57676         (strlen): Remove decl.
57677         (exchange): Remove forward decl; no longer needed.
57678         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
57679         Define with prototype.
57680         * lib/getopt1.c (const): Remove macro.
57681         (getopt_long, getopt_long_only, main): Define with prototype.
57682
57683         * lib/getugroups.c: Include <string.h> unconditionally.
57684
57685         * lib/getusershell.c: Include <stdlib.h> unconditionally.
57686         (getusershell, setusershell, endusershell, readname, main):
57687         Define with prototypes.
57688
57689         * lib/group-member.c: Include group-member.h first.
57690         Include <stdlib.h> unconditionally.
57691
57692         * lib/hard-locale.c: Include hard-locale.h first.
57693         Include <stdlib.h>, <string.h> unconditionally.
57694
57695         * lib/hash.c (free, malloc): Remove decls.
57696         Include <stdlib.h> unconditionally.
57697
57698         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
57699         (getenv): Do not declare.
57700
57701         * lib/idcache.c: Include <string.h> unconditionally.
57702
57703         * lib/long-options.c: Include long-options.h first, to test interface.
57704         Include <stdlib.h> unconditionally.
57705
57706         * lib/makepath.c: Include makepath.h first, to test interface.
57707         Include <stdlib.h> and <string.h> unconditionally.
57708
57709         * lib/linebuffer.c: Include <stdlib.h>.
57710         (free): Remove decl.
57711
57712         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
57713         stddef.h. rpl_malloc returns void *, not char *.
57714         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
57715         prototype.
57716
57717         * lib/md5.h: Include <limits.h> unconditionally.
57718         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
57719         (__P): Remove; all uses removed.
57720         * lib/md5.c: Include "md5.h" first.
57721         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
57722         md5_buffer, md5_process_bytes, md5_process_block):
57723         Define with prototypes.
57724         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
57725         * lib/sha.c: Include "sha.h" first.
57726         Include <stdlib.h>, <string.h> unconditionally.
57727
57728         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
57729         * lib/memcmp.c (__ptr_t): Likewise.
57730         * lib/memrchr.c (__ptr_t): Likewise.
57731         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
57732         Include <string.h> unconditionally.
57733         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
57734         * lib/memchr.c: Include <stdlib.h> unconditionally.
57735         * lib/memchr.c (LONG_MAX): Remove.
57736         * lib/memrchr.c (LONG_MAX): Likewise.
57737         * lib/memchr.c (__memchr): Define via a prototype.
57738         * lib/memrchr.c (__memrchr): Likewise.
57739         * lib/memcmp.c (__P): Remove, and remove all uses.
57740         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
57741         Remove forward decls; no longer needed.
57742         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
57743         Use types required by C89 in prototype.
57744
57745         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
57746         * lib/savedir.c: Likewise.
57747         * lib/mkdir.c (free): Remove decl.
57748         * lib/rmdir.c (rmdir): Define with a prototype.
57749         * lib/savedir.c: Include savedir.h first, to test interface.
57750
57751         * lib/mktime.c (STDC_HEADERS): Remove.
57752         Include <stdlib.h>, <string.h> unconditionally.
57753
57754         * lib/modechange.c: Include <stdlib.h> unconditionally.
57755         (malloc): Remove decl.
57756
57757         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
57758         (free): Remove decl.
57759
57760         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
57761         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
57762         (This type really should be intptr_t, but that's a C99ism.)
57763         (_obstack_memcpy): Remove: all uses changed to memcpy.
57764         Include <string.h> unconditionally.
57765         (struct obstack): Assume __STDC__ for types of members
57766         chunkfun, freefun, extra_arg.
57767         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
57768         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
57769         obstack_begin, obstack_specify_allocation,
57770         obstack_specify_allocation_with_arg, obstack_chunkfun,
57771         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
57772         Remove unprototyped decls and the macros that use them.
57773         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
57774         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
57775         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
57776         (defined __STDC__ && __STDC__)]:
57777         Remove nonprototyped code.
57778         Include <stdlib.h> unconditionally.
57779         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
57780         _obstack_allocated_p, _obstack_free, obstack_free,
57781         _obstack_memory_used, print_and_abort):
57782         Define using prototypes.
57783         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
57784         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
57785         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
57786         obstack_next_free, obstack_object_size, obstack_room) [0]:
57787         Remove unused, unprototyped code.
57788
57789         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
57790
57791         * lib/physmem.c (physmem_total, physmem_available, main): Define
57792         with prototypes.
57793
57794         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
57795         (main): Define with a prototype.
57796
57797         * lib/posixver.c (getenv): Remove decl.
57798
57799         * lib/putenv.c (malloc): Returns void *, not char *.
57800         Include <string.h> unconditionally.
57801         (strchr, memcpy, NULL): Do not define.
57802
57803         * lib/readtokens.c: Include readtokens.h first, to test interface.
57804         Include <stdlib.h>, <string.h> unconditionally.
57805         (init_tokenbuffer): Define with a prototype.
57806
57807         * lib/regex.c (PARAMS): Remove.  All uses removed.
57808         All uses of _RE_ARGS removed, too.
57809         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
57810         unconditionally.
57811         (bzero): Assume memset exists.
57812         (memcmp, memcpy, NULL): Remove.
57813         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
57814         char, or assignments to local vars of type signed char.
57815         (init_syntax_once, PREFIX(extract_number_and_incr),
57816         PREFIX(print_partial_compiled_pattern),
57817         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
57818         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
57819         PREFIX(regex_grow_registers), PREFIX(regex_compile),
57820         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
57821         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
57822         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
57823         wcs_compile_range, byte_compile_range, truncate_wchar,
57824         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
57825         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
57826         count_mbs_length, wcs_re_match_2_internal,
57827         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
57828         PREFIX(alt_match_null_string_p),
57829         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
57830         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
57831         regfree, PREFIX(extract_number)): Define with prototype.  Remove
57832         now-unnecessary declaration, if any.
57833         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
57834         regcomp, regexec):
57835         Remove now-unnecessary casts among pointer types.
57836         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
57837
57838         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
57839         (free): Remove decl.
57840
57841         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
57842
57843         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
57844         (free): Remove decl.
57845
57846         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
57847         * lib/xgetcwd.c: Likewise.
57848
57849         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
57850         (free): Remove decl.
57851
57852         * lib/strchrnul.c (strchrnul): Define with a prototype.
57853         Fix bug: c_in was not converted to char before searching.
57854
57855         The following changes are not K&R related:
57856
57857         * lib/group-member.h: Include <sys/types.h>, so that this file is
57858         self-contained.
57859         * lib/makepath.h: Likewise.
57860
57861         * lib/getusershell.c (readname, default_index, line_size, readname):
57862         Use size_t, not int, for sizes.
57863         (readname): If the size overflows, report an error instead of
57864         looping forever.
57865
57866 2003-09-09  Paul Eggert  <eggert@twinsun.com>
57867
57868         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
57869         libc.
57870
57871 2003-09-09  Paul Eggert  <eggert@twinsun.com>
57872
57873         * README: New section: portability guidelines.
57874
57875 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
57876
57877         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
57878         C89 spec.
57879
57880 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
57881
57882         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
57883
57884 2003-09-08  Paul Eggert  <eggert@twinsun.com>
57885
57886         Assume C89 or better; remove K&R cruft.
57887         A few of these changes were first proposed by Derek Robert Price
57888         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
57889
57890         * lib/addext.c: Include <string.h> unconditionally.
57891         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
57892         Don't declare getenv or malloc.
57893
57894         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
57895         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
57896         (NULL): Remove.
57897         (find_stack_direction, alloca): Use prototypes.
57898
57899         * lib/atexit.c (atexit): Define using a prototype.
57900
57901         * lib/basename.c, dirname.c, stripslash.c:
57902         Include <string.h> unconditionally.
57903
57904         * lib/bcopy.c: Include <stddef.h>.
57905         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
57906
57907         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
57908
57909         * lib/error.h (error, error_at_line, error_print_progname)
57910         [! (defined (__STDC__) && __STDC__)]: Remove decls.
57911         * lib/error.c: Include error.h first, to check interface.
57912         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
57913         (VA_START): Remove; all uses changeed to va_start.
57914         (exit, strerror): Remove decls.
57915         (error_print_progname): Prototype uncondionally.
57916         Don't include <errno.h>; no longer needed.
57917         (private_strerror): Remove.
57918         (error_tail): Always define.
57919         (error, error_at_line): Assume C89 or better; always use prototypes.
57920         * lib/fatal.c: Include "fatal.h" first, to test interface.
57921         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
57922         (VA_START): Remove; all uses changed to va_start.
57923         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
57924         this case.
57925         (exit): Remove decl.
57926         (fatal): Prototype unconditionally.  Assume va_start works.
57927         Abort at end, to pacify gcc.
57928
57929         * lib/euidaccess.c (main): Define with a prototype.
57930
57931         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
57932
57933         * lib/exitfail.c: Include <stdlib.h> unconditionally.
57934
57935         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
57936         prototypes.
57937         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
57938         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
57939         (getenv): Remove decl.
57940         (fnmatch): Define using a prototype.
57941         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
57942         (FCT): Define using a prototype.
57943
57944         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
57945
57946         * lib/gethostname.c: Include <stddef.h>.
57947         (gethostname): Define with prototype.  Length is size_t, not int.
57948
57949 2003-09-08  Paul Eggert  <eggert@twinsun.com>
57950
57951         Assume C89 or better; remove K&R cruft.
57952         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
57953         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
57954         string.h, getenv, malloc.
57955         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
57956         headers.
57957         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
57958         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
57959         do not check for strerror.
57960         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
57961         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
57962         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
57963         do not check for doprnt or vprintf.
57964         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
57965         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
57966
57967 2003-09-08  Paul Eggert  <eggert@twinsun.com>
57968
57969         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
57970         getversion.c should have been removed then, but was accidentally
57971         preserved.
57972
57973         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
57974         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
57975
57976 2003-09-08  Karl Berry  <karl@gnu.org>
57977
57978         * config/config.sub, config.guess, srclistvars.sh: update from savannah
57979                 config, forget about prep.
57980
57981         * config/depcomp, missing: update from automake.
57982
57983 2003-09-07  Paul Eggert  <eggert@twinsun.com>
57984
57985         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
57986         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
57987
57988 2003-09-07  Paul Eggert  <eggert@twinsun.com>
57989
57990         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
57991         copy_tm_result.  Bug reported by Simon Josefsson in
57992         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
57993
57994 2003-09-06  Paul Eggert  <eggert@twinsun.com>
57995
57996         * m4/time_r.m4: New file.
57997         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
57998         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
57999         is. Check for timegm declaration.
58000         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
58001         Do not check for gmtime_r.
58002         Replace mktime if __mktime_internal does not exist and if mktime
58003         hasn't been replaced already.
58004
58005 2003-09-06  Paul Eggert  <eggert@twinsun.com>
58006
58007         * lib/time_r.c, lib/time_r.h: New files.
58008
58009         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
58010         __localtime_r.
58011         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
58012         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
58013
58014         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
58015         __gmtime_r.
58016         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
58017         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
58018         Include <time_r.h>.
58019
58020         * lib/timegm.c: Switch to glibc implementation, with the following
58021         changes:
58022         [defined HAVE_CONFIG_H]: Include <config.h>.
58023         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
58024         (__mktime_internal) [!defined _LIBC]: New decl.
58025         (__gmtime_r) [!defined _LIBC]: New macro and function.
58026         (timegm): Use a prototype, since gnulib assumes C89.
58027         Do not bother declaring tmp to be const, as it's not really usefu.
58028         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
58029         (timegm): Declare only if HAVE_DECL_TIMEGM.
58030
58031 2003-09-06  Paul Eggert  <eggert@twinsun.com>
58032
58033         * MODULES.html.sh (func_all_modules): Add time_r.
58034         * modules/time_r: New file.
58035         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
58036         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
58037
58038 2003-09-03  Paul Eggert  <eggert@twinsun.com>
58039
58040         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
58041         Bug reported by Lute Kamstra in
58042         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
58043
58044         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
58045         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
58046         course with correspondingly smaller numbers for tomorrow and
58047         yesterday.  From Tadayoshi Funaba.  Originally installed into
58048         sh-utils on 1999-08-07, but the patch got lost (I guess during the
58049         coreutils merge?).
58050
58051 2003-08-31  Simon Josefsson  <jas@extundo.com>
58052
58053         * modules/timegm: New file.
58054         * MODULES.html.sh (func_all_modules): Add timegm.
58055
58056 2003-08-31  Simon Josefsson  <jas@extundo.com>
58057
58058         * m4/timegm.m4: New file.
58059
58060 2003-08-31  Simon Josefsson  <jas@extundo.com>
58061
58062         * lib/timegm.h: New file.
58063         * lib/timegm.c: New file.  Based on
58064         wget-1.8.2/src/http.c:mktime_from_utc.
58065
58066 2003-08-31  Karl Berry  <karl@gnu.org>
58067
58068         * lib/argp.h: update from libc.
58069
58070 2003-08-28  Bruno Haible  <bruno@clisp.org>
58071
58072         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
58073         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
58074         followed by '#define fnmatch fnmatch_posix' gives an error.
58075
58076 2003-08-28  Bruno Haible  <bruno@clisp.org>
58077
58078         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
58079         warning on QNX, which defines O_BINARY to 000000.
58080
58081 2003-08-27  Jim Meyering  <jim@meyering.net>
58082
58083         * m4/mkstemp.m4: Require that the system mkstemp be able to create
58084         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
58085         would fail after 32.  Reported by Danny Levinson.  Details here:
58086         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
58087
58088 2003-08-24  Bruno Haible  <bruno@clisp.org>
58089
58090         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
58091         MSVC7 <stdio.h> is included later.
58092
58093 2003-08-22  Simon Josefsson  <jas@extundo.com>
58094
58095         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
58096
58097 2003-08-20  Karl Berry  <karl@gnu.org>
58098
58099         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
58100
58101 2003-08-20  Bruno Haible  <bruno@clisp.org>
58102
58103         * modules/progname: New file.
58104         * MODULES.html.sh (func_all_modules): Add progname.
58105
58106 2003-08-20  Bruno Haible  <bruno@clisp.org>
58107
58108         * lib/progname.h: New file, from GNU gettext.
58109         * lib/progname.c: New file, from GNU gettext.
58110         * lib/progreloc.c: New file, from GNU gettext.
58111
58112 2003-08-19  Jim Meyering  <jim@meyering.net>
58113
58114         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
58115         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
58116
58117 2003-08-19  Bruno Haible  <bruno@clisp.org>
58118
58119         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
58120         more.
58121
58122 2003-08-19  Bruno Haible  <bruno@clisp.org>
58123
58124         * lib/xstrdup.c: Assume <string.h> exists.
58125
58126 2003-08-18  Paul Eggert  <eggert@twinsun.com>
58127
58128         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
58129         in makefile rules.
58130
58131 2003-08-18  Jim Meyering  <jim@meyering.net>
58132
58133         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
58134         * m4/lib-ld.m4: Likewise.
58135
58136 2003-08-18  Jim Meyering  <jim@meyering.net>
58137
58138         * lib/setenv.h: Indent nested cpp directive.
58139         * lib/vasnprintf.c: Remove trailing blanks.
58140
58141 2003-08-17  Simon Josefsson  <jas@extundo.com>
58142
58143         * modules/xstrndup: New file.
58144         * MODULES.html.sh (func_all_modules): Add xstrndup.
58145
58146 2003-08-17  Simon Josefsson  <jas@extundo.com>
58147
58148         * modules/argp: Fix autoconf macro name. Add more dependencies.
58149
58150 2003-08-17  Simon Josefsson  <jas@extundo.com>
58151
58152         * m4/xstrndup.m4: New file.
58153
58154 2003-08-17  Simon Josefsson  <jas@extundo.com>
58155
58156         * m4/argp.m4: New file.
58157
58158 2003-08-17  Simon Josefsson  <jas@extundo.com>
58159             Bruno Haible  <bruno@clisp.org>
58160
58161         * lib/xstrndup.h: New file.
58162         * lib/xstrndup.c: New file.
58163
58164 2003-08-17  Bruno Haible  <bruno@clisp.org>
58165
58166         * modules/strndup (Files, Include): Add lib/strndup.h.
58167
58168 2003-08-17  Bruno Haible  <bruno@clisp.org>
58169
58170         * modules/euidaccess (Files): Add lib/euidaccess.h.
58171
58172 2003-08-17  Bruno Haible  <bruno@clisp.org>
58173
58174         * lib/strndup.h: New file.
58175
58176 2003-08-17  Bruno Haible  <bruno@clisp.org>
58177
58178         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
58179         like AC_GNU_SOURCE.
58180         * modules/extensions (configure.ac): Comment out the invocation of
58181         gl_USE_SYSTEM_EXTENSIONS.
58182
58183 2003-08-16  Paul Eggert  <eggert@twinsun.com>
58184
58185         Merges from coreutils, etc.
58186         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
58187         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
58188         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
58189         fixing a typo.
58190         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
58191         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
58192
58193 2003-08-16  Paul Eggert  <eggert@twinsun.com>
58194
58195         Document merge from coreutils.
58196         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
58197         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
58198         * modules/utime: Add m4/utimes-null.m4.
58199
58200 2003-08-16  Paul Eggert  <eggert@twinsun.com>
58201
58202         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
58203         space, undoing this 2003-08-12 change:
58204         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
58205
58206 2003-08-16  Paul Eggert  <eggert@twinsun.com>
58207
58208         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
58209         strtoul.c from libc, undoing this 2003-08-12 change:
58210         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
58211
58212 2003-08-16  Jim Meyering  <jim@meyering.net>
58213
58214         Merges from coreutils.
58215         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
58216         prefix.  Adjust cache variables similarly.  Create 500 rather than
58217         just 300 files, to exercise bug on Darwin6.5, too.
58218         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
58219         $missing_dir.
58220         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
58221         AM_SYS_POSIX_TERMIOS.
58222         Reported by mkc@mathdogs.com.
58223         Also change use of $am_cv_sys_posix_termios
58224         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
58225         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
58226         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
58227         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
58228         in /proc/mounts until it finds one with matching device number.  This
58229         is unnecessary when the FILE argument *is* a mount point.  No stat call
58230         is necessary in that case.  So, disable the statvfs-testing code on
58231         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
58232         as RedHat bug# 84846.
58233         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
58234         to 1MB, so as not to render systems with no stack size limit (e.g.,
58235         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
58236         Include <unistd.h>.  On some systems,
58237         it is required for the definition of _SC_PAGESIZE.
58238
58239 2003-08-16  Jim Meyering  <jim@meyering.net>
58240
58241         Merge from coreutils.
58242         * lib/xstrtoimax.c: #else #if -> #elif.
58243         * lib/xstrtoumax.c: Likewise.
58244
58245 2003-08-16  Jim Meyering  <jim@meyering.net>
58246
58247         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
58248         * m4/utimes.m4: Removed.
58249         * m4/utimes-null.m4: Renamed from utimes.m4.
58250
58251         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
58252         to 1MB, so as not to render systems with no stack size limit (e.g.,
58253         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
58254         Include <unistd.h>.  On some systems,
58255         it is required for the definition of _SC_PAGESIZE.
58256
58257 2003-08-16  Jim Meyering  <jim@meyering.net>
58258         and Paul Eggert  <eggert@cs.ucla.edu>
58259
58260         Merges from coreutils, etc.
58261
58262         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
58263         using the latest version from cvs.  This avoids problems with #line
58264         directives using a vendor (Sun) compiler.
58265         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
58266         Don't set GETGROUPS_LIB here; now it's
58267         done via getgroups.m4's wrapper function.
58268         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
58269         rather than just in sh-util/configure.in, so that the
58270         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
58271         same.
58272         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
58273         AC_FUNC_GETLOADAVG where to find getloadavg.c.
58274         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
58275         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
58276         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
58277         Remove code that is now done by the newly-required macros.
58278         Append $(EXEEXT) to DF_PROG.
58279         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
58280         Do not invoke or require the following here,
58281         since prereq.m4 or some gnulib .m4 now does this for us:
58282         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
58283         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
58284         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
58285         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
58286         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
58287         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
58288         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
58289         AC_FUNC_OBSTACK.
58290         Do not replace the following functions, as this is now the job
58291         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
58292         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
58293         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
58294         atexit getpass, strdup, getpagesize.
58295         Replace 'raise'.
58296         Do not check for the following functions, as this is now the job
58297         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
58298         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
58299         setregid.
58300         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
58301         Check for sys/sysctl.h.
58302         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
58303         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
58304         of checking for ssize_t ourselves.
58305
58306         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
58307         Require every macro that gnulib/modules/* suggests for us.
58308         (jm_PREREQ_ADDEXT): New macro.
58309         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
58310         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
58311
58312         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
58313         (gl_PHYSMEM): Use it.
58314         Also check for `table' function.
58315         Check for new headers and functions.
58316         Add check for sys/sysmp.h.
58317         With suggestions from Kaveh Ghazi.
58318         Ignore headers that are present but cannot be compiled.  This
58319         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
58320         C 5.4.
58321
58322 2003-08-15  Paul Eggert  <eggert@twinsun.com>
58323
58324         Document merge from coreutils.
58325         * modules/userspec: Depend on posixver.
58326         * modules/strftime: Depend on tzset.
58327
58328 2003-08-15  Paul Eggert  <eggert@twinsun.com>
58329
58330         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
58331         rather than tab, after '#' in shell-script copyright notices.
58332         Suggested by Bruno Haible.
58333
58334 2003-08-15  Paul Eggert  <eggert@twinsun.com>
58335
58336         * config/srclist-update: Use three spaces, rather than tab, after '#'
58337         in shell-script copyright notices.  Suggested by Bruno Haible.
58338         Remove unnecessary parenthesization in regular expression.
58339
58340 2003-08-15  Jim Meyering  <jim@meyering.net>
58341
58342         Merge from coreutils.
58343         * lib/xgethostname.c: Include <stdlib.h>.
58344         (xghostname): Don't exit for anything other than memory-related
58345         failure; just return NULL.
58346         * lib/userspec.c: Include "posixver.h".
58347         (parse_user_spec): Accept `.' as a separator only
58348         in pre-POSIX-200112 mode.
58349         * lib/strtoimax.c: Use #elif rather than #else #if.
58350         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
58351         Remove function, now that we can rely on a working tzset function.
58352         [!_LIBC]: Ensure that the required autoconf test has been run.
58353         [!defined _NL_CURRENT && HAVE_STRFTIME]:
58354         Use underlying_strftime for %r.
58355         * lib/sha.c: Merge in some clean-up and optimization changes from
58356         glibc.
58357         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
58358         Ensure that it is a multiple of 64.
58359         Rearrange loop exit tests so as to avoid performing an
58360         additional fread after encountering an error or EOF.
58361         * lib/realloc.c: Update copyright date.
58362
58363 2003-08-15  Jim Meyering  <jim@meyering.net>
58364         and Paul Eggert  <eggert@twinsun.com>
58365
58366         Merge from coreutils.
58367         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
58368         member but strut utmpx does not.  Needed for AIX 4.3.3.
58369         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
58370
58371 2003-08-15  Jim Meyering  <jim@meyering.net>
58372         and Paul Eggert  <eggert@cs.ucla.edu>
58373
58374         Merges from coreutils, etc.
58375         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
58376         Require gl_FUNC_TZSET_CLOBBER.
58377         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
58378         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
58379         members.
58380
58381 2003-08-14  Paul Eggert  <eggert@twinsun.com>
58382
58383         Help the merge from coreutils.
58384         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
58385         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
58386         * m4/tzset.m4: Use it too.
58387
58388 2003-08-14  Paul Eggert  <eggert@twinsun.com>
58389
58390         * modules/tzset: New file.
58391
58392 2003-08-14  Jim Meyering  <jim@meyering.net>
58393
58394         Merges from coreutils.
58395         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
58396         variable names, rather than @FNMATCH_H@.
58397         * modules/alloca: Likewise for $(ALLOCA_H).
58398
58399         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
58400         the three copies of the literal target, `fnmatch.h'.
58401         * modules/alloca (alloca.h): Likewise.
58402
58403 2003-08-14  Jim Meyering  <jim@meyering.net>
58404
58405         Merge from coreutils.
58406         * m4/tzset.m4: New file.
58407         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
58408         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
58409         otherwise, AIX 5.1 systems would end up using the latter.
58410         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
58411         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
58412         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
58413         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
58414
58415 2003-08-14  Jim Meyering  <jim@meyering.net>
58416
58417         Merge from coreutils.
58418         * lib/obstack.h: Whitespace changes.
58419         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
58420         and xcalloc return values.
58421         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
58422         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
58423         hang on OSF/1 5.1 for DIR on both local and remote file systems.
58424         Reported by (and fix confirmed by) Nelson H. F. Beebe.
58425         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
58426         error from mntctl.
58427         Use mntctl's return value to drive the entry-processing loop, since
58428         we can't rely on the value of the vmt_length member in the last
58429         entry.  On some systems doing so could result in exhausting
58430         virtual memory.  Based in part on a patch from Mike Jetzer.
58431
58432 2003-08-14  Jim Meyering  <jim@meyering.net>
58433         and Paul Eggert  <eggert@twinsun.com>
58434
58435         Merges from coreutils, plus other fixes.
58436         * lib/physmem.c: Merge in portability changes from gcc/libiberty
58437         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
58438         for credits and details.  Thanks to Kaveh Ghazi for helping
58439         to keep these files in sync.
58440         (ARRAY_SIZE): Define it.
58441         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
58442         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
58443         (memcasecmp): Don't assume size_t fits in unsigned int.
58444         Remove casts and duplicate code.
58445         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
58446         (memcpy): Remove definition.
58447         Merge in some clean-up and optimization changes from glibc.
58448         [BLOCKSIZE]: Move definition to top of file.
58449         Ensure that it is a multiple of 64.
58450         Rearrange loop exit tests so as to avoid performing an
58451         additional fread after encountering an error or EOF.
58452         * lib/md5.h (md5_uintptr): Define.
58453         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
58454         return to the initial working directory.  Preserve errno
58455         for caller.
58456         * lib/idcache.c: Include "xalloc.h".
58457         (xmalloc, xrealloc): Remove decls.
58458         (getuser): Remove casts no longer required in C89.
58459         * lib/human.c: Include stdio.h, for sprintf.
58460         * lib/group-member.c: Include "xalloc.h".
58461         (xmalloc, xrealloc): Remove decls.
58462         (get_group_info): Remove casts no longer required in C89.
58463         * lib/getusershell.c (readname): Remove casts no longer required in
58464         C89.
58465         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
58466         * lib/getline.c: Whitespace fix, from coreutils.
58467
58468 2003-08-13  Paul Eggert  <eggert@twinsun.com>
58469
58470         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
58471         Check for isascii.
58472
58473         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
58474         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
58475         Undo previous (whitespace-only) change.
58476
58477 2003-08-13  Paul Eggert  <eggert@twinsun.com>
58478
58479         * lib/exclude.c: Include <ctype.h>
58480         (IN_CTYPE_DOMAIN): New macro.
58481         (is_space): New fn.
58482         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
58483         and empty lines.
58484
58485         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
58486         Undo previous (whitespace-only) change.
58487
58488 2003-08-13  Paul Eggert  <eggert@twinsun.com>
58489
58490         * config/srclist-update: Change update back to the old behavior,
58491         leaving whitespace alone.  Use one 'sed' command rather than a
58492         pipeline.
58493         (fixlicense): Now a variable, not a function.
58494         (remove_trailing_blanks): Remove.
58495         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
58496         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
58497         Undo previous (whitespace-only) change.
58498
58499 2003-08-12  Paul Eggert  <eggert@twinsun.com>
58500
58501         Merge from coreutils.
58502         * modules/euidaccess: Add lib_SOURCES, include for new
58503         file euidaccess.h
58504
58505 2003-08-12  Paul Eggert  <eggert@twinsun.com>
58506
58507         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
58508         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
58509         Normalize leading white space and remove trailing white space.
58510
58511         Merge from coreutils
58512         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
58513
58514         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
58515         0.12.1.  These files are now being upgraded automatically by
58516         ../config/srclist-update.
58517
58518 2003-08-12  Paul Eggert  <eggert@twinsun.com>
58519
58520         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
58521         Normalize leading white space and remove trailing white space.
58522         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
58523         notice, as per ../config/srclist-update.
58524
58525         Merge from coreutils.
58526         * lib/euidaccess.h: New file.
58527         * lib/euidaccess.c: Include it.
58528         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
58529         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
58530         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
58531
58532 2003-08-12  Paul Eggert  <eggert@twinsun.com>
58533
58534         * config/srclist-update: Add copyright notice.
58535         (remove_id_lines, remove_trailing_blanks): New constants.
58536         (fixfile): Use them to normalize spacing a bit in copied files.
58537         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
58538         Normalize leading white space and remove trailing white space.
58539
58540         * config/texinfo.tex: Sync with texinfo.
58541
58542         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
58543         strtoul.c from libc, to merge coreutils whitespace changes.
58544
58545         * config/srclist.txt: Get the following m4 files from gettext:
58546         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
58547         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
58548         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
58549         wint_t.m4.
58550
58551 2003-08-12  Karl Berry  <karl@gnu.org>
58552
58553         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
58554         been made.
58555
58556 2003-08-11  Paul Eggert  <eggert@twinsun.com>
58557
58558         * modules/gnu-source, m4/gnu-source.m4:
58559         Remove; we're assuming Autoconf 2.54 or later now.
58560         Suggested by Bruno Haible.
58561         * MODULES.html.sh (func_all_modules): Remove gnu-source.
58562
58563 2003-08-11  Bruno Haible  <bruno@clisp.org>
58564
58565         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
58566
58567 2003-08-11  Bruno Haible  <bruno@clisp.org>
58568
58569         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
58570         (vasnprintf): Use it instead of wcslen.
58571
58572 2003-08-11  Bruno Haible  <bruno@clisp.org>
58573
58574         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
58575         value to ensure that _Bool promotes to int. Use #define for _Bool when
58576         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
58577
58578 2003-08-10  Karl Berry  <karl@gnu.org>
58579
58580         * lib/regex.h: update from libc (whitespace fix).
58581
58582 2003-08-09  Paul Eggert  <eggert@twinsun.com>
58583
58584         Merge some files from coreutils.  These changes were
58585         originally made by Jim Meyering.
58586         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
58587         many older Unixes require this.
58588         * lib/alloca.c (alloca): Remove cast to argument of free;
58589         no longer needed in C89.
58590         * lib/alloca_.h, regex.h: Fix white space to match
58591         what GNU indent does.
58592
58593 2003-08-09  Paul Eggert  <eggert@twinsun.com>
58594
58595         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
58596         apparently Emacs's Unicode mode got confused before my 2003-08-05
58597         checkin.
58598
58599 2003-08-08  Paul Eggert  <eggert@twinsun.com>
58600
58601         * m4/extensions.m4: New file.
58602         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
58603         Require gl_USE_SYSTEM_EXTENSIONS.
58604         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
58605         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
58606
58607 2003-08-08  Paul Eggert  <eggert@twinsun.com>
58608
58609         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
58610         * modules/extensions, modules/gnu-source: New files.
58611         * modules/timespec, modules/unlocked-io: Depend on extensions.
58612
58613 2003-08-07  Paul Eggert  <eggert@twinsun.com>
58614
58615         * modules/restrict: New file.
58616         * MODULES.html.sh (func_all_modules): Add restrict.
58617         * modules/regex: Depend on restrict.
58618
58619 2003-08-07  Paul Eggert  <eggert@twinsun.com>
58620
58621         * m4/restrict.m4: New file.
58622         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
58623
58624 2003-08-07  Bruno Haible  <bruno@clisp.org>
58625
58626         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
58627         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
58628
58629 2003-08-07  Bruno Haible  <bruno@clisp.org>
58630
58631         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
58632         makes the module 'getndelim2' compatible with the module 'getline'.
58633
58634 2003-08-05  Paul Eggert  <eggert@twinsun.com>
58635
58636         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
58637         byte with "\201" to avoid glitches when editing that source file
58638         with multi-gnome-terminal.
58639
58640 2003-08-05  Paul Eggert  <eggert@twinsun.com>
58641
58642         * lib/bumpalloc.h: Remove.
58643
58644 2003-08-05  Paul Eggert  <eggert@twinsun.com>
58645
58646         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
58647         * modules/bumpalloc: Remove.
58648
58649 2003-08-04  Paul Eggert  <eggert@twinsun.com>
58650
58651         * lib/getloadavg.c: Change copyright notice and spacing to conform to
58652         GNU coding style.
58653
58654         Merge from coreutils.
58655         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
58656         1. From glibc.
58657         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
58658         from Karl Berry, implemented by Jim Meyering.
58659         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
58660         from Dmitry V. Levin.
58661         Remove anachronistic cast of xrealloc.
58662         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
58663         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
58664         type. Otherwise, it wouldn't compile with at least /bin/cc on
58665         ymp-cray-unicos9.0.2.X.
58666         Combine two mostly-identical uses of alloca into one.
58667         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
58668
58669 2003-08-04  Dave Love  <d.love@dl.ac.uk>
58670
58671         [From Emacs.]
58672
58673         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
58674         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
58675         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
58676         obsolete NLIST_NAME_UNION.
58677         [__GNU__]: Undef BSD and FSCALE.
58678         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
58679
58680 2003-08-03  Paul Eggert  <eggert@twinsun.com>
58681
58682         * lib/stdbool_.h (_Bool): Make it signed char, instead of
58683         an enum type, so that it's guaranteed to promote to int.  See:
58684         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
58685
58686 2003-08-03  Karl Berry  <karl@gnu.org>
58687
58688         * config/depcomp: update from automake.
58689
58690 2003-07-31  Paul Eggert  <eggert@twinsun.com>
58691
58692         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
58693         (strerror): Don't assume that a printable int fits in 14 bytes.
58694
58695 2003-07-31  Bruno Haible  <bruno@clisp.org>
58696
58697         * modules/getpass-gnu: New file.
58698         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
58699
58700 2003-07-31  Bruno Haible  <bruno@clisp.org>
58701
58702         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
58703
58704 2003-07-24  Karl Berry  <karl@gnu.org>
58705
58706         * config/missing: update from automake.
58707
58708 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
58709             Bruno Haible  <bruno@clisp.org>
58710
58711         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
58712         * lib/getline.c (getline, getdelim): Likewise.
58713         Remove _GNU_SOURCE define; now it's defined in config.h through
58714         m4/getline.m4.
58715
58716 2003-07-23  Karl Berry  <karl@gnu.org>
58717
58718         * config/config.sub: update from prep.
58719
58720 2003-07-22  Paul Eggert  <eggert@twinsun.com>
58721
58722         * modules/xalloc (Depends-on): Add exitfail.
58723         * modules/xmemcoll: Likewise.
58724
58725 2003-07-22  Paul Eggert  <eggert@twinsun.com>
58726
58727         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
58728         over-parenthesization in macros.
58729
58730         Sync with coreutils.
58731
58732         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
58733         required by C99.
58734
58735         Use `exit_failure' for xalloc and xmemcoll instead of their own
58736         private exit-failure variables.
58737         * lib/xalloc.h (xalloc_exit_failure): Remove.
58738         * lib/xmalloc.c: Likewise.  Include exitfail.h.
58739         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
58740         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
58741         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
58742         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
58743
58744 2003-07-20  Jim Meyering  <jim@meyering.net>
58745
58746         * modules/closeout (Depends-on): Add exitfail.
58747         Suggestion from Bruno Haible.
58748
58749 2003-07-19  Karl Berry  <karl@gnu.org>
58750
58751         * config/config.sub: update from prep.
58752
58753 2003-07-18  Paul Eggert  <eggert@twinsun.com>
58754
58755         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
58756         Remove.
58757         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
58758         to test that it can stand by itself.  Include "exitfail.h".
58759         Clients should set exit_failure instead.
58760         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
58761
58762 2003-07-18  Bruno Haible  <bruno@clisp.org>
58763
58764         * modules/getndelim2: New file.
58765         * modules/getline: Share files with module getndelim2.
58766         * modules/getnline: Depend on getndelim2 instead of sharing files with
58767         it. Add getnline.c to lib_SOURCES.
58768         * MODULES.html.sh (func_all_modules): Add getndelim2.
58769
58770 2003-07-18  Bruno Haible  <bruno@clisp.org>
58771
58772         * m4/getndelim2.m4: New file.
58773         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
58774         invoke gl_PREREQ_GETNDELIM2.
58775         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
58776         gl_PREREQ_GETNDELIM2.
58777         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
58778         gl_GETNDELIM2.
58779
58780 2003-07-18  Bruno Haible  <bruno@clisp.org>
58781
58782         * lib/getndelim2.h: New file.
58783         * lib/getndelim2.c: Make into a module of its own. Include config.h,
58784         getndelim2.h.
58785         (getndelim2): Make non-static. Change return type to ssize_t.
58786         * lib/getline.h: Change argument names.
58787         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
58788         * lib/getnline.c: Include getndelim2.h.
58789
58790 2003-07-18  Andreas Schwab  <schwab@suse.de>
58791
58792         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
58793
58794 2003-07-17  Karl Berry  <karl@gnu.org>
58795
58796         * config/config.sub: update from prep.
58797
58798 2003-07-17  Bruno Haible  <bruno@clisp.org>
58799
58800         * modules/getnline: New file.
58801         * modules/getline: Add lib/getndelim2.c to source file list.
58802         * MODULES.html.sh (func_all_modules): Add getnline.
58803
58804 2003-07-17  Bruno Haible  <bruno@clisp.org>
58805
58806         * m4/getnline.m4: New file.
58807
58808 2003-07-17  Bruno Haible  <bruno@clisp.org>
58809
58810         * m4/Makefile.am.in: Remove file.
58811         * m4/Makefile.am: Remove file.
58812         * m4/Makefile.in: Remove file.
58813
58814 2003-07-17  Bruno Haible  <bruno@clisp.org>
58815
58816         * lib/getnline.h: New file.
58817         * lib/getnline.c: New file.
58818         * lib/getndelim2.c: New file, extracted from getline.c.
58819         (getndelim2): Renamed from getdelim2, with added nmax argument.
58820         * lib/getline.c: Include getndelim2.c.
58821         (getdelim2): Moved out to getndelim2.c.
58822         (getline, getdelim): Update.
58823
58824 2003-07-17  Bruno Haible  <bruno@clisp.org>
58825
58826         * lib/Makefile.am: Remove file.
58827         * lib/Makefile.in: Remove file.
58828
58829 2003-07-17  Bruno Haible  <bruno@clisp.org>
58830
58831         * configure.in: Remove file.
58832         * Makefile.in: Remove file.
58833
58834 2003-07-17  Bruno Haible  <bruno@clisp.org>
58835
58836         * MODULES.html.sh: Put the </BODY> right before </HTML>.
58837
58838 2003-07-16  Karl Berry  <karl@gnu.org>
58839
58840         * config/srclist-update: was running fixlicense twice, which caused
58841                 texinfo.tex to be nullified for some reason.  Simplify,
58842                 $gplsrc is no longer needed as far as I can see?
58843
58844 2003-07-16  Jim Meyering  <jim@meyering.net>
58845
58846         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
58847
58848 2003-07-15  Paul Eggert  <eggert@twinsun.com>
58849
58850         * config/srclist.txt: Get the following files from gettext-runtime/intl
58851         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
58852         ref-del.sin.  From Bruno Haible.
58853         * config/srclist-update (fixfile): Change grep pattern again, since the
58854         previous fix didn't work (there was another trailing $).  Use
58855         '[$]' to escape the $s.
58856
58857 2003-07-15  Karl Berry  <karl@gnu.org>
58858
58859         * lib/vasnprintf.c: update from gettext.
58860
58861 2003-07-15  Karl Berry  <karl@gnu.org>
58862
58863         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
58864         gets expanded when surrounded by '$'.
58865
58866 2003-07-15  Jim Meyering  <jim@meyering.net>
58867
58868         * modules/save-cwd: Don't depend on error.  From Derek Price.
58869
58870 2003-07-15  Jim Meyering  <jim@meyering.net>
58871
58872         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
58873
58874 2003-07-14  Simon Josefsson  <jas@extundo.com>
58875
58876         * modules/mempcpy: New file.
58877         * MODULES.html.sh (func_all_modules): Add mempcpy.
58878
58879 2003-07-14  Simon Josefsson  <jas@extundo.com>
58880
58881         * m4/mempcpy.m4: New file.
58882
58883 2003-07-14  Simon Josefsson  <jas@extundo.com>
58884
58885         * lib/mempcpy.h: New file.
58886         * lib/mempcpy.c: New file.
58887
58888 2003-07-14  Paul Eggert  <eggert@twinsun.com>
58889
58890         * modules/getdate, modules/posixtm: Depend on mktime.
58891
58892 2003-07-14  Paul Eggert  <eggert@twinsun.com>
58893
58894         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
58895         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
58896         unicodeio.c, unicodeio.h, unlocked-io.h:
58897         Switch from LGPL to GPL.
58898
58899 2003-07-14  Paul Eggert  <eggert@twinsun.com>
58900
58901         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
58902         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
58903         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
58904         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
58905         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
58906         updated automatically by ../config/srclist-update.  This changes
58907         their license from LPGL to GPL.
58908
58909 2003-07-14  Paul Eggert  <eggert@twinsun.com>
58910
58911         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
58912         assumed to refer to the root of the most recent stable gettext version.
58913         * config/srclistvars.sh: Add defaults for eggert.
58914         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
58915         Match "This program" as well as "The program".  This is needed
58916         for gettext.
58917
58918 2003-07-14  Jim Meyering  <jim@meyering.net>
58919
58920         Don't emit diagnostics.  Let callers do that.
58921         * lib/save-cwd.c: Don't include "error.h".
58922         (save_cwd): Don't call error.  Ensure that errno is valid
58923         when returning nonzero.
58924
58925         * lib/save-cwd.h (restore_cwd): Update prototype.
58926         * lib/save-cwd.c (restore_cwd): Remove two parameters.
58927         Simplify.  Don't call error upon failure.  Let callers do that.
58928         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
58929         when auditing is enabled.  But don't bother updating the #if.
58930
58931 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
58932
58933         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
58934         it breaks C++ compilation.
58935         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
58936
58937 2003-07-10  Simon Josefsson  <jas@extundo.com>
58938
58939         * modules/strchrnul (Makefile.am): Add strchrnul.h.
58940
58941 2003-07-10  Jim Meyering  <jim@meyering.net>
58942
58943         * m4/clock_time.m4: Remove trailing blank.
58944         * m4/intmax_t.m4: Likewise.
58945
58946 2003-07-10  Jim Meyering  <jim@meyering.net>
58947
58948         * lib/vasnprintf.c: Remove trailing blanks.
58949         Make cpp indentation consistent.
58950
58951 2003-07-09  Paul Eggert  <eggert@twinsun.com>
58952
58953         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
58954         posixver.c, strftime.c, strnlen.c, strverscmp.c:
58955         Switch from LGPL to GPL.
58956
58957 2003-07-09  Paul Eggert  <eggert@twinsun.com>
58958
58959         * config/srclist.txt: Sort sublists.  Add
58960         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
58961         that differ from gnulib for one reason or another; we'd like this list
58962         to be smaller but for now let's document what we have.
58963
58964 2003-07-08  Paul Eggert  <eggert@twinsun.com>
58965
58966         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
58967         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
58968         and sweeter "eval x=$x".
58969         * config/srclist.txt: Get lib/argp* from glibc.
58970
58971 2003-07-07  Paul Eggert  <eggert@twinsun.com>
58972
58973         * lib/mktime.c: Fix some boundary cases and remove need for floating
58974         point.
58975
58976         Issue a compile-time diagnostic if time_t is floating point, or if
58977         two's complement arithmetic is not in effect, or if arithmetic
58978         right shift does not propagate the sign.  These assumptions were
58979         all in the original code but they weren't checked.
58980
58981         (TIME_T_MIDPOINT, verify): New macros.
58982         (__isleap): Remove; it has integer overflow problems.
58983         (leapyear): New function, without those problems.
58984         (ydhms_tm_diff): Remove; splitting into two parts.
58985         (ydhms_diff): New function, containing the arithmetic part of
58986         the old ydhms_tm_diff function.  Issue a compile-time
58987         diagnostic if we are not using C99 integer division.
58988         Avoid casts when possible.
58989         (guess_time_tm): New function, containing the checking part of
58990         the old ydhms_tm_diff function.  Return the new value, rather than
58991         the difference between it and the old.  Accept a new argument T
58992         so that *T specifies the old value.  Check for overflow in the result.
58993
58994         (__mktime_internal): Use a time_t offset, not a long int offset.
58995         This undoes the 2003-06-04 change, which is no longer needed now
58996         that we have better overflow checking.
58997         (localtime_offset): Likewise.
58998
58999         (__mktime_internal): Avoid harmful overflow on hosts where time_t
59000         and long are 64-bit but int is only 32-bit.
59001         (ydhms_diff): Use long int to store year1 and yday1.
59002         Issue a compile-time diagnostic if long int is not wide enough.
59003
59004         (__mktime_internal): Use long int to store adjusted year and yday.
59005         Use plain C rather than preprocessor commands, if that doesn't
59006         affect efficiency.
59007         Check for overflow (and try to repair) after each probe
59008         rather than checking only at the very end.  This avoids some bugs
59009         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
59010         does not equal GMT offset at maximum time).
59011         Use integer to check for overflow rather than floating point; this
59012         is more portable to non-IEEE hosts, and is a tad faster.
59013         When we detect that we are oscillating between two values,
59014         don't check whether tm_isdst has the requested value, since
59015         we already know the answer.  When tm_isdst has the wrong value,
59016         use a different heuristic to find the right one, based on the
59017         extreme values actually observed in practice in tz2003a,
59018         rather than the (overly optimistic) "previous 3 calendar quarters".
59019
59020         (not_equal_tm, print_tm, check_result): Use "const T" rather than
59021         "T const" to accommodate glibc style.
59022         (check_result): Use less-confusing report format.  "long" -> "long int.
59023         (main): Likewise.
59024         Don't loop if the iteration overflows time_t.
59025         Allow a negative step in the iteration.
59026
59027 2003-07-06  Karl Berry  <karl@gnu.org>
59028
59029         * config/depcomp: update from automake.
59030         * config/config.sub: update from prep.
59031
59032 2003-07-03  Karl Berry  <karl@gnu.org>
59033
59034         * config/config.guess: update from prep.
59035
59036 2003-07-01  Paul Eggert  <eggert@twinsun.com>
59037
59038         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
59039         xreadlink.c now includes it unconditionally.
59040
59041 2003-07-01  Paul Eggert  <eggert@twinsun.com>
59042
59043         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
59044         having it depend on HAVE_SYS_TYPES_H.
59045
59046 2003-07-01  Bruno Haible  <bruno@clisp.org>
59047
59048         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
59049         <sys/types.h> should be sufficient.
59050         Reported by Paul Eggert.
59051
59052 2003-06-26  Karl Berry  <karl@gnu.org>
59053
59054         * config/depcomp: update from automake.
59055
59056 2003-06-26  Bruno Haible  <bruno@clisp.org>
59057
59058         * modules/human: Depend on module stdbool.
59059
59060 2003-06-25  Bruno Haible  <bruno@clisp.org>
59061
59062         * modules/readlink: New file.
59063         * modules/xreadlink: Depend on it.
59064         * MODULES.html.sh (func_all_modules): Add readlink.
59065
59066 2003-06-25  Bruno Haible  <bruno@clisp.org>
59067
59068         * m4/readlink.m4: New file.
59069
59070 2003-06-25  Bruno Haible  <bruno@clisp.org>
59071
59072         * lib/readlink.c: New file.
59073
59074 2003-06-22  Karl Berry  <karl@gnu.org>
59075
59076         * config/srclist.txt: update mkinstalldirs from automake.
59077         * config/mkinstalldirs: update.
59078
59079 2003-06-22  Bruno Haible  <bruno@clisp.org>
59080
59081         Portability to mingw32.
59082         * m4/ssize_t.m4: New file, from GNU gettext.
59083         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
59084         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
59085
59086 2003-06-22  Bruno Haible  <bruno@clisp.org>
59087
59088         * modules/safe-read: Add m4/ssize_t.m4.
59089         * modules/xreadlink: Add m4/ssize_t.m4.
59090
59091 2003-06-20  Bruno Haible  <bruno@clisp.org>
59092
59093         Assume C89, so PARAMS isn't needed.
59094         * lib/unicodeio.h (PARAMS): Remove.
59095         * lib/unicodeio.c: Don't use PARAMS.
59096
59097 2003-06-18  Karl Berry  <karl@gnu.org>
59098
59099         * config/config.{guess,sub}: update from prep.
59100
59101 2003-06-18  Jim Meyering  <jim@meyering.net>
59102
59103         Merge changes from coreutils.
59104         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
59105         Remove explicit declarations of xmalloc and realloc.
59106         Include xalloc.h.
59107         (read_utmp): Remove anachronistic cast of xmalloc.
59108
59109 2003-06-17  Paul Eggert  <eggert@twinsun.com>
59110
59111         Assume C89, so PARAMS isn't needed.
59112         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
59113         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
59114         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
59115         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
59116         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
59117         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
59118         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
59119         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
59120         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
59121         lib/xstrtod.h, lib/xstrtol.h: Likewise.
59122         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
59123         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
59124         no longer needed. Anyway, config.h should always be included before any
59125         other file.
59126
59127 2003-06-11  Simon Josefsson  <jas@extundo.com>
59128
59129         * modules/sysexits: New file.
59130         * MODULES.html.sh (func_all_modules): Add sysexits.
59131
59132 2003-06-11  Simon Josefsson  <jas@extundo.com>
59133
59134         * lib/sysexit_.h: New file.
59135
59136 2003-06-11  Derek Price  <derek@ximbiot.com>
59137
59138         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
59139         necessary.
59140
59141 2003-06-11  Bruno Haible  <bruno@clisp.org>
59142
59143         * m4/sysexits.m4: New file.
59144
59145 2003-06-10  Simon Josefsson  <jas@extundo.com>
59146
59147         * lib/argp.h: New file, from glibc.
59148         * lib/argp-ba.c: New file, from glibc.
59149         * lib/argp-eexst.c: New file, from glibc.
59150         * lib/argp-fmtstream.c: New file, from glibc.
59151         * lib/argp-fmtstream.h: New file, from glibc.
59152         * lib/argp-fs-xinl.c: New file, from glibc.
59153         * lib/argp-help.c: New file, from glibc.
59154         * lib/argp-namefrob.h: New file, from glibc.
59155         * lib/argp-parse.c: New file, from glibc.
59156         * lib/argp-pv.c: New file, from glibc.
59157         * lib/argp-pvh.c: New file, from glibc.
59158         * lib/argp-xinl.c: New file, from glibc.
59159
59160 2003-06-10  Simon Josefsson  <jas@extundo.com>
59161
59162         * modules/strchrnul: New file.
59163
59164 2003-06-10  Simon Josefsson  <jas@extundo.com>
59165
59166         * modules/argp: New file.
59167
59168 2003-06-10  Simon Josefsson  <jas@extundo.com>
59169
59170         * m4/strchrnul.m4: New file.
59171
59172 2003-06-10  Simon Josefsson  <jas@extundo.com>
59173
59174         * lib/strchrnul.h: New file.
59175         * lib/strchrnul.c: New file.
59176
59177 2003-06-10  Bruno Haible  <bruno@clisp.org>
59178
59179         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
59180
59181 2003-06-07  Karl Berry  <karl@gnu.org>
59182
59183         * config/config.{guess,sub}: update from prep.
59184
59185 2003-06-07  Jim Meyering  <jim@meyering.net>
59186
59187         * modules/strtod: Use $(...) notation, not @...@ for
59188         AC_REPLACE'd variables.
59189         * modules/localcharset: Likewise.
59190
59191 2003-06-07  Jim Meyering  <jim@meyering.net>
59192
59193         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
59194         in place of my name in the copyright comment.
59195         Remove definition and uses of __P.
59196
59197         From coreutils.
59198         * lib/stat.c: Don't declare xmalloc explicitly.
59199         Instead, include "xalloc.h".
59200         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
59201         xrealloc, and xcalloc return values.
59202         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
59203         Improve comment.
59204         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
59205
59206 2003-06-07  Bruno Haible  <bruno@clisp.org>
59207
59208         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
59209         avoid AC_CONFIG_LINKS.
59210         * modules/fnmatch (Makefile.am): Use explicit creation rule for
59211         fnmatch.h, to avoid AC_CONFIG_LINKS.
59212         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
59213
59214 2003-06-07  Bruno Haible  <bruno@clisp.org>
59215
59216         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
59217         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
59218         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
59219         directory.
59220         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
59221         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
59222         directory.
59223
59224 2003-06-06  Jim Meyering  <jim@meyering.net>
59225
59226         Merge from coreutils.
59227         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
59228         Consolidate declarations and initializations of *_base* locals.
59229
59230         Merge from coreutils.
59231         This avoids a core dump on systems without GNU putenv,
59232         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
59233         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
59234         (unsetenv): New static function, from GNU libc.
59235         (rpl_putenv): Use it.
59236
59237         * lib/modechange.c: Remove trailing blanks.
59238
59239         Merge from coreutils.
59240         * lib/fsusage.c: Remove declaration of statfs.
59241         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
59242
59243         * lib/posixtm.c: Include <stdbool.h> unconditionally.
59244
59245 2003-06-06  Jim Meyering  <jim@meyering.net>
59246
59247         * lib/stdbool_.h: Renamed from stdbool.h.in.
59248
59249 2003-06-06  Jim Meyering  <jim@meyering.net>
59250             Bruno Haible  <bruno@clisp.org>
59251
59252         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
59253         Adjust Makefile.am snippet not to redirect directly to target.
59254         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
59255
59256 2003-06-05  Paul Eggert  <eggert@twinsun.com>
59257
59258         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
59259         mismatch, look in future quarters as well as past.  This fixes a
59260         bug when processing fall-backwards gaps immediately after a long
59261         period of daylight-saving time.
59262
59263         * lib/mktime.c: Assume freestanding C89 or better.
59264         (HAVE_LIMITS_H): Remove.  Assume it's 1.
59265         (__P): Remove; not used.
59266         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
59267         (mktime, not_equal_tm, print_tm, check_result,
59268         main): Use prototypes.  Use const * where appropriate.
59269         (main): Fix typo in testing code that uncovered by above changes.
59270         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
59271
59272 2003-06-04  Paul Eggert  <eggert@twinsun.com>
59273
59274         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
59275         locale.h, localeconv.  This merges changes from coreutils.
59276
59277         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
59278         It can be removed after the next Autoconf is released.
59279         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
59280         needed.
59281
59282 2003-06-04  Paul Eggert  <eggert@twinsun.com>
59283
59284         * lib/mktime.c: Fix Debian bug 177940
59285         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
59286         (localtime_offset): Now long int, not time_t, because we want it
59287         to be guaranteed to be signed.  All uses changed.
59288         (__mktime_internal): If overflow would occur when adding offset,
59289         don't add it.
59290
59291         Merge 'human' changes from coreutils.  Rewrite to support
59292         locale-specific notations like thousands separators.
59293         * lib/human.c: Simplify authorship notice.
59294         Include human.h immediately after config.h.
59295         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
59296         <limits.h>: Do not include, since human.h does.
59297         (SIZE_MAX, UINTMAX_MAX): New macros.
59298         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
59299         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
59300         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
59301         (power_letter): Renamed from suffixes.
59302         (generate_suffix_backwards): Remove.
59303         (adjust_value): Now takes int style (because of human.h changes)
59304         and long double value (for greater precision on some platforms).
59305         (group_number): New function.
59306         (human_readable): Use it.  Use integer options, not enum.
59307         Put the options before the sizes in the arg list.
59308         Support all the new options.
59309         The old human_readable function has been removed;
59310         use inttostr.h instead.
59311         (human_readable, default_block_size, humblock):
59312         Use uintmax_t, not int, for block sizes.
59313         (human_readable_inexact, block_size_types): Remove.
59314         (block_size_opts): New constant.
59315         (human_options): Renamed from human_block_size, with new signature
59316         that allows block sizes up to UINTMAX_MAX.  All callers changed.
59317         * lib/human.h: Add copyright and authorship notice.
59318         Include <limits.h> and <stdbool.h> unconditionally.
59319         (PARAMS): Remove.  All uses removed.
59320         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
59321         (enum human_inexact_style): Remove tag; now a nameless enum.
59322         (human_floor, human_ceiling, human_round_to_even): Now have
59323         values 2, 0, 1 rather than -1, 1, 0.
59324         (human_group_digits, human_suppress_point_zero, human_autoscale,
59325         human_base_1024, human_SI, human_B): New constants.
59326         (human_readable_inexact, human_block_size): Remove.
59327         (human_readable): Size args are now uintmax_t, not int.
59328         (human_options): New decl.
59329
59330         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
59331         unnecessary now that we assume C89 or better.  This change
59332         imported from coreutils.
59333
59334         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
59335         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
59336         in the 2003-05-30 sync from glibc.
59337
59338         .h files should stand alone, but we shouldn't include <sys/types.h>
59339         if we can get away with just <stddef.h>.
59340
59341         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
59342         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
59343         rather than <sys/types.h>, as we merely need size_t.
59344         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
59345         to get size_t.
59346         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
59347         Include <stdio.h>, to get FILE.
59348         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
59349         memcasecmp.h has included <stddef.h> and all we need is size_t.
59350         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
59351         our interface, instead of including <sys/types.h>
59352
59353 2003-06-04  Paul Eggert  <eggert@twinsun.com>
59354
59355         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
59356         now, as glibc mktime is buggy on non-glibc systems.
59357
59358 2003-06-03  Karl Berry  <karl@gnu.org>
59359
59360         * config/config.sub: update from prep.
59361
59362 2003-06-02  Paul Eggert  <eggert@twinsun.com>
59363
59364         [from coreutils]
59365         Fix some minor time-related bugs with POSIX time arguments.
59366         Some valid time stamps were being rejected (notably -1, and
59367         time stamps before 1900 on 64-bit hosts).  And some invalid
59368         time stamps were being accepted, e.g. September 31.
59369
59370         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
59371         that we can return (time_t) -1 successfully.
59372         * lib/posixtm.c: Likewise.
59373         [HAVE_STDBOOL_H]: Include <stdbool.h>.
59374         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
59375         (t): Remove static var.
59376         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
59377         of static var.  All uses changed.
59378         (year): Do not reject years before 1900; they can occur with
59379         64-bit time_t.
59380         (posix_time_parse): Do not check for out-of-range components;
59381         that is now the caller's responsibility, since our checks were
59382         only approximations.
59383         (posixtime): Use mktime to check for out-of-range components,
59384         since it knows them exactly.
59385         If mktime returns (time_t) -1, check whether an error actually occurred
59386         by invoking localtime on -1.
59387         (main) [TEST_POSIXTIME]: Check for input data errors, and report
59388         posixtime failures better.
59389         Improve the test data (in comments only).
59390
59391 2003-06-02  Karl Berry  <karl@gnu.org>
59392
59393         * config/mkinstalldirs (version): new variable.
59394         (--version): new option.
59395         (usage): improve message.
59396
59397 2003-05-30  Karl Berry  <karl@gnu.org>
59398
59399         * lib/mktime.c: update from libc.
59400
59401 2003-05-30  Bruno Haible  <bruno@clisp.org>
59402
59403         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
59404         * config/config.rpath: Upgrade to gettext-0.12.1.
59405
59406 2003-05-30  Bruno Haible  <bruno@clisp.org>
59407
59408         * m4/gettext.m4: Upgrade to gettext-0.12.1.
59409         * m4/nls.m4: New file, from gettext-0.12.1.
59410         * m4/po.m4: New file, from gettext-0.12.1.
59411         * m4/progtest.m4: Upgrade to gettext-0.12.1.
59412
59413 2003-05-30  Bruno Haible  <bruno@clisp.org>
59414
59415         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
59416         * lib/localcharset.h: Likewise.
59417         * lib/localcharset.c: Likewise.
59418
59419 2003-05-29  Karl Berry  <karl@gnu.org>
59420
59421         * config/config.rpath: update from gettext.
59422
59423 2003-05-28  Paul Eggert  <eggert@twinsun.com>
59424
59425         Assume the headers required for C89 freestanding compilers.
59426         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
59427         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
59428         * m4/human.m4 (gl_HUMAN): Likewise.
59429         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
59430         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
59431         * m4/userspec.m4 (gl_USERSPEC): Likewise.
59432         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
59433         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
59434         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
59435
59436 2003-05-28  Paul Eggert  <eggert@twinsun.com>
59437
59438         Assume the headers required for C89 freestanding compilers.
59439         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
59440         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
59441         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
59442         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
59443         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
59444         define, since <limits.h> is guaranteed to do that.
59445         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
59446         * lib/exclude.c: Include <stdbool.h> unconditionally.
59447         * lib/tempname.c: Include <stddef.h> unconditionally.
59448         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
59449         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
59450         <stddef.h> does that.
59451         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
59452         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
59453         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
59454         needed.
59455         * lib/xstrtol.c: Likewise.
59456         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
59457         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
59458
59459         * lib/addext.c (addext): Use assignment rather than cast, to avoid
59460         warnings on some platforms.
59461
59462         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
59463         arbitrarily.
59464
59465 2003-05-26  Jim Meyering  <jim@meyering.net>
59466
59467         Merge in a change from coreutils:
59468         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
59469         that is guaranteed to be `no'.  Use `no_such_member' to indicate
59470         that condition, rather than `-1' which is slightly misleading.
59471         Change the name of the cache variable to have the gl_ prefix.
59472         Prompted by a patch from Richard Dawe for DJGPP.
59473
59474 2003-05-24  Karl Berry  <karl@gnu.org>
59475
59476         * config/config.guess: update from prep.
59477
59478 2003-05-22  Karl Berry  <karl@gnu.org>
59479
59480         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
59481
59482 2003-05-20  Karl Berry  <karl@gnu.org>
59483
59484         * config/config.guess: update from prep.
59485
59486 2003-05-18  Karl Berry  <karl@gnu.org>
59487
59488         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
59489         might actually be set by the user.
59490
59491         * config/depcomp, install-sh, mdate-sh: update from automake.
59492
59493 2003-05-17  Bruno Haible  <bruno@clisp.org>
59494
59495         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
59496         invalid expansion for AC_EGREP_CPP.
59497         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
59498         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
59499         Suggested by Akim Demaille <akim@epita.fr> in
59500         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
59501
59502 2003-05-12  Jim Meyering  <jim@meyering.net>
59503
59504         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
59505         the space-padded-by-default conversion specifiers, %e, %k, %l.
59506
59507 2003-05-12  Bruno Haible  <bruno@clisp.org>
59508
59509         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
59510         the string is longer than 4 KB.
59511
59512 2003-05-11  Karl Berry  <karl@gnu.org>
59513
59514         * config/config.{guess,sub}: update from prep.
59515
59516 2003-05-09  Bruno Haible  <bruno@clisp.org>
59517
59518         * modules/error: Add m4/strerror_r.m4 to file list.
59519
59520 2003-05-03  Bruno Haible  <bruno@clisp.org>
59521
59522         Upgrade to Unicode-4.0.
59523         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
59524         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
59525         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
59526         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
59527         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
59528         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
59529         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
59530         Change width of U+E0100..U+E01EF from 1 to 0.
59531
59532 2003-04-25  Jim Meyering  <jim@meyering.net>
59533
59534         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
59535         of type size_t, not int.
59536
59537 2003-04-25  Bruno Haible  <bruno@clisp.org>
59538
59539         * lib/copy-file.c: Include <stddef.h>, for size_t.
59540
59541 2003-04-21  Paul Eggert  <eggert@twinsun.com>
59542
59543         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
59544         code which expansion is under static control.  Patch imported from
59545         Akim Demaille's patch to Bison; see
59546         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
59547
59548 2003-04-14  Bruno Haible  <bruno@clisp.org>
59549
59550         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
59551
59552 2003-04-11  Jim Meyering  <jim@meyering.net>
59553
59554         Merge changes from Coreutils.
59555
59556         2003-03-22  Jim Meyering  <jim@meyering.net>
59557
59558         * lib/strftime.c (widen): Cast alloca return value to proper type.
59559
59560         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
59561
59562         From GNU libc.
59563         * lib/strftime.c (my_strftime): Handle very large width
59564         specifications for numeric values correctly.  Improve checks for
59565         overflow.
59566
59567         2003-01-19  Jim Meyering  <jim@meyering.net>
59568
59569         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
59570         definitions.
59571         (nl_get_alt_digit) [! defined my_strftime]: Define.
59572         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
59573         _nl_get_alt_digit and _nl_get_walt_digit.
59574
59575         * lib/strftime.c (my_strftime): Merge in locale-related changes from
59576         libc. These changes have no effect outside of _LIBC.
59577
59578 2003-04-10  Bruno Haible  <bruno@clisp.org>
59579
59580         * modules/findprog: New file.
59581         * MODULES.html.sh (func_all_modules): Add it.
59582
59583 2003-04-10  Bruno Haible  <bruno@clisp.org>
59584
59585         * m4/findprog.m4: New file.
59586         * m4/eaccess.m4: New file.
59587
59588 2003-04-10  Bruno Haible  <bruno@clisp.org>
59589
59590         * lib/findprog.h: New file, from GNU gettext.
59591         * lib/findprog.c: New file, from GNU gettext.
59592
59593 2003-04-05  Jim Meyering  <jim@meyering.net>
59594
59595         Merge changes from Coreutils.
59596
59597         * lib/exclude.h (PARAMS): Remove definition and uses.
59598         * lib/exclude.c: Remove uses of `PARAMS'.
59599
59600         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
59601         Add test-cases for DOS filenames. Declare program_name.
59602         (main): Set up program_name.  Patch by Rich Dawe.
59603
59604         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
59605         error from mntctl.
59606         Use mntctl's return value to drive the entry-processing loop, since
59607         we can't rely on the value of the vmt_length member in the last
59608         entry.  On some systems doing so could result in exhausting
59609         virtual memory.  Based in part on a patch from Mike Jetzer.
59610
59611 2003-04-04  Bruno Haible  <bruno@clisp.org>
59612
59613         * modules/linebreak: New file.
59614         * MODULES.html.sh (func_all_modules): Add it.
59615
59616 2003-04-04  Bruno Haible  <bruno@clisp.org>
59617
59618         * m4/linebreak.m4: New file.
59619
59620 2003-04-04  Bruno Haible  <bruno@clisp.org>
59621
59622         * lib/linebreak.h: New file, from GNU gettext.
59623         * lib/linebreak.c: New file, from GNU gettext with slight
59624         modifications.
59625         * lib/lbrkprop.h: New file, from GNU gettext.
59626
59627 2003-04-03  Bruno Haible  <bruno@clisp.org>
59628
59629         * modules/utf8-ucs4: New file.
59630         * modules/utf16-ucs4: New file.
59631         * modules/ucs4-utf8: New file.
59632         * modules/ucs4-utf16: New file.
59633         * MODULES.html.sh (func_all_modules): Add them.
59634
59635 2003-04-03  Bruno Haible  <bruno@clisp.org>
59636
59637         * m4/utf-ucs4.m4: New file.
59638         * m4/ucs4-utf.m4: New file.
59639
59640 2003-04-03  Bruno Haible  <bruno@clisp.org>
59641
59642         * lib/utf8-ucs4.h: New file, from GNU gettext.
59643         * lib/utf16-ucs4.h: New file, from GNU gettext.
59644         * lib/ucs4-utf8.h: New file, from GNU gettext.
59645         * lib/ucs4-utf16.h: New file, from GNU gettext.
59646
59647 2003-04-02  Bruno Haible  <bruno@clisp.org>
59648
59649         * modules/binary-io: New file.
59650         * MODULES.html.sh (func_all_modules): Add it.
59651
59652 2003-04-02  Bruno Haible  <bruno@clisp.org>
59653
59654         * lib/binary-io.h: New file, from GNU gettext.
59655
59656 2003-04-01  Bruno Haible  <bruno@clisp.org>
59657
59658         * modules/pathname: New file.
59659         * MODULES.html.sh (func_all_modules): Add it.
59660
59661 2003-04-01  Bruno Haible  <bruno@clisp.org>
59662
59663         * lib/pathname.h: New file, from GNU gettext.
59664         * lib/concatpath.c: New file, from GNU gettext.
59665
59666 2003-03-30  Bruno Haible  <bruno@clisp.org>
59667
59668         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
59669
59670 2003-03-30  Bruno Haible  <bruno@clisp.org>
59671
59672         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
59673         function chown() doesn't exist.
59674
59675 2003-03-28  Bruno Haible  <bruno@clisp.org>
59676
59677         * modules/copy-file: New file.
59678         * MODULES.html.sh (func_all_modules): Add it.
59679
59680 2003-03-28  Bruno Haible  <bruno@clisp.org>
59681
59682         * m4/copy-file.m4: New file.
59683
59684 2003-03-28  Bruno Haible  <bruno@clisp.org>
59685
59686         * lib/copy-file.h: New file, from GNU gettext.
59687         * lib/copy-file.c: New file, from GNU gettext.
59688
59689 2003-03-18  Jim Meyering  <jim@meyering.net>
59690
59691         * lib/quote.c (quote_n): Fix typo in comment.
59692
59693 2003-03-18  Bruno Haible  <bruno@clisp.org>
59694
59695         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
59696         checking.
59697         * m4/onceonly_2_57.m4: Likewise.
59698
59699 2003-03-17  Bruno Haible  <bruno@clisp.org>
59700
59701         * m4/onceonly.m4: Require autoconf 2.54 or newer.
59702         (m4_quote): Remove macro.
59703         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
59704
59705 2003-03-14  Jim Meyering  <jim@meyering.net>
59706
59707         Merge changes from Coreutils.
59708         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
59709         to be const, in order to avoid warnings.
59710         (obstack_room): Likewise.
59711         (obstack_empty_p): Likewise.
59712
59713 2003-03-14  Bruno Haible  <bruno@clisp.org>
59714
59715         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
59716         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
59717
59718 2003-03-13  Paul Eggert  <eggert@twinsun.com>
59719
59720         Merge changes from Bison.
59721         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
59722         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
59723         when compiling Bison 1.875's `bitset bset = obstack_alloc
59724         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
59725         * lib/hash.c: Include <stdbool.h> unconditionally.
59726
59727 2003-03-13  Paul Eggert  <eggert@twinsun.com>
59728
59729         * m4/onceonly.m4 (m4_quote): New macro.
59730         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
59731         Quote AC_FOREACH variable-expansions properly.
59732
59733 2003-03-13  Paul Eggert  <eggert@twinsun.com>
59734
59735         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
59736
59737 2003-03-09  Paul Eggert  <eggert@twinsun.com>
59738
59739         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
59740         Reported by Bruce Becker; see:
59741         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
59742
59743 2003-03-03  Paul Eggert  <eggert@twinsun.com>
59744             Bruno Haible  <bruno@clisp.org>
59745
59746         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
59747         Reported by John Hughes, see
59748         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
59749
59750 2003-02-20  Bruno Haible  <bruno@clisp.org>
59751
59752         * MODULES.html.sh (func_all_modules): Add poll.
59753
59754 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
59755
59756         * modules/poll: New file.
59757
59758 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
59759
59760         * lib/poll_.h: New file.
59761         * lib/poll.c: New file.
59762
59763 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
59764
59765         * m4/poll.m4: New file.
59766
59767 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
59768
59769         * modules/mathl: New file.
59770
59771 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
59772
59773         * lib/mathl.h: New file.
59774         * lib/acosl.c: New file.
59775         * lib/asinl.c: New file.
59776         * lib/atanl.c: New file.
59777         * lib/ceill.c: New file.
59778         * lib/cosl.c: New file.
59779         * lib/expl.c: New file.
59780         * lib/floorl.c: New file.
59781         * lib/frexpl.c: New file.
59782         * lib/ldexpl.c: New file.
59783         * lib/logl.c: New file.
59784         * lib/sincosl.c: New file.
59785         * lib/sinl.c: New file.
59786         * lib/sqrtl.c: New file.
59787         * lib/tanl.c: New file.
59788         * lib/trigl.c: New file.
59789         * lib/trigl.h: New file.
59790
59791 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
59792
59793         * m4/mathl.m4: New file.
59794
59795 2003-02-18  Bruno Haible  <bruno@clisp.org>
59796
59797         * MODULES.html.sh (func_all_modules): Add mathl.
59798
59799 2003-02-17  Bruno Haible  <bruno@clisp.org>
59800
59801         * modules/mkdtemp: New module.
59802         * MODULES.html.sh (func_all_modules): Add it.
59803
59804 2003-02-17  Bruno Haible  <bruno@clisp.org>
59805
59806         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
59807
59808 2003-02-17  Bruno Haible  <bruno@clisp.org>
59809
59810         * lib/mkdtemp.h: New file, from GNU gettext.
59811         * lib/mkdtemp.c: New file, from GNU gettext.
59812
59813 2003-02-02  Jim Meyering  <jim@meyering.net>
59814
59815         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
59816         e.g. glibc-2.2.93.
59817
59818 2003-01-31  Bruno Haible  <bruno@clisp.org>
59819
59820         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
59821         'rpl_rename'.
59822         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
59823         'rpl_strnlen'.
59824         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
59825         'rpl_strtod'.
59826         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
59827         'rpl_utime'.
59828
59829 2003-01-31  Bruno Haible  <bruno@clisp.org>
59830
59831         * lib/rename.c: #undef rename before defining rpl_rename.
59832         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
59833
59834 2003-01-30  Bruno Haible  <bruno@clisp.org>
59835
59836         * modules/vasnprintf, modules/vasprintf: New modules.
59837         * MODULES.html.sh (func_all_modules): Add them.
59838
59839 2003-01-30  Bruno Haible  <bruno@clisp.org>
59840
59841         * m4/signed.m4: New file, from GNU gettext.
59842         * m4/longdouble.m4: New file, from GNU gettext.
59843         * m4/wchar_t.m4: New file, from GNU gettext.
59844         * m4/wint_t.m4: New file, from GNU gettext.
59845         * m4/vasnprintf.m4: New file.
59846         * m4/vasprintf.m4: New file.
59847
59848 2003-01-30  Bruno Haible  <bruno@clisp.org>
59849
59850         * lib/printf-args.h: New file, from GNU gettext.
59851         * lib/printf-args.c: New file, from GNU gettext.
59852         * lib/printf-parse.h: New file, from GNU gettext.
59853         * lib/printf-parse.c: New file, from GNU gettext.
59854         * lib/vasnprintf.h: New file, from GNU gettext.
59855         * lib/vasnprintf.c: New file, from GNU gettext.
59856         * lib/asnprintf.c: New file, from GNU gettext.
59857         * lib/vasprintf.h: New file, from GNU gettext with modifications.
59858         * lib/vasprintf.c: New file, from GNU gettext.
59859         * lib/asprintf.c: New file, from GNU gettext.
59860
59861 2003-01-29  Bruno Haible  <bruno@clisp.org>
59862
59863         * modules/stpncpy: New module.
59864         * MODULES.html.sh (func_all_modules): Add it.
59865
59866 2003-01-29  Bruno Haible  <bruno@clisp.org>
59867
59868         * m4/stpncpy.m4: New file.
59869
59870 2003-01-29  Bruno Haible  <bruno@clisp.org>
59871
59872         * lib/stpncpy.h: New file, from GNU gettext with modifications.
59873         * lib/stpncpy.c: New file, from GNU gettext with modifications.
59874
59875 2003-01-28  Bruno Haible  <bruno@clisp.org>
59876
59877         * modules/c-ctype: New module.
59878         * MODULES.html.sh (func_all_modules): Add it.
59879
59880 2003-01-28  Bruno Haible  <bruno@clisp.org>
59881
59882         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
59883         Paul Eggert.
59884         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
59885         Paul Eggert.
59886
59887 2003-01-27  Bruno Haible  <bruno@clisp.org>
59888
59889         * modules/xsetenv: New module.
59890         * MODULES.html.sh (func_all_modules): Add it.
59891
59892 2003-01-27  Bruno Haible  <bruno@clisp.org>
59893
59894         * lib/xsetenv.h: New file, from GNU gettext.
59895         * lib/xsetenv.c: New file, from GNU gettext.
59896
59897 2003-01-23  Jim Meyering  <jim@meyering.net>
59898
59899         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
59900         from working on systems without dirfd (at least Irix and OSF1/Tru64).
59901
59902 2003-01-23  Bruno Haible  <bruno@clisp.org>
59903
59904         * modules/minmax: New module.
59905         * MODULES.html.sh (func_all_modules): Add it.
59906
59907 2003-01-23  Bruno Haible  <bruno@clisp.org>
59908
59909         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
59910         Eggert.
59911
59912 2003-01-22  Bruno Haible  <bruno@clisp.org>
59913
59914         * modules/exit: New module.
59915         * MODULES.html.sh (func_all_modules): Add it.
59916
59917 2003-01-22  Bruno Haible  <bruno@clisp.org>
59918
59919         * lib/exit.h: New file, from GNU gettext.
59920
59921 2003-01-19  Bruno Haible  <bruno@clisp.org>
59922
59923         * gnulib-tool: Recognize option --extract-maintainer.
59924         (func_get_maintainer): New function.
59925         * modules/*: Add Maintainer entry.
59926
59927 2003-01-16  Jim Meyering  <jim@meyering.net>
59928
59929         * m4/regex.m4: The `regex' struct is both input and output.
59930         Initialize it before each use.  Patch by Tim Waugh.
59931
59932 2003-01-16  Bruno Haible  <bruno@clisp.org>
59933
59934         * MODULES.html.sh: Add a table of contents. Add the module name as
59935         leftmost column. Add hyperlinks.
59936
59937 2003-01-15  Bruno Haible  <bruno@clisp.org>
59938
59939         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
59940
59941 2003-01-15  Bruno Haible  <bruno@clisp.org>
59942
59943         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
59944         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
59945         suffix.
59946
59947 2003-01-15  Bruno Haible  <bruno@clisp.org>
59948
59949         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
59950
59951 2003-01-15  Bruno Haible  <bruno@clisp.org>
59952
59953         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
59954         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
59955
59956 2003-01-14  Jim Meyering  <jim@meyering.net>
59957
59958         * lib/same.c (same_name): Tweak a comment.
59959
59960 2003-01-14  Bruno Haible  <bruno@clisp.org>
59961
59962         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
59963         when a string comparison is sufficient.
59964
59965 2003-01-14  Bruno Haible  <bruno@clisp.org>
59966
59967         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
59968         'unsigned int'.
59969
59970 2003-01-14  Bruno Haible  <bruno@clisp.org>
59971
59972         * lib/hash-pjw.c: Add comment about low quality of this function.
59973
59974 2003-01-13  Bruno Haible  <bruno@clisp.org>
59975
59976         * modules/stpcpy: Distribute lib/stpcpy.h.
59977         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
59978
59979 2003-01-13  Bruno Haible  <bruno@clisp.org>
59980
59981         * modules/*: Add a description.
59982         * modules/strpbrk: Fix Makefile.am snippet.
59983         * modules/strtoimax: Fix dependencies.
59984         * modules/strtoumax: Likewise.
59985
59986 2003-01-13  Bruno Haible  <bruno@clisp.org>
59987
59988         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
59989         * modules/alloca (Makefile.am): All object files depend on alloca.h.
59990         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
59991
59992 2003-01-13  Bruno Haible  <bruno@clisp.org>
59993
59994         * gnulib-tool (func_create_testdir): Store config/* files in the main
59995         directory.
59996         * config.rpath: Move to ...
59997         * config/config.rpath: ... here.
59998         * modules/gettext: Contains config/config.rpath, not config.rpath.
59999         * modules/iconv: Likewise.
60000
60001 2003-01-12  Paul Eggert  <eggert@twinsun.com>
60002
60003         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
60004         to avoid collisions with libcurses and libreadline.
60005
60006         * m4/getstr.m4: Remove.
60007         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
60008
60009 2003-01-12  Paul Eggert  <eggert@twinsun.com>
60010
60011         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
60012         to avoid collisions with libcurses and libreadline.
60013
60014         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
60015         * lib/getstr.h, getstr.c: Remove.
60016         * lib/getline.c: Include "getline.h", to check interface.
60017         Move body of old getstr.c here: this defines MIN_CHUNK and
60018         declares getdelim2, which is renamed from getstr.
60019         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
60020
60021         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
60022         All uses changed.
60023         * lib/linebuffer.h: Likewise.
60024         (readline): Remove backward-compatibility macro.
60025
60026 2003-01-12  Paul Eggert  <eggert@twinsun.com>
60027
60028         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
60029         to avoid collisions with libcurses and libreadline.
60030         * getstr: Remove.
60031         * MODULES.html.sh: Remove getstr.
60032         * modules/getline: Depend on unlocked-io, not getstr.
60033
60034 2003-01-12  Jim Meyering  <jim@meyering.net>
60035
60036         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
60037
60038 2003-01-10  Bruno Haible  <bruno@clisp.org>
60039
60040         * modules/alloca: Change Makefile.am requirements. Simplify Include
60041         requirements. Add lib/alloca_.h to file list.
60042
60043 2003-01-10  Bruno Haible  <bruno@clisp.org>
60044
60045         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
60046
60047 2003-01-10  Bruno Haible  <bruno@clisp.org>
60048
60049         * lib/alloca_.h: New file.
60050         * lib/getdate.y: Unconditionally include alloca.h.
60051         * lib/makepath.c: Likewise.
60052         * lib/setenv.c: Likewise.
60053         * lib/userspec.c: Likewise.
60054
60055 2003-01-09  Karl Berry  <karl@gnu.org>
60056
60057         * MODULES.html.sh: include `dirname $0` in PATH, to find
60058         gnulib-tool.
60059
60060 2003-01-09  Bruno Haible  <bruno@clisp.org>
60061
60062         * modules/stdbool: Change configure.ac, Makefile.am requirements.
60063         Simplify Include requirements. Add lib/stdbool.h.in to file list.
60064
60065 2003-01-09  Bruno Haible  <bruno@clisp.org>
60066
60067         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
60068
60069 2003-01-09  Bruno Haible  <bruno@clisp.org>
60070
60071         * lib/stdbool.h.in: New file.
60072
60073 2003-01-09  Bruno Haible  <bruno@clisp.org>
60074
60075         * gnulib-tool (func_all_modules): Ignore files ending in ~.
60076         * MODULES.html.sh: Likewise.
60077
60078 2003-01-08  Jim Meyering  <jim@meyering.net>
60079
60080         * lib/full-write.c: Undefine and define-away `const' after inclusion
60081         of errno.h, not before.  Suggestion from Bruno Haible.
60082
60083 2003-01-08  Bruno Haible  <bruno@clisp.org>
60084
60085         * modules/full-read: Depend on full-write.
60086
60087 2003-01-08  Bruno Haible  <bruno@clisp.org>
60088
60089         * lib/safe-read.c: Include specification header first, to ensure its
60090         selfcontainedness.
60091         * lib/full-write.c: Likewise.
60092
60093 2003-01-07  Jim Meyering  <jim@meyering.net>
60094
60095         * lib/full-write.c: Rework so that it may serve to define full_read,
60096         too.
60097         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
60098
60099 2003-01-07  Bruno Haible  <bruno@clisp.org>
60100
60101         * lib/strtoimax.c: Include <stdint.h> as an alternative to
60102         <inttypes.h>.
60103         * lib/xstrtol.h: Likewise.
60104         * lib/xstrtoimax.c: Likewise.
60105         * lib/xstrtoumax.c: Likewise.
60106         * lib/human.h: Likewise.
60107
60108         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
60109         on systems that have <inttypes.h> but not <stdint.h>.
60110
60111 2003-01-07  Bruno Haible  <bruno@clisp.org>
60112
60113         * MODULES.html.sh: Add copyright notice.
60114         (missed_files): Omit CVS directory entries.
60115         (func_module): Make it work with sed-3.02.
60116         * MODULES.txt: Remove file.
60117
60118 2003-01-06  Jim Meyering  <jim@meyering.net>
60119
60120         * lib/version-etc.c: Update year in translatable copyright string.
60121
60122 2003-01-03  Karl Berry  <karl@gnu.org>
60123
60124         * config/config.{guess,sub}: update from prep.
60125
60126 2003-01-02  Karl Berry  <karl@gnu.org>
60127
60128         * doc/COPYING.DOC: belatedly updated to 1.2.
60129
60130 2003-01-01  Karl Berry  <karl@gnu.org>
60131
60132         * gnulib-tool (func_verify_module): report module name $module in
60133         error message, not $1.
60134         * gnulib-tool (create-testdir): don't complain if destdir couldn't
60135         be created, only if it doesn't exist.
60136         * gnulib-tool (last_checkin_date): don't expand the $Date here.
60137
60138 2002-12-31  Paul Eggert  <eggert@twinsun.com>
60139
60140         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
60141
60142 2002-12-31  Paul Eggert  <eggert@twinsun.com>
60143
60144         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
60145         memcmp if strcoll doesn't work.
60146
60147 2002-12-31  Bruno Haible  <bruno@clisp.org>
60148
60149         * lib/utime.c (utime_null): No need to call ftruncate if the file was
60150         nonempty.
60151
60152 2002-12-31  Bruno Haible  <bruno@clisp.org>
60153
60154         * lib/memcoll.c (STRCOLL): New macro.
60155         (memcoll): Use it.
60156
60157 2002-12-31  Bruno Haible  <bruno@clisp.org>
60158
60159         * lib/localcharset.h: New file.
60160         * lib/localcharset.c: Include it.
60161         * lib/unicodeio.c: Likewise.
60162
60163 2002-12-31  Bruno Haible  <bruno@clisp.org>
60164
60165         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
60166         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
60167
60168 2002-12-31  Bruno Haible  <bruno@clisp.org>
60169
60170         * lib/getline.h: Include <stddef.h>, for size_t.
60171
60172         * lib/unicodeio.h: Include <stddef.h>, for size_t.
60173         * lib/unicodeio.c: Don't include <stddef.h>.
60174
60175 2002-12-31  Bruno Haible  <bruno@clisp.org>
60176
60177         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
60178         HAVE_TM_ZONE.
60179
60180 2002-12-24  Karl Berry  <karl@gnu.org>
60181
60182         * config/config.guess: update from prep.
60183
60184 2002-12-24  Bruno Haible  <bruno@clisp.org>
60185
60186         General infrasructure.
60187         * m4/README: Rewritten.
60188         * m4/onceonly.m4: New file.
60189         * m4/onceonly_2_57.m4: New file.
60190
60191         Module atexit.
60192         * m4/atexit.m4: New file.
60193
60194         Module strtod.
60195         * m4/strtod.m4: New file.
60196
60197         Module strtol.
60198         * m4/strtol.m4: New file.
60199
60200         Module strtoul.
60201         * m4/strtoul.m4: New file.
60202
60203         Module memchr.
60204         * m4/memchr.m4: New file.
60205
60206         Module memcmp.
60207         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
60208         (jm_FUNC_MEMCMP): Invoke it.
60209
60210         Module memcpy.
60211         * m4/memcpy.m4: New file.
60212
60213         Module memmove.
60214         * m4/memmove.m4: New file.
60215
60216         Module memset.
60217         * m4/memset.m4: New file.
60218
60219         Module strcspn.
60220         * m4/strcspn.m4: New file.
60221
60222         Module strpbrk.
60223         * m4/strpbrk.m4: New file.
60224
60225         Module strstr.
60226         * m4/strstr.m4: New file.
60227
60228         Module strerror.
60229         * m4/strerror.m4: New file.
60230
60231         Module mktime.
60232         * m4/mktime.m4: Renamed from jm-mktime.m4.
60233         (gl_PREREQ_MKTIME): New macro.
60234         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
60235
60236         Module malloc.
60237         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
60238         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
60239         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
60240
60241         Module realloc.
60242         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
60243         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
60244         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
60245
60246         Module strftime.
60247         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
60248         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
60249         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
60250         gl_TM_GMTOFF.
60251         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
60252
60253         Module xalloc.
60254         * m4/xalloc.m4: New file.
60255
60256         Module alloca.
60257         * m4/alloca.m4: New file.
60258
60259         Module putenv.
60260         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
60261         (jm_FUNC_PUTENV): Invoke it.
60262
60263         Module setenv.
60264         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
60265         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
60266         when invoked twice.
60267         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
60268         gt_FUNC_SETENV.
60269
60270         Module memrchr.
60271         * m4/memrchr.m4: New file.
60272
60273         Module stpcpy.
60274         * m4/stpcpy.m4: New file.
60275
60276         Module strcase.
60277         * m4/strcase.m4: New file.
60278
60279         Module strdup.
60280         * m4/strdup.m4: New file.
60281
60282         Module strnlen.
60283         * m4/strnlen.m4: New file.
60284
60285         Module strndup.
60286         * m4/strndup.m4: New file.
60287
60288         Module xstrtod.
60289         * m4/xstrtod.m4: New file.
60290
60291         Module xstrtol.
60292         * m4/xstrtol.m4: New file.
60293
60294         Module getdate.
60295         * m4/getdate.m4: New file.
60296
60297         Module unlocked-io.
60298         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
60299         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
60300         * m4/jm-glibc-io.m4n: Remove file.
60301
60302         Module long-options.
60303         * m4/long-options.m4: New file.
60304
60305         Module md5.
60306         * m4/md5.m4: New file.
60307
60308         Module sha.
60309         * m4/sha.m4: New file.
60310
60311         Module getstr.
60312         * m4/getstr.m4: New file.
60313
60314         Module getline.
60315         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
60316         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
60317         <sys/types.h>, for size_t. Use the function name gnu_getline, not
60318         simply getline. Infoke gl_PREREQ_GETLINE.
60319
60320         Module obstack.
60321         * m4/obstack.m4: New file.
60322
60323         Module hash.
60324         * m4/hash.m4: New file.
60325
60326         Module readtokens.
60327         * m4/readtokens.m4: New file.
60328
60329         Module strverscmp.
60330         * m4/strverscmp.m4: New file.
60331
60332         Module stdbool.
60333         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
60334         OSF/1.
60335
60336         Module strtoll.
60337         * m4/strtoll.m4: New file.
60338
60339         Module strtoull.
60340         * m4/strtoull.m4: New file.
60341
60342         Module strtoimax.
60343         * m4/strtoimax.m4: New file.
60344
60345         Module strtoumax.
60346         * m4/strtoumax.m4: New file.
60347
60348         Module xstrtoimax.
60349         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
60350         jm_AC_PREREQ_XSTRTOIMAX.
60351         Moved the strtol prerequisites to strtol.m4.
60352         Moved the strtoll prerequisites to strtoll.m4.
60353         Moved the strtoimax prerequisites to strtoimax.m4.
60354
60355         Module xstrtoumax.
60356         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
60357         jm_AC_PREREQ_XSTRTOUMAX.
60358         Moved the strtoul prerequisites to strtoul.m4.
60359         Moved the strtoull prerequisites to strtoull.m4.
60360         Moved the strtoumax prerequisites to strtoumax.m4.
60361
60362         Module chown.
60363         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
60364         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
60365
60366         Module dup2.
60367         * m4/dup2.m4: New file.
60368
60369         Module ftruncate.
60370         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
60371         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
60372
60373         Module getgroups.
60374         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
60375         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
60376
60377         Module gettimeofday.
60378         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
60379         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
60380         gl_PREREQ_GETTIMEOFDAY.
60381
60382         Module mkdir.
60383         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
60384         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
60385
60386         Module mkstemp.
60387         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
60388         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
60389         jm_AC_TYPE_UINTMAX_T.
60390         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
60391
60392         Module stat.
60393         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
60394         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
60395
60396         Module lstat.
60397         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
60398         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
60399
60400         Module timespec.
60401         * m4/timespec.m4 (gl_TIMESPEC): New macro.
60402         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
60403         * m4/st_mtim.m4: Indentation.
60404
60405         Module nanosleep.
60406         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
60407         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
60408         gl_PREREQ_NANOSLEEP.
60409
60410         Module regex.
60411         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
60412         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
60413         (gl_REGEX): New macro.
60414
60415         Module rename.
60416         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
60417         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
60418
60419         Module rmdir.
60420         * m4/rmdir.m4: New file.
60421
60422         Module utime.
60423         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
60424         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
60425         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
60426
60427         Module dirname.
60428         * m4/dirname.m4: New file.
60429
60430         Module getopt.
60431         * m4/getopt.m4: New file.
60432
60433         Module unistd-safer.
60434         * m4/unistd-safer.m4: New file.
60435
60436         Module fnmatch.
60437         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
60438         declaration.
60439         (gl_PREREQ_FNMATCH_EXTRA): New macro.
60440         (gl_FUNC_FNMATCH_POSIX): New macro.
60441         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
60442         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
60443         simply fnmatch.
60444
60445         Module exclude.
60446         * m4/exclude.m4: New file.
60447
60448         Module human.
60449         * m4/human.m4: New file.
60450
60451         Module acl.
60452         * m4/acl.m4: Nop.
60453
60454         Module backupfile.
60455         * m4/backupfile.m4: New file.
60456         * m4/d-ino.m4: Indentation.
60457
60458         Module fsusage.
60459         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
60460         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
60461         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
60462
60463         Module dirfd.
60464         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
60465         requirements.
60466
60467         Module euidaccess.
60468         * m4/euidaccess.m4: New file.
60469
60470         Module file-type.
60471         * m4/file-type.m4: New file.
60472
60473         Module fileblocks.
60474         * m4/fileblocks.m4: New file.
60475
60476         Module filemode.
60477         * m4/filemode.m4: New file.
60478
60479         Module isdir.
60480         * m4/isdir.m4: New file.
60481
60482         Module lchown.
60483         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
60484         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
60485
60486         Module makepath.
60487         * m4/makepath.m4: New file.
60488
60489         Module modechange.
60490         * m4/modechange.m4: New file.
60491
60492         Module mountlist.
60493         * m4/mountlist.m4: New file.
60494         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
60495         Indentation.
60496
60497         Module path-concat.
60498         * m4/path-concat.m4: New file.
60499
60500         Module pathmax.
60501         * m4/pathmax.m4: New file.
60502
60503         Module same.
60504         * m4/same.m4: New file.
60505
60506         Module save-cwd.
60507         * m4/save-cwd.m4: New file.
60508
60509         Module savedir.
60510         * m4/savedir.m4: New file.
60511
60512         Module xgetcwd.
60513         * m4/xgetcwd.m4: New file.
60514         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
60515
60516         Module xreadlink.
60517         * m4/xreadlink.m4: New file.
60518
60519         Module safe-read.
60520         * m4/safe-read.m4: New file.
60521
60522         Module safe-write.
60523         * m4/safe-write.m4: New file.
60524
60525         Module closeout.
60526         * m4/closeout.m4: New file.
60527
60528         Module stdio-safer.
60529         * m4/stdio-safer.m4: New file.
60530
60531         Module getpass.
60532         * m4/getpass.m4: New file.
60533
60534         Module getugroups.
60535         * m4/getugroups.m4: New file.
60536
60537         Module group-member.
60538         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
60539         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
60540
60541         Module idcache.
60542         * m4/idcache.m4: New file.
60543
60544         Module userspec.
60545         * m4/userspec.m4: New file.
60546
60547         Module gettime.
60548         * m4/clock_time.m4: New file.
60549         * m4/gettime.m4: New file.
60550
60551         Module settime.
60552         * m4/settime.m4: New file.
60553
60554         Module posixtm.
60555         * m4/posixtm.m4: New file.
60556
60557         Module gethostname.
60558         * m4/gethostname.m4: New file.
60559
60560         Module canon-host.
60561         * m4/canon-host.m4: New file.
60562
60563         Module gettext.
60564         * m4/codeset.m4: New file, from gettext-0.11.5.
60565         * m4/gettext.m4: New file, from gettext-0.11.5.
60566         * m4/glibc21.m4: New file, from gettext-0.11.5.
60567         * m4/iconv.m4: New file, from gettext-0.11.5.
60568         * m4/intdiv0.m4: New file, from gettext-0.11.5.
60569         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
60570         * m4/inttypes.m4: New file, from gettext-0.11.5.
60571         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
60572         * m4/isc-posix.m4: New file, from gettext-0.11.5.
60573         * m4/lcmessage.m4: New file, from gettext-0.11.5.
60574         * m4/lib-ld.m4: New file, from gettext-0.11.5.
60575         * m4/lib-link.m4: New file, from gettext-0.11.5.
60576         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
60577         * m4/progtest.m4: New file, from gettext-0.11.5.
60578         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
60579         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
60580         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
60581
60582         Module localcharset.
60583         * m4/localcharset.m4: New file.
60584
60585         Module hard-locale.
60586         * m4/hard-locale.m4: New file.
60587
60588         Module mbswidth.
60589         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
60590         onceonly macros.
60591         * m4/mbrtowc.m4: Add comment.
60592
60593         Module memcasecmp.
60594         * m4/memcasecmp.m4: New file.
60595
60596         Module memcoll.
60597         * m4/memcoll.m4: New file.
60598
60599         Module unicodeio.
60600         * m4/unicodeio.m4: New file.
60601
60602         Module rpmatch.
60603         * m4/rpmatch.m4: New file.
60604
60605         Module yesno.
60606         * m4/yesno.m4: New file.
60607
60608         Module exitfail.
60609         * m4/exitfail.m4: New file.
60610
60611         Module c-stack.
60612         * m4/c-stack.m4 (gl_C_STACK): New macro.
60613         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
60614
60615         Module error.
60616         * m4/error.m4 (gl_ERROR): New macro.
60617         (jm_PREREQ_ERROR): Use onceonly macros.
60618
60619         Module fatal.
60620         * m4/fatal.m4: New file.
60621
60622         Module getloadavg.
60623         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
60624         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
60625
60626         Module getpagesize.
60627         * m4/getpagesize.m4: New file.
60628
60629         Module getusershell.
60630         * m4/getusershell.m4: New file.
60631
60632         Module physmem.
60633         * m4/physmem.m4: New file.
60634
60635         Module posixver.
60636         * m4/posixver.m4: New file.
60637
60638         Module quotearg.
60639         * m4/quotearg.m4: New file.
60640
60641         Module quote.
60642         * m4/quote.m4: New file.
60643
60644         Module readutmp.
60645         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
60646
60647         Module sig2str.
60648         * m4/sig2str.m4: New file.
60649
60650         Other.
60651         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
60652         ulonglong.m4.
60653         * m4/intmax_t.m4: New file.
60654         * m4/d-type.m4: Indentation.
60655         * m4/jm-macros.m4: Update.
60656         * m4/prereq.m4 (jm_PREREQ): Update.
60657         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
60658         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
60659         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
60660         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
60661         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
60662         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
60663         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
60664         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
60665         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
60666         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
60667         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
60668         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
60669         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
60670         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
60671         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
60672         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
60673         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
60674         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
60675         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
60676
60677 2002-12-24  Bruno Haible  <bruno@clisp.org>
60678
60679         * MODULES.txt: Update according to m4/ changes.
60680
60681         Module gettext.
60682         * config.rpath: New file, from gettext-0.11.5.
60683
60684         * modules/*: New module descriptions.
60685         * gnulib-tool: New file.
60686         * MODULES.html.sh: New file.
60687
60688 2002-12-21  Karl Berry  <karl@gnu.org>
60689
60690         * doc/fdl.texi: update to version 1.2.
60691
60692 2002-12-19  Karl Berry  <karl@gnu.org>
60693
60694         * config/config.guess: update from prep.
60695
60696 2002-12-18  Bruno Haible  <bruno@clisp.org>
60697
60698         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
60699         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
60700
60701 2002-12-17  Bruno Haible  <bruno@clisp.org>
60702
60703         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
60704         stdlib.h, string.h.
60705
60706 2002-12-17  Bruno Haible  <bruno@clisp.org>
60707
60708         * lib/canon-host.c (strdup): Remove unused declaration.
60709
60710         * lib/fsusage.c: Include full_read.h.
60711         (get_fs_usage): Use full_read instead of safe_read.
60712
60713         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
60714
60715 2002-12-12  Karl Berry  <karl@gnu.org>
60716
60717         * config/config.guess: update from prep.
60718
60719 2002-12-11  Bruno Haible  <bruno@clisp.org>
60720
60721         * m4/setenv.m4: New file, from gettext-0.11.5.
60722
60723 2002-12-11  Bruno Haible  <bruno@clisp.org>
60724
60725         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
60726         not unsetenv().
60727         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
60728         modifications:
60729
60730         2002-12-11  Bruno Haible  <bruno@clisp.org>
60731
60732                 * setenv.c (alloca): Fall back to malloc.
60733                 (freea): New macro.
60734                 (setenv): Use freea() to free memory allocated with alloca().
60735
60736         2002-11-13  Bruno Haible  <bruno@clisp.org>
60737
60738                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
60739                 function declarations.
60740                 * unsetenv.c (unsetenv): Likewise.
60741
60742         2002-03-04  Bruno Haible  <bruno@clisp.org>
60743
60744                 Portability to AIX 4.3.3.
60745                 * unsetenv.c: New file, extracted from setenv.c.
60746                 * setenv.c: Move the unsetenv() function to unsetenv.c.
60747
60748         2001-12-20  Bruno Haible  <bruno@clisp.org>
60749
60750                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
60751                 use malloc instead. For SunOS 4.
60752
60753         2001-12-11  Bruno Haible  <bruno@clisp.org>
60754
60755                 * setenv.c: Declare alloca.
60756                 (compar_fn_t): New typedef.
60757                 (KNOWN_VALUE, STORE_VALUE): Use it.
60758
60759         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
60760         setenv.h.
60761
60762 2002-12-10  Paul Eggert  <eggert@twinsun.com>
60763
60764         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
60765         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
60766         Choose values that are less likely to collide with system fnmatch
60767         options.
60768         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
60769         defined (e.g., a pure POSIX system).
60770         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
60771         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
60772
60773 2002-12-06  Paul Eggert  <eggert@twinsun.com>
60774
60775         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
60776         a pain in practice to deal with generated m4 files.  This change
60777         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
60778
60779         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
60780         and jm-glibc-io.m4, as they are no longer a special case.
60781         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
60782         kludge and the auto-generation stuff.  Check only whether the
60783         functions are declared, not whether they exist, since older hosts
60784         that don't declare the functions can't use the optimization anyway.
60785
60786 2002-12-06  Jim Meyering  <jim@meyering.net>
60787
60788         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
60789
60790         Merge in changes from libc's misc/error.c, in preparation
60791         for the merge of gnulib's changes back into libc.
60792
60793         * lib/error.c (_): Define only if not already defined.
60794         Move definition to follow all #include directives.
60795         Include unlocked-io.h only if !_LIBC.
60796         [_LIBC]: Include <libio/libioP.h>.
60797         [USE_IN_LIBIO]: Include <libio/iolibio.h>
60798         (fflush): Tweak definition to use INTUSE.
60799         (putc): Define.
60800
60801 2002-12-05  Paul Eggert  <eggert@twinsun.com>
60802
60803         * lib/alloca.c [defined emacs]: Include "lisp.h".
60804         (xalloc_die) [defined emacs]: New macro.
60805         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
60806         [! defined emacs]: Include <xalloc.h>.
60807         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
60808         (pointer): Typedef to POINTER_TYPE *.
60809         (malloc): Remove decl; we now always use xmalloc.
60810         (alloca): Use old-style definition, since Emacs needs this.
60811         Check for arithmetic overflow when computing combined size.
60812
60813 2002-12-04  Paul Eggert  <eggert@twinsun.com>
60814
60815         Do not generate unlocked-io.h automatically, since it's easier to
60816         maintain it by hand.
60817
60818         * lib/unlocked-io.h: New file, from GNU diffutils,
60819         but with proper copyright notice and attribution.
60820         * lib/gen-uio: Remove.
60821         * lib/Makefile.am: Add copyright notice.
60822         (libfetish_a_SOURCES): Add unlocked-io.h.
60823         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
60824         (DISTCLEANFILES, io_functions): Remove macros.
60825         (EXTRA_DIST): Remove gen_uio.
60826         (unlocked-io.h): Remove rule.
60827
60828 2002-12-04  Jim Meyering  <jim@meyering.net>
60829
60830         Reflect the fact that stat.c and lstat.c are no longer generated.
60831         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
60832         (DISTCLEANFILES): Likewise.
60833         (EXTRA_DIST): Likewise.
60834         (all_local): Don't depend on stat.c or lstat.c.
60835         (stat.c, lstat.c): Remove rules.
60836         (EXTRA_DIST): Remove xstat.in.
60837
60838         * lib/xstat.in: Remove file.  Contents moved into stat.c.
60839         * lib/stat.c: New file.  Contents mostly from xstat.in.
60840         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
60841         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
60842
60843         * lib/safe-read.c: Rework so that it may serve to define safe_write,
60844         too.
60845         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
60846
60847 2002-12-03  Jim Meyering  <jim@meyering.net>
60848
60849         * lib/safe-read.c, safe-write.c: Change variable names and comments,
60850         but not semantics, to minimize the differences between these two files.
60851         (safe_read): Change comment to mention SAFE_READ_ERROR.
60852
60853         * lib/safe-read.c (IS_EINTR): Define.
60854         (safe_read): Use IS_EINTR in place of in-function cpp directives.
60855
60856 2002-12-02  Jim Meyering  <jim@meyering.net>
60857
60858         * lib/safe-read.c (EINTR): Define.
60859         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
60860         (INT_MAX): Provide fallback.
60861         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
60862
60863         * lib/safe-read.h (SAFE_READ_ERROR): Define.
60864
60865 2002-12-02  Bruno Haible  <bruno@clisp.org>
60866
60867         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
60868         Define, taken from safe-read.c.
60869         (INT_MAX): Provide fallback.
60870         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
60871         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
60872
60873         * lib/safe-read.c (EINTR): Remove definition.
60874         (safe_read): Don't use EINTR if it is absent.
60875
60876 2002-12-01  Jim Meyering  <jim@meyering.net>
60877
60878         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
60879         zero.
60880         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
60881
60882 2002-11-27  Paul Eggert  <eggert@twinsun.com>
60883
60884         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
60885         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
60886         with `if (! (value < limit)) abort ();', for readability.
60887
60888 2002-11-26  Karl Berry  <karl@gnu.org>
60889
60890         * lib/strdup.c: copy from libc again, with jim's ok.
60891         * lib/.cppi-disable: re-add strdup.c
60892
60893 2002-11-25  Karl Berry  <karl@gnu.org>
60894
60895         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
60896         instead of "strtol.c".
60897
60898 2002-11-25  Karl Berry  <karl@gnu.org>
60899
60900         * config/install-sh: update from automake for variable quoting, $0 in
60901         error msgs, etc.
60902
60903         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
60904         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
60905         entry.
60906
60907 2002-11-25  Jim Meyering  <jim@meyering.net>
60908
60909         * lib/mktime.c: Sync from libc, now that it has the latest fix.
60910
60911 2002-11-24  Karl Berry  <karl@gnu.org>
60912
60913         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
60914         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
60915
60916 2002-11-24  Jim Meyering  <jim@meyering.net>
60917
60918         Update from coreutils:
60919
60920         * lib/mktime.c: Merge in changes from libc.
60921
60922         Avoid a link-time failure on some Linux systems.
60923         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
60924         (otherwise).
60925         (__mon_yday): Declare with the STATIC attribute.
60926         (__mktime_internal): Likewise.
60927         Based on a report from Greg Schafer.
60928
60929 2002-11-23  Jim Meyering  <jim@meyering.net>
60930
60931         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
60932         Use `unsigned', not `int', as type of index.
60933
60934         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
60935
60936         * lib/fsusage.c: Remove unneeded parentheses around operands of
60937         `defined'.
60938
60939 2002-11-22  Paul Eggert  <eggert@twinsun.com>
60940
60941         * lib/quotearg.h: Allow multiple inclusion by surrounding with
60942         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
60943         so that we can be included first.
60944         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
60945         * lib/quotearg.c: Include quotearg.h immediately after config.h.
60946         No need to include stddef.h or sys/types.h any more.
60947         Surround local include files with "", not "<>".
60948         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
60949         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
60950         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
60951         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
60952         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
60953         (ISPRINT): Remove; no longer needed now that we assume C89.
60954
60955         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
60956         Preserve errno.
60957
60958         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
60959         quotearg_char): Use SIZE_MAX rather than
60960         (size_t) -1 when we are talking about "infinity".
60961
60962         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
60963
60964 2002-11-22  Paul Eggert  <eggert@twinsun.com>
60965
60966         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
60967         hint that one should use `if (! x) abort ();' rather than `assert
60968         (x);', and anyway it's one less thing to worry about configuring.
60969         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
60970         hash_rehash, hash_insert): Use abort rather than assert.
60971
60972 2002-11-22  Bruno Haible  <bruno@clisp.org>
60973
60974         * lib/safe-read.h: Assume C89. Add comments.
60975         (safe_read): Change return type to size_t.
60976         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
60977         byte counts > SSIZE_MAX correctly.
60978         * lib/safe-write.h: New file.
60979         * lib/safe-write.c: New file.
60980         * lib/full-read.h: New file.
60981         * lib/full-read.c: New file.
60982         * lib/full-write.h: Assume C89. Add comments.
60983         * lib/full-write.c: Include safe-write.h.
60984         (full_write): Rewritten to use safe_write.
60985         Suggested by Jim Meyering and Paul Eggert.
60986
60987 2002-11-21  Jim Meyering  <jim@meyering.net>
60988
60989         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
60990
60991         Merge in changes from the coreutils.
60992
60993         2002-09-25  Paul Eggert  <eggert@twinsun.com>
60994         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
60995         <stdint.h>.
60996         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
60997         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
60998         int.  Work more efficiently if X is the same width as uintmax_t.
60999         Do not compare X to -1, to avoid bogus compiler warning.
61000         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
61001         Don't assume that f_frsize and f_bsize are the same type.
61002
61003         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
61004         warning on FreeBSD.
61005
61006         * lib/makepath.c (make_path): Restore umask *before* creating the final
61007         component.
61008         (make_path): Minor reformatting.
61009
61010         * lib/xmalloc.c: Adjust to work with new autoconf macros,
61011         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
61012         HAVE_MALLOC/HAVE_REALLOC.
61013
61014         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
61015         dummy ones.  At least on GNU/Linux systems, `auto' means something
61016         else.
61017         From Michael Stone.
61018
61019 2002-11-21  Bruno Haible  <bruno@clisp.org>
61020
61021         Remove case insensitive option matching.
61022         * lib/argmatch.h (argcasematch): Remove declaration.
61023         (ARGCASEMATCH): Remove macro.
61024         (__xargmatch_internal): Remove case_sensitive argument.
61025         (XARGMATCH): Update.
61026         (XARGCASEMATCH): Remove macro.
61027         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
61028         case_sensitive argument.
61029         (argcasematch): Remove function.
61030         (__xargmatch_internal): Remove case_sensitive argument.
61031         (main): Use XARGMATCH instead of XARGCASEMATCH.
61032
61033         * lib/xmalloc.c: Change compile-time error message. Add comment about
61034         required autoconf version.
61035
61036 2002-11-20  Paul Eggert  <eggert@twinsun.com>
61037
61038         Merge argmatch cleanups from Bison.  Assume C89.
61039
61040         * lib/argmatch.c: Include config.h here, not in argmatch.h.
61041         Include stdlib.h, for EXIT_FAILURE.
61042         Always include <string.h>, since we assume C89.
61043         (EXIT_FAILURE): Remove pre-C89 bug workaround.
61044         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
61045         Include <stddef.h> instead, since it's all we need for size_t.
61046         (PARAMS): Remove.  All uses removed.
61047         (ARRAY_CARDINALITY): Do not bother to #undef.
61048         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
61049         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
61050         Remove unnecessary parentheses.
61051         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
61052         Insert necessary parentheses.
61053         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
61054         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
61055
61056 2002-11-19  Bruno Haible  <bruno@clisp.org>
61057
61058         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
61059         * lib/mbswidth.h: Include <stddef.h>, for size_t.
61060
61061         * lib/mbswidth.h (PARAMS): Remove macro.
61062         (mbswidth, mbsnwidth): Use ANSI C function declarations.
61063         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
61064
61065         * lib/gcd.h (PARAMS): Remove macro.
61066         (gcd): Use ANSI C function declarations.
61067         * lib/gcd.c (gcd): Likewise.
61068
61069 2002-11-15  Bruno Haible  <bruno@clisp.org>
61070
61071         * lib/strcspn.c: Include <stddef.h>.
61072         (strcspn): Use ANSI C function declaration. Change return type to
61073         size_t. Use NULL.
61074         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
61075         (strpbrk): Use NULL.
61076         * lib/strpbrk.h (PARAMS): Remove macro.
61077         (strpbrk): Use ANSI C function declaration.
61078         * lib/strstr.c: Don't include <sys/types.h>.
61079         * lib/strstr.h (PARAMS): Remove macro.
61080         (strstr): Use ANSI C function declarations.
61081
61082 2002-11-14  Karl Berry  <karl@gnu.org>
61083
61084         * config/mkinstalldirs: `do' on separate line, instead of
61085         `for var; do'.
61086
61087 2002-11-06  Bruno Haible  <bruno@clisp.org>
61088
61089         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
61090         * lib/gcd.c (gcd): Likewise.
61091
61092 2002-11-05  Bruno Haible  <bruno@clisp.org>
61093
61094         * lib/gcd.h: New file, from gettext-0.11.5.
61095         * lib/gcd.c: New file, from gettext-0.11.5.
61096
61097 2002-11-05  Bruno Haible  <bruno@clisp.org>
61098
61099         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
61100         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
61101         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
61102         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
61103
61104         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
61105         <libintl.h>.
61106         * lib/makepath.c: Include gettext.h instead of <locale.h> and
61107         <libintl.h>.
61108
61109         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
61110         * lib/human.c: Include gettext.h instead of <libintl.h>.
61111         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
61112         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
61113         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
61114         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
61115         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
61116         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
61117         (textdomain): Remove definition.
61118         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
61119
61120         * lib/long-options.c: Remove include of <libintl.h> and definition of
61121         _.
61122         * lib/same.c: Remove include of <libintl.h> and definition of _.
61123
61124 2002-11-04  Owen Taylor  <otaylor@redhat.com>
61125
61126         * lib/config.charset: A few additions for Solaris.
61127
61128 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
61129
61130         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
61131         * lib/localcharset.c (locale_charset): Declare as extern "C".
61132
61133 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
61134
61135         * lib/config.charset: msdos in uk_UA uses CP1125.
61136
61137 2002-11-04  Bruno Haible  <bruno@clisp.org>
61138
61139         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
61140         * lib/strcase.h: New file, from GNU gettext-0.11.5.
61141         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
61142         * lib/strstr.h: New file, from GNU gettext-0.11.5.
61143         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
61144
61145 2002-11-04  Bruno Haible  <bruno@clisp.org>
61146
61147         * lib/localcharset.c (locale_charset): Don't return an empty string.
61148
61149 2002-11-04  Bruno Haible  <bruno@clisp.org>
61150
61151         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
61152         aliases.
61153
61154 2002-11-04  Bruno Haible  <bruno@clisp.org>
61155
61156         * lib/config.charset: Update for newest glibc. Add canonical names
61157         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
61158
61159 2002-11-04  Bruno Haible  <bruno@clisp.org>
61160
61161         * lib/config.charset: Add support for NetBSD.
61162
61163 2002-11-04  Bruno Haible  <bruno@clisp.org>
61164
61165         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
61166
61167 2002-11-01  Bruno Haible  <bruno@clisp.org>
61168
61169         * configure.in: Add AC_CONFIG_AUX_DIR call.
61170         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
61171         test/Makefile.
61172         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
61173
61174 2002-09-28  Karl Berry  <karl@gnu.org>
61175
61176         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
61177         installed automake until the next release, since changes have been
61178         made.
61179
61180 2002-09-25  Karl Berry  <karl@gnu.org>
61181
61182         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
61183         * lib/getopt*: copy from libc/posix.
61184         * lib/gettext.h: copy from gettext.
61185         * lib/.cppi-disable: add strdup.c, gettext.h.
61186
61187 2002-09-25  Karl Berry  <karl@gnu.org>
61188
61189         * config/srclist.txt: enable gettext.h check.
61190         * config/config.{guess,sub}: update from prep.
61191         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
61192                 from automake 1.6.3.
61193         See srclist*.
61194
61195 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
61196
61197         * regex.c (PATFETCH): Remove the translating fetch.
61198         (PATFETCH_RAW): Rename to PATFETCH.
61199         (set_image_of_range): New fun.
61200         (SET_RANGE_TABLE_WORK_AREA): Use it.
61201         (regex_compile): Don't translate the pattern chars so eagerly.
61202         Only do it when inserting an `exactn' bytecode or when handling
61203         a char-range.
61204         (mutually_exclusive_p): Avoid empty statement.
61205
61206 2002-07-06  Jim Meyering  <meyering@lucent.com>
61207
61208         * m4/README: Don't mention Makefile.am.in.
61209         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
61210
61211 2002-07-01  Jim Meyering  <meyering@lucent.com>
61212
61213         * lib/c-stack.c: Include sys/time.h.
61214         From Volker Borchert.
61215
61216 2002-06-26  Paul Eggert  <eggert@twinsun.com>
61217
61218         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
61219
61220 2002-06-26  Paul Eggert  <eggert@twinsun.com>
61221
61222         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
61223         New macro.  Use it uniformly instead of
61224         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
61225         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
61226         reported by Vin Shelton.
61227
61228 2002-06-22  Paul Eggert  <eggert@twinsun.com>
61229
61230         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
61231         Do not assume SA_SIGINFO behavior.
61232         Bug reported by Jim Meyering on NetBSD 1.5.2.
61233
61234 2002-06-22  Jim Meyering  <meyering@lucent.com>
61235
61236         * m4/c-stack.m4: New file, from diffutils-2.8.2.
61237         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
61238
61239         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
61240         now that configure.ac uses AC_GNU_SOURCE.
61241         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
61242         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
61243
61244         Update to latest tools.  Suggestions from Paul Eggert.
61245         * m4/stdbool.m4: New file, from diffutils-2.8.2.
61246         * m4/gnu-source.m4: Update from diffutils-2.8.2.
61247         * m4/fnmatch.m4: Likewise.
61248         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
61249         to AC_HEADER_STDBOOL
61250
61251 2002-06-22  Jim Meyering  <meyering@lucent.com>
61252
61253         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
61254         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
61255
61256 2002-06-22  Jim Meyering  <meyering@lucent.com>
61257
61258         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
61259
61260         * lib/exitfail.c, exitfail.h: Likewise.
61261         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
61262
61263         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
61264         of fnmatch.h.
61265         (EXTRA_DIST): Add fnmatch_loop.c.
61266         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
61267
61268         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
61269         * lib/fnmatch.c: Update from diffutils-2.8.2.
61270         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
61271         * lib/fnmatch.h: Remove file.
61272
61273 2002-06-21  Jim Meyering  <meyering@lucent.com>
61274
61275         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
61276         * m4/mbrtowc.m4: Likewise.
61277
61278         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
61279         * m4/mbswidth.m4: Reflect name change:
61280         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
61281         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
61282
61283         * m4/lib-link.m4: Update from gettext-0.11.2.
61284         * m4/gettext.m4: Likewise.
61285
61286         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
61287         From Alfred M. Szmidt.
61288
61289 2002-06-18  Paul Eggert  <eggert@twinsun.com>
61290
61291         * lib/file-type.h: Report an error if neither S_ISREG nor
61292         S_IFREG is defined, instead of using a test specific to glibc
61293         2.2.  This should be safe, since POSIX requires S_ISREG and
61294         Unix Version 7 had S_IFREG.  We don't need to check for
61295         <sys/types.h> since we don't use any symbols that it defines.
61296
61297 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
61298
61299         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
61300         $@-t, so that each temporary file name is unique and valid in the first
61301         8 characters, for operation under DOS.
61302
61303 2002-06-15  Paul Eggert  <eggert@twinsun.com>
61304
61305         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
61306
61307 2002-06-15  Jim Meyering  <meyering@lucent.com>
61308
61309         Work even with DJGPP 2.03, which lacks support for symlinks.
61310         From Richard Dawe.
61311         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
61312         is defined.
61313         * lib/lchown.c (S_ISLNK): Likewise.
61314
61315 2002-06-15  Jim Meyering  <meyering@lucent.com>
61316
61317         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
61318         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
61319         have been included before this file.
61320
61321 2002-06-14  Jim Meyering  <meyering@lucent.com>
61322
61323         * lib/file-type.h: Use the version from diffutils-2.8.2.
61324         * lib/file-type.c: Likewise.
61325
61326 2002-06-07  Jim Meyering  <meyering@lucent.com>
61327
61328         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
61329         They're needed at least for NetBSD 1.5.2.
61330         ($statxfs_includes): Include those same headers.
61331         ($statxfs_includes): Include sys/vfs.h if available.
61332         ($statxfs_includes): Likewise for sys/statvfs.h.
61333         Check for the following members in both structs statfs and statvfs:
61334         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
61335
61336 2002-06-01  Jim Meyering  <meyering@lucent.com>
61337
61338         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
61339         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
61340
61341 2002-05-28  Jim Meyering  <meyering@lucent.com>
61342
61343         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
61344         Reported by Volker Borchert.
61345
61346 2002-05-27  Jim Meyering  <meyering@lucent.com>
61347
61348         Fix a problem seen only on nonconforming systems whereby ls.c's
61349         use of localtime, and then of gettimeofday would cause trouble:
61350         the localtime call used to initialize rpl_gettimeofday's save
61351         mechanism would clobber ls's current local time information so
61352         that in any long listing the first file would always be listed
61353         with date 1970-01-01.  Analysis by Volker Borchert.
61354
61355         * lib/gettimeofday.c (localtime): Undefine.
61356         (rpl_localtime): New function.
61357
61358 2002-05-27  Jim Meyering  <meyering@lucent.com>
61359
61360         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
61361         localtime.
61362
61363         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
61364         use the replacement function; it wouldn't resolve at link time.
61365         Reported by Volker Borchert.
61366
61367 2002-05-22  Jim Meyering  <meyering@lucent.com>
61368
61369         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
61370         file-type.h.
61371         * lib/file-type.h: New file.
61372         * lib/file-type.c (file_type): New file/function.  Extracted from
61373         diffutils.
61374
61375 2002-04-30  Jim Meyering  <meyering@lucent.com>
61376
61377         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
61378
61379 2002-04-29  Paul Eggert  <eggert@twinsun.com>
61380
61381         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
61382
61383 2002-04-29  Paul Eggert  <eggert@twinsun.com>
61384
61385         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
61386         Do not check for alloca.h (no longer used) or stdbool.h (was never
61387         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
61388
61389 2002-04-29  Paul Eggert  <eggert@twinsun.com>
61390
61391         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
61392
61393 2002-04-29  Jim Meyering  <meyering@lucent.com>
61394
61395         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
61396         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
61397         Use AC_FUNC_STRNLEN here instead.
61398
61399         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
61400         With autoconf-2.53a, it's part of AC_PROG_CC.
61401
61402 2002-04-28  Paul Eggert  <eggert@twinsun.com>
61403
61404         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
61405         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
61406
61407 2002-04-28  Paul Eggert  <eggert@twinsun.com>
61408
61409         * lib/sig2str.h, lib/sig2str.c: New files.
61410         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
61411
61412 2002-04-28  Paul Eggert  <eggert@twinsun.com>
61413
61414         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
61415         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
61416         of 127, since 64 is the largest conceivable number for ancient
61417         nonstandard hosts.
61418         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
61419
61420 2002-04-28  Jim Meyering  <meyering@lucent.com>
61421
61422         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
61423
61424 2002-04-24  Jim Meyering  <meyering@lucent.com>
61425
61426         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
61427         (jm_PREREQ): Use it.
61428
61429         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
61430         mach/mach.h fcntl.h.
61431         Check for this function: setlocale.
61432
61433 2002-04-24  Jim Meyering  <meyering@lucent.com>
61434
61435         * lib/gettext.h: New file, from Gettext.
61436         * lib/Makefile.am (INCLUDES): Remove -I../intl.
61437         (libfetish_a_SOURCES): Add gettext.h.
61438
61439 2002-04-16  Jim Meyering  <meyering@lucent.com>
61440
61441         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
61442         ut_pid, ut_id, ut_exit.
61443
61444 2002-04-16  Jim Meyering  <meyering@lucent.com>
61445
61446         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
61447         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
61448         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
61449
61450 2002-04-12  Jim Meyering  <meyering@lucent.com>
61451
61452         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
61453         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
61454         existence of the getmntinfo function.  Needed for Darwin 5.3.
61455
61456         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
61457         This is necessary at least on Darwin 5.3.
61458
61459         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
61460         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
61461         strnlen.o in the library, and that makes some versions of ranlib
61462         object.
61463
61464 2002-04-12  Jim Meyering  <meyering@lucent.com>
61465
61466         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
61467
61468 2002-04-09  Jim Meyering  <meyering@lucent.com>
61469
61470         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
61471         to be more precise.  Rather than saying we're checking whether the
61472         function `works', say what we're testing.
61473         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
61474         Reported by Bruno Haible.
61475
61476 2002-03-10  Jim Meyering  <meyering@lucent.com>
61477
61478         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
61479         Suggestion from Santiago Vila.
61480
61481 2002-03-08  Jim Meyering  <meyering@lucent.com>
61482
61483         * lib/rename.c: Mention that this wrapper is needed also on
61484         mips-dec-ultrix4.4 systems.
61485
61486 2002-03-02  Jim Meyering  <meyering@lucent.com>
61487
61488         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
61489         not HAVE_CLOCK_SETTIME.
61490
61491 2002-02-27  Paul Eggert  <eggert@twinsun.com>
61492
61493         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
61494         Check for clock_settime.
61495
61496 2002-02-27  Paul Eggert  <eggert@twinsun.com>
61497
61498         * lib/nanosleep.h: Rename to....
61499         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
61500
61501         * lib/gettime.c: New file.
61502         * lib/settime.c: New file.
61503         * lib/stime.c: Remove.
61504
61505         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
61506         timespec.h.  Remove nanosleep.h.
61507
61508 2002-02-25  Paul Eggert  <eggert@twinsun.com>
61509
61510         * m4/acl.m4: New file.
61511         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
61512         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
61513
61514 2002-02-25  Paul Eggert  <eggert@twinsun.com>
61515
61516         * lib/acl.c, lib/acl.h: New files.
61517         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
61518
61519 2002-02-24  Jim Meyering  <meyering@lucent.com>
61520
61521         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
61522         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
61523         cause trouble.  Reported by Nelson Beebe.
61524
61525 2002-02-23  Paul Eggert  <eggert@twinsun.com>
61526
61527         * lib/path-concat.c (xpath_concat): Reorder code to pacify
61528         compilers that don't know that xalloc_die never returns.
61529
61530 2002-02-20  Jim Meyering  <meyering@lucent.com>
61531
61532         * lib/getdate.c: Regenerate using bison-1.33.
61533
61534 2002-02-17  Jim Meyering  <meyering@lucent.com>
61535
61536         * config/config.guess (main): Don't use `head -1'; it's no longer
61537         portable. Use `sed 1q' instead.
61538
61539 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
61540
61541         * m4/codeset.m4: Upgrade to gettext-0.11.
61542         * m4/gettext.m4: Upgrade to gettext-0.11.
61543         * m4/glibc21.m4: Upgrade to gettext-0.11.
61544         * m4/iconv.m4: Upgrade to gettext-0.11.
61545         * m4/isc-posix.m4: Upgrade to gettext-0.11.
61546         * m4/lcmessage.m4: Upgrade to gettext-0.11.
61547         * m4/lib-ld.m4: New file, from gettext-0.11.
61548         * m4/lib-link.m4: New file, from gettext-0.11.
61549         * m4/lib-prefix.m4: New file, from gettext-0.11.
61550         * m4/progtest.m4: Upgrade to gettext-0.11.
61551
61552 2002-02-15  Paul Eggert  <eggert@twinsun.com>
61553
61554         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
61555         (jm_PREREQ): Use it.
61556
61557 2002-02-15  Paul Eggert  <eggert@twinsun.com>
61558
61559         * lib/posixver.c, lib/posixver.h: New files.
61560         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
61561
61562 2002-02-02  Paul Eggert  <eggert@twinsun.com>
61563             Bruno Haible  <bruno@clisp.org>
61564
61565         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
61566         (fwrite_success_callback): New declaration.
61567         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
61568         print_unicode_char. Call failure callback instead of error.
61569         (fwrite_success_callback): New function.
61570         (exit_failure_callback): New function.
61571         (fallback_failure_callback): New function.
61572         (print_unicode_char): Call unicode_to_mb.
61573
61574 2002-01-26  Jim Meyering  <meyering@lucent.com>
61575
61576         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
61577         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
61578
61579 2002-01-26  Jim Meyering  <meyering@lucent.com>
61580
61581         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
61582
61583 2002-01-22  Paul Eggert  <eggert@twinsun.com>
61584
61585         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
61586
61587 2002-01-22  Jim Meyering  <meyering@lucent.com>
61588
61589         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
61590         Otherwise, some versions of automake would omit the rule that makes
61591         Makefile from Makefile.in.
61592
61593 2002-01-21  Paul Eggert  <eggert@twinsun.com>
61594
61595         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
61596         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
61597         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
61598         (memcoll): Set errno to zero if there is no error.
61599
61600         * lib/quotearg.c (quotearg_buffer_restyled):
61601         Fix bug with quoting buffers containing NUL when backslashing escapes.
61602         This bug was exposed by the other changes in this patch.
61603         (quotearg_n_options): New arg ARGSIZE.
61604         All callers changed.
61605         (quoting_options_from_style): New function.
61606         (quotearg_n_style): Use it.
61607         (quotearg_n_style_mem): New function.
61608
61609         * lib/quotearg.h (quotearg_n_style_mem): New function.
61610
61611 2002-01-19  Jim Meyering  <meyering@lucent.com>
61612
61613         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
61614         Remove useless quotes: DF_PROG="df".
61615         * m4/strnlen.m4: New file.
61616
61617 2002-01-16  Paul Eggert  <eggert@twinsun.com>
61618
61619         * lib/backupfile.c (ISDIGIT): Comment fix.
61620         * lib/getdate.y (ISDIGIT): Likewise.
61621         * lib/posixtm.c (ISDIGIT, year): Likewise.
61622         * lib/strverscmp.c (ISDIGIT): Likewise.
61623         * lib/userspec.c (ISDIGIT): Likewise.
61624
61625 2002-01-16  Jim Meyering  <meyering@lucent.com>
61626
61627         * lib/getdate.y: Add three semicolons, each just before a closing
61628         brace. Bison (as of version 1.31) no longer papers over that mistake.
61629
61630 2002-01-05  Jim Meyering  <meyering@lucent.com>
61631
61632         * lib/version-etc.c (version_etc_copyright): Update copyright year.
61633
61634 2001-12-19  Paul Eggert  <eggert@twinsun.com>
61635
61636         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
61637         not silently exit merely because the output buffer happens to
61638         have nothing pending.
61639
61640 2001-12-18  Paul Eggert  <eggert@twinsun.com>
61641
61642         See the big note in ../ChangeLog.
61643         * lib/human.c (suffixes): Prefer K to k for 1024.
61644         (generate_suffix_backwards): New function.
61645         (human_readable_inexact): Use it.
61646         * lib/xstrtol.c (__xstrtol): If there is no number but there
61647         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
61648         Accept 'K' as well as 'k'.
61649
61650 2001-12-15  Jim Meyering  <meyering@lucent.com>
61651
61652         * lib/regex.h (__restrict_arr): Update from libc.
61653
61654         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
61655         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
61656         (STREQ): Define.
61657
61658 2001-12-14  Jim Meyering  <meyering@lucent.com>
61659
61660         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
61661         Suggestion from Bruno Haible.
61662
61663 2001-12-10  Jim Meyering  <meyering@lucent.com>
61664
61665         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
61666         xrealloc, Instead, include "xalloc.h".
61667         (initbuffer): Don't cast xmalloc return value to char*.
61668         (readline): Reword comment.
61669         Don't cast xrealloc return value to char*
61670         Return NULL, not 0.
61671
61672 2001-12-09  Jim Meyering  <meyering@lucent.com>
61673
61674         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
61675         about `signed and unsigned type in conditional expression'.
61676         * lib/posixtm.c (posix_time_parse): Likewise.
61677
61678         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
61679
61680         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
61681         to avoid a pedantic warning.
61682
61683         * lib/getstr.c: Don't include assert.h.
61684         (getstr): Remove warning-evoking assertions.
61685         Return -1 if offset parameter is out of bounds.
61686         Change the type of a local from int to size_t.
61687
61688         * lib/strftime.c (my_strftime_localtime_r): Include this function
61689         definition in the `#if ! HAVE_TM_GMTOFF' block.
61690
61691         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
61692         Include xalloc.h instead.
61693
61694 2001-12-02  Jim Meyering  <meyering@lucent.com>
61695
61696         * lib/tempname.c: Don't declare getenv, thus reverting the change of
61697         2001-11-18.  It's no longer necessary, now that stdlib.h is always
61698         included.
61699
61700         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
61701         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
61702
61703 2001-11-30  Akim Demaille  <akim@epita.fr>
61704
61705         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
61706         before being defined.
61707
61708 2001-11-27  Paul Eggert  <eggert@twinsun.com>
61709
61710         * lib/quotearg.h (quotearg_n, quotearg_n_style):
61711         First arg is int, not unsigned.
61712         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
61713         (SIZE_MAX, UINT_MAX): New macros.
61714         (quotearg_n_options): Abort if N is negative.
61715         Avoid overflow check on hosts where size_t is 64 bits and int
61716         is 32 bits, as overflow is impossible there.
61717         Fix off-by-one typo that caused unnecessary reallocation.
61718
61719 2001-11-27  Jim Meyering  <meyering@lucent.com>
61720
61721         * lib/tempname.c: Merge with version from libc.
61722         * lib/regex.c: Likewise.
61723
61724         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
61725         systems for which STDC_HEADERS is 0, it was not included, resulting in
61726         a warning about an integer-to-pointer conversion problem with getenv.
61727         Reported by Volker Borchert.
61728
61729 2001-11-26  Jim Meyering  <meyering@lucent.com>
61730
61731         * lib/gtod.h: Remove file.
61732         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
61733         * lib/gettimeofday.c: Don't include gtod.h.
61734         (GTOD_init): Remove function.
61735         (rpl_gettimeofday): Do its job here instead, rather than aborting.
61736         Suggestion from Volker Borchert.
61737
61738 2001-11-23  Jim Meyering  <meyering@lucent.com>
61739
61740         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
61741         it.
61742         * lib/hash.c (struct hash_table): Define it here instead.
61743
61744 2001-11-22  Jim Meyering  <meyering@lucent.com>
61745
61746         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
61747
61748 2001-11-20  Jim Meyering  <meyering@lucent.com>
61749
61750         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
61751         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
61752
61753 2001-11-19  Jim Meyering  <meyering@lucent.com>
61754
61755         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
61756         directory.  Use "conftestXXXXXX" as the template.
61757         Suggestion from Paul Eggert.
61758
61759         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
61760         immediately, so the test doesn't mistakenly hit the max-open-files
61761         limit.
61762
61763 2001-11-18  Paul Eggert  <eggert@twinsun.com>
61764
61765         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
61766         (TEMPORARIES): New macro.
61767         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
61768         removes an artificial limitation (e.g. HP-UX 10.20, where
61769         TMP_MAX is 17576).
61770
61771 2001-11-18  Jim Meyering  <meyering@lucent.com>
61772
61773         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
61774
61775 2001-11-18  Jim Meyering  <meyering@lucent.com>
61776
61777         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
61778         on SunOS 4.
61779
61780         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
61781         files will be created before anything else.
61782
61783 2001-11-17  Paul Eggert  <eggert@twinsun.com>
61784
61785         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
61786         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
61787
61788 2001-11-17  Jim Meyering  <meyering@lucent.com>
61789
61790         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
61791         Prompted by a report from Bob Proulx.
61792
61793         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
61794         Instead, require UTILS_FUNC_MKSTEMP.
61795
61796 2001-11-17  Jim Meyering  <meyering@lucent.com>
61797
61798         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
61799         Now, that's done as part of AC_FUNC_STRTOD.
61800
61801 2001-11-17  Jim Meyering  <meyering@lucent.com>
61802
61803         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
61804         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
61805         rather than group writable.  Patch by Juan F. Codagnone.
61806
61807         * lib/readtokens.c: Remove explicit declarations of xmalloc and
61808         xrealloc, Instead, include "xalloc.h".
61809
61810         * lib/mountlist.c: Include unlocked-io.h after all system headers.
61811         Remove explicit declarations of xmalloc, xrealloc,
61812         and xstrdup.  Instead, include "xalloc.h".
61813
61814         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
61815         unlocked-io.h.
61816         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
61817         Likewise.
61818         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
61819
61820         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
61821         Reported by Padraig Brady.
61822
61823         * lib/mkstemp.c: #undef mkstemp.
61824         Include config.h.
61825         (rpl_mkstemp): Rename from mkstemp.
61826         Protoize.
61827
61828 2001-11-16  Jim Meyering  <meyering@lucent.com>
61829
61830         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
61831         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
61832         determine the amount of total physical memory, use pstat_getstatic.
61833         HPUX-11 doesn't define _SC_PHYS_PAGES.
61834         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
61835         If sysconf couldn't be used to determine the amount of available
61836         physical memory, use both pstat_getstatic and pstat_getdynamic.
61837         Based on a patch from Bob Proulx.
61838
61839 2001-11-10  Jim Meyering  <meyering@lucent.com>
61840
61841         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
61842         (jm_PREREQ): Use it.
61843
61844 2001-11-09  Jim Meyering  <meyering@lucent.com>
61845
61846         * m4/jm-macros.m4: Require autoconf-2.52f.
61847         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
61848         Use these AC_-prefixed names, not the AM_-prefixed ones.
61849
61850         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
61851
61852 2001-11-05  Jim Meyering  <meyering@lucent.com>
61853
61854         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
61855
61856 2001-11-04  Jim Meyering  <meyering@lucent.com>
61857
61858         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
61859         $DEFS.
61860
61861 2001-11-03  Jim Meyering  <meyering@lucent.com>
61862
61863         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
61864         of AC_DEFUN.
61865
61866         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
61867         know the name of the variable in the macro definition.
61868
61869 2001-11-03  Jim Meyering  <meyering@lucent.com>
61870
61871         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
61872         in argmatch_to_argument call.
61873
61874         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
61875         argument.
61876
61877         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
61878         e.g., a fault due to an attempt to free a NULL pointer.
61879
61880 2001-11-01  Jim Meyering  <meyering@lucent.com>
61881
61882         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
61883         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
61884
61885 2001-11-01  Jim Meyering  <meyering@lucent.com>
61886
61887         * lib/dirfd.c, lib/dirfd.h: New files.
61888         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
61889
61890         * lib/hash.c (hash_print) [TESTING]: Clean up.
61891
61892 2001-10-22  Paul Eggert  <eggert@twinsun.com>
61893
61894         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
61895         to avoid a warning if -Wall.
61896
61897 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
61898
61899         * README: New file
61900         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
61901         (per RMS's instructions, this is now the canonical source)
61902         * lgpl/, gpl/: New directories.
61903
61904 2001-10-21  Paul Eggert  <eggert@twinsun.com>
61905
61906         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
61907
61908 2001-10-21  Jim Meyering  <meyering@lucent.com>
61909
61910         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
61911         this code would end up calling gettext even in packages built
61912         with --disable-nls.
61913         * lib/getopt.c (_): Likewise.
61914         * lib/regex.c (_): Likewise.
61915
61916 2001-10-20  Paul Eggert  <eggert@twinsun.com>
61917
61918         * m4/error.m4 (jm_PREREQ_ERROR):
61919         Do not invoke AC_CHECK_FUNCS with strerror_r, as
61920         AC_FUNC_STRERROR_R does that.
61921         Check for strerror declaration.
61922
61923         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
61924         are supposed to have them these days.
61925         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
61926         Merge changes from latest Autoconf CVS.
61927         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
61928         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
61929         POSIX decided to standardize on the int flavor of strerror_r.
61930
61931 2001-10-20  Paul Eggert  <eggert@twinsun.com>
61932
61933         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
61934         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
61935         Use strerror_r that is only a macro, even if it is not a function.
61936         (strerror): Check for HAVE_DECL_STRERROR before declaring.
61937         (private_strerror): Use prototypes, not old-style function definition.
61938         (print_errno_message): New function.
61939         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
61940         char*-flavored one.
61941         (error_tail, error, error_at_line): Use it.
61942
61943 2001-10-11  Jim Meyering  <meyering@lucent.com>
61944
61945         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
61946         and quote_n (1, ... to avoid clobbering a buffer.
61947
61948 2001-10-05  Jim Meyering  <meyering@lucent.com>
61949
61950         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
61951         hash-pjw.h.
61952         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
61953         * lib/hash-pjw.h: New file.
61954
61955 2001-09-30  Jim Meyering  <meyering@lucent.com>
61956
61957         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
61958         `struct fsstat' has the `f_fstypename' member.
61959         Use that to define FS_TYPE, which is now used to make
61960         the getfsstat link test tighter.
61961
61962 2001-09-30  Jim Meyering  <meyering@lucent.com>
61963
61964         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
61965         Include <sys/ucred.h>, for Apple Darwin.
61966         Include sys/mount.h and sys/fs_types.h only if available.
61967         (FS_TYPE): Define.
61968         (read_filesystem_list): Use FS_TYPE.
61969
61970 2001-09-29  Paul Eggert  <eggert@twinsun.com>
61971
61972         * lib/exclude.c (excluded_filename): 0 -> false, since it's
61973         a boolean context.
61974
61975 2001-09-29  Jim Meyering  <meyering@lucent.com>
61976
61977         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
61978         [one-argument getmntent function]): Include stdio.h before mntent.h.
61979         SunOS 4.1.x needs it for the declaration of `FILE'.
61980         Patch by Volker Borchert.
61981
61982         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
61983         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
61984         sys/fs_types.h, and make the link-test for getfsstat guard #include
61985         directives with appropriate #if HAVE_*_H tests so that we can
61986         detect getfsstat on Apple Darwin1.3.7 systems.
61987         Reported by Nelson Beebe.
61988         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
61989
61990 2001-09-28  Paul Eggert  <eggert@twinsun.com>
61991
61992         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
61993         #defines strtoimax.  Also treat the other strto* functions
61994         like strtoimax.
61995
61996         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
61997         Check for strtoul and strtoumax,
61998         as those declarations are made even in the signed case.
61999         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
62000         Likewise, for strtol and strtoimax.
62001
62002 2001-09-28  Paul Eggert  <eggert@twinsun.com>
62003
62004         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
62005         #defines strtoimax.  Also treat the other strto* functions
62006         like strtoimax.
62007
62008         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
62009         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
62010         (strtoimax, strtoumax): Do not declare if already defined as a macro.
62011
62012 2001-09-26  Jim Meyering  <meyering@lucent.com>
62013
62014         Most macros in unlocked-io.h had the wrong number of arguments.
62015         * lib/gen-uio: New script.
62016         (USE_UNLOCKED_IO): Define to 1 if not already defined.
62017         * lib/unlocked-io.hin: Remove file.
62018         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
62019         rather than trying to embed it here.
62020         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
62021         Reported by Padraig Brady.
62022
62023 2001-09-25  Volker Borchert  <bt@teknon.de>
62024
62025         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
62026         `result'.
62027
62028 2001-09-24  Jim Meyering  <meyering@lucent.com>
62029
62030         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
62031
62032 2001-09-23  Jim Meyering  <meyering@lucent.com>
62033
62034         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
62035         instead of the mere test for existence of mntent.h.  The latter
62036         would get a false-positive on AIX 3.4 systems.
62037         In the outer getmntent if-block, don't die if neither of the getmntent
62038         tests succeeds.  Instead, just fall through and continue with the
62039         remaining tests.
62040
62041 2001-09-23  Jim Meyering  <meyering@lucent.com>
62042
62043         * lib/mountlist.c: Remove useless parentheses in #if directives.
62044         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
62045         the deprecated MOUNTED symbol is no longer defined in mntent.h.
62046
62047 2001-09-22  Jim Meyering  <meyering@lucent.com>
62048
62049         * m4/gettext.m4: New file.  From gettext.
62050         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
62051         * m4/progtest.m4: Likewise
62052         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
62053         * m4/glibc21.m4: Likewise.
62054
62055         * m4/libintl.m4: Remove.  No longer used.
62056
62057 2001-09-22  Jim Meyering  <meyering@lucent.com>
62058
62059         * lib/localcharset.c: Update from latest gettext.
62060         * lib/config.charset: Likewise.
62061
62062 2001-09-20  Jim Meyering  <meyering@lucent.com>
62063
62064         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
62065         strtoimax.
62066         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
62067         strtoumax.
62068
62069 2001-09-20  Jim Meyering  <meyering@lucent.com>
62070
62071         * lib/xstrtol.c (strtoimax): Guard declaration with
62072         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
62073         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
62074         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
62075         (strtoumax): Likewise, for completeness (it wasn't necessary).
62076
62077 2001-09-17  Paul Eggert  <eggert@twinsun.com>
62078
62079         * lib/strtoimax.c (HAVE_LONG_LONG):
62080         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
62081         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
62082         to work around bug in IBM C compiler.
62083
62084 2001-09-17  Jim Meyering  <meyering@lucent.com>
62085
62086         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
62087         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
62088         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
62089         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
62090         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
62091         whenever the right hand side need not be expanded by the shell.
62092
62093 2001-09-16  Paul Eggert  <eggert@twinsun.com>
62094
62095         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
62096         library.  It's not correct, as some older glibcs are buggy.
62097         fnmatch wasn't fixed until glibc 2.2.
62098
62099         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
62100         special shell magic here.
62101
62102 2001-09-16  Jim Meyering  <meyering@lucent.com>
62103
62104         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
62105         * m4/jm-macros.m4: Require it.
62106
62107 2001-09-16  Jim Meyering  <meyering@lucent.com>
62108
62109         * lib/mkdir.c: New file.
62110
62111 2001-09-15  Jim Meyering  <meyering@lucent.com>
62112
62113         * m4/jm-macros.m4: Check for help2man.
62114
62115 2001-09-11  Jim Meyering  <meyering@lucent.com>
62116
62117         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
62118         The body, by Paul Eggert, was moved here from configure.in.
62119         * m4/jm-macros.m4: Require UTILS_HOST_OS.
62120
62121 2001-09-04  Paul Eggert  <eggert@twinsun.com>
62122
62123         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
62124         (jm_PREREQ): Use it.
62125
62126 2001-09-04  Paul Eggert  <eggert@twinsun.com>
62127
62128         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
62129         Use ssize_t, not int, to store result of readlink.
62130         Check for ssize_t overflow as well as size_t overflow,
62131         as POSIX says the result of readlink is implementation-defined
62132         when ssize_t overflows.
62133         Remove unnecessary cast to char*.
62134         Use free+malloc instead of realloc, as the storage doesn't need
62135         to be preserved and it's clearer and can be more efficient that way.
62136         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
62137         * lib/xreadlink.h (xreadlink): Update prototype.
62138
62139 2001-09-04  Paul Eggert  <eggert@twinsun.com>
62140
62141         * lib/xgetcwd.c: Revert some of the previous change; intead,
62142         fix the HAVE_GETCWD_NULL code to behave more like the
62143         !HAVE_GETCWD_NULL code used to.
62144
62145         Include "xalloc.h".
62146         (xgetcwd): Do not return NULL when memory is exhausted; instead,
62147         invoke xalloc_die.
62148
62149 2001-09-03  Paul Eggert  <eggert@twinsun.com>
62150
62151         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
62152         sys/param.h, as pathmax.h includes them.
62153
62154 2001-09-03  Paul Eggert  <eggert@twinsun.com>
62155
62156         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
62157         (jm_PREREQ_XGETCWD): New macro.
62158
62159         * m4/getcwd.m4: New file.
62160
62161 2001-09-03  Paul Eggert  <eggert@twinsun.com>
62162
62163         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
62164         like the HAVE_GETCWD_NULL code.
62165         Include pathmax.h if not HAVE_GETCWD.
62166         Do not include xalloc.h.
62167         (INITIAL_BUFFER_SIZE): New symbol.
62168         Do not use xmalloc / xrealloc, since the caller is responsible for
62169         handling errors.  Preserve errno around `free' during failure.
62170         Do not overrun buffer when using getwd.
62171
62172 2001-09-03  Paul Eggert  <eggert@twinsun.com>
62173
62174         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
62175         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
62176         getcwd (NULL, 0).
62177
62178 2001-09-03  Paul Eggert  <eggert@twinsun.com>
62179
62180         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
62181         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
62182         spotted by Jim Meyering.
62183
62184 2001-09-03  Jim Meyering  <meyering@lucent.com>
62185
62186         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
62187         failure.
62188
62189 2001-09-02  Jim Meyering  <meyering@lucent.com>
62190
62191         * lib/error.c: Update from GNU libc.
62192
62193 2001-09-01  Jim Meyering  <meyering@lucent.com>
62194
62195         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
62196         Used by df.
62197
62198 2001-09-01  Jim Meyering  <meyering@lucent.com>
62199
62200         * lib/xreadlink.c: New file.
62201         * lib/xreadlink.h: New file.
62202         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
62203         xreadlink.h.
62204
62205         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
62206         doesn't conflict with sparc Solaris 7's definition in
62207         /usr/include/sys/int_types.h.
62208
62209         * lib/exclude.c: Use `""', not `<>' to #include non-system header
62210         files.
62211         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
62212         and strncasecmp as r-values.  Unixware didn't have declarations.
62213
62214 2001-08-31  Paul Eggert  <eggert@twinsun.com>
62215
62216         * lib/xstrtol.h: Add copyright notice.
62217         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
62218         LONGINT_INVALID_SUFFIX_CHAR.
62219
62220 2001-08-31  Paul Eggert  <eggert@twinsun.com>
62221
62222         * lib/xstrtol.c (strtoimax): New decl.
62223
62224 2001-08-31  Paul Eggert  <eggert@twinsun.com>
62225
62226         * lib/xgetcwd.c: Don't include pathmax.h.
62227         Include stdlib.h and unistd.h if available.
62228         Include xalloc.h.
62229         (xmalloc, xstrdup, free): Remove decls.
62230         (xgetcwd): Don't assume sizes fit in unsigned.
62231         Check for overflow when computing sizes.
62232         Simplify reallocation code.
62233
62234 2001-08-31  Paul Eggert  <eggert@twinsun.com>
62235
62236         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
62237         a directory's st_size can have an arbitrary value, so the old
62238         usage could waste an arbitrary amount of memory.  All uses
62239         changed.
62240         * lib/savedir.h: Update prototype.
62241
62242 2001-08-31  Paul Eggert  <eggert@twinsun.com>
62243
62244         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
62245
62246         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
62247         old strtoimax.c.
62248
62249         Also, make the following further changes to make this file's
62250         configuration more similar to that of strtol.c:
62251         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
62252         (strtoumax, uintmax_t, strtoull, strtol): Remove.
62253         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
62254         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
62255         changed to signed values.
62256
62257         And make the following changes as well:
62258         Fix copyright notice, as 1999 was missing.
62259         (verify): New macro.
62260         (strtoimax): Check sizes at compile-time, not run-time.
62261         Prefer strtol to strtoll if both work.
62262         (main): Remove; it was not that useful and was a pain to maintain.
62263
62264         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
62265
62266 2001-08-31  Jim Meyering  <meyering@lucent.com>
62267
62268         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
62269         Use an initial, malloc'd, buffer of length 128 rather than
62270         a statically allocated one of length 1024.
62271
62272 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62273
62274         Simplify code, partly by assuming autoconf 2.52 semantics.
62275
62276         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
62277
62278         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
62279         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
62280         All uses removed.
62281         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
62282         Move AC_REQUIRE to next-to-top level, to avoid confusion.
62283         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
62284         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
62285         jm_AC_HEADER_INTTYPES_H.
62286         * m4/jm-macros.m4 (jm_MACROS): Likewise.
62287
62288         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
62289
62290         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
62291         Quote first arg of AC_DEFUN.
62292         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
62293         since they are needed to parse the include file even if we need
62294         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
62295         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
62296         but with opposite signedness.
62297
62298 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62299
62300         Merge 'exclude' changes from tar 1.13.22.
62301         This fixes one or two unlikely storage allocation overflow bugs,
62302         but doesn't change user-visible behavior otherwise.
62303
62304 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62305
62306         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
62307         (jm_PREREQ_EXCLUDE): New macro.
62308
62309 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62310
62311         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
62312         tm to be declared.
62313
62314 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62315
62316         * lib/hash.c: Remove '2001' from copyright notice.
62317
62318 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62319
62320         * lib/full-write.h: New file.
62321         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
62322         * lib/full-write.c: Correct credits, as cccp.c no longer
62323         exists and anyway it was so heavily changed from the old cccp
62324         code as to be unrecognizable.  Include full-write.h.
62325         (full_write) Return size_t, with short writes meaning failure.
62326         All callers changed.  This fixes a bug with large buffers
62327         on 64-bit hosts.
62328         * lib/utime.c: Include full-write.h.
62329
62330 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62331
62332         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
62333         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
62334         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
62335         Include if available.
62336         (<xalloc.h>): Include
62337         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
62338         (verify): New macro.  Use it to verify that EXCLUDE macros do not
62339         collide with FNM macros.
62340         (struct patopts): New struct.
62341         (struct exclude): Use it, as exclude patterns now come with options.
62342         (new_exclude): Support above changes.
62343         (new_exclude, add_exclude_file):
62344         Initial size must now be a power of two to simplify overflow checking.
62345         (free_exclude, fnmatch_no_wildcards): New function.
62346         (excluded_filename): No longer requires options arg, as the options
62347         are determined by add_exclude.  Now returns bool, not int.
62348         (excluded_filename, add_exclude):
62349         Add support for the fancy new exclusion options.
62350         (add_exclude, add_exclude_file): Now takes int options arg.
62351         Check for arithmetic overflow when computing sizes.
62352         (add_exclude_file): xrealloc might modify errno, so don't
62353         realloc until after errno might be used.
62354
62355         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
62356         New macros.
62357         (free_exclude): New decl.
62358         (add_exclude, add_exclude_file): Now takes int options arg.
62359         (excluded_filename): No longer requires options arg, as the options
62360         are determined by add_exclude.  Now returns bool, not int.
62361
62362 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62363
62364         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
62365
62366 2001-08-27  Jim Meyering  <meyering@lucent.com>
62367
62368         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
62369
62370         * lib/version-etc.c (N_): Remove definition.
62371         Revert most of last change.
62372         Instead, simply don't mark the `Copyright...' string for translation.
62373         Based on advice from Paul Eggert.
62374
62375         * lib/strtoxmax.c: Tweak comment.
62376
62377 2001-08-26  Jim Meyering  <meyering@lucent.com>
62378
62379         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
62380
62381         * m4/xstrtoimax.m4: New file.
62382         * m4/xstrtoumax.m4: Add comments explaining why we
62383         AC_REPLACE_FUNCS(strtol).
62384
62385 2001-08-26  Jim Meyering  <meyering@lucent.com>
62386
62387         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
62388         of copyright with `%s' so translators don't get an untranslated
62389         message in 2002.
62390         (COPYRIGHT_YEAR): Define.
62391         (version_etc): Use fprintf rather than fputs.
62392         Suggestion from Ulrich Drepper.
62393
62394         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
62395
62396         * lib/strtoll.c: New file, from GNU libc.
62397         * lib/xstrtoimax.c: New file.
62398
62399         * lib/xstrtol.h: Add xstrtoimax.
62400         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
62401         * lib/strtoimax.c: New file.  Likewise, but first define
62402         STRTOUXMAX_SIGNED.
62403
62404         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
62405         ...
62406         * lib/strtoxmax.c: ... then renamed to this.
62407
62408 2001-08-18  Paul Eggert  <eggert@twinsun.com>
62409
62410         * m4/inttypes.m4: Add AC_PREREQ(2.13).
62411         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
62412         (jm_AC_TYPE_INTMAX_T): New macro.
62413         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
62414
62415         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
62416
62417         * m4/longlong.m4: Renamed from ulonglong.m4.
62418         * m4/inttypes.m4: Renamed from inttypes_h.m4.
62419         * m4/uintmax_t.m4: Removed.
62420
62421 2001-08-13  Paul Eggert  <eggert@twinsun.com>
62422
62423         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
62424         Port to Solaris 8, where 'sed' requires a space after the 'r'
62425         command, and where sh dislikes "$/".  Clean up the spacing a bit.
62426         Redirect output to $tmp just once.
62427
62428 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
62429
62430         * lib/addext.c (<errno.h>): Include.
62431         (errno): Declare if not defined.
62432         (addext): Work correctly when pathconf returns -1 and leaves
62433         errno alone because there is no limit.  Also, work even if
62434         pathconf returns a value greater than SIZE_MAX.
62435
62436 2001-08-12  Jim Meyering  <meyering@lucent.com>
62437
62438         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
62439         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
62440         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
62441         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
62442         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
62443         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
62444         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
62445         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
62446         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
62447         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
62448         utime.m4, utimes.m4, xstrtoumax.m4:
62449         Quote the first argument in each use of AC_DEFUN.
62450
62451 2001-08-12  Jim Meyering  <meyering@lucent.com>
62452
62453         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
62454         Simply `return getcwd (NULL, 0);'.
62455         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
62456         Use 1300 as initial value for length, not PATH_MAX.
62457
62458         * lib/pathmax.h: Clean up cpp syntax.
62459
62460 2001-08-12  Jim Meyering  <meyering@lucent.com>
62461
62462         * lib/gettimeofday.c: New file.
62463         * lib/gtod.h: New file.
62464         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
62465
62466 2001-08-05  Jim Meyering  <meyering@lucent.com>
62467
62468         * m4/jm-macros.m4: Require autoconf-2.52.
62469
62470 2001-08-04  Jim Meyering  <meyering@lucent.com>
62471
62472         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
62473         stmt, to get in sync with glibc.
62474
62475 2001-08-03  Paul Eggert  <eggert@twinsun.com>
62476
62477         The following changes are from gettext 0.10.39 as maintained by
62478         Bruno Haible.
62479
62480         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
62481         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
62482         with inverted sense.  All uses changed.
62483
62484         * lib/mbswidth.c: Don't include <limits.h>.
62485         Include <stdlib.h> and <string.h> unconditionally.
62486         (iswcntrl, mbsinit, ISCNTRL): New macros.
62487         (mbsnwidth): Use K&R style function declarations.
62488         Don't bother checking for MB_LEN_MAX == 1, since the compiler
62489         can optimize it when MB_CUR_MAX == 1.
62490         The width of control characters is zero, not 1.
62491
62492 2001-08-03  Paul Eggert  <eggert@twinsun.com>
62493
62494         The following changes are from gettext 0.10.39 as maintained by
62495         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
62496
62497         * m4/codeset.m4: Upgrade to serial AM1.
62498         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
62499         all uses changed.  Quote first arg of AC_DEFUN.
62500         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
62501
62502         * m4/iconv.m4: Upgrade to serial AM2.
62503         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
62504         Add --with-libconv-prefix.
62505         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
62506         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
62507         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
62508         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
62509         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
62510
62511         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
62512         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
62513         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
62514         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
62515         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
62516         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
62517         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
62518         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
62519         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
62520
62521         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
62522         string.h any more.
62523
62524         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
62525         not the default value.
62526
62527         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
62528         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
62529         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
62530         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
62531         Also check for iswcntrl, used for wcwidth fallback.
62532         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
62533         to Autoconf 2.13.
62534
62535 2001-08-03  Jim Meyering  <meyering@lucent.com>
62536
62537         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
62538         as it was in the original.  Reported by Paul Eggert.
62539
62540 2001-07-16  Jim Meyering  <meyering@lucent.com>
62541
62542         * m4/gettimeofday.m4: New file.
62543         Prompted by a report from Bernhard Baehr.
62544
62545 2001-07-15  Jim Meyering  <meyering@lucent.com>
62546
62547         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
62548         stuff. Now it's in ../Makefile.cfg.
62549
62550 2001-07-15  Jim Meyering  <meyering@lucent.com>
62551
62552         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
62553         (BUILT_SOURCES): Add unlocked-io.h.
62554         (io_functions): Define.
62555         (unlocked-io.h): New rule.
62556         (DISTCLEANFILES): Add unlocked-io.h.
62557         (all-local): Depend on unlocked-io.h, to ensure it is created.
62558
62559         * lib/unlocked-io.hin: New file
62560
62561         * lib/regex.c: Update from glibc.
62562
62563 2001-07-05  Jim Meyering  <meyering@lucent.com>
62564
62565         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
62566         recommendation.
62567         (libfetish_a_SOURCES): Put all .h files here instead.
62568         Remove a thus-exposed (better checks in automake) duplicate and
62569         two unnecessary .h files.
62570
62571 2001-07-04  Jim Meyering  <meyering@lucent.com>
62572
62573         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
62574         that generates jm-glibc-io.m4 so that it doesn't trigger any make
62575         distcheck failure.
62576
62577 2001-07-02  Jim Meyering  <meyering@lucent.com>
62578
62579         The following changes were prompted by suggestions from Bruno Haible.
62580
62581         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
62582         is now generated.
62583         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
62584         definition of EXTRA_DIST.
62585         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
62586         ensure that the generated file is created/updated whenever the list
62587         of $(unlocked_functions) is changed.
62588         (jm-glibc-io.m4): New rule.
62589         (unlocked-io.h): New rule -- currently unused.
62590
62591 2001-06-24  Jim Meyering  <meyering@lucent.com>
62592
62593         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
62594         unmatched right bracket, rather than kludging it with an extra,
62595         falsely-matching quote in a comment.  Patch by Akim Demaille.
62596
62597 2001-06-11  Jim Meyering  <meyering@lucent.com>
62598
62599         * lib/regex.c: Update from GNU libc.
62600
62601 2001-05-27  Jim Meyering  <meyering@lucent.com>
62602
62603         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
62604         Check for ut_type in struct utmp.
62605
62606 2001-05-27  Jim Meyering  <meyering@lucent.com>
62607
62608         * lib/readutmp.h (UT_TYPE): Define.
62609
62610 2001-05-24  Jim Meyering  <meyering@lucent.com>
62611
62612         * lib/argmatch.c: Include "quote.h".
62613         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
62614         quote function.  Reported by Göran Uddeborg.
62615
62616 2001-05-22  Jim Meyering  <meyering@lucent.com>
62617
62618         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
62619         now that we use the package-supplied version unconditionally.
62620         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
62621
62622 2001-05-21  Jim Meyering  <meyering@lucent.com>
62623
62624         * m4/regex.m4: Change a couple backticks to single quotes to avoid
62625         shell syntax errors.
62626
62627 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
62628
62629         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
62630
62631 2001-05-20  Paul Eggert  <eggert@twinsun.com>
62632
62633         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
62634         Don't bother to check library strftime, since
62635         we'll be using our own my_strftime function anyway.
62636         Define my_strftime instead of strftime.
62637
62638 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
62639
62640         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
62641         which is not yet declared.
62642
62643 2001-05-15  Jim Meyering  <meyering@lucent.com>
62644
62645         * m4/regex.m4: Use proper quoting so brackets appear in the test
62646         program.
62647         Reported by, and with help from, Bruno Haible.
62648
62649 2001-05-13  Jim Meyering  <meyering@lucent.com>
62650
62651         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
62652         undefined.
62653
62654 2001-05-11  Paul Eggert  <eggert@twinsun.com>
62655
62656         dirname code cleanup.  base_name now behaves more compatibly
62657         with POSIX basename when given file names that have trailing
62658         slashes, and similarly for dir_name.  Add new primitives
62659         base_len and dir_len.  Put the directory-name-related decls
62660         into dirname.h.
62661
62662         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
62663         * lib/backupfile.c (base_name): Likewise.
62664         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
62665         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
62666         * lib/makepath.c (strip_trailing_slashes): Likewise.
62667         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
62668         ISSLASH): Likewise.
62669         * lib/rename.c (strip_trailing_slashes): Likewise.
62670         * lib/same.c (base_name): Likewise.
62671         * lib/stripslash.c (ISSLASH): Likewise.
62672
62673         * lib/addext.c: Include <dirname.h> after size_t is defined.
62674         * lib/backupfile.c: Likewise.
62675
62676         * lib/addext.c (addext): Use base_len to trim redundant
62677         trailing slashes instead of doing it ourselves.
62678         But do not trim the last slash if it is not redundant.
62679
62680         * lib/backupfile.c (find_backup_file_name,
62681         max_backup_version): Use base_len instead of rolling it ourselves.
62682         Handle the case of "" and (on DOS) "C:" correctly.
62683
62684         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
62685         needed. Include <string.h>, <dirname.h>.
62686         (base_name): Allow file names ending in slashes, other than names
62687         that are all slashes.  In this case, return the basename followed
62688         by the slashes.  This is more general, and can be used in places
62689         where the original base_name purposely had an assertion failure.
62690         (base_len): New function.
62691
62692         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
62693         Do not include <assert.h>; no longer needed.
62694         Include xalloc.h.
62695         (memrchr): Remove decl.
62696         (dir_name_r): Remove.
62697         (dir_len): Renamed from dirlen.  All callers changed.
62698         Rewrite in terms of base_name, for simplicity and consistency.
62699         (dir_name): Never return NULL.  All callers changed.
62700         Do not include <stdlib.h> in test program; no longer needed.
62701         return 0; is fine for test program.
62702
62703         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
62704         New macros.
62705         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
62706
62707         * lib/path-concat.c (path_concat): Use base_len to compute
62708         base length, not strlen; this means we cannot rely on memcpy
62709         to null-terminate.
62710
62711         * lib/same.c (STREQ): Remove.
62712         (same_name): Handle the case where the basename ends in trailing '/'.
62713
62714         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
62715         a slash was stripped.  Do not strip the last slash after a
62716         file system prefix.
62717
62718 2001-05-11  Paul Eggert  <eggert@twinsun.com>
62719
62720         * lib/Makefile.am (libfetish_a_SOURCES):
62721         Add strftime.c, since we now compile it on all hosts.
62722
62723         * lib/strftime.c (my_strftime):
62724         Define to nstrftime if emacs, but only if my_strftime is not defined.
62725         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
62726         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
62727         Add one more extra argument: a nanoseconds value.
62728         All uses changed.
62729         (ns): New macro.
62730         (my_strftime function): Add %N format.
62731         (emacs_strftimeu): Renamed from emacs_strftime,
62732         with extra ut argument.
62733
62734 2001-05-09  Paul Eggert  <eggert@twinsun.com>
62735
62736         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
62737
62738 2001-04-21  Jim Meyering  <meyering@lucent.com>
62739
62740         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
62741         doesn't interfere.
62742
62743 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
62744
62745         * m4/ftruncate.m4: Check for chsize.
62746         Link with ftruncate.o unconditionally if ftruncate is missing.
62747         This was required when cross-compiling to i586-mingw32msvc.
62748
62749 2001-04-08  Jim Meyering  <meyering@lucent.com>
62750
62751         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
62752         recomputed; that's necessary when the offset spans a DST transition.
62753         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
62754
62755 2001-04-02  Jim Meyering  <meyering@lucent.com>
62756
62757         * lib/regex.h, regex.c: Update from GNU libc.
62758
62759 2001-03-24  Jim Meyering  <meyering@lucent.com>
62760
62761         * m4/jm-macros.m4: Require autoconf-2.49d.
62762
62763 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
62764
62765         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
62766
62767 2001-03-19  Paul Eggert  <eggert@twinsun.com>
62768
62769         * lib/version-etc.c (version_etc_copyright): Update to 2001.
62770
62771 2001-03-17  Jim Meyering  <meyering@lucent.com>
62772
62773         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
62774         now that the version in autoconf is equivalent.
62775         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
62776
62777         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
62778         Suggestion from Akim Demaille.
62779
62780         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
62781         (jm_PREREQ_TEMPNAME): New function.
62782
62783 2001-03-16  Paul Eggert  <eggert@twinsun.com>
62784
62785         * lib/tempname.c (uint64_t): Define to uintmax_t if
62786         not defined, and if UINT64_MAX is not defined.
62787         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
62788         Reported by John David Anglin.
62789
62790 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
62791
62792         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
62793         resolve alias if codeset is empty.
62794         * lib/config.charset (BeOS): Use wildcard syntax.
62795
62796 2001-03-13  Jim Meyering  <meyering@lucent.com>
62797
62798         * lib/path-concat.c (path_concat)
62799         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
62800         concatenating e.g., `C:' and `foo'.
62801         From Bruno Haible.
62802
62803 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
62804
62805         * lib/localcharset.c (locale_charset): Don't use
62806         setlocale(LC_CTYPE,NULL). Don't return NULL.
62807         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
62808
62809 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
62810
62811         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
62812         support for DOS/DJGPP.
62813
62814 2001-03-01  Paul Eggert  <eggert@twinsun.com>
62815
62816         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
62817         lacks mkstemp.  Compile our own tempname.c if we compile our own
62818         mkstemp.c, as mkstemp relies on tempname.
62819
62820 2001-03-01  Jim Meyering  <meyering@lucent.com>
62821
62822         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
62823         AH_VERBATIM really does output its argument verbatim.
62824
62825 2001-02-28  Paul Eggert  <eggert@twinsun.com>
62826
62827         * lib/Makefile.am (libfetish_a_SOURCES):
62828         Add dup-safer.c, fopen-safer.c.
62829         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
62830
62831         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
62832         * lib/unistd-safer.h: New files.
62833
62834 2001-02-25  Paul Eggert  <eggert@twinsun.com>
62835
62836         The mkstemp replacement is taken from glibc 2.2.2, with some
62837         portability fixes for use outside glibc, as follows:
62838
62839         * lib/tempname.c (struct_stat64): New macro.
62840         (direxists, __gen_tempname): Use it.
62841         This avoids a portability problem with Solaris 8.
62842
62843         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
62844         (<stddef.h>, <stdint.h>, <string.h>):
62845         Include only if STDC_HEADERS || _LIBC.
62846         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
62847         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
62848         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
62849         (__set_errno): Define this macro if <errno.h> doesn't.
62850         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
62851         Define these macros if <stdio.h> doesn't.
62852         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
62853         Define these macros if <sys/stat.h>
62854         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
62855         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
62856         __xstat64): Define if not _LIBC.
62857         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
62858         (__gen_tempname): Invoke gettimeofday only if
62859         HAVE_GETTIMEOFDAY || _LIBC;
62860         otherwise, fall back on plain "time".
62861         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
62862
62863         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
62864
62865         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
62866
62867 2001-02-18  Paul Eggert  <eggert@twinsun.com>
62868
62869         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
62870
62871 2001-02-17  Paul Eggert  <eggert@twinsun.com>
62872
62873         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
62874         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
62875         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
62876         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
62877
62878 2001-02-17  Paul Eggert  <eggert@twinsun.com>
62879
62880         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
62881         Remove workaround macros for hosts that have mbrtowc but not
62882         mbstate_t, as we now insist on proper declarations for both
62883         before using mbrtowc.
62884
62885 2001-02-17  Jim Meyering  <meyering@lucent.com>
62886
62887         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
62888         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
62889         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
62890         UnixWare 7.1.1.
62891
62892         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
62893         rather than AC_CACHE_VAL.
62894
62895 2001-02-17  Jim Meyering  <meyering@lucent.com>
62896
62897         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
62898         around included file name.
62899
62900         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
62901
62902         * lib/strftime.c: Update from GNU libc (the only changes were to
62903         comments).
62904
62905 2001-02-17  Jim Meyering  <meyering@lucent.com>
62906
62907         * lib/regex.c: Update from libc.
62908
62909 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
62910
62911         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
62912         clash.
62913
62914 2001-02-16  Paul Eggert  <eggert@twinsun.com>
62915
62916         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
62917         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
62918         Reported by Mark Hounschell via Paul Eggert.
62919
62920 2001-02-07  Jim Meyering  <meyering@lucent.com>
62921
62922         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
62923
62924 2001-02-05  Jim Meyering  <meyering@lucent.com>
62925
62926         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
62927         it includes the patch required for `large file' support with at least
62928         HP-UX's 10.20 /bin/cc.
62929
62930 2001-02-03  Jim Meyering  <meyering@lucent.com>
62931
62932         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
62933         AS_IF, now that it works once again (mysteriously).
62934         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
62935
62936 2001-01-30  Jim Meyering  <meyering@lucent.com>
62937
62938         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
62939         * m4/chown.m4: Rename conftestchown to conftest.chown.
62940         * m4/rename.m4: s/conftestdir/conftest.d1/ and
62941         s/conftestdir2/conftest.d2/.
62942         * m4/utimes.m4: s/conftestdata/conftest.data/
62943         Inspired by Pavel Roskin's change in autoconf.
62944
62945 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
62946
62947         * lib/config.charset: Update for FreeBSD 4.2.
62948
62949 2001-01-27  Jim Meyering  <meyering@lucent.com>
62950
62951         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
62952         a use of AS_IF.
62953         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
62954
62955 2001-01-26  Jim Meyering  <meyering@lucent.com>
62956
62957         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
62958         quotearg.c includes it.
62959
62960 2001-01-26  Jim Meyering  <meyering@lucent.com>
62961
62962         * lib/quotearg.c: Include stddef.h.
62963         * lib/quote.c: Include stddef.h.
62964         Reported by Axel Kittenberger.
62965
62966         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
62967         line in double quotes so that it evokes a better diagnostic.
62968         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
62969         Reported by Axel Kittenberger.
62970
62971 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
62972
62973         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
62974         as if it was a `charset'.
62975
62976 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
62977
62978         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
62979         has const.
62980
62981 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
62982
62983         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
62984         to avoid a warning.  Add back 'const' to inptr.
62985
62986 2001-01-20  Jim Meyering  <meyering@lucent.com>
62987
62988         Be sure that headers are checked before used in code compiled
62989         for the type checks.
62990         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
62991         In place of that, invoke jm_CHECK_ALL_TYPES.
62992         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
62993         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
62994         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
62995         The check for ssize_t was mistakenly run before the test for unistd.h.
62996
62997         The configure-time check for stdbool.h was missing.
62998         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
62999         (jm_PREREQ_HASH): New function.
63000
63001 2001-01-17  Jim Meyering  <meyering@lucent.com>
63002
63003         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
63004         for autoconf-2.49c.
63005         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
63006
63007 2001-01-16  Jim Meyering  <meyering@lucent.com>
63008
63009         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
63010         From Bruno Haible.
63011
63012 2001-01-14  Jim Meyering  <meyering@lucent.com>
63013
63014         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
63015         foo and bar.  Create conftestdir/ in the script, not in the C code.
63016         Remove directories in the script, not in the C code.
63017         Remove conftestdir{,2} before trying to create the directory.
63018         Make the entire configure script fail if the mkdir fails.
63019
63020 2001-01-14  Jim Meyering  <meyering@lucent.com>
63021
63022         * lib/rename.c: New file.  From Volker Borchert.
63023         Include stdlib.h, string.h or strings.h, and xalloc.h.
63024         Use strip_trailing_slashes rather than open-coding it.
63025
63026 2001-01-03  Paul Eggert  <eggert@twinsun.com>
63027
63028         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
63029
63030 2001-01-03  Jim Meyering  <meyering@lucent.com>
63031
63032         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
63033         of local `inptr' to avoid warning with some system declarations of
63034         iconv.
63035
63036 2001-01-02  Volker Borchert  <bt@teknon.de>
63037
63038         * m4/rename.m4: New file.
63039         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
63040
63041 2001-01-01  Jim Meyering  <meyering@lucent.com>
63042
63043         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
63044         even on systems with utmpx.h.  It's necessary for the declaration of
63045         utmp's ut_user member.  Reported by Andreas Jaeger.
63046
63047         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
63048         available. They are required for the declarations of getgrgid and
63049         getpwuid resp.
63050         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
63051         Reported by Andreas Jaeger.
63052
63053 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
63054
63055         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
63056         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
63057         so `make install' also works in VPATH builds.
63058
63059 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
63060
63061         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
63062         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
63063         can be used in subdirectories.
63064
63065 2000-12-29  Paul Eggert  <eggert@twinsun.com>
63066
63067         * lib/modechange.c: Do not assume that mode_t uses the
63068         traditional octal encoding.  E.g. "chmod 1 FOO" should set
63069         the other-execute bit of FOO even if S_IXOTH != 1.
63070
63071         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
63072         WOTH, XOTH, ALLM): New macros.
63073         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
63074          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
63075         Use them.
63076         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
63077         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
63078         (mode_compile):
63079         No need to use uintmax_t; unsigned long is long enough.
63080         Don't bother to get suffix since we don't use it.
63081
63082 2000-12-26  Jim Meyering  <meyering@lucent.com>
63083
63084         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
63085         better with autoheader.
63086
63087 2000-12-24  Jim Meyering  <meyering@lucent.com>
63088
63089         * lib/hash.c (is_prime): Return explicit boolean values.
63090         (hash_get_first): Return NULL to appease Irix5.6's 89.
63091         Reported by Nelson Beebe.
63092
63093 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
63094
63095         * lib/localcharset.c (locale_charset): Add support for Win32.
63096
63097 2000-12-18  Paul Eggert  <eggert@twinsun.com>
63098
63099         * lib/physmem.h, lib/physmem.c: New files.
63100
63101         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
63102         (noinst_HEADERS): Add physmem.h.
63103
63104         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
63105         't' for compatibility with Solaris 8 sort.
63106
63107 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
63108
63109         * lib/config.charset: Add support for BeOS.
63110
63111 2000-12-17  Jim Meyering  <meyering@lucent.com>
63112
63113         * m4/dos.m4 (jm_AC_DOS): New file and macro.
63114         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
63115
63116 2000-12-16  Jim Meyering  <meyering@lucent.com>
63117
63118         This bug had a serious impact on chown: `chown N:M FILE' (for integer
63119         N and M) would have treated it like `chown N:N FILE'.
63120
63121         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
63122
63123 2000-12-16  Jim Meyering  <meyering@lucent.com>
63124
63125         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
63126         SHELLS_FILE to a file name that's useful on djgpp systems.
63127         Include stdlib.h.
63128         (ADDITIONAL_DEFAULT_SHELLS): Define.
63129         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
63130         Based mostly on a patch from Prashant TR.
63131
63132 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
63133
63134         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
63135         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
63136         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
63137
63138 2000-12-08  Andreas Schwab  <schwab@suse.de>
63139
63140         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
63141         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
63142
63143 2000-12-07  Jim Meyering  <meyering@lucent.com>
63144
63145         * lib/stripslash.c (ISSLASH): Define.
63146         (strip_trailing_slashes): Use ISSLASH rather than comparing against
63147         `/'.
63148         From Prashant TR.
63149
63150         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
63151         (dir_name_r): Declare this function as static.
63152         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
63153         manifest itself on a name containing a mix of slashes and
63154         backslashes.
63155         Make this function work with names starting with a DOS-style
63156         drive letter and colon prefix.
63157         (dir_name): Append `.' if necessary.
63158         Based mostly on patches from Prashant TR and Eli Zaretskii.
63159
63160         * lib/dirname.h (dir_name_r): Remove prototype.
63161
63162 2000-12-06  Paul Eggert  <eggert@twinsun.com>
63163
63164         * m4/off_t-format.m4: Remove this file.
63165         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
63166
63167 2000-12-06  Jim Meyering  <meyering@lucent.com>
63168
63169         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
63170         replacement strtoull, we may well need the replacement strtoul, too.
63171         Check for declarations of strtoul and strtoull.
63172         Check for strtol.  Mainly as a cue to cause automake to include
63173         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
63174         Check for limits.h -- strtol.c needs it.
63175
63176 2000-12-05  Jim Meyering  <meyering@lucent.com>
63177
63178         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
63179
63180 2000-12-04  Jim Meyering  <meyering@lucent.com>
63181
63182         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
63183         Also include memory.h, stdlib.h, unistd.h if appropriate.
63184         Reported by Andreas Jaeger (conflicting declaration of malloc).
63185
63186 2000-12-02  Jim Meyering  <meyering@lucent.com>
63187
63188         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
63189         * m4/jm-macros.m4 (jm_MACROS): require it.
63190
63191 2000-12-02  Jim Meyering  <meyering@lucent.com>
63192
63193         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
63194
63195 2000-12-01  Paul Eggert  <eggert@twinsun.com>
63196
63197         * lib/memrchr.c: Include <config.h> before any system include file.
63198
63199 2000-11-30  Jim Meyering  <meyering@lucent.com>
63200
63201         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
63202
63203 2000-11-30  Jim Meyering  <meyering@lucent.com>
63204
63205         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
63206
63207 2000-11-29  Paul Eggert  <eggert@twinsun.com>
63208
63209         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
63210
63211 2000-11-26  Jim Meyering  <meyering@lucent.com>
63212
63213         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
63214
63215 2000-11-22  Paul Eggert  <eggert@twinsun.com>
63216
63217         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
63218         size of (size_t) -1; it's not portable.
63219
63220 2000-11-17  Jim Meyering  <meyering@lucent.com>
63221
63222         * lib/strstr.c: Update from GNU libc.
63223
63224 2000-11-17  Akim Demaille  <akim@epita.fr>
63225
63226         * lib/obstack.h: Formatting changes.
63227         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
63228         prevent type checking.
63229         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
63230         cast the value to (void *): assigning a `foo *' to a `void *'
63231         variable is valid.
63232         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
63233
63234 2000-11-16  Jim Meyering  <meyering@lucent.com>
63235
63236         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
63237
63238 2000-11-11  Jim Meyering  <meyering@lucent.com>
63239
63240         * lib/error.c: Add a couple #includes, merging from GNU libc version.
63241
63242 2000-11-10  Jim Meyering  <meyering@lucent.com>
63243
63244         * lib/obstack.h: Update from GNU libc.
63245         * lib/obstack.c: Likewise.
63246
63247 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
63248
63249         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
63250
63251 2000-11-06  Paul Eggert  <eggert@twinsun.com>
63252
63253         * lib/getusershell.c (setusershell): Use rewind rather than
63254         fseek/fseeko, to avoid configuration hassles with fseeko.
63255         Don't bother opening SHELLS_FILE if shellstream is NULL;
63256         it's not necessary.
63257
63258 2000-11-05  Jim Meyering  <meyering@lucent.com>
63259
63260         * lib/makepath.h (make_dir): Declare.
63261         * lib/makepath.c (make_dir): Remove `static' attribute.
63262         Tweak a comment.
63263
63264 2000-11-04  Jim Meyering  <meyering@lucent.com>
63265
63266         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
63267
63268 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
63269
63270         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
63271         last one in a bucket, advance to the next bucket.
63272
63273 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
63274
63275         * lib/fnmatch.c: Do not comment out all the code if we are using
63276         the GNU C library, because in some cases we are replacing buggy
63277         code in the GNU C library itself.
63278
63279 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
63280
63281         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
63282         (regex_compile): Catch bogus \(\1\).
63283
63284 2000-10-30  Paul Eggert  <eggert@twinsun.com>
63285
63286         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
63287         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
63288         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
63289
63290 2000-10-30  Paul Eggert  <eggert@twinsun.com>
63291
63292         * lib/error.h, getline.h, modechange.h:
63293         Remove "2000" from Copyright line, as the file hasn't been
63294         changed this year other than in the copyright notice.
63295
63296         * lib/xalloc.h: Add "2000" to Copyright line, as this file
63297         was changed this year.
63298
63299 2000-10-29  Jim Meyering  <meyering@lucent.com>
63300
63301         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
63302         renaming.
63303         * m4/ls-mntd-fs.m4: Likewise
63304
63305 2000-10-29  Jim Meyering  <meyering@lucent.com>
63306
63307         * lib/xstat.in: Fix grammar in comment.
63308
63309 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
63310
63311         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
63312         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
63313         doesn't define __restrict_arr.
63314
63315 2000-10-28  Jim Meyering  <meyering@lucent.com>
63316
63317         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
63318         (jm_PREREQ_MEMCHR): New function.
63319
63320 2000-10-28  Jim Meyering  <meyering@lucent.com>
63321
63322         * lib/memchr.c: Update from libc.
63323         Adjust for portability:
63324         [HAVE_STDLIB_H]: Include stdlib.h.
63325         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
63326         Undef __memchr, too.
63327         [!weak_alias]: Define __memchr to memchr.
63328
63329         * lib/regex.c: Update from libc.
63330         * lib/regex.h: Likewise.
63331         * lib/getopt1.c: Likewise.
63332         * lib/memcmp.c: Likewise.
63333
63334         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
63335         Avoid using fseek, when possible -- it's broken by design.
63336         Patch by Ulrich Drepper.
63337
63338 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
63339
63340         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
63341         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
63342         Giving in to popular pressure to shut up the compiler with casts.
63343
63344 2000-10-26  Jim Meyering  <meyering@lucent.com>
63345
63346         * lib/strftime.c: Update from libc.
63347
63348 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
63349
63350         * regex.c: More `unsigned char' -> `re_char' changes.
63351         Also change several `int' into `re_wchar_t'.
63352         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
63353         (PUSH_FAILURE_POINTER): Don't cast any more.
63354         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
63355         We want GCC to complain, since this piece of code makes
63356         re_match non-reentrant, which *should* be fixed.
63357         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
63358         (EXTEND_BUFFER): Use RETALLOC.
63359         (SET_LIST_BIT): Don't cast.
63360         (re_wchar_t): New type.
63361         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
63362         that those two functions will always properly return.
63363         (IMMEDIATE_QUIT_CHECK): Cast to void.
63364         (analyse_first): Use recursion rather than an explicit stack.
63365         (re_compile_fastmap): Can't fail anymore.
63366         (re_search_2): Don't check re_compile_fastmap for failure.
63367         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
63368         Now also sets the new value (passed in a new argument).
63369         (re_match_2_internal): Use it.
63370         Also, use a new var `reg' of type size_t when looping through regs
63371         rather than reuse the inappropriate `mcnt'.
63372
63373 2000-10-25  Jim Meyering  <meyering@lucent.com>
63374
63375         * lib/obstack.c: Update from libc.
63376
63377 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
63378
63379         * regex.c (regex_compile): Change the way of handling a range from
63380         a char less than 256 to a char not less than 256.
63381
63382 2000-10-24  Andrew Innes  <andrewi@gnu.org>
63383
63384         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
63385         NT-Emacs only.
63386         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
63387         so that re_search functions only quit when callers expect them to.
63388
63389 2000-10-23  Jim Meyering  <meyering@lucent.com>
63390
63391         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
63392         wrong.  That set_locale call must not have any side effects.
63393         From Paul Eggert.
63394
63395 2000-10-22  Jim Meyering  <meyering@lucent.com>
63396
63397         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
63398         [CYCLIC]: Remove now-unused definition.
63399
63400         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
63401         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
63402         Suggestion from Ulrich Drepper.
63403
63404 2000-10-21  Jim Meyering  <meyering@lucent.com>
63405
63406         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
63407         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
63408         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
63409
63410 2000-10-21  Jim Meyering  <meyering@lucent.com>
63411
63412         * lib/dirname.c (memrchr): Declare if necessary.
63413         (dir_name): Remove the restriction that there be no
63414         trailing slashes.  Now, this code skips past them, effectively
63415         ignoring them.
63416         [TEST_DIRNAME] (main): New unit tests.
63417
63418         * lib/memrchr.c: New file from GNU libc.
63419         Undef __memrchr, too.
63420         [!weak_alias]: Define __memrchr to memrchr.
63421         Guard weak_alias use with `#ifdef weak_alias'.
63422
63423 2000-10-21  Jim Meyering  <meyering@lucent.com>
63424
63425         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
63426         (dir_name): Use dir_name_r.
63427         * lib/dirname.h (dir_name_r): Declare it.
63428
63429 2000-10-17  Jim Meyering  <meyering@lucent.com>
63430
63431         * lib/quote.h (PARAMS): Define and use.
63432         Reported by Akim Demaille.
63433
63434         * lib/getopt.c: Update from libc.
63435
63436 2000-10-16  Jim Meyering  <meyering@lucent.com>
63437
63438         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
63439         setlocale.
63440         From Jan Fedak.
63441
63442 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
63443
63444         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
63445
63446 2000-09-25  Jim Meyering  <meyering@lucent.com>
63447
63448         * lib/md5.h (rol): Define (from GnuPG).
63449
63450         * lib/sha.c: Give credit (GnuPG) where due.
63451         (M): Use rol rather than open-coding it.
63452         Add a FIXME comment.
63453
63454 2000-09-21  Jim Meyering  <meyering@lucent.com>
63455
63456         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
63457         Reported by Michael Stone.
63458
63459 2000-09-20  Jim Meyering  <meyering@lucent.com>
63460
63461         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
63462         (noinst_HEADERS): Add sha.h.
63463         Based on code from Scott G. Miller and from GnuPG.
63464
63465 2000-09-18  Jim Meyering  <meyering@lucent.com>
63466
63467         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
63468         LIBS. Otherwise, everyone ends up linking with -lelf for some
63469         configurations.
63470         Reported by Mike Stone.
63471
63472 2000-09-15  Jim Meyering  <meyering@lucent.com>
63473
63474         * lib/regex.c: Update from libc.
63475
63476 2000-09-10  Jim Meyering  <meyering@lucent.com>
63477
63478         * lib/getopt.c (_getopt_internal): Update from glibc.
63479
63480 2000-09-09  Jim Meyering  <meyering@lucent.com>
63481
63482         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
63483         think it should be used as a general replacement for isascii.
63484         * lib/fnmatch.c: Likewise.
63485         * lib/mbswidth.c: Likewise
63486         * lib/regex.c: Likewise.
63487
63488         Don't use atoi.
63489         * lib/userspec.c: Include sys/param.h and limits.h.
63490         Include xstrtol.h.
63491         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
63492         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
63493         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
63494         UID, GID.  Check range.
63495
63496 2000-09-06  Jim Meyering  <meyering@lucent.com>
63497
63498         * lib/getopt.c (_getopt_internal): Update from glibc.
63499
63500 2000-08-30  Jim Meyering  <meyering@lucent.com>
63501
63502         * lib/strftime.c: Merge in changes from GNU libc.
63503
63504 2000-08-26  Jim Meyering  <meyering@lucent.com>
63505
63506         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
63507         * m4/fpending.m4: New file.
63508
63509 2000-08-26  Jim Meyering  <meyering@lucent.com>
63510
63511         * lib/closeout.c: Include "__fpending.h".
63512         (close_stdout_status): Return right away if there's nothing to flush.
63513
63514         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
63515         * lib/__fpending.c: New file.
63516         * lib/__fpending.h: New file.
63517
63518 2000-08-20  Jim Meyering  <meyering@lucent.com>
63519
63520         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
63521         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
63522         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
63523
63524 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
63525
63526         Improve fileutils installation on systems where running
63527         programs (like install) can't be unlinked.
63528         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
63529         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
63530
63531 2000-08-07  Paul Eggert  <eggert@twinsun.com>
63532
63533         Standardize on "memory exhausted" instead of "Memory exhausted"
63534         or "virtual memory exhausted".
63535         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
63536         "virtual memory exhausted".
63537         * lib/same.c (same_name): Invoke xalloc_die instead of printing
63538         our own message.
63539         * lib/userspec.c (parse_user_spec): Likewise.
63540         * lib/bumpalloc.h: comment fix
63541         * lib/same.c, userspec.c: Include xalloc.h.
63542
63543         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
63544         not char *const and pointing to a constant array.
63545         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
63546         (xrealloc): Comment fix.
63547
63548         * lib/userspec.c (parse_user_spec):
63549         Don't translate a message until just before returning,
63550         to avoid unnecessary translation.
63551
63552 2000-08-07  Jim Meyering  <meyering@lucent.com>
63553
63554         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
63555         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
63556         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
63557         getgroups.c, gethostname.c, getopt.h, group-member.c,
63558         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
63559         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
63560         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
63561         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
63562         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
63563         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
63564         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
63565         yesno.c: Back out Copyright date changes for each file with no change
63566         this year.  This eases coordination with other programs using the same
63567         source code modules.  From Paul Eggert.
63568
63569 2000-08-06  Paul Eggert  <eggert@twinsun.com>
63570
63571         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
63572         not char, for compatibility with glibc 2.1.3 strftime.c.
63573
63574 2000-08-03  Greg McGary  <greg@mcgary.org>
63575
63576         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
63577         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
63578         (EXTEND_BUFFER): Use them.
63579
63580 2000-08-01  Jim Meyering  <meyering@lucent.com>
63581
63582         * lib/dirname.c (ISSLASH): Define.
63583         (BACKSLASH_IS_PATH_SEPARATOR): Define.
63584         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
63585         both `\' and `/' may be use as path separators.
63586         Based on a patch from Prashant TR.
63587
63588 2000-07-31  Paul Eggert  <eggert@twinsun.com>
63589
63590         * lib/quotearg.c (quotearg_n_options): Don't make the initial
63591         slot vector a constant, since it might get modified.
63592
63593 2000-07-31  Jim Meyering  <meyering@lucent.com>
63594
63595         * lib/xmalloc.c: Use `virtual memory exhausted', not
63596         `Memory exhausted'.
63597         * lib/obstack.c (print_and_abort): Likewise.
63598
63599 2000-07-30  Paul Eggert  <eggert@twinsun.com>
63600
63601         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
63602         buffer, so that the caller can always quote one small
63603         component of a "memory exhausted" message in slot 0.
63604         From a suggestion by Jim Meyering.
63605
63606 2000-07-30  Jim Meyering  <meyering@lucent.com>
63607
63608         * lib/makepath.c (make_path): Quote the other instance, too.
63609
63610         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
63611         (STATIC_BUF_SIZE): Define.
63612         (quotearg_n_options): Use only statically allocated storage when
63613         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
63614         than STATIC_BUF_SIZE.
63615
63616 2000-07-29  Jim Meyering  <meyering@lucent.com>
63617
63618         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
63619         * lib/dirname.c (dir_name): Likewise.
63620
63621         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
63622         `/'.
63623
63624         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
63625         (dir_name): Assert that there are no trailing slashes.
63626
63627 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
63628
63629         * lib/mbswidth.h (mbswidth): Add a flags argument.
63630         (mbswidth): New declaration.
63631         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
63632         * lib/mbswidth.c (mbswidth): Add a flags argument.
63633         (mbsnwidth): New function.
63634
63635 2000-07-24  Jim Meyering  <meyering@lucent.com>
63636
63637         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
63638
63639 2000-07-23  Paul Eggert  <eggert@twinsun.com>
63640
63641         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
63642
63643 2000-07-23  Paul Eggert  <eggert@twinsun.com>
63644
63645         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
63646         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
63647         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
63648         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
63649         invoke multibyte primitives.
63650
63651 2000-07-23  Paul Eggert  <eggert@twinsun.com>
63652
63653         * lib/quotearg.c:
63654         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
63655         so that mbstate_t is always defined.
63656
63657         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
63658         be 1 in at least one GCC installation, and this configuration
63659         error is likely to be common.  Ignoring MB_LEN_MAX hurts
63660         performance on hosts that have mbrtowc but have only unibyte
63661         locales, but I assume these hosts are rare.
63662
63663 2000-07-23  Paul Eggert  <eggert@twinsun.com>
63664
63665         * lib/mbswidth.c (_XOPEN_SOURCE):
63666         Don't define; this causes problems on Solaris 7.
63667         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
63668
63669 2000-07-23  Jim Meyering  <meyering@lucent.com>
63670
63671         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
63672         too: getgrgid, getpwuid, getuid.
63673
63674 2000-07-23  Jim Meyering  <meyering@lucent.com>
63675
63676         * lib/basename.c (base_name): Add an assertion.
63677
63678 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
63679
63680         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
63681         shadow its mbsinit function.
63682
63683 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
63684
63685         * lib/mbswidth.h: New file.
63686         * lib/mbswidth.c: New file.
63687         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
63688         (noinst_HEADERS): Add mbswidth.h.
63689
63690 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
63691
63692         * lib/config.charset: Add support for FreeBSD. Improve support for
63693         HP-UX and IRIX 6.
63694
63695 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
63696
63697         * m4/mbswidth.m4: New file.
63698         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
63699
63700 2000-07-15  Jim Meyering  <meyering@lucent.com>
63701
63702         * lib/makepath.c: Include quote.h.
63703         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
63704         corresponding argument in a `quote (...)' call.
63705         Give better diagnostics.
63706
63707         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
63708         (noinst_HEADERS): Add quote.h.
63709
63710         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
63711         from tar's src/misc.c.
63712         * lib/quote.h: New file.  Prototypes for same.
63713
63714 2000-07-14  Paul Eggert  <eggert@twinsun.com>
63715
63716         From a suggestion by Bruno Haible.
63717         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
63718         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
63719         to decide whether to define the BeOS workaround macro;
63720         this adjusts to the change to AC_MBSTATE_T.
63721
63722 2000-07-14  Jim Meyering  <meyering@lucent.com>
63723
63724         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
63725         jm_AC_TYPE_UINTMAX_T.
63726
63727 2000-07-13  Paul Eggert  <eggert@twinsun.com>
63728
63729         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
63730
63731         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
63732         quotearg_buffer_restyled): Add support for
63733         clocale_quoting_style.  Undo previous change to
63734         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
63735         and "{RIGHT QUOTATION MARK}" msgids.
63736
63737 2000-07-10  Paul Eggert  <eggert@twinsun.com>
63738
63739         From a suggestion by Bruno Haible.
63740         * m4/mbstate_t.m4 (AC_MBSTATE_T):
63741         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
63742         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
63743         and mbstate_t, to a single-part test that simply defines mbstate_t.
63744         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
63745         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
63746
63747 2000-07-10  Jim Meyering  <meyering@lucent.com>
63748
63749         * m4/strerror_r.m4: Mirror the correction made in autoconf.
63750
63751         * m4/gnu-source.m4: Output to confdefs.h directly.
63752         Suggestion from Akim Demaille.
63753
63754 2000-07-09  Paul Eggert  <eggert@twinsun.com>
63755
63756         The old behavior of quoting `like this' doesn't look good with
63757         newer, ISO-style fonts.  See:
63758         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
63759
63760         Instead, quote "like this" by default.  Let the translator
63761         tailor the locale-specific quoting behavior by providing
63762         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
63763
63764         * lib/quotearg.c (N_): New macro.
63765         (gettext_default): New function.
63766         (quotearg_buffer_restyled): Use
63767         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
63768         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
63769
63770 2000-07-09  Jim Meyering  <meyering@lucent.com>
63771
63772         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
63773         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
63774
63775         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
63776         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
63777
63778 2000-07-09  Jim Meyering  <meyering@lucent.com>
63779
63780         * lib/Most files: Update copyright dates to include 2000.
63781
63782 2000-07-08  Jim Meyering  <meyering@lucent.com>
63783
63784         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
63785         if not defined.
63786         (xgethostname): Remove now-unnecessary #ifdef.
63787         Move declaration of `err' into loop where it's used.
63788
63789 2000-07-05  Paul Eggert  <eggert@twinsun.com>
63790         and Bruno Haible  <haible@clisp.cons.org>
63791
63792         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
63793         only if the test for an object-type mbstate_t fails.  This
63794         prevents us from mistakenly reporting that mbstate_t is a
63795         system object type after we "#define mbstate_t int" to work
63796         around its lack.
63797
63798 2000-07-05  Paul Eggert  <eggert@twinsun.com>
63799         and Bruno Haible  <haible@clisp.cons.org>
63800
63801         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
63802
63803 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
63804
63805         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
63806         to strerror_r.
63807         Include <ctype.h> for use of isalpha.
63808
63809 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
63810
63811         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
63812         by allocating a larger buffer. Test the gethostname return value for
63813         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
63814         returns an error and ENAMETOOLONG isn't defined.
63815
63816 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
63817
63818         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
63819         dimension.
63820
63821 2000-07-04  Jim Meyering  <meyering@lucent.com>
63822
63823         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
63824         of the deprecated AC_CHECKING.
63825
63826 2000-07-04  Jim Meyering  <meyering@lucent.com>
63827
63828         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
63829         Reported by Bruno Haible.
63830
63831 2000-07-04  Jim Meyering  <meyering@lucent.com>
63832
63833         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
63834         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
63835         lacks mbrtowc.
63836
63837 2000-07-03  Paul Eggert  <eggert@twinsun.com>
63838
63839         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
63840         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
63841
63842 2000-07-03  Paul Eggert  <eggert@twinsun.com>
63843         and Bruno Haible  <haible@clisp.cons.org>
63844
63845         * lib/quotearg.c (mbrtowc):
63846         Assign to *pwc, and return 1 only if result is nonzero.
63847         (iswprint): Use ISPRINT when substituting our own mbrtowc.
63848
63849 2000-07-03  Jim Meyering  <meyering@lucent.com>
63850
63851         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
63852
63853 2000-07-03  Jim Meyering  <meyering@lucent.com>
63854
63855         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
63856         This is necessary to get a definition of e.g., UTMP_FILE on
63857         HP-UX 10.20.
63858         From Bob Proulx.
63859
63860 2000-07-02  Jim Meyering  <meyering@lucent.com>
63861
63862         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
63863
63864         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
63865         AC_LIBOBJ(function_name).
63866         * m4/chown.m4: Likewise.
63867         * m4/fnmatch.m4: Likewise.
63868         * m4/ftruncate.m4: Likewise.
63869         * m4/getgroups.m4: Likewise.
63870         * m4/getline.m4: Likewise.
63871         * m4/group-member.m4: Likewise.
63872         * m4/jm-macros.m4: Likewise.
63873         * m4/lstat.m4: Likewise.
63874         * m4/malloc.m4: Likewise.
63875         * m4/memcmp.m4: Likewise.
63876         * m4/nanosleep.m4: Likewise.
63877         * m4/putenv.m4: Likewise.
63878         * m4/realloc.m4: Likewise.
63879         * m4/regex.m4: Likewise.
63880         * m4/stat.m4: Likewise.
63881         * m4/strftime.m4: Likewise.
63882
63883 2000-07-02  Jim Meyering  <meyering@lucent.com>
63884
63885         * lib/quotearg.c (mbstate_t): Don't define here.
63886
63887 2000-07-02  Jim Meyering  <meyering@lucent.com>
63888
63889         * lib/nanosleep.c (SIGCONT): Define if not already defined.
63890
63891 2000-07-01  Jim Meyering  <meyering@lucent.com>
63892
63893         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
63894
63895 2000-07-01  Jim Meyering  <meyering@lucent.com>
63896
63897         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
63898         problem.
63899
63900 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
63901
63902         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
63903         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
63904
63905 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
63906
63907         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
63908         per change in ../m4/ls-mntd-fs.m4.
63909         (read_filesystem_list): Ignore symbolic links.
63910
63911 2000-06-29  Jim Meyering  <meyering@lucent.com>
63912
63913         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
63914         for declaration of strcmp.
63915
63916         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
63917
63918         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
63919         Avoid warning by casting result to `char *' to remove `const'.
63920
63921 2000-06-28  Jim Meyering  <meyering@lucent.com>
63922
63923         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
63924         included by quotearg.c, for which we perform this test.  From
63925         Bruno Haible.
63926
63927 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
63928
63929         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
63930         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
63931         <utmpx.h> exists, put readutmp.o into LIBOBJS.
63932
63933 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
63934
63935         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
63936
63937 2000-06-26  Paul Eggert  <eggert@twinsun.com>
63938
63939         savedir now sets errno on failure and invokes xmalloc to get memory.
63940         Fix a couple of other minor bugs while we're at it.
63941
63942         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
63943         (NAMLEN): Remove macro.
63944         (malloc, realloc): Remove decls.
63945         (stpcpy): Likewise.
63946         ("xalloc.h"): Include.
63947         (NAME_SIZE_DEFAULT): New macro.
63948         (savedir): Use xmalloc / xrealloc to allocate memory.
63949         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
63950         Skip "" directory entries.
63951         Use strlen to calculate directory entry length, since the old method
63952         is rarely used these days and isn't worth supporting.
63953         Don't use a pointer after freeing it.
63954         Check for integer overflow when calculating allocation size.
63955         Use memcpy to copy entries, instead of stpcpy.
63956         Set errno properly when returning NULL.
63957         Check for readdir error.
63958
63959 2000-06-26  Jim Meyering  <meyering@lucent.com>
63960
63961         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
63962
63963 2000-06-25  Jim Meyering  <meyering@lucent.com>
63964
63965         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
63966         Linux header bug when _XOPEN_SOURCE is defined to 500.
63967
63968 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
63969
63970         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
63971         deficiency.
63972
63973 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
63974
63975         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
63976         Include xalloc.h.
63977         Don't include <stdlib.h>.  Don't declare malloc, realloc.
63978
63979 2000-06-24  Jim Meyering  <meyering@lucent.com>
63980
63981         * m4/strerror_r.m4: Revive this file -- to try out an experimental
63982         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
63983         for which strerror does return char*, but which lacks a conveniently
63984         accessible declaration of the function.  If the compile-test says
63985         strerror_r doesn't work, then resort to a `run'-test that works on
63986         BeOS and segfaults on DEC Unix.
63987
63988 2000-06-24  Jim Meyering  <meyering@lucent.com>
63989
63990         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
63991
63992 2000-06-23  Paul Eggert  <eggert@twinsun.com>
63993
63994         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
63995         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
63996
63997 2000-06-23  Paul Eggert  <eggert@twinsun.com>
63998
63999         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
64000         (mbrtowc, mbstate_t): Define substitutes if
64001         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
64002         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
64003         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
64004
64005 2000-06-23  Jim Meyering  <meyering@lucent.com>
64006
64007         * m4/afs.m4: Add missing AC_MSG_RESULT.
64008         Reported by Bruno Haible.
64009
64010         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
64011         Suggestion from Bruno Haible.
64012
64013 2000-06-23  Jim Meyering  <meyering@lucent.com>
64014
64015         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
64016
64017 2000-06-21  Jim Meyering  <meyering@lucent.com>
64018
64019         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
64020
64021 2000-06-21  Jim Meyering  <meyering@lucent.com>
64022
64023         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
64024         (noinst_HEADERS): Add getstr.h.
64025
64026         * lib/getline.c (getstr): Move into a separate file.
64027         * lib/getstr.c (getstr): New file, extracted from getline.c, with
64028         the following changes: new parameter, delim2; both delim[12]
64029         parameters have type `int', not `char'.  The latter would lose
64030         with 8-bit delimiters.
64031         * lib/getstr.h: New file.
64032
64033 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
64034
64035         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
64036         than 1024, return a memory chunk of least possible size, instead
64037         of size PATH_MAX + 2. In the loop, increment the size proportionally.
64038         Use free/xmalloc instead of xrealloc to avoid copying for very long
64039         paths.
64040
64041 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
64042
64043         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
64044         the empty string.
64045
64046 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
64047
64048         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
64049         address, not strdup.  Include <stdlib.h> and don't declare free().
64050
64051 2000-06-19  Jim Meyering  <meyering@lucent.com>
64052
64053         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
64054
64055 2000-06-18  Jim Meyering  <meyering@lucent.com>
64056
64057         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
64058
64059         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
64060         `checking whether...' message to be consistent with that of the
64061         lstat test.
64062
64063 2000-06-18  Jim Meyering  <meyering@lucent.com>
64064
64065         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
64066         Besides, these days every porting target provides a mkdir function.
64067
64068         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
64069         needed. (this snippet comes from src/system.h).
64070
64071 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
64072
64073         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
64074
64075 2000-06-15  Paul Eggert  <eggert@twinsun.com>
64076
64077         * lib/human.c (adjust_value): New function.
64078         (human_readable_inexact): Apply rounding style even when
64079         printing approximate values.
64080
64081 2000-06-14  Paul Eggert  <eggert@twinsun.com>
64082
64083         * lib/human.c (human_readable_inexact): Allow an input block
64084         size that is not a multiple of the output block size, and vice versa.
64085         Reported by Piergiorgio Sartor.
64086
64087 2000-06-14  Paul Eggert  <eggert@twinsun.com>
64088
64089         * lib/getdate.y (get_date): Apply relative times after time
64090         zone indicator, not before.  Reported by Todd A. Jacobs.
64091
64092 2000-06-13  Jim Meyering  <meyering@lucent.com>
64093
64094         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
64095
64096         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
64097
64098 2000-06-12  Paul Eggert  <eggert@twinsun.com>
64099
64100         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
64101
64102 2000-06-12  Jim Meyering  <meyering@lucent.com>
64103
64104         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
64105         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
64106         optional argument.
64107         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
64108         the optional argument, `lib'.
64109
64110 2000-06-08  Jim Meyering  <meyering@lucent.com>
64111
64112         * m4/largefile.m4: Remove file (now that it's part of autoconf).
64113
64114 2000-06-04  Paul Eggert  <eggert@twinsun.com>
64115
64116         Rewrite largefile configuration so that we don't need to run
64117         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
64118         AC_CANONICAL_HOST in configure.in -- jmm]
64119
64120         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
64121         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
64122         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
64123         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
64124         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
64125         All uses changed.
64126         Instead of inspecting the output of getconf, try to compile the
64127         test program without and with the macro definition.
64128         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
64129         for getconf.  Instead, check for the needed flags by compiling
64130         test programs.
64131
64132 2000-06-04  Paul Eggert  <eggert@twinsun.com>
64133
64134         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
64135
64136 2000-06-04  Jim Meyering  <meyering@lucent.com>
64137
64138         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
64139         SunOS 4.1.4 for which gid_t is an unsigned type.
64140
64141 2000-06-03  Jim Meyering  <meyering@lucent.com>
64142
64143         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
64144         now that autoconf requires that.
64145
64146         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
64147         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
64148         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
64149
64150 2000-06-03  Jim Meyering  <meyering@lucent.com>
64151
64152         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
64153
64154 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
64155
64156         * m4/glibc21.m4: New file.
64157         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
64158
64159 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
64160
64161         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
64162         newer, don't install charset.alias.
64163         * lib/config.charset: Change the Linux/glibc rules so they become empty
64164         on glibc-2.1 or newer.
64165
64166 2000-06-02  Jim Meyering  <meyering@lucent.com>
64167
64168         * lib/mountlist.c: Back out last change.  Instead, do this...
64169         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
64170         me_dummy member using the same `ignore'-testing code.
64171         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
64172         fs_type strings.
64173         From Mark D. Roth.
64174
64175 2000-05-29  Jim Meyering  <meyering@lucent.com>
64176
64177         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
64178         mounts with the `ignore' attribute.  Based on a patch from
64179         Mark D. Roth.
64180
64181 2000-05-28  Jim Meyering  <meyering@lucent.com>
64182
64183         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
64184         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
64185         * m4/stat.m4: Likewise.
64186         * m4/lstat.m4: Likewise.
64187         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
64188
64189         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
64190         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
64191
64192 2000-05-26  Jim Meyering  <meyering@lucent.com>
64193
64194         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
64195
64196 2000-05-24  Jim Meyering  <meyering@lucent.com>
64197
64198         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
64199         autoconf requires that.
64200         * m4/lib-check.m4: Likewise.
64201         * m4/jm-macros.m4: Likewise.
64202         * m4/strftime.m4: Likewise.
64203
64204         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
64205         AC_CHECK_DECLS, now that autoconf requires that.
64206
64207 2000-05-22  Jim Meyering  <meyering@lucent.com>
64208
64209         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
64210         * m4/lstat.m4: Likewise.
64211
64212 2000-05-22  Jim Meyering  <meyering@lucent.com>
64213
64214         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
64215
64216 2000-05-20  Jim Meyering  <meyering@lucent.com>
64217
64218         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
64219         (jm_PREREQ): Use it.
64220
64221 2000-05-18  Jim Meyering  <meyering@lucent.com>
64222
64223         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
64224         back, too, since it may have been modified by allocate_entry.
64225         (hash_delete): Rewrite to use neither the assignment operator
64226         nor the comma operator in an if-expression.
64227
64228 2000-05-15  Paul Eggert  <eggert@twinsun.com>
64229
64230         * lib/closeout.c:
64231         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
64232         Remove; no longer needed.
64233         "quotearg.h": Add include.
64234         (file_name): Do not bother to explicitly initialize to NULL; it's less
64235         efficient on some hosts.
64236         (close_stdout_status): Remove test as to whether stdout was already
64237         closed; it breaks for the case "echo x | sort >&-".
64238         Quote file name colons.
64239         Do not assume that _("write error") lacks format strings.
64240
64241 2000-05-15  Jim Meyering  <meyering@lucent.com>
64242
64243         * lib/version-etc.c (version_etc_copyright): Update the copyright
64244         string used in all --version output.
64245
64246 2000-05-14  Jim Meyering  <meyering@lucent.com>
64247
64248         * lib/closeout.c (close_stdout_set_file_name): New function.
64249         (close_stdout_status): Use new file-scoped global.
64250         Return right away if fstat says the stdout file descriptor is invalid.
64251         * lib/closeout.h (close_stdout_set_file_name): Declare.
64252
64253 2000-05-10  Jim Meyering  <meyering@lucent.com>
64254
64255         * lib/closeout.c [default_exit_status]: New file-scoped variable.
64256         (close_stdout_set_status): New function.
64257         * lib/closeout.h (close_stdout_set_status): Declare.
64258
64259 2000-05-09  Jim Meyering  <meyering@lucent.com>
64260
64261         * m4/gettext.m4: Rename this...
64262         * m4/libintl.m4: ...to this.
64263
64264 2000-05-08  Jim Meyering  <meyering@lucent.com>
64265
64266         * lib/long-options.c: Don't include closeout.h.
64267         (parse_long_options): Don't call close_stdout for --version.
64268
64269 2000-05-06  Paul Eggert  <eggert@twinsun.com>
64270
64271         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
64272         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
64273         2.1.3 bug.  This avoids a clash when files like regex.c define
64274         _GNU_SOURCE.
64275
64276 2000-05-06  Jim Meyering  <meyering@lucent.com>
64277
64278         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
64279         (AC_REPLACE_FUNCS): Add strnlen.
64280
64281         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
64282         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
64283
64284         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
64285         AC_SEARCH_LIBS call for nanosleep.
64286         (LIB_NANOSLEEP): Set and AC_SUBST.
64287
64288 2000-05-06  Jim Meyering  <meyering@lucent.com>
64289
64290         * lib/strnlen.c: Undefine __strnlen and strnlen.
64291         [!weak_alias]: Define __strnlen to strnlen.
64292
64293         * lib/atexit.c: New file, from libiberty.
64294
64295 2000-05-06  Jim Meyering  <meyering@lucent.com>
64296
64297         * lib/closeout.c (close_stdout_status): Also check for errors on the
64298         stderr stream.
64299
64300 2000-05-05  Jim Meyering  <meyering@lucent.com>
64301
64302         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
64303         AC_SEARCH_LIBS call for clock_gettime.
64304         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
64305
64306         * m4/search-libs.m4: Update from autoconf.
64307
64308         su doesn't work on Solaris 2.6.
64309         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
64310         <shadow.h>.  Reported by Dragos Harabor.
64311
64312 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
64313
64314         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
64315         memcpy instead of xmalloc, xrealloc, path_concat.
64316         (locale_charset): Treat empty environment variables as absent.
64317         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
64318
64319 2000-05-04  Jim Meyering  <meyering@lucent.com>
64320
64321         * lib/getopt.c: Update from glibc.
64322         * lib/obstack.c: Likewise.
64323         * lib/obstack.h: Likewise.
64324         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
64325         file
64326
64327         * lib/regex.h: Likewise.
64328         * lib/strndup.c: Likewise.
64329         * lib/strnlen.c: New file, from glibc.
64330
64331 2000-05-03  Jim Meyering  <meyering@lucent.com>
64332
64333         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
64334
64335 2000-05-02  Paul Eggert  <eggert@twinsun.com>
64336
64337         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
64338         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
64339         compile-time test, rather than inspecting host and OS, to
64340         decide whether to define _LARGEFILE_SOURCE.
64341
64342 2000-05-01  Jim Meyering  <meyering@lucent.com>
64343
64344         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
64345
64346         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
64347         Based on a patch from Bruno Haible.
64348
64349 2000-05-01  Jim Meyering  <meyering@lucent.com>
64350
64351         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
64352
64353 2000-04-29  Jim Meyering  <meyering@lucent.com>
64354
64355         * lib/path-concat.c: Declare strdup only if it's not defined.
64356         * lib/canon-host.c: Likewise.
64357
64358 2000-04-28  Jim Meyering  <meyering@lucent.com>
64359
64360         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
64361         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
64362         is included first, then limits.h is included by locale.h by libintl.h.
64363         From John David Anglin.
64364
64365 2000-04-25  Jim Meyering  <meyering@lucent.com>
64366
64367         * lib/makepath.c (S_IRWXUGO): Define.
64368         (make_path): Always perform explicit chmod if MODE specifies any
64369         of the `special' permission bits.  Prompted by a bug report against
64370         install from Mate Wierdl and Joost van Baal.
64371
64372 2000-04-18  Jim Meyering  <meyering@lucent.com>
64373
64374         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
64375         (jm_PREREQ): Use it.
64376
64377 2000-04-18  Jim Meyering  <meyering@lucent.com>
64378
64379         * lib/README: New file.
64380
64381         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
64382         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
64383
64384 2000-04-17  Jim Meyering  <meyering@lucent.com>
64385
64386         Get it right :-)
64387         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
64388         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
64389         Suggestion from Akim Demaille.
64390
64391 2000-04-17  Jim Meyering  <meyering@lucent.com>
64392
64393         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
64394         the definition of it to rpl_strftime also defined-away the system's
64395         declaration.
64396
64397 2000-04-15  Jim Meyering  <meyering@lucent.com>
64398
64399         Use `C' to denote so-called `contiguous' files, the same way
64400         that tar does.
64401         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
64402         (ftypelet): Use S_ISCTG.
64403         From Michael Deutschmann.
64404
64405 2000-04-14  Jim Meyering  <meyering@lucent.com>
64406
64407         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
64408         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
64409         clobbered.
64410
64411 2000-04-14  Jim Meyering  <meyering@lucent.com>
64412
64413         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
64414
64415 2000-04-13  Jim Meyering  <meyering@lucent.com>
64416
64417         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
64418         AH_VERBATIM to insert required #ifndef into config.h.in.
64419         Suggestion from Akim Demaille.
64420
64421 2000-04-12  Jim Meyering  <meyering@lucent.com>
64422
64423         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
64424         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
64425         Christian Krackowizer.
64426
64427         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
64428         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
64429         (AC_SYS_LARGEFILE): Require.
64430         (AM_C_PROTOTYPES): Require.
64431
64432 2000-04-08  Jim Meyering  <meyering@lucent.com>
64433
64434         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
64435         names don't conflict.  Reported by Eli Zaretskii.
64436
64437 2000-04-07  Jim Meyering  <meyering@lucent.com>
64438
64439         * lib/putenv.c: Move inclusion of errno.h so it follows that of
64440         sys/types.h, to work around system header problems on AIX 3.2.5.
64441         From Bruno Haible.
64442
64443 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
64444
64445         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
64446         bug.  Deal with the different error behavior of Irix iconv.
64447
64448 2000-04-05  Paul Eggert  <eggert@twinsun.com>
64449
64450         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
64451         IRIX if the installer said otherwise.
64452
64453 2000-04-05  Jim Meyering  <meyering@lucent.com>
64454
64455         Portability tweaks required for ultrix4.3.
64456         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
64457         (jm_CHECK_DECLS): Add getutent to the list of functions.
64458         (_jm_DECL_HEADERS): Add utmpx.h.
64459         From John David Anglin.
64460
64461         * m4/strftime.m4: Back out the 2000-04-02 change.
64462         Instead of that change, simply undefine putenv in the test program.
64463
64464 2000-04-05  Jim Meyering  <meyering@lucent.com>
64465
64466         Portability tweaks required for ultrix4.3.
64467         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
64468         getutent.
64469         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
64470         * lib/canon-host.c: Declare strdup.
64471         * lib/path-concat.c: Likewise.
64472         From John David Anglin.
64473
64474 2000-04-04  Jim Meyering  <meyering@lucent.com>
64475
64476         Be more DOS 8.3-friendly.
64477         * lib/ref-add.sin: Renamed from ref-add.sed.in.
64478         * lib/ref-del.sin: Renamed from ref-del.sed.in.
64479         * lib/Makefile.am: Reflect renaming.
64480         Reported by Eli Zaretskii.
64481
64482         Use a temporary file name that won't clash with `charset.alias'
64483         in the DOS 8.3 name space.
64484         * lib/Makefile.am (charset_tmp): Define.
64485         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
64486         (uninstall-local): Likewise.
64487         Reported by Eli Zaretskii.
64488
64489 2000-04-03  Jim Meyering  <meyering@lucent.com>
64490
64491         * m4/gettext.m4: Fix typo in comment.
64492
64493         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
64494         textutils/configure.in).  Suggestion from Paul Eggert.
64495         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
64496
64497 2000-04-02  Paul Eggert  <eggert@twinsun.com>
64498
64499         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
64500         variable in the shell rather than using putenv, which isn't
64501         portable.  This avoids the configure-time inter-test dependency
64502         on the potentially-renamed putenv function.
64503
64504 2000-03-30  Paul Eggert  <eggert@twinsun.com>
64505
64506         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
64507         before checking struct stat.st_blksize, so that
64508         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
64509
64510 2000-03-29  Paul Eggert  <eggert@twinsun.com>
64511
64512         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
64513         since strftime.c uses HAVE_STRFTIME to decide whether to use
64514         the underlying strftime.
64515
64516 2000-03-29  Paul Eggert  <eggert@twinsun.com>
64517
64518         * lib/time/strftime.c (my_strftime): Make sure we call the system
64519         strftime, not ourselves, when invoking the underlying strftime.
64520
64521 2000-03-24  Jim Meyering  <meyering@lucent.com>
64522
64523         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
64524         (charset_alias): Define.
64525         (install-exec-local): Factor out common code.
64526         (uninstall-local): Split lines longer than 80.
64527         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
64528         (SUFFIXES): Define.
64529         (.sed.in.sed): New rule.  Don't redirect directly to $@.
64530         (CLEANFILES): Add ref-add.sed and ref-del.sed.
64531
64532 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
64533
64534         * lib/config.charset: Output a line containing "Packages using this
64535         file".
64536         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
64537         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
64538         ref-del.sed): New rules.
64539
64540 2000-03-17  Jim Meyering  <meyering@lucent.com>
64541
64542         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
64543         Otherwise, include <strings.h>
64544
64545 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
64546
64547         * lib/unicodeio.c (utf8_wctomb): New function.
64548         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
64549         format instead of in UCS-4 with platform dependent endianness.
64550
64551 2000-03-10  Jim Meyering  <meyering@lucent.com>
64552
64553         * m4/lib-check.m4: Look for getspnam in -lgen, too.
64554         From Marco Franzen.
64555
64556 2000-03-07  Paul Eggert  <eggert@twinsun.com>
64557
64558         * lib/savedir.c (savedir): Work even if directory size is
64559         negative; this can happen with some screwy NFS configurations.
64560
64561 2000-03-06  Jim Meyering  <meyering@lucent.com>
64562
64563         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
64564         if it's NULL (because we ran out of memory).  From Bruno Haible.
64565
64566 2000-03-05  Jim Meyering  <meyering@lucent.com>
64567
64568         * lib/localcharset.c ("path-concat.h"): Include.
64569         (get_charset_aliases): Use path_concat instead of ANSI string
64570         concatenation.
64571
64572         * lib/unicodeio.h (PARAMS): Define.
64573         Use it to guard prototype.
64574
64575 2000-03-04  Jim Meyering  <meyering@lucent.com>
64576
64577         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
64578         for lib/localcharset.c.
64579
64580 2000-03-04  Jim Meyering  <meyering@lucent.com>
64581
64582         * lib/Makefile.am (install-exec-local): Create $(libdir) before
64583         installing into it.
64584         (uninstall-local): Uncomment this rule so `make distcheck' works
64585         once again.
64586
64587         * lib/unicodeio.c (<errno.h>): Include it.
64588         (errno): Declare if not defined.
64589
64590         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
64591
64592         * lib/config.charset: New version, incorporating remarks from a linux
64593         i18n mailing list.  From Bruno Haible.
64594
64595 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
64596
64597         * m4/codeset.m4: New file.
64598         * m4/iconv.m4: New file.
64599         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
64600
64601 2000-03-03  Jim Meyering  <meyering@lucent.com>
64602
64603         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
64604
64605 2000-03-02  Jim Meyering  <meyering@lucent.com>
64606
64607         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
64608         the messages come out on separate lines.
64609
64610         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
64611         rather than jm_CHECK_DECLARATIONS.
64612         * m4/decl.m4: Remove now-unused file.
64613
64614         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
64615         geteuid.
64616
64617 2000-03-02  Jim Meyering  <meyering@lucent.com>
64618
64619         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
64620
64621 2000-03-01  Jim Meyering  <meyering@lucent.com>
64622
64623         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
64624         * lib/unicodeio.c: Likewise.
64625
64626 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
64627
64628         * lib/config.charset: New file.
64629         * lib/localcharset.c: New file.
64630         * lib/unicodeio.h, lib/unicodeio.c: New files.
64631         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
64632         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
64633         (noinst_HEADERS): Add unicodeio.h.
64634         (all-local, install-exec-local, charset.alias): New targets.
64635
64636 2000-02-28  Paul Eggert  <eggert@twinsun.com>
64637
64638         * lib/quotearg.c (ALERT_CHAR): New macro.
64639         (quotearg_buffer_restyled): Use it.
64640
64641 2000-02-27  Jim Meyering  <meyering@lucent.com>
64642
64643         * m4/check-decl.m4: Add getenv to the list.
64644
64645 2000-02-27  Jim Meyering  <meyering@lucent.com>
64646
64647         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
64648         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
64649
64650         * lib/backupfile.c: Guard inclusion of stdlib.h with
64651         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
64652         Declare malloc if needed.
64653
64654         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
64655         `#ifndef HAVE_DECL..'
64656         now that autoconf always defines the HAVE_DECL_ symbols.
64657         * lib/human.c: Likewise.
64658         * lib/same.c: Likewise.
64659         * lib/strtoumax.c: Likewise.
64660
64661         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
64662         declaration check was not run.
64663         * lib/hash.c: Likewise.
64664         * lib/human.c: Likewise.
64665         * lib/same.c: Likewise.
64666         * lib/strtoumax.c: Likewise.
64667
64668         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
64669         `.', then first look up the entire `.'-containing string as a login
64670         name.
64671
64672 2000-02-23  Jim Meyering  <meyering@lucent.com>
64673
64674         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
64675         in place of my hack.
64676
64677 2000-02-18  Paul Eggert  <eggert@twinsun.com>
64678
64679         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
64680         (textint): New typedef.
64681         (parser_control): Member year changed from int to textint.
64682         All uses changed.
64683         (YYSTYPE): Removed; replaced by %union with int and textint members.
64684         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
64685         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
64686         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
64687         (tSNUMBER, tUNUMBER): Now of type <textintval>.
64688         (date, number, to_year): Use width of number in digits, not its value,
64689         to determine whether it's a 2-digit year, or a 2-digit time.
64690         (yylex): Store number of digits of numeric tokens.
64691         Reported by John Kendall.
64692
64693         (parser_control): Changed from struct parser_control to typedef (for
64694         consistency).  All uses changed.
64695
64696         (tID): Removed; not used.
64697         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
64698
64699 2000-02-14  Paul Eggert  <eggert@twinsun.com>
64700
64701         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
64702         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
64703
64704 2000-02-12  Jim Meyering  <meyering@lucent.com>
64705
64706         * lib/userspec.c (ISDIGIT): Define it.
64707         (isdigit): Remove definition.
64708         (is_number): Use ISDIGIT, not isdigit.
64709         <libintl.h>: Include.
64710         (_ and N_): Define.
64711         (parse_user_spec): Mark translatable strings.
64712
64713 2000-02-10  Jim Meyering  <meyering@lucent.com>
64714
64715         With these changes, nanosleep.[ch] are finally enough like the other
64716         lib/* replacement files to compile on a few more losing systems.
64717
64718         * lib/nanosleep.h: Don't include config.h.
64719         Remove prototype from declaration of nanosleep.
64720         (PARAMS): Remove now-unneeded definition.
64721         * lib/nanosleep.c: #undef nanosleep.
64722         (rpl_nanosleep): Rename from nanosleep.
64723
64724 2000-02-10  Jim Meyering  <meyering@lucent.com>
64725
64726         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
64727         gnu_nanosleep to rpl_nanosleep.
64728
64729 2000-02-09  Jim Meyering  <meyering@lucent.com>
64730
64731         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
64732         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
64733
64734 2000-02-08  Akim Demaille  <akim@epita.fr>
64735
64736         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
64737         `[' and `]' and remove uses of `changequote'.
64738         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
64739         (AC_SYS_LARGEFILE): Likewise.
64740         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
64741         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
64742         of changequote.
64743         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
64744         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
64745         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
64746         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
64747
64748 2000-02-05  Jim Meyering  <meyering@lucent.com>
64749
64750         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
64751         Remove explicit use of AC_HEADER_TIME.  It is required by
64752         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
64753         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
64754         in autoconf whereby the expansion of the latter ended up preceding
64755         the expansion of its prerequisite, AC_HEADER_TIME.
64756         Reported by Volker Borchert.
64757
64758 2000-02-03  Jim Meyering  <meyering@lucent.com>
64759
64760         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
64761
64762 2000-02-03  Jim Meyering  <meyering@lucent.com>
64763
64764         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
64765         rather than with `#if HAVE_UTMPNAME'.
64766
64767 2000-02-02  Jim Meyering  <meyering@lucent.com>
64768
64769         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
64770         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
64771         Reported by Eli Zaretskii.
64772
64773 2000-02-01  Jim Meyering  <meyering@lucent.com>
64774
64775         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
64776
64777 2000-01-31  Jim Meyering  <meyering@lucent.com>
64778
64779         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
64780         functions.  Add the time.h and sys/time.h headers along with the
64781         AC_REQUIRE'ment of AC_HEADER_TIME.
64782
64783 2000-01-31  Jim Meyering  <meyering@lucent.com>
64784
64785         * lib/nanosleep.h (nanosleep): Guard declaration with
64786         `#if ! HAVE_DECL_NANOSLEEP'.
64787         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
64788         the declaration in that vendor's sys/timers.h.
64789         Reported by Christian Krackowizer.
64790
64791         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
64792         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
64793         (ISPRINT): Likewise.
64794         Reported by Tom Tromey.
64795
64796 2000-01-30  Jim Meyering  <meyering@lucent.com>
64797
64798         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
64799
64800         * m4/prereq.m4 (utmp_includes): Define.
64801         Check for ut_user and ut_name members in both struct utmpx
64802         and struct utmp.
64803
64804 2000-01-30  Jim Meyering  <meyering@lucent.com>
64805
64806         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
64807         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
64808         header files where only utmpx.ut_user is declared.
64809
64810         * lib/readutmp.h (UT_USER): Define.
64811
64812 2000-01-29  Jim Meyering  <meyering@lucent.com>
64813
64814         * m4/lib-check.m4: New file containing library-related checks from
64815         fileutils and sh-utils (textutils had none).
64816
64817 2000-01-28  Jim Meyering  <meyering@lucent.com>
64818
64819         * m4/perl.m4: Change format of warning message to look more like that
64820         from the missing script.  Suggestion from François Pinard.
64821
64822 2000-01-25  Jim Meyering  <meyering@lucent.com>
64823
64824         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
64825         well as time.h in the compile check.
64826         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
64827         Fix typo in cross-compiling case: s/yes/no/.
64828
64829 2000-01-23  Jim Meyering  <meyering@lucent.com>
64830
64831         * m4/jm-macros.m4: Move df-related tests here from
64832         fileutils/configure.in
64833
64834         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
64835         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
64836
64837         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
64838         s/space/ac_fsusage_space/.
64839         (jm_FILE_SYSTEM_USAGE): Take two parameters.
64840
64841         * m4/ftruncate.m4: New file (derived from part of
64842         fileutils/configure.in).
64843         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
64844         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
64845
64846         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
64847         AC_SUBST these here, rather than just in sh-util/configure.in, so
64848         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
64849         all the same.
64850         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
64851         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
64852         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
64853         (AC_SUBST(POW_LIBM)): Likewise.
64854         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
64855
64856 2000-01-23  Jim Meyering  <meyering@lucent.com>
64857
64858         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
64859         obstack.c.
64860
64861 2000-01-22  Jim Meyering  <meyering@lucent.com>
64862
64863         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
64864
64865         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
64866
64867         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
64868         configure.in
64869         (AC_CHECK_HEADERS): Likewise for sh-utils.
64870         (AC_CHECK_HEADERS): Likewise for textutils.
64871         Merge the three lists of headers.
64872
64873         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
64874         from fileutils' configure.in.
64875
64876         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
64877         code. Moved tests into their own function (_jm_DECL_HEADERS) in
64878         check-decl.m4.
64879
64880         * m4/check-decl.m4: Use #if rather than #ifdef.
64881         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
64882         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
64883         (_jm_DECL_HEADERS): Define new function.
64884         (jm_CHECK_DECLARATIONS): Require it.
64885
64886 2000-01-22  Jim Meyering  <meyering@lucent.com>
64887
64888         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
64889         [! HAVE_DECL_STRTOULL]: Declare strtoull.
64890         Required for some AIX systems.  Reported by Christian Krackowizer.
64891         [TESTING] (main): New function.
64892
64893         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
64894         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
64895         letters.
64896
64897         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
64898         iswprint.
64899
64900         * lib/strverscmp.c (ISDIGIT): Define.
64901         (strverscmp): Use ISDIGIT, not isdigit.
64902
64903 2000-01-19  Jim Meyering  <meyering@lucent.com>
64904
64905         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
64906         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
64907         defines `struct timespec' in <sys/time.h>
64908
64909         * m4/c-bs-a.m4: Remove uses of changequote altogether.
64910         Thanks to Akim for explaining.
64911
64912 2000-01-17  Paul Eggert  <eggert@twinsun.com>
64913
64914         * lib/nanosleep.c (nanosleep):
64915         Don't use SA_INTERRUPT to decide whether to call sigaction, as
64916         POSIX.1 doesn't require SA_INTERRUPT and some systems
64917         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
64918         it's been part of POSIX.1 since day 1 (in 1988).
64919
64920 2000-01-17  Jim Meyering  <meyering@lucent.com>
64921
64922         * lib/interlock: Remove unused file.  Reported by François Pinard.
64923
64924 2000-01-16  Paul Eggert  <eggert@twinsun.com>
64925
64926         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
64927         alert, backslash, formfeed, and vertical tab unnecessarily in
64928         shell quoting style.
64929
64930 2000-01-16  Jim Meyering  <meyering@lucent.com>
64931
64932         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
64933         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
64934         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
64935         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
64936
64937 2000-01-16  Jim Meyering  <meyering@lucent.com>
64938
64939         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
64940         because the latter didn't work.
64941
64942 2000-01-15  Jim Meyering  <meyering@lucent.com>
64943
64944         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
64945         (AC_REPLACE_FUNCS): Add memcpy and memset.
64946         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
64947         Add strpbrk.
64948         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
64949
64950 2000-01-12  Jim Meyering  <meyering@lucent.com>
64951
64952         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
64953         (jm_PREREQ): Use it.
64954         (jm_PREREQ_READUTMP): New macro.
64955         (jm_PREREQ): Use it.
64956
64957 2000-01-11  Paul Eggert  <eggert@twinsun.com>
64958
64959         Quote multibyte characters correctly.
64960         * m4/c-bs-a.m4: New file.
64961         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
64962         (jm_PREREQ): Use it.
64963
64964 2000-01-11  Paul Eggert  <eggert@twinsun.com>
64965
64966         * m4/uintmax_t.m4: Port to autoconf 2.13.
64967
64968 2000-01-08  Jim Meyering  <meyering@ascend.com>
64969
64970         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
64971         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
64972
64973 2000-01-04  Jim Meyering  <meyering@ascend.com>
64974
64975         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
64976         jm_STRUCT_DIRENT_D_TYPE.
64977         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
64978         jm_STRUCT_DIRENT_D_INO.
64979         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
64980         jm_STRUCT_UTIMBUF.
64981         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
64982         renamings.
64983         * m4/utime.m4: Likewise.
64984
64985         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
64986         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
64987
64988 2000-01-03  Paul Eggert  <eggert@twinsun.com>
64989
64990         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
64991         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
64992
64993 2000-01-02  Jim Meyering  <meyering@ascend.com>
64994
64995         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
64996         remember if this is necessary.
64997
64998 1999-12-26  Jim Meyering  <meyering@ascend.com>
64999
65000         * m4/jm-macros.m4: Use it here.
65001         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
65002
65003 1999-12-23  Jim Meyering  <meyering@ascend.com>
65004
65005         * m4/jm-macros.m4: Check for clock_gettime (moved from
65006         fileutils/configure.in)
65007         Check for gettimeofday.
65008
65009 1999-12-20  Jim Meyering  <meyering@ascend.com>
65010
65011         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
65012         autoconf-2.14a-1999-12-20.
65013
65014 1999-12-19  Jim Meyering  <meyering@ascend.com>
65015
65016         * m4/lstat-slash.m4: New file.
65017         * m4/jm-macros.m4: Use the new macro:
65018         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
65019
65020 1999-12-07  Jim Meyering  <meyering@ascend.com>
65021
65022         * m4/perl.m4: Require that File::Compare be available, too.
65023         Too many systems seem to lack it.
65024
65025         * m4/strftime.m4: Add checks for most of the cpp macros tested in
65026         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
65027
65028 1999-11-18  Paul Eggert  <eggert@twinsun.com>
65029
65030         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
65031         problem with the QNX 4.25 shell, which doesn't propagate exit
65032         status of failed commands inside shell assignments.
65033
65034 1999-11-17  Jim Meyering  <meyering@ascend.com>
65035
65036         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
65037
65038 1999-11-07  Jim Meyering  <meyering@ascend.com>
65039
65040         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
65041
65042 1999-11-06  Jim Meyering  <meyering@ascend.com>
65043
65044         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
65045         * m4/jm-macros.m4 (jm_MACROS): Use it here.
65046
65047 1999-11-05  Jim Meyering  <meyering@ascend.com>
65048
65049         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
65050         configure.in of textutils, fileutils, and sh-utils into this one
65051         (shared between those packages) file.
65052         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
65053         AC_STRUCT_ST_BLKSIZE.
65054
65055 1999-11-03  Jim Meyering  <meyering@ascend.com>
65056
65057         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
65058         of AC_CHECK_TYPE checks includes unistd.h.
65059         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
65060         Suggestion from Akim Demaille.
65061
65062 1999-10-30  Jim Meyering  <meyering@ascend.com>
65063
65064         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
65065         m4-quoted string.
65066         * m4/ls-mntd-fs.m4: Likewise.
65067         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
65068         * m4/jm-winsz1.m4: Likewise.
65069
65070         * m4/const.m4: Remove file, since the fix made it into the experimental
65071         version of autoconf.
65072         * m4/mktime.m4: Likewise.
65073
65074         * m4/check-type.m4: Remove file, now that the latest version of
65075         AC_CHECK_TYPE takes a third arg to specify additional #includes.
65076
65077         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
65078         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
65079         AC_CHECK_TYPE.
65080
65081 1999-10-04  Jim Meyering  <meyering@ascend.com>
65082
65083         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
65084
65085 1999-09-22  Paul Eggert  <eggert@twinsun.com>
65086
65087         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
65088         2.95.1 bug with HP-UX 10.20.
65089
65090 1999-09-17  Jim Meyering  <meyering@ascend.com>
65091
65092         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
65093         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
65094         due to missing strdup (against sh-utils-2.0).
65095
65096 1999-08-29  Jim Meyering  <meyering@ascend.com>
65097
65098         * m4/jm-macros.m4: Require jm_BISON.
65099         * m4/bison.m4: New file.
65100
65101 1999-08-17  Paul Eggert  <eggert@twinsun.com>
65102
65103         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
65104         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
65105
65106 1999-08-05  Jim Meyering  <meyering@ascend.com>
65107
65108         * m4/getline.m4: Rename test file from conftestdata to conftest.data
65109         to avoid conflicts with `conftest' on 8+3 filesystems.
65110         Suggestion from Eli Zaretskii.
65111
65112 1999-08-04  Jim Meyering  <meyering@ascend.com>
65113
65114         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
65115         fileutils and sh-utils (textutils's getline test was inadequate).
65116         (AM_FUNC_GETLINE): Run this test.
65117         (AC_CHECK_FUNCS): Check for getdelim.
65118         Reported by Bob Proulx.
65119
65120 1999-08-02  Jim Meyering  <meyering@ascend.com>
65121
65122         * m4/jm-macros.m4: Add a comment.
65123
65124 1999-08-01  Paul Eggert  <eggert@twinsun.com>
65125
65126         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
65127         <inttypes.h> defines strtoumax as a macro (and not as a
65128         function).
65129
65130 1999-08-01  Paul Eggert  <eggert@twinsun.com>
65131
65132         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
65133         that we can shift, multiply and divide unsigned long long
65134         values; Ultrix cc can't do it.
65135
65136 1999-08-01  Paul Eggert  <eggert@twinsun.com>
65137
65138         * m4/mktime.m4: New file, which is a preview of what should appear
65139         in the next public autoconf release.
65140
65141 1999-08-01  Paul Eggert  <eggert@twinsun.com>
65142
65143         * m4/lfs.m4: Remove this file.
65144         * m4/largefile.m4: New file.  It contains the old contents of
65145         lfs.m4, except that all names with prefix AC_LFS have been
65146         changed to use the prefix AC_SYS_LARGEFILE instead, to be
65147         compatible with future autoconf versions.  Also, some minor m4
65148         quoting problems have been fixed.
65149
65150 1999-08-01  Paul Eggert  <eggert@twinsun.com>
65151
65152         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
65153         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
65154         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
65155         and simplify the shell code.
65156
65157 1999-08-01  Jim Meyering  <meyering@ascend.com>
65158
65159         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
65160         m4.
65161
65162 1999-07-20  Jim Meyering  <meyering@ascend.com>
65163
65164         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
65165
65166 1999-07-15  Jim Meyering  <meyering@ascend.com>
65167
65168         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
65169
65170 1999-05-22  Jim Meyering  <meyering@ascend.com>
65171
65172         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
65173
65174 1999-05-20  Jim Meyering  <meyering@ascend.com>
65175
65176         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
65177         Add a colon after each `then' in case $4 is empty.
65178
65179 1999-05-16  Jim Meyering  <meyering@ascend.com>
65180
65181         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
65182
65183 1999-05-10  Jim Meyering  <meyering@ascend.com>
65184
65185         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
65186
65187         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
65188         AC_FUNC_MKTIME.
65189
65190 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
65191
65192         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
65193
65194 1999-05-04  Paul Eggert  <eggert@twinsun.com>
65195
65196         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
65197         not CPPFLAGS, so that linking works correctly in IRIX.
65198
65199 1999-04-30  Paul Eggert  <eggert@twinsun.com>
65200
65201         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
65202
65203 1999-04-20  Paul Eggert  <eggert@twinsun.com>
65204
65205         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
65206         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
65207         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
65208         jm_AC_TYPE_UNSIGNED_LONG_LONG.
65209         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
65210
65211         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
65212
65213 1999-04-20  Jim Meyering  <meyering@ascend.com>
65214
65215         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
65216         AC_REPLACE xstroull if necessary.  From Paul Eggert.
65217         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
65218
65219 1999-04-18  Jim Meyering  <meyering@ascend.com>
65220
65221         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
65222         * m4/jm-macros.m4: Use it.
65223
65224 1999-04-06  Jim Meyering  <meyering@ascend.com>
65225
65226         * m4/strftime.m4: Remove test for %f.
65227
65228 1999-03-29  Jim Meyering  <meyering@ascend.com>
65229
65230         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
65231         superset of the AC_TYPE_* checks in the textutils, fileutils,
65232         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
65233         AC_TYPE_PID_T.
65234
65235 1999-03-28  Jim Meyering  <meyering@ascend.com>
65236
65237         * m4/jm-macros.m4: Define GNU_PACKAGE here.
65238         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
65239         replaced e.g., in the *.sh files of the sh-utils.
65240
65241 1999-03-20  Jim Meyering  <meyering@ascend.com>
65242
65243         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
65244         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
65245         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
65246
65247 1999-03-19  Jim Meyering  <meyering@ascend.com>
65248
65249         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
65250
65251 1999-03-12  Jim Meyering  <meyering@ascend.com>
65252
65253         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
65254
65255 1999-03-07  Jim Meyering  <meyering@ascend.com>
65256
65257         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
65258         declared.
65259
65260 1999-02-17  Jim Meyering  <meyering@ascend.com>
65261
65262         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
65263         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
65264
65265 1999-02-07  Jim Meyering  <meyering@ascend.com>
65266
65267         * m4/group-member.m4: New file -- extracted from sh-utils'
65268         configure.in.
65269
65270         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
65271         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
65272
65273 1999-02-06  Jim Meyering  <meyering@ascend.com>
65274
65275         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
65276         * m4/fnmatch.m4: Likewise.
65277         * m4/getgroups.m4: Likewise.
65278         * m4/lstat.m4: Likewise.
65279         * m4/malloc.m4: Likewise.
65280         * m4/putenv.m4: Likewise.
65281         * m4/realloc.m4: Likewise.
65282         * m4/regex.m4: Likewise.
65283         * m4/stat.m4: Likewise.
65284         * m4/strftime.m4: Likewise.
65285         Suggestion from Alain Magloire.
65286
65287         * m4/chown.m4: Use `.$ac_objext', not `.o'.
65288         * m4/fnmatch.m4: Likewise.
65289         * m4/getgroups.m4: Likewise.
65290         * m4/getline.m4: Likewise.
65291         * m4/lstat.m4: Likewise.
65292         * m4/malloc.m4: Likewise.
65293         * m4/memcmp.m4: Likewise.
65294         * m4/putenv.m4: Likewise.
65295         * m4/realloc.m4: Likewise.
65296         * m4/regex.m4: Likewise.
65297         * m4/stat.m4: Likewise.
65298         * m4/strftime.m4: Likewise.
65299         Suggestion from Alain Magloire.
65300
65301         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
65302         an argument.
65303
65304         * m4/regex.m4: Add a run-time Test for proper operation of
65305         re_compile_pattern.
65306
65307 1999-01-31  Jim Meyering  <meyering@ascend.com>
65308
65309         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
65310
65311 1999-01-30  Jim Meyering  <meyering@ascend.com>
65312
65313         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
65314
65315         * m4/jm-mktime.m4: Make this a wrapper around the official
65316         AM_FUNC_MKTIME rather than my private copy, now that the official one
65317         is up to date.
65318         * m4/mktime.m4: Remove file.
65319
65320         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
65321         * m4/uptime.m4: Likewise.
65322         * m4/uintmax_t.m4: Likewise.
65323
65324 1999-01-28  Jim Meyering  <meyering@ascend.com>
65325
65326         * m4/jm-macros.m4: Use jm_AFS.
65327         * m4/afs.m4: New file (from fileutils' configure.in).
65328
65329         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
65330         * m4/chown.m4: Likewise.
65331         * m4/d-ino.m4: Likewise.
65332         * m4/d-type.m4: Likewise.
65333         * m4/fnmatch.m4: Likewise.
65334         * m4/getgroups.m4: Likewise.
65335         * m4/gettext.m4: Likewise.
65336         * m4/jm-mktime.m4: Likewise.
65337         * m4/jm-winsz2.m4: Likewise.
65338         * m4/lcmessage.m4: Likewise.
65339         * m4/ls-mntd-fs.m4: Likewise.
65340         * m4/malloc.m4: Likewise.
65341         * m4/memcmp.m4: Likewise.
65342         * m4/putenv.m4: Likewise.
65343         * m4/realloc.m4: Likewise.
65344         * m4/st_mtim.m4: Likewise.
65345         * m4/strftime.m4: Likewise.
65346
65347 1999-01-16  Jim Meyering  <meyering@ascend.com>
65348
65349         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
65350         (ARGMATCH_DIE_DECL): Define.
65351
65352 1999-01-12  Jim Meyering  <meyering@ascend.com>
65353
65354         * m4/Makefile.am.in: Rewrite to avoid using fmt.
65355         Reported by Lars Hecking.
65356
65357 1999-01-10  Jim Meyering  <meyering@ascend.com>
65358
65359         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
65360         gross kludge.
65361         * m4/inttypes_h.m4: Likewise.
65362         * m4/lstat.m4: Likewise.
65363         * m4/malloc.m4: Likewise.
65364         * m4/readdir.m4: Likewise.
65365         * m4/realloc.m4: Likewise.
65366         * m4/st_dm_mode.m4: Likewise.
65367         * m4/stat.m4: Likewise.
65368         * m4/utimbuf.m4: Likewise.
65369         * m4/utimes.m4: Likewise.
65370
65371         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
65372         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
65373         comments in config.h.in are meaningful.
65374
65375         * m4/jm-macros.m4: Require autoconf-2.13 here.
65376
65377         * m4/regex.m4: By default, don't use the included regex.c on systems
65378         with glibc 2.  Suggestion from Uli Drepper.
65379
65380 1999-01-02  Jim Meyering  <meyering@ascend.com>
65381
65382         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
65383
65384 1998-12-18  Jim Meyering  <meyering@ascend.com>
65385
65386         * m4/Makefile.am.in (Makefile.am): Simplify rule.
65387         Based on a suggestion from Lars Hecking.
65388
65389 1998-11-16  Paul Eggert  <eggert@twinsun.com>
65390
65391         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
65392
65393 1998-11-16  Jim Meyering  <meyering@ascend.com>
65394
65395         * m4/lfs.m4: Double-quote the `uname...` expression.
65396
65397 1998-11-14  Jim Meyering  <meyering@ascend.com>
65398
65399         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
65400         * m4/stat.m4: Likewise.
65401
65402 1998-11-03  Jim Meyering  <meyering@ascend.com>
65403
65404         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
65405         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
65406
65407 1998-10-18  Jim Meyering  <meyering@ascend.com>
65408
65409         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
65410
65411 1998-10-17  Jim Meyering  <meyering@ascend.com>
65412
65413         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
65414         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
65415         calls for those previously hard-coded headers.  Instead, take a new
65416         parameter.
65417         (jm_CHECK_DECLARATIONS): Reflect interface change.
65418         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
65419         (jm_CHECK_DECL_LOCALTIME_R): New macro.
65420
65421         * m4/mktime.m4: Test for spring-forward gap before long-running test.
65422
65423 1998-10-14  Jim Meyering  <meyering@ascend.com>
65424
65425         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
65426         instead of "TZ=America/Vancouver".  From Paul Eggert.
65427
65428 1998-10-11  Jim Meyering  <meyering@ascend.com>
65429
65430         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
65431         This adds a test for a recently added compatibility fix for mktime.c.
65432         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
65433
65434 1998-09-27  Jim Meyering  <meyering@ascend.com>
65435
65436         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
65437
65438         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
65439         ../configure.in, including a change from Gordon Matzigkeit to allow
65440         cross-compiling for the Hurd.
65441
65442         * m4/glibc.m4: New file/macro to test for the GNU C Library
65443         versions 1 and 2.  From Gordon Matzigkeit.
65444         Indent.
65445
65446 1998-09-21  Jim Meyering  <meyering@ascend.com>
65447
65448         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
65449
65450 1998-08-18  Paul Eggert  <eggert@twinsun.com>
65451
65452         Port nanosecond-resolution times to UnixWare 2.1.2 and
65453         pedantic Solaris 2.6.
65454
65455         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
65456         AC_STRUCT_ST_MTIM.
65457         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
65458         Generate name of ns member, instead of just 1 or undef.
65459         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
65460
65461 1998-08-15  Jim Meyering  <meyering@ascend.com>
65462
65463         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
65464         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
65465         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
65466         instead of jm_TYPE_SSIZE_T.
65467
65468 1998-08-12  Jim Meyering  <meyering@ascend.com>
65469
65470         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
65471
65472 1998-08-02  Jim Meyering  <meyering@ascend.com>
65473
65474         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
65475         in acconfig.h manually.
65476
65477 1998-07-31  Paul Eggert  <eggert@twinsun.com>
65478
65479         * m4/st_mtim.m4: New file.
65480
65481 1998-07-28  Jim Meyering  <meyering@ascend.com>
65482
65483         * m4/utimes.m4: Undef stat.
65484
65485 1998-07-25  Jim Meyering  <meyering@ascend.com>
65486
65487         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
65488         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
65489
65490 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
65491
65492         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
65493         uid and gid actually remain unchanged.
65494
65495 1998-07-07  Jim Meyering  <meyering@ascend.com>
65496
65497         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
65498
65499 1998-07-04  Jim Meyering  <meyering@ascend.com>
65500
65501         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
65502         to prove that this macro can be used in packages without regex.c.
65503
65504 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
65505
65506         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
65507         is to be used.
65508
65509 1998-07-03  Jim Meyering  <meyering@ascend.com>
65510
65511         * m4/gettext.m4: Add -lintl if it's found to be necessary.
65512
65513         * m4/gettext.m4: New file -- from gettext-0.10.35.
65514         * m4/lcmessage.m4: Likewise.
65515         * m4/progtest.m4: Likewise.
65516
65517         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
65518         * m4/jm-macros.m4: Require the new macro.
65519
65520 1998-06-29  Jim Meyering  <meyering@ascend.com>
65521
65522         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
65523         for the definition of NGROUPS (used in a system header included
65524         by sys/mount.h).
65525
65526 1998-06-28  Jim Meyering  <meyering@ascend.com>
65527
65528         * m4/ls-mntd-fs.m4: New file.
65529         * m4/fstypename.m4: New file.
65530
65531         * m4/jm-macros.m4: Require the new macro.
65532         * m4/jm-glibc-io.m4: New file.
65533
65534 1998-05-19  Jim Meyering  <meyering@ascend.com>
65535
65536         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
65537         * m4/lchown.m4: New file.
65538
65539         * m4/Makefile.am.in: New file.
65540         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
65541
65542 1998-05-14  Jim Meyering  <meyering@ascend.com>
65543
65544         * m4/Makefile.am (EXTRA_DIST): Add them.
65545         * m4/jm-macros.m4: New file.
65546         * m4/utimbuf.m4: New file.
65547
65548 1998-05-12  Jim Meyering  <meyering@ascend.com>
65549
65550         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
65551
65552 1998-05-11  Jim Meyering  <meyering@ascend.com>
65553
65554         * m4/isc-posix.m4: New file.
65555
65556 1998-05-10  Jim Meyering  <meyering@ascend.com>
65557
65558         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
65559
65560 1998-05-09  Jim Meyering  <meyering@ascend.com>
65561
65562         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
65563         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
65564         with automake.
65565
65566         * m4/ssize_t.m4: New file.
65567         * m4/mktime.m4: Remove file -- the new automake has this now.
65568
65569 1998-04-26  Jim Meyering  <meyering@ascend.com>
65570
65571         * m4/assert.m4: New file.
65572         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
65573
65574 1998-04-05  Jim Meyering  <meyering@ascend.com>
65575
65576         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
65577         (jm_PREREQ): Use it here.
65578
65579 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
65580
65581         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
65582         in acconfig.h.
65583
65584 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
65585
65586         * m4/prereq.m4: New file.
65587         * m4/error.m4: New file.
65588         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
65589
65590 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
65591
65592         * m4/getline.m4: Don't set am_cv_func_working_getline before the
65593         cache-check for the same variable -- that defeated the purpose of
65594         the test; the test program was never run.  This was a problem only
65595         on systems with losing getline functions -- HP-UX 10.20 is one.
65596         Reported by Bjorn Helgaas.
65597
65598 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
65599
65600         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
65601
65602 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
65603
65604         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
65605
65606         * m4/const.m4: New file.  Use an initializer in this declaration
65607         typedef int charset[2]; const charset x;
65608         Reported by Bob Glickstein.
65609
65610 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
65611
65612         * m4/chown.m4: Fix reversed types on -1 args to chown.
65613         From Kaveh Ghazi.
65614
65615 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
65616
65617         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
65618         Add lseek and memchr.
65619
65620         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
65621         T.E.Dickey <dickey@clark.net> said that some older preprocessors
65622         have a 20-character limit on names.
65623
65624 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
65625
65626         * m4/inttypes_h.m4: New file.
65627         * m4/uintmax_t.m4: New file.
65628         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
65629
65630
65631         -----
65632
65633         Local Variables:
65634         coding: utf-8
65635         End:
65636
65637         Copyright (C) 1997-2010 Free Software Foundation, Inc.
65638
65639         Copying and distribution of this file, with or without
65640         modification, are permitted provided the copyright notice
65641         and this notice are preserved.