bc8bbbab19e81cfe433c50e1fdb1d6ef6e863b7a
[gnulib.git] / ChangeLog
1 2010-03-13  Bruno Haible  <bruno@clisp.org>
2
3         Allow the user to disable C++ code and tests.
4         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
5         (gl_PROG_ANSI_CXX): Require it.
6
7 2010-03-13  Bruno Haible  <bruno@clisp.org>
8
9         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
10         cases.
11
12 2010-03-13  Bruno Haible  <bruno@clisp.org>
13
14         Test that gnulib does not break the standard C++ headers.
15         * tests/test-locale-c++2.cc: New file.
16         * modules/locale-tests (Files): Add it.
17         (Makefile.am): Compile it for test-locale-c++.
18         * tests/test-math-c++2.cc: New file.
19         * modules/math-tests (Files): Add it.
20         (Makefile.am): Compile it for test-math-c++.
21         * tests/test-signal-c++2.cc: New file.
22         * modules/signal-tests (Files): Add it.
23         (Makefile.am): Compile it for test-signal-c++.
24         * tests/test-stdio-c++2.cc: New file.
25         * modules/stdio-tests (Files): Add it.
26         (Makefile.am): Compile it for test-stdio-c++.
27         * tests/test-stdlib-c++2.cc: New file.
28         * modules/stdlib-tests (Files): Add it.
29         (Makefile.am): Compile it for test-stdlib-c++.
30         * tests/test-string-c++2.cc: New file.
31         * modules/string-tests (Files): Add it.
32         (Makefile.am): Compile it for test-string-c++.
33         * tests/test-time-c++2.cc: New file.
34         * modules/time-tests (Files): Add it.
35         (Makefile.am): Compile it for test-time-c++.
36         Reported by John W. Eaton <jwe@gnu.org>.
37
38 2010-03-13  Bruno Haible  <bruno@clisp.org>
39
40         * gnulib-tool (func_usage): Clarify which options are available for
41         --create-testdir and --create-megatestdir.
42
43 2010-03-13  Bruno Haible  <bruno@clisp.org>
44
45         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
46         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
47         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
48         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
49         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
50         when appropriate.
51         Reported by Jim Meyering.
52
53 2010-03-12  Simon Josefsson  <simon@josefsson.org>
54
55         * gnulib-tool (func_import): Explain origin of code.
56
57 2010-03-12  Bruno Haible  <bruno@clisp.org>
58
59         Fix problem with automake's definition of CXXLINK.
60         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
61         Reported by Simon Josefsson and Ludovic Courtès.
62
63 2010-03-12  Bruno Haible  <bruno@clisp.org>
64
65         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
66         stable releases.
67
68 2010-03-11  Bruno Haible  <bruno@clisp.org>
69
70         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
71         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
72         whether the system provides one variant or multiple variants of the
73         function.
74         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
75         C++ compilers.
76         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
77         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
78         Reported by Jim Meyering.
79
80 2010-03-09  Simon Josefsson  <simon@josefsson.org>
81
82         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
83
84 2010-03-08  Bruno Haible  <bruno@clisp.org>
85
86         gnulib-tool: Add support for --libtool in --create-testdir.
87         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
88         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
89
90 2010-03-08  Eric Blake  <eblake@redhat.com>
91
92         gnulib-tool.texi: mention possibility of git submodule
93         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
94         submodules.
95         * doc/.gitignore: Ignore another generated file.
96
97 2010-03-08  Karl Berry  <karl@gnu.org>
98
99         * doc/gnulib-tool.texi (VCS Issues): Mention third option
100         of committing gnulib files while skipping others.
101
102 2010-03-07  Bruno Haible  <bruno@clisp.org>
103
104         Tests of module 'wctype' in C++ mode.
105         * tests/test-wctype-c++.cc: New file.
106         * modules/wctype-tests (Files): Add it and tests/signature.h.
107         (Depends-on): Add ansi-c++-opt.
108         (Makefile.am): Arrange to compile and run test-wctype-c++.
109
110         Tests of module 'wchar' in C++ mode.
111         * tests/test-wchar-c++.cc: New file.
112         * modules/wchar-tests (Files): Add it and tests/signature.h.
113         (Depends-on): Add ansi-c++-opt.
114         (Makefile.am): Arrange to compile and run test-wchar-c++.
115         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
116         gl_MODULE_INDICATOR.
117
118         Tests of module 'unistd' in C++ mode.
119         * tests/test-unistd-c++.cc: New file.
120         * modules/unistd-tests (Files): Add it and tests/signature.h.
121         (Depends-on): Add ansi-c++-opt.
122         (Makefile.am): Arrange to compile and run test-unistd-c++.
123         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
124         gl_MODULE_INDICATOR.
125
126         Tests of module 'time' in C++ mode.
127         * tests/test-time-c++.cc: New file.
128         * modules/time-tests (Files): Add it and tests/signature.h.
129         (Depends-on): Add ansi-c++-opt.
130         (Makefile.am): Arrange to compile and run test-time-c++.
131         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
132
133         Tests of module 'sys_time' in C++ mode.
134         * tests/test-sys_time-c++.cc: New file.
135         * modules/sys_time-tests (Files): Add it and tests/signature.h.
136         (Depends-on): Add ansi-c++-opt.
137         (Makefile.am): Arrange to compile and run test-sys_time-c++.
138         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
139         gl_MODULE_INDICATOR.
140
141         Tests of module 'sys_stat' in C++ mode.
142         * tests/test-sys_stat-c++.cc: New file.
143         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
144         (Depends-on): Add ansi-c++-opt.
145         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
146         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
147         gl_MODULE_INDICATOR.
148
149         Tests of module 'sys_socket' in C++ mode.
150         * tests/test-sys_socket-c++.cc: New file.
151         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
152         (Depends-on): Add ansi-c++-opt.
153         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
154         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
155         gl_MODULE_INDICATOR.
156
157         Tests of module 'sys_select' in C++ mode.
158         * tests/test-sys_select-c++.cc: New file.
159         * modules/sys_select-tests (Files): Add it and tests/signature.h.
160         (Depends-on): Add ansi-c++-opt.
161         (Makefile.am): Arrange to compile and run test-sys_select-c++.
162         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
163         gl_MODULE_INDICATOR.
164
165         Tests of module 'sys_ioctl' in C++ mode.
166         * tests/test-sys_ioctl-c++.cc: New file.
167         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
168         (Depends-on): Add ansi-c++-opt.
169         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
170         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
171         gl_MODULE_INDICATOR.
172
173         Tests of module 'string' in C++ mode.
174         * tests/test-string-c++.cc: New file.
175         * modules/string-tests (Files): Add it and tests/signature.h.
176         (Depends-on): Add ansi-c++-opt.
177         (Makefile.am): Arrange to compile and run test-string-c++.
178         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
179         gl_MODULE_INDICATOR.
180
181         Tests of module 'stdlib' in C++ mode.
182         * tests/test-stdlib-c++.cc: New file.
183         * modules/stdlib-tests (Files): Add it and tests/signature.h.
184         (Depends-on): Add ansi-c++-opt.
185         (Makefile.am): Arrange to compile and run test-stdlib-c++.
186         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
187         gl_MODULE_INDICATOR.
188
189         Tests of module 'stdio' in C++ mode.
190         * tests/test-stdio-c++.cc: New file.
191         * modules/stdio-tests (Files): Add it and tests/signature.h.
192         (Depends-on): Add ansi-c++-opt.
193         (Makefile.am): Arrange to compile and run test-stdio-c++.
194         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
195         gl_MODULE_INDICATOR.
196
197         Tests of module 'spawn' in C++ mode.
198         * tests/test-spawn-c++.cc: New file.
199         * modules/spawn-tests (Files): Add it and tests/signature.h.
200         (Depends-on): Add ansi-c++-opt.
201         (Makefile.am): Arrange to compile and run test-spawn-c++.
202         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
203         gl_MODULE_INDICATOR.
204
205         Tests of module 'signal' in C++ mode.
206         * tests/test-signal-c++.cc: New file.
207         * modules/signal-tests (Files): Add it and tests/signature.h.
208         (Depends-on): Add ansi-c++-opt.
209         (Makefile.am): Arrange to compile and run test-signal-c++.
210         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
211         gl_MODULE_INDICATOR.
212
213         Tests of module 'search' in C++ mode.
214         * tests/test-search-c++.cc: New file.
215         * modules/search-tests (Files): Add it and tests/signature.h.
216         (Depends-on): Add ansi-c++-opt.
217         (Makefile.am): Arrange to compile and run test-search-c++.
218         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
219         gl_MODULE_INDICATOR.
220
221         Tests of module 'math' in C++ mode.
222         * tests/test-math-c++.cc: New file.
223         * modules/math-tests (Files): Add it and tests/signature.h.
224         (Depends-on): Add ansi-c++-opt.
225         (Makefile.am): Arrange to compile and run test-math-c++.
226         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
227
228         Tests of module 'locale' in C++ mode.
229         * tests/test-locale-c++.cc: New file.
230         * modules/locale-tests (Files): Add it and tests/signature.h.
231         (Depends-on): Add ansi-c++-opt.
232         (Makefile.am): Arrange to compile and run test-locale-c++.
233         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
234         gl_MODULE_INDICATOR.
235
236         Tests of module 'langinfo' in C++ mode.
237         * tests/test-langinfo-c++.cc: New file.
238         * modules/langinfo-tests (Files): Add it and tests/signature.h.
239         (Depends-on): Add ansi-c++-opt.
240         (Makefile.am): Arrange to compile and run test-langinfo-c++.
241         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
242         gl_MODULE_INDICATOR.
243
244         Tests of module 'iconv-h' in C++ mode.
245         * tests/test-iconv-h-c++.cc: New file.
246         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
247         (Depends-on): Add ansi-c++-opt.
248         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
249
250         Tests of module 'glob' in C++ mode.
251         * tests/test-glob-c++.cc: New file.
252         * modules/glob-tests (Files): Add it.
253         (Depends-on): Add ansi-c++-opt.
254         (Makefile.am): Arrange to compile and run test-glob-c++.
255
256         Tests of module 'fcntl-h' in C++ mode.
257         * tests/test-fcntl-h-c++.cc: New file.
258         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
259         (Depends-on): Add ansi-c++-opt.
260         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
261         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
262         gl_MODULE_INDICATOR.
263
264         Tests of module 'dirent' in C++ mode.
265         * tests/test-dirent-c++.cc: New file.
266         * modules/dirent-tests (Files): Add it and tests/signature.h.
267         (Depends-on): Add ansi-c++-opt.
268         (Makefile.am): Arrange to compile and run test-dirent-c++.
269         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
270         gl_MODULE_INDICATOR.
271
272         New module 'ansi-c++-opt'.
273         * modules/ansi-c++-opt: New file.
274         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
275
276         Document C++ namespace mode.
277         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
278
279         wctype: Avoid #define replacements in C++ mode.
280         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
281         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
282         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
283         In C++, define a namespaced alias symbol.
284         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
285         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
286         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
287         rule.
288
289         wchar: Avoid #define replacements in C++ mode.
290         * lib/wchar.in.h: Include c++defs.h.
291         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
292         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
293         symbol.
294         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
295         * modules/wchar (Depends-on): Add c++defs.
296         (Makefile.am): Update wchar.h rule.
297
298         unistd: Avoid #define replacements in C++ mode.
299         * lib/unistd.in.h: Include c++defs.h.
300         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
301         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
302         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
303         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
304         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
305         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
306         symbol.
307         (environ): Update.
308         * modules/unistd (Depends-on): Add c++defs.
309         (Makefile.am): Update unistd.h rule.
310
311         time: Avoid #define replacements in C++ mode.
312         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
313         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
314         define a namespaced alias symbol.
315         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
316         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
317         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
318         * modules/time (Depends-on): Add c++defs, warn-on-use.
319         (Makefile.am): Update time.h rule.
320         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
321         * modules/nanosleep (configure.ac): Likewise.
322         * modules/strptime (configure.ac): Likewise.
323         * modules/timegm (configure.ac): Likewise.
324
325         sys_time: Avoid #define replacements in C++ mode.
326         * lib/sys_time.in.h: Include c++defs.h.
327         (gettimeofday): In C++, define a namespaced alias symbol.
328         * modules/sys_time (Depends-on): Add c++defs.
329         (Makefile.am): Update sys/time.h rule.
330
331         sys_stat: Avoid #define replacements in C++ mode.
332         * lib/sys_stat.in.h: Include c++defs.h.
333         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
334         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
335         namespaced alias symbol.
336         In C++, define a namespaced alias symbol.
337         * modules/sys_stat (Depends-on): Add c++defs.
338         (Makefile.am): Update sys/stat.h rule.
339
340         sys_socket: Avoid #define replacements in C++ mode.
341         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
342         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
343         definitions also when the system has a <sys/socket.h>.
344         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
345         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
346         In C++, define a namespaced alias symbol.
347         * modules/sys_socket (Depends-on): Add c++defs.
348         (Makefile.am): Update sys/socket.h rule.
349
350         sys_select: Avoid #define replacements in C++ mode.
351         * lib/sys_select.in.h: Include c++defs.h. Enable the function
352         definitions also when the system has a <sys/select.h>.
353         (select): In C++, define a namespaced alias symbol.
354         * modules/sys_select (Depends-on): Add c++defs.
355         (Makefile.am): Update sys/select.h rule.
356
357         sys_ioctl: Avoid #define replacements in C++ mode.
358         * lib/sys_ioctl.in.h: Include c++defs.h.
359         (ioctl): In C++, define a namespaced alias symbol.
360         * modules/sys_ioctl (Depends-on): Add c++defs.
361         (Makefile.am): Update sys/ioctl.h rule.
362
363         string: Avoid #define replacements in C++ mode.
364         * lib/string.in.h: Include c++defs.h.
365         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
366         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
367         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
368         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
369         strsignal, strverscmp): In C++, define a namespaced alias symbol.
370         * modules/string (Depends-on): Add c++defs.
371         (Makefile.am): Update string.h rule.
372
373         stdlib: Avoid #define replacements in C++ mode.
374         * lib/stdlib.in.h: Include c++defs.h.
375         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
376         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
377         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
378         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
379         symbol.
380         * modules/stdlib (Depends-on): Add c++defs.
381         (Makefile.am): Update stdlib.h rule.
382
383         stdio: Avoid #define replacements in C++ mode.
384         * lib/stdio.in.h: Include c++defs.h.
385         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
386         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
387         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
388         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
389         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
390         namespaced alias symbol.
391         * modules/stdio (Depends-on): Add c++defs.
392         (Makefile.am): Update stdio.h rule.
393
394         spawn: Avoid #define replacements in C++ mode.
395         * lib/spawn.in.h: Include c++defs.h.
396         (posix_spawn, posix_spawnp, posix_spawnattr_init,
397         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
398         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
399         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
400         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
401         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
402         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
403         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
404         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
405         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
406         In C++, define a namespaced alias symbol.
407         * modules/spawn (Depends-on): Add c++defs.
408         (Makefile.am): Update spawn.h rule.
409
410         signal: Avoid #define replacements in C++ mode.
411         * lib/signal.in.h: Include c++defs.h.
412         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
413         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
414         namespaced alias symbol.
415         * modules/signal (Depends-on): Add c++defs.
416         (Makefile.am): Update signal.h rule.
417
418         search: Avoid #define replacements in C++ mode.
419         * lib/search.in.h: Include c++defs.h.
420         (_gl_search_compar_fn, _gl_search_action_fn): New types.
421         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
422         symbol.
423         * modules/search (Depends-on): Add c++defs.
424         (Makefile.am): Update search.h rule.
425
426         math: Avoid #define replacements in C++ mode.
427         * lib/math.in.h: Include c++defs.h.
428         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
429         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
430         trunc, truncl): In C++, define a namespaced alias symbol.
431         * modules/math (Depends-on): Add c++defs.
432         (Makefile.am): Update math.h rule.
433
434         locale: Avoid #define replacements in C++ mode.
435         * lib/locale.in.h: Include c++defs.h.
436         (duplocale): In C++, define a namespaced alias symbol.
437         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
438         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
439         * modules/locale (Depends-on): Add c++defs.
440         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
441
442         langinfo: Avoid #define replacements in C++ mode.
443         * lib/langinfo.in.h: Include c++defs.h.
444         (nl_langinfo): In C++, define a namespaced alias symbol.
445         * modules/langinfo (Depends-on): Add c++defs.
446         (Makefile.am): Update langinfo.h rule.
447
448         iconv-h: Avoid #define replacements in C++ mode.
449         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
450         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
451         symbol.
452         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
453         whenever iconv is present.
454         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
455         (Makefile.am): Update iconv.h rule.
456
457         glob: Avoid #define replacements in C++ mode.
458         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
459         (_gl_glob_errfunc_fn): New type.
460         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
461         symbol.
462         * modules/glob (Depends-on): Add c++defs, warn-on-use.
463         (Makefile.am): Update glob.h rule.
464
465         fcntl-h: Avoid #define replacements in C++ mode.
466         * lib/fcntl.in.h: Include c++defs.h.
467         (fcntl, open, openat): In C++, define a namespaced alias symbol.
468         * modules/fcntl-h (Depends-on): Add c++defs.
469         (Makefile.am): Update fcntl.h rule.
470
471         dirent: Avoid #define replacements in C++ mode.
472         * lib/dirent.in.h: Include c++defs.h.
473         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
474         namespaced alias symbol.
475         (dirfd): Update declaration.
476         * modules/dirent (Depends-on): Add c++defs.
477         (Makefile.am): Update dirent.h rule.
478
479         ctype: Make it usable in C++ code.
480         * lib/ctype.in.h: Include c++defs.h.
481         (isblank): Declare as extern "C".
482         * modules/ctype (Depends-on): Add c++defs.
483         (Makefile.am): Update ctype.h rule.
484
485         New module 'c++defs'.
486         * modules/c++defs: New file.
487         * build-aux/c++defs.h: New file.
488         Reported by John W. Eaton <jwe@gnu.org>.
489
490 2010-03-07  Bruno Haible  <bruno@clisp.org>
491
492         logb: Provide missing declaration for Cygwin.
493         * lib/math.in.h (logb): New declaration.
494         * m4/logb.m4: New file.
495         * modules/logb (Files): Add m4/logb.m4.
496         (Depends-on): Add math.
497         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
498         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
499         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
500         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
501         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
502
503 2010-03-07  Bruno Haible  <bruno@clisp.org>
504
505         Fix test-cond link error.
506         * tests/test-cond.c: Include <stdio.h>.
507
508 2010-03-07  Bruno Haible  <bruno@clisp.org>
509
510         Fix test-dirent-safer link error.
511         * modules/dirent-safer-tests (Makefile.am): Define
512         test_dirent_safer_LDADD.
513
514 2010-03-07  Bruno Haible  <bruno@clisp.org>
515
516         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
517         among default module list.
518
519 2010-03-07  Bruno Haible  <bruno@clisp.org>
520
521         Fix link error on platforms with GNU libiconv.
522         * modules/unistr/u8-strcoll-tests (Makefile): Define
523         test_u8_strcoll_LDADD.
524         * modules/unistr/u16-strcoll-tests (Makefile): Define
525         test_u16_strcoll_LDADD.
526         * modules/unistr/u32-strcoll-tests (Makefile): Define
527         test_u32_strcoll_LDADD.
528
529 2010-03-07  Bruno Haible  <bruno@clisp.org>
530
531         Use POSIX declarations for socket functions.
532         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
533         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
534         rpl_sendto): Change declaration to match POSIX.
535         * lib/connect.c (rpl_connect): Likewise.
536         * lib/accept.c (rpl_accept): Likewise.
537         * lib/bind.c (rpl_bind): Likewise.
538         * lib/getpeername.c (rpl_getpeername): Likewise.
539         * lib/getsockname.c (rpl_getsockname): Likewise.
540         * lib/recv.c (rpl_recv): Likewise.
541         * lib/send.c (rpl_send): Likewise.
542         * lib/recvfrom.c (rpl_recvfrom): Likewise.
543         * lib/sendto.c (rpl_sendto): Likewise.
544
545 2010-03-06  Bruno Haible  <bruno@clisp.org>
546
547         Clarify access, euidaccess, faccessat.
548         * doc/posix-functions/faccessat.texi: Mention security problem under
549         "Other problems", not "Portability problems".
550         * doc/posix-functions/access.texi: Likewise. Mention a related security
551         problem.
552         * doc/glibc-functions/euidaccess.texi: Mention security problems.
553         * lib/euidaccess.c: Add comments about platforms.
554         * lib/unistd.in.h (access, euidaccess): Add warnings.
555
556 2010-03-07  Bruno Haible  <bruno@clisp.org>
557
558         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
559         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
560         (POSIX_SPAWN_SETSCHEDULER): Likewise.
561         (POSIX_SPAWN_USEVFORK): Define in a way that works when
562         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
563         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
564         declare when POSIX_SPAWN_SETSCHEDULER is zero.
565         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
566         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
567         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
568         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
569         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
570         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
571         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
572         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
573         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
574         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
575         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
576         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
577         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
578         Likewise.
579         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
580         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
581         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
582         Likewise.
583         * tests/test-spawn.c (main): Make it work when
584         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
585
586 2010-03-07  Bruno Haible  <bruno@clisp.org>
587
588         Fix incorrect Makefile.am generation in German locale.
589         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
590         Execute sed command with character range in C locale.
591
592 2010-03-06  Bruno Haible  <bruno@clisp.org>
593
594         Tests for module 'iconv-h'.
595         * modules/iconv-h-tests: New file.
596         * tests/test-iconv-h.c: New file.
597
598         New module 'iconv-h'.
599         * modules/iconv-h: New file.
600         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
601         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
602         (configure.ac): Remove gl_ICONV_H.
603         (Makefile.am): Remove rule for iconv.h.
604
605 2010-03-06  Bruno Haible  <bruno@clisp.org>
606
607         More consistent naming of *.m4 files.
608         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
609         * modules/wctype (Files): Update.
610
611         More consistent naming of *.m4 files.
612         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
613         * modules/wchar (Files): Update.
614
615 2010-03-06  Jim Meyering  <meyering@redhat.com>
616
617         euidaccess: relax license to LGPLv2+
618         * modules/euidaccess (License): Relax to LGPLv2+.
619
620 2010-03-06  Bruno Haible  <bruno@clisp.org>
621
622         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
623         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
624         (Makefile.am): Augment lib_SOURCES instead.
625
626 2010-03-04  Jim Meyering  <meyering@redhat.com>
627
628         utime: remove obsolete module
629         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
630         unnecessary for years, and has been marked as obsolete for 10 months.
631         * modules/utime: Remove file.
632         * lib/utime.c: Remove file.
633         * m4/utime.m4: Remove file.
634         * m4/utimes-null.m4: Remove file.
635         * doc/posix-functions/utime.texi (utime): Remove reference to
636         the module.  Move the sole "fixed by gnulib" item into the
637         "problems not fixed by Gnulib" list.
638         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
639
640 2010-03-05  Simon Josefsson  <simon@josefsson.org>
641
642         * modules/exit (License): Relax license to LGPLv2+.
643         (Status): Mark as obsolete.
644         * NEWS: Mention deprecated 'exit' module.
645         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
646         of now obsolete 'exit'.
647
648 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
649
650         fts-lgpl: remove unused module
651         * modules/fts-lgpl: Remove.
652         * MODULES.html.sh (func_all_modules): Adjust.
653         * check-module (find_included_lib_files): Adjust.
654         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
655
656 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
657
658         copy-acl: enhance Solaris ACL error handling
659         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
660         * lib/set-mode-acl.c (qset_acl): Likewise.
661
662 2010-03-02  Bruno Haible  <bruno@clisp.org>
663
664         spawn: Don't override the system defined values on FreeBSD 8.
665         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
666         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
667         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
668         if HAVE_POSIX_SPAWN is 1.
669         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
670
671 2010-03-01  Bruno Haible  <bruno@clisp.org>
672
673         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
674         regarding Automake.
675
676 2010-02-25  Bruno Haible  <bruno@clisp.org>
677
678         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
679         * gnulib-tool: Define 'echo' as a function only before the ksh alias
680         setting, not afterwards.
681         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
682
683 2010-02-24  Eric Blake  <eblake@redhat.com>
684
685         bootstrap, git-version-gen: use timestamp
686         * build-aux/git-version-gen (scriptversion): Force UTC.
687         * build-aux/bootstrap (scriptversion): New variable.
688
689         bootstrap: allow older git
690         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
691         older than 1.6.4.  Requested by the libvirt project.
692
693 2010-02-23  Eric Blake  <eblake@redhat.com>
694
695         warn-on-use: work with old autoconf
696         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
697         AS_VAR semantics of autoconf 2.60.
698         Reported by Bruno Haible.
699
700         bootstrap: improve some comments
701         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
702         clarification comments.
703
704         gettimeofday: provide correct function
705         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
706         when replacement is declared, otherwise provide gettimeofday.
707         Reported by Michael Goffioul.
708
709 2010-02-23  Jim Meyering  <meyering@redhat.com>
710
711         lib-ignore: relax license to "unlimited", not LGPLv2+
712         * modules/lib-ignore (License): Relax to "unlimited".
713
714 2010-02-23  Jim Meyering  <meyering@redhat.com>
715
716         lib-ignore: relax license to LGPLv2+
717         * modules/lib-ignore (License): Relax to LGPLv2+.
718
719 2010-02-22  Eric Blake  <eblake@redhat.com>
720
721         lseek: avoid bash 3.2 broken pipe bug
722         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
723         warning from bash 3.2.
724         Reported by Ben Pfaff, with analysis from Bruno Haible.
725
726         bootstrap: support non-FSF copyright holder
727         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
728         bootstrap.conf override of COPYRIGHT_HOLDER.
729         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
730
731         bootstrap: interoperate with gettext 0.14.1
732         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
733
734         bootstrap: allow for alternate submodule location
735         * build-aux/bootstrap (gnulib_path): New variable; use instead of
736         hardcoding submodule location.
737         (gnulib_mk): Allow direct use of Makefile.am.
738
739         bootstrap: use GNULIB_SRCDIR to reduce disk usage
740         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
741         rather than reconfiguring where the submodule points.
742
743         gettimeofday: restore support for platforms that lack function
744         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
745         replacement if function is missing.
746         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
747         * modules/sys_time (Makefile.am): Substitute it.
748         * lib/sys_time.in.h (gettimeofday): Check it.
749         Reported by Michael Goffioul.
750
751 2010-02-21  Bruno Haible  <bruno@clisp.org>
752
753         * lib/stdio.in.h (obstack_printf): Fix typo.
754
755 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
756
757         vc-list-files: use bzr ls's -R option
758         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
759         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
760
761 2010-02-21  Jim Meyering  <meyering@redhat.com>
762
763         init.sh: fix EXEEXT shims to work also for names like test-prog
764         * tests/init.sh: Re-exec a better shell, when needed.
765         If the current shell lacks support for posix $(...), an init.sh-using
766         test will now try to find a shell that supports that.  If EXEEXT is
767         nonempty, we also require support for hyphen-in-alias-name and shell
768         substitutions like ${var#glob}.  Failure to find such a shell results
769         in a skipped test.
770
771 2010-02-21  Bruno Haible  <bruno@clisp.org>
772
773         Really work around around "broken pipe" error message from bash 3.2.
774         * gnulib-tool (func_reset_sigpipe): Remove function.
775         (echo): In bash 3.2, define to a function that uses printf.
776         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
777
778 2010-02-20  Bruno Haible  <bruno@clisp.org>
779
780         Restore support for automake 1.9.6 with autoconf 2.61.
781         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
782         Reported by James Youngman <jay@gnu.org>.
783
784 2010-02-20  Bruno Haible  <bruno@clisp.org>
785
786         Improve *printf warning condition.
787         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
788         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
789         and the function is overridden due to SIGPIPE emulation.
790
791 2010-02-20  Bruno Haible  <bruno@clisp.org>
792
793         * lib/stdio.in.h: Tweak comments.
794
795 2010-02-19  Bruno Haible  <bruno@clisp.org>
796
797         Make it easier to find modules. New gnulib-tool option '--find'.
798         * gnulib-tool: New option --find.
799         (func_usage): Document it.
800         (func_sanitize_modulelist): New function, extracted from
801         func_all_modules.
802         (func_all_modules): Invoke it.
803         * doc/gnulib-tool.texi (Which modules?): New node.
804
805 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
806
807         * lib/sys_select.in.h: Provide select replacement even if
808         sys/select.h exists on a system, for Interix.
809
810 2010-02-18  Jim Meyering  <meyering@redhat.com>
811
812         init.sh: don't use $(...) just yet
813         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
814         to accommodate e.g., Solaris' /bin/sh.
815
816 2010-02-17  Bruno Haible  <bruno@clisp.org>
817
818         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
819         Reported by Ludovic Courtès <ludo@gnu.org>.
820
821 2010-02-16  Simon Josefsson  <simon@josefsson.org>
822
823         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
824         linking with -lintl.
825
826 2010-02-17  Simon Josefsson  <simon@josefsson.org>
827
828         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
829         if not provided by the system's netdb.h.  Reported by
830         ludo@gnu.org (Ludovic Courtès).
831
832 2010-02-15  Jim Meyering  <meyering@redhat.com>
833
834         init.sh: improve portability and efficiency
835         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
836         "dummy" in a for loop.
837         Use '!', not '^' to select the complement of a character set used
838         in a "case" statement.
839         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
840         Suggestions from Eric Blake.
841
842         init.sh: automatically accommodate programs with the .exe suffix
843         Automatically arrange for an invocation of "prog" to execute the
844         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
845         may use the simpler "prog", yet still work when built on a system
846         that requires specifying the added suffix.
847         Do this by constructing a function named "prog" that invokes
848         "prog.exe" for each .exe file in selected directories.
849         * tests/init.sh (find_exe_basenames_): New function.
850         (create_exe_shim_functions_): New function.
851         (path_prepend_): Use it.
852
853         maint.mk: mark syntax-check sc_*.m rules as .PHONY
854         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
855         "make -t syntax-check" doesn't create a ton of sc_*.m files.
856
857 2010-02-14  Jim Meyering  <meyering@redhat.com>
858
859         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
860         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
861         (sc_prohibit_hash_pjw_without_use): New rule.
862
863         maint.mk: allow the default upload destination dir to be overridden
864         * top/maint.mk (upload_dest_dir_): Define with a default that
865         preserves the status quo.
866         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
867         Reported by Peter Simons.
868
869         maint.mk: prohibit inclusion of "hash.h" without_use
870         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
871
872 2010-02-10  Jim Meyering  <meyering@redhat.com>
873
874         maint.mk: prohibit inclusion of "ignore-value.h" without_use
875         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
876
877 2010-02-09  Eric Blake  <ebb9@byu.net>
878         and Bruno Haible  <bruno@clisp.org>
879
880         obstack-printf-posix: ensure declaration
881         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
882         extracted from gl_FUNC_OBSTACK_PRINTF.
883         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
884         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
885         Likewise.
886         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
887         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
888         0.
889
890 2010-02-08  Bruno Haible  <bruno@clisp.org>
891
892         gnulib-tool: Fix typo in 2010-02-07 commit.
893         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
894         Reported by Eric Blake.
895
896 2010-02-07  Bruno Haible  <bruno@clisp.org>
897
898         gnulib-tool: Fix up caching patches.
899         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
900         option --no-cache. Use associative arrays when supported by the shell.
901         (sed_comments): New variable.
902         (modcache): Renamed from do_cache.
903         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
904         abbreviate unnecessarily.
905         (have_associative): New variable.
906         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
907         way also for ksh and zsh.
908         (func_init_sed_convert_to_cache_statements): New function, extracted
909         from func_cache_lookup_module. Add support for associative arrays.
910         Don't set the c_MODULE_cached variable here. Ignore all lines before
911         the first field header. Remove only the final newline, not all trailing
912         newlines. Support empty fields correctly. Limit the use of 'eval' to
913         assignments.
914         (func_get_description, func_get_status, func_get_notice,
915         func_get_applicability, func_get_filelist, func_get_dependencies,
916         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
917         func_get_automake_snippet, func_get_include_directive,
918         func_get_link_directive, func_get_license, func_get_maintainer):
919         Update documentation. List the unoptimized code first. Add support for
920         associative arrays. Limit the use of 'eval' to assignments.
921         (func_get_applicability): Undo stylistic pessimisations.
922         (func_get_automake_snippet, func_get_include_directive): Reduce code
923         duplication.
924         (func_modules_transitive_closure, func_modules_add_dummy,
925         func_modules_notice, func_modules_to_filelist, func_add_file,
926         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
927         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
928         func_create_testdir, func_create_megatestdir): Update documentation.
929
930 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
931
932         * gnulib-tool (func_cache_lookup_module): Store the module name
933         belonging to the cache variable; error out if two different
934         module names map to the same cache variable name.
935
936 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
937
938         gnulib-tool: Make caching optional.
939         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
940         Update matching short versions of --no-changelog.
941         (func_usage): Update.
942         (sed_extract_cache_prog): Renamed from ...
943         (sed_extract_prog): ... this; revert to old extraction script.
944         (func_get_description, func_get_status)
945         (func_get_notice, func_get_applicability, func_get_filelist)
946         (func_get_dependencies, func_get_autoconf_early_snippet)
947         (func_get_autoconf_snippet, func_get_automake_snippet)
948         (func_get_include_directive, func_get_link_directive)
949         (func_get_license, func_get_maintainer): If $do_cache is false,
950         use old, non-caching extraction scripts.
951         Suggestion by Bruno Haible.
952
953 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
954
955         gnulib-tool: cache module metainformation.
956         * gnulib-tool (sed_extract_prog): Match newline before each
957         header, and rewrite header to a shell variable suffix.
958         (func_cache_var, func_cache_lookup_module): New functions,
959         to turn a module name into a cache variable prefix, and to
960         look up and cache module metainformation.
961         (func_get_description, func_get_status)
962         (func_get_notice, func_get_applicability, func_get_filelist)
963         (func_get_dependencies, func_get_autoconf_early_snippet)
964         (func_get_autoconf_snippet, func_get_automake_snippet)
965         (func_get_include_directive, func_get_link_directive)
966         (func_get_license, func_get_maintainer): Use
967         func_cache_lookup_module.
968
969 2010-02-07  Bruno Haible  <bruno@clisp.org>
970
971         fnctl: Fix missing dependency.
972         * modules/fcntl (Depends-on): Add getdtablesize.
973         Reported by John W. Eaton <jwe@gnu.org>.
974
975 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
976
977         Argp: fix recognition of short alias options.
978
979         * lib/argp-parse.c (convert_options): Fix improper use of
980         `|' between character values.
981         * tests/test-argp.c (group1_option): New alias option
982         --read (-r).
983         (group1_parser): Special handling for 'r'.
984         (test15): New test case.
985         (test_fun): Add test15.
986         * tests/test-argp-2.sh: Update expected --help and --usage
987         outputs.
988
989 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
990
991         * tests/test-argp.c: Fix indentation.
992
993 2010-02-04  Eric Blake  <ebb9@byu.net>
994
995         gettimeofday: expose type of second argument
996         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
997         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
998         * tests/test-gettimeofday.c: Use it to silence warning.
999         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
1000         the issue.
1001
1002 2010-02-03  Jim Meyering  <meyering@redhat.com>
1003
1004         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
1005         * lib/regcomp.c (TYPE_SIGNED): Define.
1006         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
1007
1008         regcomp.c: avoid a new -Wshadow warning
1009         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
1010
1011 2010-02-01  Jim Meyering  <meyering@redhat.com>
1012
1013         removing useless parentheses in cpp #define directives
1014         For motivation, see commit c0221df4, "define STREQ(a,b)
1015         consistently, removing useless parentheses"
1016         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
1017         * lib/mountlist.c (MNT_IGNORE): Likewise.
1018         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
1019
1020 2010-02-01  Eric Blake  <ebb9@byu.net>
1021
1022         sys_time: use link-warning
1023         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
1024         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
1025         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
1026         * modules/sys_time (Depends-on): Add warn-on-use.
1027         (Makefile.am): Always build replacement.
1028         (configure.ac): Update substitutions.
1029         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
1030         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
1031         bother with SYS_TIME_H.
1032         * modules/gettimeofday (configure.ac): Declare indicator.
1033         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
1034         in use.
1035
1036         closein-tests: silence compiler warning
1037         * tests/test-closein.c (main): Ignore fread result.
1038         * modules/closein-tests (Depends-on): Add ignore-value.
1039
1040         tests: silence warning about system return
1041         * tests/test-areadlink-with-size.c (main): Ignore system result.
1042         * tests/test-areadlink.c (main): Likewise.
1043         * tests/test-areadlinkat-with-size.c (main): Likewise.
1044         * tests/test-areadlinkat.c (main): Likewise.
1045         * tests/test-canonicalize-lgpl.c (main): Likewise.
1046         * tests/test-canonicalize.c (main): Likewise.
1047         * tests/test-chown.c (main): Likewise.
1048         * tests/test-fchownat.c (main): Likewise.
1049         * tests/test-fdutimensat.c (main): Likewise.
1050         * tests/test-fstatat.c (main): Likewise.
1051         * tests/test-futimens.c (main): Likewise.
1052         * tests/test-lchown.c (main): Likewise.
1053         * tests/test-link.c (main): Likewise.
1054         * tests/test-linkat.c (main): Likewise.
1055         * tests/test-lstat.c (main): Likewise.
1056         * tests/test-mkdir.c (main): Likewise.
1057         * tests/test-mkdirat.c (main): Likewise.
1058         * tests/test-mkfifo.c (main): Likewise.
1059         * tests/test-mkfifoat.c (main): Likewise.
1060         * tests/test-mknod.c (main): Likewise.
1061         * tests/test-readlink.c (main): Likewise.
1062         * tests/test-remove.c (main): Likewise.
1063         * tests/test-rename.c (main): Likewise.
1064         * tests/test-renameat.c (main): Likewise.
1065         * tests/test-rmdir.c (main): Likewise.
1066         * tests/test-symlink.c (main): Likewise.
1067         * tests/test-symlinkat.c (main): Likewise.
1068         * tests/test-unlink.c (main): Likewise.
1069         * tests/test-unlinkat.c (main): Likewise.
1070         * tests/test-utimens.c (main): Likewise.
1071         * tests/test-utimensat.c (main): Likewise.
1072         * modules/areadlink-tests (Depends-on): Add ignore-value.
1073         * modules/areadlink-with-size-tests (Depends-on): Likewise.
1074         * modules/areadlinkat-tests (Depends-on): Likewise.
1075         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
1076         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
1077         * modules/canonicalize-tests (Depends-on): Likewise.
1078         * modules/chown-tests (Depends-on): Likewise.
1079         * modules/fdutimensat-tests (Depends-on): Likewise.
1080         * modules/futimens-tests (Depends-on): Likewise.
1081         * modules/lchown-tests (Depends-on): Likewise.
1082         * modules/link-tests (Depends-on): Likewise.
1083         * modules/linkat-tests (Depends-on): Likewise.
1084         * modules/lstat-tests (Depends-on): Likewise.
1085         * modules/mkdir-tests (Depends-on): Likewise.
1086         * modules/mkfifo-tests (Depends-on): Likewise.
1087         * modules/mkfifoat-tests (Depends-on): Likewise.
1088         * modules/mknod-tests (Depends-on): Likewise.
1089         * modules/openat-tests (Depends-on): Likewise.
1090         * modules/readlink-tests (Depends-on): Likewise.
1091         * modules/remove-tests (Depends-on): Likewise.
1092         * modules/rename-tests (Depends-on): Likewise.
1093         * modules/renameat-tests (Depends-on): Likewise.
1094         * modules/rmdir-tests (Depends-on): Likewise.
1095         * modules/symlink-tests (Depends-on): Likewise.
1096         * modules/symlinkat-tests (Depends-on): Likewise.
1097         * modules/unlink-tests (Depends-on): Likewise.
1098         * modules/utimens-tests (Depends-on): Likewise.
1099         * modules/utimensat-tests (Depends-on): Likewise.
1100
1101 2010-01-31  Bruno Haible  <bruno@clisp.org>
1102
1103         Perform the same test for many <math.h> functions.
1104         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
1105         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
1106         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
1107         of gl_MATHFUNC.
1108         * modules/acos (configure.ac): Likewise.
1109         * modules/asin (configure.ac): Likewise.
1110         * modules/atan (configure.ac): Likewise.
1111         * modules/atan2 (configure.ac): Likewise.
1112         * modules/cbrt (configure.ac): Likewise.
1113         * modules/copysign (configure.ac): Likewise.
1114         * modules/cos (configure.ac): Likewise.
1115         * modules/cosh (configure.ac): Likewise.
1116         * modules/erf (configure.ac): Likewise.
1117         * modules/erfc (configure.ac): Likewise.
1118         * modules/exp (configure.ac): Likewise.
1119         * modules/fmod (configure.ac): Likewise.
1120         * modules/hypot (configure.ac): Likewise.
1121         * modules/j0 (configure.ac): Likewise.
1122         * modules/j1 (configure.ac): Likewise.
1123         * modules/jn (configure.ac): Likewise.
1124         * modules/lgamma (configure.ac): Likewise.
1125         * modules/log (configure.ac): Likewise.
1126         * modules/log10 (configure.ac): Likewise.
1127         * modules/log1p (configure.ac): Likewise.
1128         * modules/pow (configure.ac): Likewise.
1129         * modules/remainder (configure.ac): Likewise.
1130         * modules/sin (configure.ac): Likewise.
1131         * modules/sinh (configure.ac): Likewise.
1132         * modules/tan (configure.ac): Likewise.
1133         * modules/tanh (configure.ac): Likewise.
1134         * modules/y0 (configure.ac): Likewise.
1135         * modules/y1 (configure.ac): Likewise.
1136         * modules/yn (configure.ac): Likewise.
1137         Suggested by Paolo Bonzini.
1138
1139 2010-01-31  Bruno Haible  <bruno@clisp.org>
1140
1141         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
1142
1143 2010-01-31  Bruno Haible  <bruno@clisp.org>
1144
1145         Work around getdelim() bug on FreeBSD 8.0.
1146         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
1147         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
1148         not work.
1149         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
1150         is 1.
1151         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
1152         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
1153         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
1154         a non-zero size.
1155         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
1156
1157 2010-01-31  Bruno Haible  <bruno@clisp.org>
1158
1159         Work around getline() bug on FreeBSD 8.0.
1160         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
1161         and a non-zero size.
1162         * tests/test-getline.c (main): Likewise.
1163         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
1164         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
1165
1166 2010-01-28  Eric Blake  <ebb9@byu.net>
1167
1168         regex: fix build failure
1169         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
1170         platforms.
1171
1172 2010-01-28  Jim Meyering  <meyering@redhat.com>
1173
1174         regex: do not ignore memory allocation failure
1175         * lib/regex_internal.c (create_cd_newstate): Detect
1176         re_node_set_init_copy failure.   Extracted from glibc commit
1177         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
1178
1179         regex: sync more white-space changes from libc
1180         * lib/regex_internal.c: White-space only changes.
1181         * lib/regexec.c: Likewise.
1182
1183         regex: add many uses of __attribute_warn_unused_result__
1184         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
1185         * lib/regexec.c: Likewise.
1186         Extracted from a messy glibc commit.
1187
1188         regcomp.c: spelling and merge-artifact from glibc
1189         * lib/regcomp.c: Merge remainder of glibc's
1190         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
1191
1192         regcomp.c: sync white-space changes from glibc
1193         * lib/regcomp.c: Merge to accommodate white space
1194         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
1195
1196         regcomp.c: do not ignore internal return values
1197         * lib/regcomp.c: Do not ignore internal return values.
1198         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
1199         but without its white-space changes and spelling fixes.
1200
1201         regex_internal.h: define __attribute_warn_unused_result__
1202         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
1203
1204         maint: add a syntax-check rule to check for vulnerable Makefile.in
1205         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
1206
1207 2010-01-27  Jim Meyering  <meyering@redhat.com>
1208
1209         ncftpput-ftp: clean up spaces
1210         * build-aux/ncftpput-ftp: Make Copyright line consistent.
1211         Remove trailing blanks.
1212
1213 2010-01-27  Simon Josefsson  <simon@josefsson.org>
1214
1215         * build-aux/git-version-gen: Fix copyright statement.
1216         * build-aux/gnupload: Likewise.
1217         * tests/test-arcfour.c: Likewise.
1218         * tests/test-arctwo.c: Likewise.
1219         * tests/test-count-one-bits.c: Likewise.
1220         * tests/test-crc.c: Likewise.
1221         * tests/test-des.c: Likewise.
1222         * tests/test-gc-arcfour.c: Likewise.
1223         * tests/test-gc-arctwo.c: Likewise.
1224         * tests/test-gc-des.c: Likewise.
1225         * tests/test-gc-hmac-md5.c: Likewise.
1226         * tests/test-gc-hmac-sha1.c: Likewise.
1227         * tests/test-gc-md2.c: Likewise.
1228         * tests/test-gc-md4.c: Likewise.
1229         * tests/test-gc-md5.c: Likewise.
1230         * tests/test-gc-pbkdf2-sha1.c: Likewise.
1231         * tests/test-gc-rijndael.c: Likewise.
1232         * tests/test-gc-sha1.c: Likewise.
1233         * tests/test-gc.c: Likewise.
1234         * tests/test-gethostname.c: Likewise.
1235         * tests/test-gettimeofday.c: Likewise.
1236         * tests/test-hash.c: Likewise.
1237         * tests/test-hmac-md5.c: Likewise.
1238         * tests/test-hmac-sha1.c: Likewise.
1239         * tests/test-md2.c: Likewise.
1240         * tests/test-md4.c: Likewise.
1241         * tests/test-md5.c: Likewise.
1242         * tests/test-memchr.c: Likewise.
1243         * tests/test-memchr2.c: Likewise.
1244         * tests/test-memcmp.c: Likewise.
1245         * tests/test-memmem.c: Likewise.
1246         * tests/test-memrchr.c: Likewise.
1247         * tests/test-rawmemchr.c: Likewise.
1248         * tests/test-read-file.c: Likewise.
1249         * tests/test-rijndael.c: Likewise.
1250         * tests/test-sockets.c: Likewise.
1251         * tests/test-strchrnul.c: Likewise.
1252         * tests/test-strstr.c: Likewise.
1253         * tests/test-strtod.c: Likewise.
1254         * build-aux/ncftpput-ftp: Likewise.
1255
1256 2010-01-26  Eric Blake  <ebb9@byu.net>
1257
1258         ignore-value: update recommended header name
1259         * modules/ignore-value (Include): Only use <> for headers that
1260         exist in glibc.
1261
1262 2010-01-26  Jim Meyering  <meyering@redhat.com>
1263
1264         test-userspec.c: avoid compiler warnings
1265         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
1266         and "initialization discards qualifiers..." warnings.
1267         Put the first "uid" in its own scope, and make char* members "const".
1268
1269 2010-01-25  Bruno Haible  <bruno@clisp.org>
1270
1271         gnulib-tool: Make warning diagnostics consistent.
1272         * gnulib-tool (func_warning): New function.
1273         Use it everywhere where gnulib-tool produces output to stderr and it is
1274         not a fatal error.
1275
1276 2010-01-25  Bruno Haible  <bruno@clisp.org>
1277
1278         Fix test dependencies.
1279         * modules/xstrtol-tests (Depends-on): Add inttypes.
1280         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
1281
1282 2010-01-25 Pádraig Brady <P@draigBrady.com>
1283
1284         syntax-check: detect incorrect boolean macro values in config.h
1285         * modules/maintainer-makefile (configure.ac): Parameterize the location
1286         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
1287         The logic is from Eric Blake and the location indicated by Jim Meyering.
1288         Note the more natural CONFIG_HEADER name is prohibited by automake
1289         for backwards compatibility reasons.
1290         * top/maint.mk (sc_Wundef_boolean): New rule.
1291
1292 2010-01-25  Jim Meyering  <meyering@redhat.com>
1293
1294         bootstrap: detect MacOS 10.6's shasum, too
1295         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
1296         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
1297
1298 2010-01-23  Jim Meyering  <meyering@redhat.com>
1299
1300         xstrtoll: new module
1301         * modules/xstrtoll: New file.
1302         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
1303         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
1304         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
1305         ./configure fails if you use this module and lack "long long".
1306         * modules/xstrtoll-tests: New module.
1307         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
1308         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
1309         new init.sh-based test framework.
1310
1311 2010-01-24  Bruno Haible  <bruno@clisp.org>
1312
1313         Tests for module 'yn'.
1314         * modules/yn-tests: New file.
1315         * tests/test-yn.c: New file.
1316
1317         Tests for module 'y1'.
1318         * modules/y1-tests: New file.
1319         * tests/test-y1.c: New file.
1320
1321         Tests for module 'y0'.
1322         * modules/y0-tests: New file.
1323         * tests/test-y0.c: New file.
1324
1325         Tests for module 'tanh'.
1326         * modules/tanh-tests: New file.
1327         * tests/test-tanh.c: New file.
1328
1329         Tests for module 'tan'.
1330         * modules/tan-tests: New file.
1331         * tests/test-tan.c: New file.
1332
1333         Tests for module 'sqrt'.
1334         * modules/sqrt-tests: New file.
1335         * tests/test-sqrt.c: New file.
1336
1337         Tests for module 'sinh'.
1338         * modules/sinh-tests: New file.
1339         * tests/test-sinh.c: New file.
1340
1341         Tests for module 'sin'.
1342         * modules/sin-tests: New file.
1343         * tests/test-sin.c: New file.
1344
1345         Tests for module 'rint'.
1346         * modules/rint-tests: New file.
1347         * tests/test-rint.c: New file.
1348
1349         Tests for module 'remainder'.
1350         * modules/remainder-tests: New file.
1351         * tests/test-remainder.c: New file.
1352
1353         Tests for module 'pow'.
1354         * modules/pow-tests: New file.
1355         * tests/test-pow.c: New file.
1356
1357         Tests for module 'nextafter'.
1358         * modules/nextafter-tests: New file.
1359         * tests/test-nextafter.c: New file.
1360
1361         Tests for module 'modf'.
1362         * modules/modf-tests: New file.
1363         * tests/test-modf.c: New file.
1364
1365         Tests for module 'logb'.
1366         * modules/logb-tests: New file.
1367         * tests/test-logb.c: New file.
1368
1369         Tests for module 'log1p'.
1370         * modules/log1p-tests: New file.
1371         * tests/test-log1p.c: New file.
1372
1373         Tests for module 'log10'.
1374         * modules/log10-tests: New file.
1375         * tests/test-log10.c: New file.
1376
1377         Tests for module 'log'.
1378         * modules/log-tests: New file.
1379         * tests/test-log.c: New file.
1380
1381         Tests for module 'lgamma'.
1382         * modules/lgamma-tests: New file.
1383         * tests/test-lgamma.c: New file.
1384
1385         Tests for module 'ldexp'.
1386         * modules/ldexp-tests: New file.
1387         * tests/test-ldexp.c: New file.
1388
1389         Tests for module 'jn'.
1390         * modules/jn-tests: New file.
1391         * tests/test-jn.c: New file.
1392
1393         Tests for module 'j1'.
1394         * modules/j1-tests: New file.
1395         * tests/test-j1.c: New file.
1396
1397         Tests for module 'j0'.
1398         * modules/j0-tests: New file.
1399         * tests/test-j0.c: New file.
1400
1401         Tests for module 'hypot'.
1402         * modules/hypot-tests: New file.
1403         * tests/test-hypot.c: New file.
1404
1405         Tests for module 'fmod'.
1406         * modules/fmod-tests: New file.
1407         * tests/test-fmod.c: New file.
1408
1409         Tests for module 'fabs'.
1410         * modules/fabs-tests: New file.
1411         * tests/test-fabs.c: New file.
1412
1413         Tests for module 'exp'.
1414         * modules/exp-tests: New file.
1415         * tests/test-exp.c: New file.
1416
1417         Tests for module 'erfc'.
1418         * modules/erfc-tests: New file.
1419         * tests/test-erfc.c: New file.
1420
1421         Tests for module 'erf'.
1422         * modules/erf-tests: New file.
1423         * tests/test-erf.c: New file.
1424
1425         Tests for module 'cosh'.
1426         * modules/cosh-tests: New file.
1427         * tests/test-cosh.c: New file.
1428
1429         Tests for module 'cos'.
1430         * modules/cos-tests: New file.
1431         * tests/test-cos.c: New file.
1432
1433         Tests for module 'copysign'.
1434         * modules/copysign-tests: New file.
1435         * tests/test-copysign.c: New file.
1436
1437         Tests for module 'cbrt'.
1438         * modules/cbrt-tests: New file.
1439         * tests/test-cbrt.c: New file.
1440
1441         Tests for module 'atan2'.
1442         * modules/atan2-tests: New file.
1443         * tests/test-atan2.c: New file.
1444
1445         Tests for module 'atan'.
1446         * modules/atan-tests: New file.
1447         * tests/test-atan.c: New file.
1448
1449         Tests for module 'asin'.
1450         * modules/asin-tests: New file.
1451         * tests/test-asin.c: New file.
1452
1453         Tests for module 'acos'.
1454         * modules/acos-tests: New file.
1455         * tests/test-acos.c: New file.
1456
1457 2010-01-24  Bruno Haible  <bruno@clisp.org>
1458
1459         Fix tests for common <math.h> functions.
1460         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
1461         code snippet that references the function pointer, rather than merely
1462         calling the function. Substitute the FUNC_LIBM variable.
1463         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
1464         * modules/acos (configure.ac): Likewise.
1465         * modules/asin (configure.ac): Likewise.
1466         * modules/atan (configure.ac): Likewise.
1467         * modules/atan2 (configure.ac): Likewise.
1468         * modules/cbrt (configure.ac): Likewise.
1469         * modules/copysign (configure.ac): Likewise.
1470         * modules/cos (configure.ac): Likewise.
1471         * modules/cosh (configure.ac): Likewise.
1472         * modules/erf (configure.ac): Likewise.
1473         * modules/erfc (configure.ac): Likewise.
1474         * modules/exp (configure.ac): Likewise.
1475         * modules/fabs (configure.ac): Likewise.
1476         * modules/fmod (configure.ac): Likewise.
1477         * modules/hypot (configure.ac): Likewise.
1478         * modules/j0 (configure.ac): Likewise.
1479         * modules/j1 (configure.ac): Likewise.
1480         * modules/jn (configure.ac): Likewise.
1481         * modules/ldexp (configure.ac): Likewise.
1482         * modules/lgamma (configure.ac): Likewise.
1483         * modules/log (configure.ac): Likewise.
1484         * modules/log10 (configure.ac): Likewise.
1485         * modules/log1p (configure.ac): Likewise.
1486         * modules/logb (configure.ac): Likewise.
1487         * modules/modf (configure.ac): Likewise.
1488         * modules/nextafter (configure.ac): Likewise.
1489         * modules/pow (configure.ac): Likewise.
1490         * modules/remainder (configure.ac): Likewise.
1491         * modules/rint (configure.ac): Likewise.
1492         * modules/sin (configure.ac): Likewise.
1493         * modules/sinh (configure.ac): Likewise.
1494         * modules/tan (configure.ac): Likewise.
1495         * modules/tanh (configure.ac): Likewise.
1496         * modules/y0 (configure.ac): Likewise.
1497         * modules/y1 (configure.ac): Likewise.
1498         * modules/yn (configure.ac): Likewise.
1499
1500 2010-01-24  Bruno Haible  <bruno@clisp.org>
1501
1502         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
1503         * tests/test-acosl.c (x): New variable.
1504         (main): Store argument in x and fetch it from x.
1505         * tests/test-asinl.c (x): New variable.
1506         (main): Store argument in x and fetch it from x.
1507         * tests/test-atanl.c (x): New variable.
1508         (main): Store argument in x and fetch it from x.
1509         * tests/test-cosl.c (x): New variable.
1510         (main): Store argument in x and fetch it from x.
1511         * tests/test-expl.c (x): New variable.
1512         (main): Store argument in x and fetch it from x.
1513         * tests/test-logl.c (x): New variable.
1514         (main): Store argument in x and fetch it from x.
1515         * tests/test-sinl.c (x): New variable.
1516         (main): Store argument in x and fetch it from x.
1517         * tests/test-sqrtl.c (x): New variable.
1518         (main): Store argument in x and fetch it from x.
1519         * tests/test-tanl.c (x): New variable.
1520         (main): Store argument in x and fetch it from x.
1521
1522 2010-01-24  Bruno Haible  <bruno@clisp.org>
1523
1524         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
1525         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
1526         assignments to the initial TESTS_ENVIRONMENT.
1527         * doc/gnulib.texi (Unit test modules): Document it.
1528         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
1529         TESTS_ENVIRONMENT.
1530         * modules/btowc-tests (Makefile.am): Likewise.
1531         * modules/c-stack-tests (Makefile.am): Likewise.
1532         * modules/c-strcase-tests (Makefile.am): Likewise.
1533         * modules/copy-file-tests (Makefile.am): Likewise.
1534         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
1535         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
1536         * modules/mbrtowc-tests (Makefile.am): Likewise.
1537         * modules/mbscasecmp-tests (Makefile.am): Likewise.
1538         * modules/mbscasestr-tests (Makefile.am): Likewise.
1539         * modules/mbschr-tests (Makefile.am): Likewise.
1540         * modules/mbscspn-tests (Makefile.am): Likewise.
1541         * modules/mbsinit-tests (Makefile.am): Likewise.
1542         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
1543         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
1544         * modules/mbspbrk-tests (Makefile.am): Likewise.
1545         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
1546         * modules/mbsrchr-tests (Makefile.am): Likewise.
1547         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
1548         * modules/mbsspn-tests (Makefile.am): Likewise.
1549         * modules/mbsstr-tests (Makefile.am): Likewise.
1550         * modules/nl_langinfo-tests (Makefile.am): Likewise.
1551         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
1552         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
1553         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
1554         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
1555         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
1556         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
1557         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
1558         * modules/wcrtomb-tests (Makefile.am): Likewise.
1559         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
1560         * modules/wcsrtombs-tests (Makefile.am): Likewise.
1561         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
1562         assignments from TESTS_ENVIRONMENT.
1563         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
1564         augmentation.
1565         * modules/argp-version-etc-tests (Makefile.am): Likewise.
1566         * modules/atexit-tests (Makefile.am): Likewise.
1567         * modules/binary-io-tests (Makefile.am): Likewise.
1568         * modules/closein-tests (Makefile.am): Likewise.
1569         * modules/dprintf-posix-tests (Makefile.am): Likewise.
1570         * modules/exclude-tests (Makefile.am): Likewise.
1571         * modules/fflush-tests (Makefile.am): Likewise.
1572         * modules/fpending-tests (Makefile.am): Likewise.
1573         * modules/fprintf-posix-tests (Makefile.am): Likewise.
1574         * modules/freadahead-tests (Makefile.am): Likewise.
1575         * modules/freadptr-tests (Makefile.am): Likewise.
1576         * modules/freadseek-tests (Makefile.am): Likewise.
1577         * modules/fseek-tests (Makefile.am): Likewise.
1578         * modules/fseeko-tests (Makefile.am): Likewise.
1579         * modules/ftell-tests (Makefile.am): Likewise.
1580         * modules/ftello-tests (Makefile.am): Likewise.
1581         * modules/idpriv-drop-tests (Makefile.am): Likewise.
1582         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
1583         * modules/lseek-tests (Makefile.am): Likewise.
1584         * modules/parse-duration-tests (Makefile.am): Likewise.
1585         * modules/perror-tests (Makefile.am): Likewise.
1586         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
1587         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
1588         * modules/pipe-tests (Makefile.am): Likewise.
1589         * modules/pread-tests (Makefile.am): Likewise.
1590         * modules/printf-posix-tests (Makefile.am): Likewise.
1591         * modules/select-tests (Makefile.am): Likewise.
1592         * modules/sigpipe-tests (Makefile.am): Likewise.
1593         * modules/tsearch-tests (Makefile.am): Likewise.
1594         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
1595         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
1596         * modules/uniname/uniname-tests (Makefile.am): Likewise.
1597         * modules/uniwidth/width-tests (Makefile.am): Likewise.
1598         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
1599         * modules/version-etc-tests (Makefile.am): Likewise.
1600         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
1601         * modules/vprintf-posix-tests (Makefile.am): Likewise.
1602         * modules/xalloc-die-tests (Makefile.am): Likewise.
1603         * modules/xprintf-posix-tests (Makefile.am): Likewise.
1604         * modules/xstrtoimax-tests (Makefile.am): Likewise.
1605         * modules/xstrtol-tests (Makefile.am): Likewise.
1606         * modules/xstrtoumax-tests (Makefile.am): Likewise.
1607         * modules/yesno-tests (Makefile.am): Likewise.
1608         Suggested by Jim Meyering.
1609
1610 2010-01-24  Bruno Haible  <bruno@clisp.org>
1611
1612         More documentation.
1613         * doc/gnulib.texi (Writing modules): New chapter.
1614         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
1615         the new chapter.
1616
1617 2010-01-24  Jim Meyering  <meyering@redhat.com>
1618
1619         maint.mk: do not prepend "./" after filtering
1620         * top/maint.mk (_prepend_srcdir_prefix): New variable
1621         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
1622         "./" when $(srcdir) is ".".
1623
1624         define STREQ(a,b) consistently, removing useless parentheses
1625         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
1626         since the only risk is that "a" or "b" contains an unparenthesized
1627         comma, but if either did that, STREQ would have 3 or more arguments.
1628         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
1629         * lib/fts.c (STREQ): Remove unnecessary parentheses.
1630         * lib/hash-triple.c (STREQ): Likewise.
1631         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
1632         * lib/getugroups.c (STREQ): Likewise.
1633
1634 2010-01-23  Jim Meyering  <meyering@redhat.com>
1635
1636         maint.mk: fix syntax-check in a non-srcdir build directory
1637         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
1638         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
1639
1640 2010-01-22  Jim Meyering  <meyering@redhat.com>
1641
1642         userspec: add unit tests
1643         * tests/test-userspec.c: New file.
1644         * modules/userspec-tests: Likewise.
1645
1646 2010-01-21  Jim Meyering  <meyering@redhat.com>
1647
1648         maint.mk: handle source file names containing "." robustly
1649         * top/maint.mk (_dot_escaped_srcdir): Define.
1650         (VC_LIST): Use it in LHS of sed substitution.
1651
1652 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
1653
1654         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
1655         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
1656         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
1657         from a non-srcdir build.
1658
1659 2010-01-20  Eric Blake  <ebb9@byu.net>
1660
1661         warn-on-use: use instead of link-warning
1662         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
1663         * modules/unistd (Depends-on, Makefile.am): Likewise.
1664         * modules/arpa_inet (Depends-on): Replace link-warning with
1665         warn-on-use.
1666         (Makefile.am): Update rules accordingly.
1667         * modules/ctype (Depends-on, Makefile.am): Likewise.
1668         * modules/dirent (Depends-on, Makefile.am): Likewise.
1669         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
1670         * modules/inttypes (Depends-on, Makefile.am): Likewise.
1671         * modules/langinfo (Depends-on, Makefile.am): Likewise.
1672         * modules/locale (Depends-on, Makefile.am): Likewise.
1673         * modules/math (Depends-on, Makefile.am): Likewise.
1674         * modules/search (Depends-on, Makefile.am): Likewise.
1675         * modules/signal (Depends-on, Makefile.am): Likewise.
1676         * modules/spawn (Depends-on, Makefile.am): Likewise.
1677         * modules/stdlib (Depends-on, Makefile.am): Likewise.
1678         * modules/string (Depends-on, Makefile.am): Likewise.
1679         * modules/strings (Depends-on, Makefile.am): Likewise.
1680         * modules/sys_file (Depends-on, Makefile.am): Likewise.
1681         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
1682         * modules/sys_select (Depends-on, Makefile.am): Likewise.
1683         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
1684         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
1685         * modules/sys_times (Depends-on, Makefile.am): Likewise.
1686         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
1687         * modules/wchar (Depends-on, Makefile.am): Likewise.
1688         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
1689         should be poisoned.
1690         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
1691         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
1692         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
1693         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
1694         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
1695         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
1696         * m4/math_h.m4 (gl_MATH_H): Likewise.
1697         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
1698         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
1699         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
1700         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
1701         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
1702         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
1703         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
1704         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
1705         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
1706         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
1707         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
1708         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
1709         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
1710         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
1711         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
1712         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
1713         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
1714         GL_LINK_WARNING.
1715         * lib/ctype.in.h: Likewise.
1716         * lib/dirent.in.h: Likewise.
1717         * lib/fcntl.in.h: Likewise.
1718         * lib/inttypes.in.h: Likewise.
1719         * lib/langinfo.in.h: Likewise.
1720         * lib/locale.in.h: Likewise.
1721         * lib/math.in.h: Likewise.
1722         * lib/search.in.h: Likewise.
1723         * lib/signal.in.h: Likewise.
1724         * lib/spawn.in.h: Likewise.
1725         * lib/stdio.in.h: Likewise.
1726         * lib/stdlib.in.h: Likewise.
1727         * lib/string.in.h: Likewise.
1728         * lib/strings.in.h: Likewise.
1729         * lib/sys_file.in.h: Likewise.
1730         * lib/sys_ioctl.in.h: Likewise.
1731         * lib/sys_select.in.h: Likewise.
1732         * lib/sys_socket.in.h: Likewise.
1733         * lib/sys_stat.in.h: Likewise.
1734         * lib/sys_times.in.h: Likewise.
1735         * lib/sys_utsname.in.h: Likewise.
1736         * lib/unistd.in.h: Likewise.
1737         * lib/wchar.in.h: Likewise.
1738
1739 2010-01-20  Bruno Haible  <bruno@clisp.org>
1740
1741         Avoid duplicate -lm.
1742         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
1743         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
1744         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
1745         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
1746         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
1747         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
1748         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
1749         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
1750         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
1751         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
1752         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
1753         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
1754         Reported by Paolo Bonzini.
1755
1756 2010-01-19  Bruno Haible  <bruno@clisp.org>
1757
1758         langinfo, nl_langinfo: Relicense under LGPLv2+.
1759         * modules/langinfo (License): Change to LGPLv2+.
1760         * modules/nl_langinfo (License): Likewise.
1761         Patch by David Lutterkort <lutter@redhat.com>.
1762
1763 2010-01-19  Bruno Haible  <bruno@clisp.org>
1764
1765         Avoid compilation error with cc on OSF/1 5.1.
1766         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
1767         statement, not before.
1768         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
1769
1770 2010-01-18  Bruno Haible  <bruno@clisp.org>
1771
1772         Avoid a link error due to the __printf__ symbol.
1773         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
1774         and 2.6.x.
1775         (__format__, __printf__): Remove definitions.
1776         * lib/argp-fmtstream.h: Likewise.
1777         * lib/argp.h: Likewise.
1778         * lib/error.h: Likewise.
1779         * lib/vasnprintf.h: Likewise.
1780         * lib/xprintf.h: Likewise.
1781         * lib/xvasprintf.h: Likewise.
1782         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
1783
1784 2010-01-18  Bruno Haible  <bruno@clisp.org>
1785
1786         Tests for module 'tanl'.
1787         * modules/tanl-tests: New file.
1788         * tests/test-tanl.c: New file.
1789
1790         Tests for module 'sqrtl'.
1791         * modules/sqrtl-tests: New file.
1792         * tests/test-sqrtl.c: New file.
1793
1794         Tests for module 'sinl'.
1795         * modules/sinl-tests: New file.
1796         * tests/test-sinl.c: New file.
1797
1798         Tests for module 'logl'.
1799         * modules/logl-tests: New file.
1800         * tests/test-logl.c: New file.
1801
1802         Tests for module 'expl'.
1803         * modules/expl-tests: New file.
1804         * tests/test-expl.c: New file.
1805
1806         Tests for module 'cosl'.
1807         * modules/cosl-tests: New file.
1808         * tests/test-cosl.c: New file.
1809
1810         Tests for module 'atanl'.
1811         * modules/atanl-tests: New file.
1812         * tests/test-atanl.c: New file.
1813
1814         Tests for module 'asinl'.
1815         * modules/asinl-tests: New file.
1816         * tests/test-asinl.c: New file.
1817
1818         Tests for module 'acosl'.
1819         * modules/acosl-tests: New file.
1820         * tests/test-acosl.c: New file.
1821
1822         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
1823         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
1824         tanl): Use the standard gnulib idiom.
1825         * lib/cosl.c: Don't include trigl.c and sincosl.c.
1826         * lib/sinl.c: Likewise.
1827         * lib/tanl.c: Don't include trigl.c.
1828         (kernel_tanl): Make static.
1829         * lib/sincosl.c: Include trigl.h first.
1830         * lib/trigl.c: Likewise.
1831         * m4/acosl.m4: New file.
1832         * m4/asinl.m4: New file.
1833         * m4/atanl.m4: New file.
1834         * m4/cosl.m4: New file.
1835         * m4/expl.m4: New file.
1836         * m4/logl.m4: New file.
1837         * m4/sinl.m4: New file.
1838         * m4/sqrtl.m4: New file.
1839         * m4/tanl.m4: New file.
1840         * m4/mathl.m4: Remove file.
1841         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
1842         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
1843         Don't initialize GNULIB_MATHL.
1844         * modules/acosl: New file.
1845         * modules/asinl: New file.
1846         * modules/atanl: New file.
1847         * modules/cosl: New file.
1848         * modules/expl: New file.
1849         * modules/logl: New file.
1850         * modules/sinl: New file.
1851         * modules/sqrtl: New file.
1852         * modules/tanl: New file.
1853         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
1854         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
1855         substitute GNULIB_MATHL.
1856         * modules/mathl: Rewritten.
1857         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
1858         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
1859         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
1860         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
1861         * doc/posix-functions/expl.texi: Mention the 'expl' module.
1862         * doc/posix-functions/logl.texi: Mention the 'logl' module.
1863         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
1864         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
1865         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
1866
1867 2010-01-18  Bruno Haible  <bruno@clisp.org>
1868
1869         sqrt: Make gl_FUNC_SQRT requirable.
1870         * m4/sqrt.m4: New file.
1871         * modules/sqrt (Files): Add it.
1872         (configure.ac): Invoke gl_FUNC_SQRT.
1873
1874 2010-01-18  Bruno Haible  <bruno@clisp.org>
1875
1876         New modules for common <math.h> functions.
1877         * m4/mathfunc.m4: New file.
1878         * modules/acos: New file.
1879         * modules/asin: New file.
1880         * modules/atan: New file.
1881         * modules/atan2: New file.
1882         * modules/cbrt: New file.
1883         * modules/copysign: New file.
1884         * modules/cos: New file.
1885         * modules/cosh: New file.
1886         * modules/erf: New file.
1887         * modules/erfc: New file.
1888         * modules/exp: New file.
1889         * modules/fabs: New file.
1890         * modules/fmod: New file.
1891         * modules/hypot: New file.
1892         * modules/j0: New file.
1893         * modules/j1: New file.
1894         * modules/jn: New file.
1895         * modules/ldexp: New file.
1896         * modules/lgamma: New file.
1897         * modules/log: New file.
1898         * modules/log10: New file.
1899         * modules/log1p: New file.
1900         * modules/logb: New file.
1901         * modules/modf: New file.
1902         * modules/nextafter: New file.
1903         * modules/pow: New file.
1904         * modules/remainder: New file.
1905         * modules/rint: New file.
1906         * modules/sin: New file.
1907         * modules/sinh: New file.
1908         * modules/sqrt: New file.
1909         * modules/tan: New file.
1910         * modules/tanh: New file.
1911         * modules/y0: New file.
1912         * modules/y1: New file.
1913         * modules/yn: New file.
1914         * doc/posix-functions/acos.texi: Mention the 'acos' module.
1915         * doc/posix-functions/asin.texi: Mention the 'asin' module.
1916         * doc/posix-functions/atan.texi: Mention the 'atan' module.
1917         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
1918         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
1919         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
1920         * doc/posix-functions/cos.texi: Mention the 'cos' module.
1921         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
1922         * doc/posix-functions/erf.texi: Mention the 'erf' module.
1923         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
1924         * doc/posix-functions/exp.texi: Mention the 'exp' module.
1925         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
1926         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
1927         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
1928         * doc/posix-functions/j0.texi: Mention the 'j0' module.
1929         * doc/posix-functions/j1.texi: Mention the 'j1' module.
1930         * doc/posix-functions/jn.texi: Mention the 'jn' module.
1931         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
1932         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
1933         * doc/posix-functions/log.texi: Mention the 'log' module.
1934         * doc/posix-functions/log10.texi: Mention the 'log10' module.
1935         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
1936         * doc/posix-functions/logb.texi: Mention the 'logb' module.
1937         * doc/posix-functions/modf.texi: Mention the 'modf' module.
1938         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
1939         * doc/posix-functions/pow.texi: Mention the 'pow' module.
1940         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
1941         * doc/posix-functions/rint.texi: Mention the 'rint' module.
1942         * doc/posix-functions/sin.texi: Mention the 'sin' module.
1943         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
1944         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
1945         * doc/posix-functions/tan.texi: Mention the 'tan' module.
1946         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
1947         * doc/posix-functions/y0.texi: Mention the 'y0' module.
1948         * doc/posix-functions/y1.texi: Mention the 'y1' module.
1949         * doc/posix-functions/yn.texi: Mention the 'yn' module.
1950
1951 2010-01-18  Jim Meyering  <meyering@redhat.com>
1952
1953         ignore-value: relax license to LGPLv2+
1954         * modules/ignore-value (License): Relax to LGPLv2+.
1955
1956         getdate: don't leak when TZ contains two or more '"'s
1957         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
1958         double quote in TZ after the first one.
1959
1960         readtokens: do not leak internal token_lengths buffer
1961         * lib/readtokens.c (readtokens): Free the local, lengths,
1962         when the supplied "token_lengths" parameter is NULL.
1963
1964 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1965
1966         Fix a couple of missing LIBTHREAD link failures on AIX.
1967         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
1968         $(LIBTHREAD).
1969         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
1970
1971         Link test-poll against INET_PTON_LIB.
1972         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
1973         for inet_pton on Solaris 10.
1974
1975 2010-01-17  Bruno Haible  <bruno@clisp.org>
1976
1977         unistdio/*-sprintf: Fix typo in module description.
1978         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
1979         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
1980         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
1981         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
1982         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
1983         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
1984         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
1985         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
1986
1987 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1988
1989         gnulib-tool: fix filelist for AIX, HP-UX ksh.
1990         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
1991         variables in shell case patterns, for AIX and HP-UX ksh.
1992
1993         Split large sed scripts, for HP-UX sed.
1994         * modules/stdio: Split sed scripts around 50 sed commands,
1995         to avoid HP-UX limit of 99 commands, in the near future.
1996         * modules/string: Likewise.
1997         * modules/unistd: Likewise.
1998
1999         gnulib-tool: avoid writing in the current directory.
2000         * gnulib-tool (func_emit_lib_Makefile_am)
2001         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
2002         not in the current directory, so concurrent gnulib-tool
2003         instances do not interfere.
2004
2005 2010-01-16  Jim Meyering  <meyering@redhat.com>
2006
2007         doc: update users.txt
2008         * users.txt: Add grep.
2009         (diffutils, gzip): Update URLs.
2010
2011 2010-01-12  Bruno Haible  <bruno@clisp.org>
2012
2013         posix_spawn: Avoid test failure on Cygwin.
2014         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
2015         characters.
2016         Reported by Simon Josefsson.
2017
2018 2010-01-12  Bruno Haible  <bruno@clisp.org>
2019
2020         * tests/test-cond.c (main): When skipping the test, show the reason.
2021
2022 2010-01-12  Simon Josefsson  <simon@josefsson.org>
2023
2024         * lib/striconv.c (str_cd_iconv): Avoid if before free.
2025
2026 2010-01-12  Simon Josefsson  <simon@josefsson.org>
2027
2028         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
2029         VC_LIST_ALWAYS_EXCLUDE_REGEX.
2030
2031 2010-01-12  Eric Blake  <ebb9@byu.net>
2032
2033         build: guarantee AS_VAR_IF
2034         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
2035         (gl_AS_VAR_IF): Move...
2036         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
2037         Reported by Simon Josefsson.
2038
2039 2010-01-12  Simon Josefsson  <simon@josefsson.org>
2040
2041         * lib/stdio.in.h: Fix typo.
2042
2043 2010-01-12  Simon Josefsson  <simon@josefsson.org>
2044
2045         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
2046         libgpg-error.
2047
2048 2010-01-12  Simon Josefsson  <simon@josefsson.org>
2049
2050         * tests/test-xalloc-die.sh: Use $EXEEXT.
2051
2052 2010-01-12  Simon Josefsson  <simon@josefsson.org>
2053             Bruno Haible  <bruno@clisp.org>
2054
2055         getlogin, getlogin_r: Avoid test failure.
2056         * tests/test-getlogin.c: Include <stdio.h>.
2057         (main): Skip the test when the function fails because stdin is not a
2058         tty.
2059         * tests/test-getlogin_r.c: Include <stdio.h>.
2060         (main): Skip the test when the function fails because stdin is not a
2061         tty.
2062
2063 2010-01-11  Eric Blake  <ebb9@byu.net>
2064
2065         tests: avoid more large file warnings
2066         * tests/test-fflush.c: Avoid warning about ftell use.
2067         * tests/test-fseek.c: Avoid warning about fseek use.
2068
2069 2010-01-10  Bruno Haible  <bruno@clisp.org>
2070
2071         nproc: Work better on Linux when /proc and /sys are not mounted.
2072         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
2073         as lower bound when, on glibc/Linux systems,
2074         sysconf (_SC_NPROCESSORS_CONF) returns 1.
2075         Suggested by Pádraig Brady <P@draigbrady.com>.
2076         Reported by Dmitry V. Levin <ldv@altlinux.org>.
2077
2078         nproc: Refactor.
2079         * lib/nproc.c (num_processors_via_affinity_mask): New function,
2080         extracted from num_processors.
2081         (num_processors): Call it.
2082
2083 2010-01-11  Jim Meyering  <meyering@redhat.com>
2084
2085         utimecmp: avoid new warning from upcoming gcc-4.5.0
2086         * lib/utimecmp.c (BILLION): Define using #define rather than an
2087         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
2088
2089 2010-01-11  Eric Blake  <ebb9@byu.net>
2090
2091         math: add portability warnings for classification macros
2092         * modules/math (Depends-on): Add warn-on-use.
2093         (Makefile.am): Provide new substitutions.
2094         * m4/math_h.m4 (gl_MATH_H): Require inline.
2095         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
2096         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
2097         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
2098         implement warnings.
2099
2100         unistd: warn on use of environ without module
2101         * modules/unistd (Depends-on): Add warn-on-use.
2102         (Makefile.am): Provide new substitutions.
2103         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
2104         * lib/unistd.in.h (environ): Wrap with a warning helper function.
2105
2106         stdio: warn on suspicious uses
2107         * modules/stdio (Depends-on): Add warn-on-use.
2108         (Makefile.am): Provide new substitutions.
2109         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
2110         fseeko.
2111         * lib/stdio.in.h (gets): Always warn on use.
2112         (fseek, ftell): Adjust when warnings are issued, and honor
2113         _GL_NO_LARGE_FILES as a way to silence the warning.
2114         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
2115         any warning about large file offsets.
2116         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
2117         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
2118         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
2119         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
2120         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
2121         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
2122         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
2123         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
2124
2125         warn-on-use: new module
2126         * modules/warn-on-use: New file.
2127         * build-aux/warn-on-use.h: Likewise.
2128         * m4/warn-on-use.m4: Likewise.
2129         * MODULES.html.sh (Support for building): Mention it.
2130
2131 2010-01-10  Bruno Haible  <bruno@clisp.org>
2132
2133         Tests for module 'unistr/u32-strdup'.
2134         * modules/unistr/u32-strdup-tests: New file.
2135         * tests/unistr/test-u32-strdup.c: New file.
2136
2137         Tests for module 'unistr/u16-strdup'.
2138         * modules/unistr/u16-strdup-tests: New file.
2139         * tests/unistr/test-u16-strdup.c: New file.
2140
2141         Tests for module 'unistr/u8-strdup'.
2142         * modules/unistr/u8-strdup-tests: New file.
2143         * tests/unistr/test-u8-strdup.c: New file.
2144         * tests/unistr/test-strdup.h: New file.
2145
2146         Tests for module 'unistr/u32-strncmp'.
2147         * modules/unistr/u32-strncmp-tests: New file.
2148         * tests/unistr/test-u32-strncmp.c: New file.
2149
2150         Tests for module 'unistr/u16-strncmp'.
2151         * modules/unistr/u16-strncmp-tests: New file.
2152         * tests/unistr/test-u16-strncmp.c: New file.
2153
2154         Tests for module 'unistr/u8-strncmp'.
2155         * modules/unistr/u8-strncmp-tests: New file.
2156         * tests/unistr/test-u8-strncmp.c: New file.
2157         * tests/unistr/test-strncmp.h: New file.
2158
2159         Tests for module 'unistr/u32-strcoll'.
2160         * modules/unistr/u32-strcoll-tests: New file.
2161         * tests/unistr/test-u32-strcoll.c: New file.
2162
2163         Tests for module 'unistr/u16-strcoll'.
2164         * modules/unistr/u16-strcoll-tests: New file.
2165         * tests/unistr/test-u16-strcoll.c: New file.
2166
2167         Tests for module 'unistr/u8-strcoll'.
2168         * modules/unistr/u8-strcoll-tests: New file.
2169         * tests/unistr/test-u8-strcoll.c: New file.
2170
2171         Tests for module 'unistr/u32-strcmp'.
2172         * modules/unistr/u32-strcmp-tests: New file.
2173         * tests/unistr/test-u32-strcmp.c: New file.
2174         * tests/unistr/test-u32-strcmp.h: New file.
2175
2176         Tests for module 'unistr/u16-strcmp'.
2177         * modules/unistr/u16-strcmp-tests: New file.
2178         * tests/unistr/test-u16-strcmp.c: New file.
2179         * tests/unistr/test-u16-strcmp.h: New file.
2180
2181         Tests for module 'unistr/u8-strcmp'.
2182         * modules/unistr/u8-strcmp-tests: New file.
2183         * tests/unistr/test-u8-strcmp.c: New file.
2184         * tests/unistr/test-u8-strcmp.h: New file.
2185         * tests/unistr/test-strcmp.h: New file.
2186
2187         Tests for module 'unistr/u32-strncat'.
2188         * modules/unistr/u32-strncat-tests: New file.
2189         * tests/unistr/test-u32-strncat.c: New file.
2190
2191         Tests for module 'unistr/u16-strncat'.
2192         * modules/unistr/u16-strncat-tests: New file.
2193         * tests/unistr/test-u16-strncat.c: New file.
2194
2195         Tests for module 'unistr/u8-strncat'.
2196         * modules/unistr/u8-strncat-tests: New file.
2197         * tests/unistr/test-u8-strncat.c: New file.
2198         * tests/unistr/test-strncat.h: New file.
2199
2200         Tests for module 'unistr/u32-strcat'.
2201         * modules/unistr/u32-strcat-tests: New file.
2202         * tests/unistr/test-u32-strcat.c: New file.
2203
2204         Tests for module 'unistr/u16-strcat'.
2205         * modules/unistr/u16-strcat-tests: New file.
2206         * tests/unistr/test-u16-strcat.c: New file.
2207
2208         Tests for module 'unistr/u8-strcat'.
2209         * modules/unistr/u8-strcat-tests: New file.
2210         * tests/unistr/test-u8-strcat.c: New file.
2211         * tests/unistr/test-strcat.h: New file.
2212
2213         Tests for module 'unistr/u32-stpncpy'.
2214         * modules/unistr/u32-stpncpy-tests: New file.
2215         * tests/unistr/test-u32-stpncpy.c: New file.
2216
2217         Tests for module 'unistr/u16-stpncpy'.
2218         * modules/unistr/u16-stpncpy-tests: New file.
2219         * tests/unistr/test-u16-stpncpy.c: New file.
2220
2221         Tests for module 'unistr/u8-stpncpy'.
2222         * modules/unistr/u8-stpncpy-tests: New file.
2223         * tests/unistr/test-u8-stpncpy.c: New file.
2224         * tests/unistr/test-stpncpy.h: New file.
2225
2226         Tests for module 'unistr/u32-strncpy'.
2227         * modules/unistr/u32-strncpy-tests: New file.
2228         * tests/unistr/test-u32-strncpy.c: New file.
2229
2230         Tests for module 'unistr/u16-strncpy'.
2231         * modules/unistr/u16-strncpy-tests: New file.
2232         * tests/unistr/test-u16-strncpy.c: New file.
2233
2234         Tests for module 'unistr/u8-strncpy'.
2235         * modules/unistr/u8-strncpy-tests: New file.
2236         * tests/unistr/test-u8-strncpy.c: New file.
2237         * tests/unistr/test-strncpy.h: New file.
2238
2239         Tests for module 'unistr/u32-stpcpy'.
2240         * modules/unistr/u32-stpcpy-tests: New file.
2241         * tests/unistr/test-u32-stpcpy.c: New file.
2242
2243         Tests for module 'unistr/u16-stpcpy'.
2244         * modules/unistr/u16-stpcpy-tests: New file.
2245         * tests/unistr/test-u16-stpcpy.c: New file.
2246
2247         Tests for module 'unistr/u8-stpcpy'.
2248         * modules/unistr/u8-stpcpy-tests: New file.
2249         * tests/unistr/test-u8-stpcpy.c: New file.
2250         * tests/unistr/test-stpcpy.h: New file.
2251
2252         Tests for module 'unistr/u32-strcpy'.
2253         * modules/unistr/u32-strcpy-tests: New file.
2254         * tests/unistr/test-u32-strcpy.c: New file.
2255
2256         Tests for module 'unistr/u16-strcpy'.
2257         * modules/unistr/u16-strcpy-tests: New file.
2258         * tests/unistr/test-u16-strcpy.c: New file.
2259
2260         Tests for module 'unistr/u8-strcpy'.
2261         * modules/unistr/u8-strcpy-tests: New file.
2262         * tests/unistr/test-u8-strcpy.c: New file.
2263         * tests/unistr/test-strcpy.h: New file.
2264
2265         Tests for module 'unistr/u32-strnlen'.
2266         * modules/unistr/u32-strnlen-tests: New file.
2267         * tests/unistr/test-u32-strnlen.c: New file.
2268
2269         Tests for module 'unistr/u16-strnlen'.
2270         * modules/unistr/u16-strnlen-tests: New file.
2271         * tests/unistr/test-u16-strnlen.c: New file.
2272
2273         Tests for module 'unistr/u8-strnlen'.
2274         * modules/unistr/u8-strnlen-tests: New file.
2275         * tests/unistr/test-u8-strnlen.c: New file.
2276         * tests/unistr/test-strnlen.h: New file.
2277
2278         Tests for module 'unistr/u32-strlen'.
2279         * modules/unistr/u32-strlen-tests: New file.
2280         * tests/unistr/test-u32-strlen.c: New file.
2281
2282         Tests for module 'unistr/u16-strlen'.
2283         * modules/unistr/u16-strlen-tests: New file.
2284         * tests/unistr/test-u16-strlen.c: New file.
2285
2286         Tests for module 'unistr/u8-strlen'.
2287         * modules/unistr/u8-strlen-tests: New file.
2288         * tests/unistr/test-u8-strlen.c: New file.
2289
2290         Tests for module 'unistr/u32-prev'.
2291         * modules/unistr/u32-prev-tests: New file.
2292         * tests/unistr/test-u32-prev.c: New file.
2293
2294         Tests for module 'unistr/u16-prev'.
2295         * modules/unistr/u16-prev-tests: New file.
2296         * tests/unistr/test-u16-prev.c: New file.
2297
2298         Tests for module 'unistr/u8-prev'.
2299         * modules/unistr/u8-prev-tests: New file.
2300         * tests/unistr/test-u8-prev.c: New file.
2301
2302         Tests for module 'unistr/u32-next'.
2303         * modules/unistr/u32-next-tests: New file.
2304         * tests/unistr/test-u32-next.c: New file.
2305
2306         Tests for module 'unistr/u16-next'.
2307         * modules/unistr/u16-next-tests: New file.
2308         * tests/unistr/test-u16-next.c: New file.
2309
2310         Tests for module 'unistr/u8-next'.
2311         * modules/unistr/u8-next-tests: New file.
2312         * tests/unistr/test-u8-next.c: New file.
2313
2314         Tests for module 'unistr/u32-strmbtouc'.
2315         * modules/unistr/u32-strmbtouc-tests: New file.
2316         * tests/unistr/test-u32-strmbtouc.c: New file.
2317
2318         Tests for module 'unistr/u16-strmbtouc'.
2319         * modules/unistr/u16-strmbtouc-tests: New file.
2320         * tests/unistr/test-u16-strmbtouc.c: New file.
2321
2322         Tests for module 'unistr/u8-strmbtouc'.
2323         * modules/unistr/u8-strmbtouc-tests: New file.
2324         * tests/unistr/test-u8-strmbtouc.c: New file.
2325
2326         Tests for module 'unistr/u32-strmblen'.
2327         * modules/unistr/u32-strmblen-tests: New file.
2328         * tests/unistr/test-u32-strmblen.c: New file.
2329
2330         Tests for module 'unistr/u16-strmblen'.
2331         * modules/unistr/u16-strmblen-tests: New file.
2332         * tests/unistr/test-u16-strmblen.c: New file.
2333
2334         Tests for module 'unistr/u8-strmblen'.
2335         * modules/unistr/u8-strmblen-tests: New file.
2336         * tests/unistr/test-u8-strmblen.c: New file.
2337
2338         Tests for module 'unistr/u32-cpy-alloc'.
2339         * modules/unistr/u32-cpy-alloc-tests: New file.
2340         * tests/unistr/test-u32-cpy-alloc.c: New file.
2341
2342         Tests for module 'unistr/u16-cpy-alloc'.
2343         * modules/unistr/u16-cpy-alloc-tests: New file.
2344         * tests/unistr/test-u16-cpy-alloc.c: New file.
2345
2346         Tests for module 'unistr/u8-cpy-alloc'.
2347         * modules/unistr/u8-cpy-alloc-tests: New file.
2348         * tests/unistr/test-u8-cpy-alloc.c: New file.
2349         * tests/unistr/test-cpy-alloc.h: New file.
2350
2351         Tests for module 'unistr/u32-mbsnlen'.
2352         * modules/unistr/u32-mbsnlen-tests: New file.
2353         * tests/unistr/test-u32-mbsnlen.c: New file.
2354
2355         Tests for module 'unistr/u16-mbsnlen'.
2356         * modules/unistr/u16-mbsnlen-tests: New file.
2357         * tests/unistr/test-u16-mbsnlen.c: New file.
2358
2359         Tests for module 'unistr/u8-mbsnlen'.
2360         * modules/unistr/u8-mbsnlen-tests: New file.
2361         * tests/unistr/test-u8-mbsnlen.c: New file.
2362
2363         Tests for module 'unistr/u32-chr'.
2364         * modules/unistr/u32-chr-tests: New file.
2365         * tests/unistr/test-u32-chr.c: New file.
2366
2367         Tests for module 'unistr/u16-chr'.
2368         * modules/unistr/u16-chr-tests: New file.
2369         * tests/unistr/test-u16-chr.c: New file.
2370
2371         Tests for module 'unistr/u8-chr'.
2372         * modules/unistr/u8-chr-tests: New file.
2373         * tests/unistr/test-u8-chr.c: New file.
2374         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
2375
2376         Tests for module 'unistr/u32-cmp2'.
2377         * modules/unistr/u32-cmp2-tests: New file.
2378         * tests/unistr/test-u32-cmp2.c: New file.
2379
2380         Tests for module 'unistr/u16-cmp2'.
2381         * modules/unistr/u16-cmp2-tests: New file.
2382         * tests/unistr/test-u16-cmp2.c: New file.
2383
2384         Tests for module 'unistr/u8-cmp2'.
2385         * modules/unistr/u8-cmp2-tests: New file.
2386         * tests/unistr/test-u8-cmp2.c: New file.
2387         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
2388
2389         Tests for module 'unistr/u32-cmp'.
2390         * modules/unistr/u32-cmp-tests: New file.
2391         * tests/unistr/test-u32-cmp.c: New file.
2392
2393         Tests for module 'unistr/u16-cmp'.
2394         * modules/unistr/u16-cmp-tests: New file.
2395         * tests/unistr/test-u16-cmp.c: New file.
2396
2397         Tests for module 'unistr/u8-cmp'.
2398         * modules/unistr/u8-cmp-tests: New file.
2399         * tests/unistr/test-u8-cmp.c: New file.
2400         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
2401
2402         Tests for module 'unistr/u32-set'.
2403         * modules/unistr/u32-set-tests: New file.
2404         * tests/unistr/test-u32-set.c: New file.
2405
2406         Tests for module 'unistr/u16-set'.
2407         * modules/unistr/u16-set-tests: New file.
2408         * tests/unistr/test-u16-set.c: New file.
2409
2410         Tests for module 'unistr/u8-set'.
2411         * modules/unistr/u8-set-tests: New file.
2412         * tests/unistr/test-u8-set.c: New file.
2413         * tests/unistr/test-set.h: New file.
2414
2415         Tests for module 'unistr/u32-move'.
2416         * modules/unistr/u32-move-tests: New file.
2417         * tests/unistr/test-u32-move.c: New file.
2418
2419         Tests for module 'unistr/u16-move'.
2420         * modules/unistr/u16-move-tests: New file.
2421         * tests/unistr/test-u16-move.c: New file.
2422
2423         Tests for module 'unistr/u8-move'.
2424         * modules/unistr/u8-move-tests: New file.
2425         * tests/unistr/test-u8-move.c: New file.
2426         * tests/unistr/test-move.h: New file.
2427
2428         Tests for module 'unistr/u32-cpy'.
2429         * modules/unistr/u32-cpy-tests: New file.
2430         * tests/unistr/test-u32-cpy.c: New file.
2431
2432         Tests for module 'unistr/u16-cpy'.
2433         * modules/unistr/u16-cpy-tests: New file.
2434         * tests/unistr/test-u16-cpy.c: New file.
2435
2436         Tests for module 'unistr/u8-cpy'.
2437         * modules/unistr/u8-cpy-tests: New file.
2438         * tests/unistr/test-u8-cpy.c: New file.
2439         * tests/unistr/test-cpy.h: New file.
2440
2441 2010-01-09  Bruno Haible  <bruno@clisp.org>
2442
2443         Tests for module 'unistr/u32-uctomb'.
2444         * modules/unistr/u32-uctomb-tests: New file.
2445         * tests/unistr/test-u32-uctomb.c: New file.
2446
2447         Tests for module 'unistr/u16-uctomb'.
2448         * modules/unistr/u16-uctomb-tests: New file.
2449         * tests/unistr/test-u16-uctomb.c: New file.
2450
2451         Tests for module 'unistr/u8-uctomb'.
2452         * modules/unistr/u8-uctomb-tests: New file.
2453         * tests/unistr/test-u8-uctomb.c: New file.
2454
2455         Tests for module 'unistr/u32-mbtoucr'.
2456         * modules/unistr/u32-mbtoucr-tests: New file.
2457         * tests/unistr/test-u32-mbtoucr.c: New file.
2458
2459         Tests for module 'unistr/u16-mbtoucr'.
2460         * modules/unistr/u16-mbtoucr-tests: New file.
2461         * tests/unistr/test-u16-mbtoucr.c: New file.
2462
2463         Tests for module 'unistr/u8-mbtoucr'.
2464         * modules/unistr/u8-mbtoucr-tests: New file.
2465         * tests/unistr/test-u8-mbtoucr.c: New file.
2466
2467         Tests for module 'unistr/u32-mbtouc'.
2468         * modules/unistr/u32-mbtouc-tests: New file.
2469         * tests/unistr/test-u32-mbtouc.c: New file.
2470
2471         Tests for module 'unistr/u16-mbtouc'.
2472         * modules/unistr/u16-mbtouc-tests: New file.
2473         * tests/unistr/test-u16-mbtouc.c: New file.
2474
2475         Tests for module 'unistr/u8-mbtouc'.
2476         * modules/unistr/u8-mbtouc-tests: New file.
2477         * tests/unistr/test-u8-mbtouc.c: New file.
2478
2479         Tests for module 'unistr/u32-mbtouc-unsafe'.
2480         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
2481         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
2482         * tests/unistr/test-u32-mbtouc.h: New file.
2483
2484         Tests for module 'unistr/u16-mbtouc-unsafe'.
2485         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
2486         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
2487         * tests/unistr/test-u16-mbtouc.h: New file.
2488
2489         Tests for module 'unistr/u8-mbtouc-unsafe'.
2490         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
2491         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
2492         * tests/unistr/test-u8-mbtouc.h: New file.
2493
2494         Tests for module 'unistr/u32-mblen'.
2495         * modules/unistr/u32-mblen-tests: New file.
2496         * tests/unistr/test-u32-mblen.c: New file.
2497
2498         Tests for module 'unistr/u16-mblen'.
2499         * modules/unistr/u16-mblen-tests: New file.
2500         * tests/unistr/test-u16-mblen.c: New file.
2501
2502         Tests for module 'unistr/u8-mblen'.
2503         * modules/unistr/u8-mblen-tests: New file.
2504         * tests/unistr/test-u8-mblen.c: New file.
2505
2506         Tests for module 'unistr/u32-to-u16'.
2507         * modules/unistr/u32-to-u16-tests: New file.
2508         * tests/unistr/test-u32-to-u16.c: New file.
2509
2510         Tests for module 'unistr/u32-to-u8'.
2511         * modules/unistr/u32-to-u8-tests: New file.
2512         * tests/unistr/test-u32-to-u8.c: New file.
2513
2514         Tests for module 'unistr/u16-to-u32'.
2515         * modules/unistr/u16-to-u32-tests: New file.
2516         * tests/unistr/test-u16-to-u32.c: New file.
2517
2518         Tests for module 'unistr/u16-to-u8'.
2519         * modules/unistr/u16-to-u8-tests: New file.
2520         * tests/unistr/test-u16-to-u8.c: New file.
2521
2522         Tests for module 'unistr/u8-to-u32'.
2523         * modules/unistr/u8-to-u32-tests: New file.
2524         * tests/unistr/test-u8-to-u32.c: New file.
2525
2526         Tests for module 'unistr/u8-to-u16'.
2527         * modules/unistr/u8-to-u16-tests: New file.
2528         * tests/unistr/test-u8-to-u16.c: New file.
2529
2530         Tests for module 'unistr/u32-check'.
2531         * modules/unistr/u32-check-tests: New file.
2532         * tests/unistr/test-u32-check.c: New file.
2533
2534         Tests for module 'unistr/u16-check'.
2535         * modules/unistr/u16-check-tests: New file.
2536         * tests/unistr/test-u16-check.c: New file.
2537
2538         Tests for module 'unistr/u8-check'.
2539         * modules/unistr/u8-check-tests: New file.
2540         * tests/unistr/test-u8-check.c: New file.
2541
2542         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
2543         (category_equals): New function.
2544         (main): Add more tests.
2545         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
2546
2547         * tests/unictype/test-bidi_byname.c (main): Add more tests.
2548
2549 2010-01-10  Bruno Haible  <bruno@clisp.org>
2550
2551         unistr/u*-strcoll: Try harder to distinguish different strings.
2552         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
2553         compare s1 and s2 to see if they are different.
2554
2555 2010-01-10  Bruno Haible  <bruno@clisp.org>
2556
2557         unistr/u*-stpncpy: Fix the return value.
2558         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
2559         description of the return value consistent with stpncpy in glibc.
2560         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
2561         written non-NUL unit.
2562
2563 2010-01-10  Bruno Haible  <bruno@clisp.org>
2564
2565         unistr/u*-next: Add missing dependencies.
2566         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
2567         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
2568         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
2569
2570 2010-01-10  Bruno Haible  <bruno@clisp.org>
2571
2572         unistr/u8-mbsnlen: Fix return value for incomplete character.
2573         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
2574         u8_mblen.
2575         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
2576         Remove unistr/u8-mblen.
2577         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
2578         u16_mblen.
2579         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
2580         Remove unistr/u16-mblen.
2581
2582 2010-01-10  Bruno Haible  <bruno@clisp.org>
2583
2584         wchar: Fix compilation error when <wchar.h> is used from coreutils.
2585         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
2586         Reported by Brian Gough <bjg@gnu.org> and
2587         Chris Clayton <chris2553@googlemail.com> via
2588         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
2589
2590 2010-01-09  Bruno Haible  <bruno@clisp.org>
2591
2592         unistr/u16-to-u32: Reject invalid input.
2593         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
2594         u16_mbtouc.
2595         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
2596         Remove unistr/u16-mbtouc.
2597
2598         unistr/u16-to-u8: Reject invalid input.
2599         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
2600         u16_mbtouc.
2601         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
2602         Remove unistr/u16-mbtouc.
2603
2604         unistr/u8-to-u32: Reject invalid input.
2605         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
2606         u8_mbtouc.
2607         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
2608         Remove unistr/u8-mbtouc.
2609
2610         unistr/u8-to-u16: Reject invalid input.
2611         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
2612         u8_mbtouc.
2613         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
2614         Remove unistr/u8-mbtouc.
2615
2616 2010-01-09  Bruno Haible  <bruno@clisp.org>
2617
2618         Tests for module 'getlogin'.
2619         * modules/getlogin-tests: New file.
2620         * tests/test-getlogin.c: New file.
2621
2622         New module 'getlogin'.
2623         * lib/unistd.in.h (getlogin): New declaration.
2624         * lib/getlogin.c: New file.
2625         * m4/getlogin.m4: New file.
2626         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
2627         HAVE_GETLOGIN.
2628         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
2629         HAVE_GETLOGIN.
2630         * modules/getlogin: New file.
2631         * doc/posix-functions/getlogin.texi: Mention the new module.
2632         Reported by John W. Eaton <jwe@gnu.org>.
2633
2634 2010-01-09  Bruno Haible  <bruno@clisp.org>
2635
2636         getlogin_r: Support for native Windows.
2637         * lib/getlogin_r.c: Include <windows.h>
2638         (getlogin_r): Implement for native Windows.
2639         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
2640         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
2641         via John W. Eaton <jwe@gnu.org>.
2642
2643 2010-01-09  Bruno Haible  <bruno@clisp.org>
2644
2645         getlogin_r: Small fixes.
2646         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
2647         succeeds.
2648         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
2649         before testing whether getlogin_r is declared. No need to set
2650         HAVE_DECL_GETLOGIN_R to 1.
2651         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
2652
2653 2010-01-09  Bruno Haible  <bruno@clisp.org>
2654
2655         * lib/unistd.in.h (getlogin_r): Add comment.
2656
2657 2010-01-09  Bruno Haible  <bruno@clisp.org>
2658
2659         Tests for module 'getlogin_r'.
2660         * modules/getlogin_r-tests: New file.
2661         * tests/test-getlogin_r.c: New file.
2662
2663 2010-01-09  Jim Meyering  <meyering@redhat.com>
2664
2665         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
2666         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
2667         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
2668
2669 2010-01-08  Simon Josefsson  <simon@josefsson.org>
2670
2671         * lib/dup2.c (rpl_dup2): Improve comment.
2672
2673 2010-01-08  Eric Blake  <ebb9@byu.net>
2674
2675         maint.mk: allow packages to add makefile @@ exceptions
2676         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
2677         (sc_makefile_check): Rename...
2678         (sc_makefile_at_at_check): ...to this, and use hook.
2679
2680         dup2: work around mingw bug
2681         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
2682         Reported by Simon Josefsson.
2683
2684 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
2685
2686         glob: Fix C++ compilation.
2687         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
2688         C++.
2689
2690 2010-01-07  Bruno Haible  <bruno@clisp.org>
2691
2692         Fix indentation of wctype.in.h, broken since 2007-01-06.
2693         * lib/wctype.in.h: Fix indentation of preprocessor directives.
2694
2695 2010-01-07  Bruno Haible  <bruno@clisp.org>
2696
2697         mbslen: Avoid collision with system function.
2698         * lib/string.in.h [MirBSD]: Include <wchar.h>.
2699         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
2700         * m4/mbslen.m4: New file.
2701         * modules/mbslen (Files): Add it.
2702         (configure.ac): Invoke gl_MBSLEN.
2703         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
2704         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
2705         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
2706         via Ian Beckwith <ianb@erislabs.net>.
2707
2708 2010-01-07  Bruno Haible  <bruno@clisp.org>
2709
2710         dirent: Document the last fix.
2711         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
2712
2713 2010-01-07  Bruno Haible  <bruno@clisp.org>
2714
2715         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
2716         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
2717         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
2718         va_list are defined.
2719         * doc/posix-headers/stdio.texi: Document the bug of missing types.
2720         Reported by Eric Blake.
2721
2722 2010-01-07  Bruno Haible  <bruno@clisp.org>
2723
2724         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
2725         * modules/xlist (Depends-on): Add 'list',
2726         * modules/xoset (Depends-on): Add 'oset'.
2727         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2728
2729 2010-01-07  Bruno Haible  <bruno@clisp.org>
2730
2731         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
2732         * doc/posix-functions/strncasecmp.texi: Likewise.
2733
2734 2010-01-07  Bruno Haible  <bruno@clisp.org>
2735
2736         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
2737
2738 2010-01-07  John W. Eaton  <jwe@octave.org>
2739
2740         wctype: allow C++ use
2741         * lib/wctype.in.h: Add extern "C" block for C++.
2742
2743 2010-01-06  Eric Blake  <ebb9@byu.net>
2744
2745         maint.mk: detect incorrect GFDL usage
2746         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
2747
2748 2010-01-06  Jim Meyering  <meyering@redhat.com>
2749         and Eric Blake  <ebb9@byu.net>
2750
2751         maint.mk: ignore multi-line copyright in NEWS
2752         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
2753
2754 2010-01-06  Eric Blake  <ebb9@byu.net>
2755
2756         select: add missing dependency
2757         * modules/select-tests (Depends-on): Move sockets dependency...
2758         * modules/select (Depends-on): ...here.
2759         Reported by Ian Beckwith.
2760
2761         doc: regenerate INSTALL
2762         * doc/INSTALL: Reflect recent autoconf update.
2763         * doc/INSTALL.ISO: Likewise.
2764         * doc/INSTALL.UTF-8: Likewise.
2765
2766         pread: fix compilation on glibc
2767         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
2768         Reported by Ralf Wildenhues.
2769
2770         dirent: fix test failure
2771         * lib/dirent.in.h (includes): Guarantee ino_t.
2772         Reported by Ralf Wildenhues.
2773
2774 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
2775
2776         linkat, renameat: avoid bad free
2777         * lib/at-func2.c (at_func2): Fix typo.
2778         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
2779
2780 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2781
2782         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
2783         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
2784         to avoid failure of symlink test later.
2785
2786 2010-01-06  Eric Blake  <ebb9@byu.net>
2787
2788         stdio, unistd: guarantee ssize_t
2789         * lib/unistd.in.h (includes): Ensure that types required by POSIX
2790         2008 are exposed when needed.
2791         * lib/stdio.in.h (includes): Likewise.
2792         Reported by Ralf Wildenhues.
2793
2794 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
2795
2796         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
2797         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
2798         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
2799
2800 2010-01-06  Jim Meyering  <meyering@redhat.com>
2801
2802         readtokens: this module *does* require xalloc.h
2803         It uses only functions that were omitted by the old syntax-check rule.
2804         * lib/readtokens.c: Include "xalloc.h" once again.
2805         * modules/readtokens (Depends-on): Add xalloc.
2806         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
2807
2808 2010-01-05  Eric Blake  <ebb9@byu.net>
2809
2810         maint: support 'make announcement' from a VPATH build
2811         * top/maint.mk (announcement): Look for correct NEWS file.
2812
2813 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
2814
2815         utimens (fdutimens): ignore a negative FD, per contract
2816         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
2817         when we have a valid file descriptor.  Otherwise, using a brand
2818         new glibc (with just-patched futimens that now fails with EBADF)
2819         would cause this function to fail with ENOSYS.
2820         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
2821         See also http://bugzilla.redhat.com/552320.
2822
2823 2010-01-05  Eric Blake  <ebb9@byu.net>
2824
2825         strcase: document what it provides
2826         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
2827         gnulib module.
2828         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
2829         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
2830
2831 2010-01-05  Jim Meyering  <meyering@redhat.com>
2832
2833         maint: remove useless inclusions of "xalloc.h"
2834         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
2835         * lib/readtokens.c: Likewise.
2836         * lib/same.c: Likewise.
2837         * modules/getloadavg (Depends-on): Remove xalloc.
2838         * modules/readtokens: Likewise.
2839         * modules/same: Likewise.
2840
2841         maint.mk: include 4 more function names in alloca.h-checking regexp
2842         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
2843         regexp.  Before, we would give a false-positive (saying alloca.h
2844         is included unnecessarily) when the only uses involved omitted symbols.
2845
2846         xalloc.h: use consistent formatting
2847         * lib/xalloc.h: Move declarations to start in the first column.
2848
2849 2010-01-05  Eric Blake  <ebb9@byu.net>
2850
2851         mkdir: avoid xalloc
2852         * lib/mkdir.c (includes): Drop unused header.
2853         Reported by John W. Eaton.
2854
2855 2010-01-04  Jim Meyering  <meyering@redhat.com>
2856
2857         nl_langinfo: avoid configure-time syntax error
2858         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
2859         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
2860         the empty string.  Don't let that provoke a shell syntax error.
2861
2862         regcomp, regexec, fnmatch: avoid array bounds read error
2863         * lib/regcomp.c (build_equiv_class): From glibc:
2864         Use only the low 24 bits of a findidx return value as an index
2865         into the weights array.  Patch by Ulrich Drepper:
2866         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
2867         * lib/regexec.c (check_node_accept_bytes): Likewise.
2868         * lib/fnmatch_loop.c (FCT): Likewise.
2869
2870         regcomp: skip collseq lookup when there are no rules
2871         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
2872         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
2873
2874         regcomp: recognize ill-formed { } expressions
2875         * lib/regcomp.c (parse_dup_op): From glibc:
2876         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
2877
2878         regcomp: fix typo in comment
2879         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
2880         s/satisfy/satisfies/.
2881
2882         regcomp: sync from glibc: remove dead store
2883         * lib/regcomp.c (duplicate_node_closure): Remove useless
2884         search_duplicated_node call and dead store.
2885
2886         regcomp: sync from glibc; always use nl_langinfo
2887         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
2888         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
2889         * modules/regex (Depends-on): Add nl_langinfo.
2890
2891 2010-01-04  Eric Blake  <ebb9@byu.net>
2892
2893         fdopendir: fix configure test
2894         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
2895
2896 2010-01-01  Bruno Haible  <bruno@clisp.org>
2897
2898         wchar: Remove unused configure check.
2899         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
2900
2901 2010-01-01  Eric Blake  <ebb9@byu.net>
2902
2903         headers: make check of system header explicit
2904         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
2905         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
2906         ourselves.
2907         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
2908         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
2909         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
2910         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
2911         internals.
2912         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
2913         missing.
2914         Suggested by Bruno Haible.
2915
2916 2010-01-01  Jim Meyering  <meyering@redhat.com>
2917
2918         ChangeLog: tweak to eliminate unnecessary copyright line
2919         * ChangeLog: Remove a copyright line that was mistakenly updated
2920         by today's update-copyright run.  Reported by Eric Blake.
2921
2922         test-update-copyright: don't let envvar setting cause test failure
2923         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
2924
2925 2010-01-01  Bruno Haible  <bruno@clisp.org>
2926
2927         localename: Avoid gcc warning.
2928         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
2929         function if it is not used.
2930
2931 2010-01-01  Jim Meyering  <meyering@redhat.com>
2932
2933         update nearly all FSF copyright year lists to include 2010
2934         Use the same procedure as for 2009, outlined in
2935         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
2936
2937         version-etc: set COPYRIGHT_YEAR to 2010
2938         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
2939
2940 2009-12-31  Eric Blake  <ebb9@byu.net>
2941
2942         doc: correct availability of cygwin 1.5.x getopt
2943         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
2944         variables.
2945         * doc/posix-functions/opterr.texi (opterr): Likewise.
2946         * doc/posix-functions/optind.texi (optind): Likewise.
2947         * doc/posix-functions/optopt.texi (optopt): Likewise.
2948         * doc/posix-functions/tzname.texi (tzname): Likewise.
2949
2950         openat: update maintainer
2951         * modules/openat (Maintainer): Add myself.
2952
2953         utimens: avoid shadowing warning
2954         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
2955         buffers into one, to avoid shadowing, as well as avoiding a
2956         redundant stat.
2957         Reported by Jim Meyering.
2958
2959         test-dup2: avoid compiler warning
2960         * tests/test-dup2.c (is_inheritable): Only define if used.
2961
2962 2010-01-01  Bruno Haible  <bruno@clisp.org>
2963
2964         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
2965         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
2966         defined, use wctomb instead of wcrtomb.
2967
2968 2010-01-01  Bruno Haible  <bruno@clisp.org>
2969
2970         iconv: Reject native Solaris iconv.
2971         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
2972         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
2973
2974 2009-12-31  Bruno Haible  <bruno@clisp.org>
2975
2976         * tests/test-signal.c (main): Remove test of 'SIG'.
2977
2978 2009-12-31  Bruno Haible  <bruno@clisp.org>
2979
2980         spawn: Fix incomplete fix.
2981         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
2982         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
2983         warnings for GNULIB_POSIXCHECK again.
2984         Reported by Eric Blake.
2985
2986 2009-12-31  Bruno Haible  <bruno@clisp.org>
2987
2988         Avoid namespace pollution on glibc systems.
2989         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
2990         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
2991         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
2992         glibc systems.
2993
2994 2009-12-31  Bruno Haible  <bruno@clisp.org>
2995
2996         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
2997         (gl_REPLACE_WCHAR_H): Turn into a no-op.
2998         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
2999         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
3000         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
3001         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
3002         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
3003
3004 2009-12-31  Bruno Haible  <bruno@clisp.org>
3005
3006         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
3007         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
3008         afterwards.
3009
3010 2009-12-31  Bruno Haible  <bruno@clisp.org>
3011
3012         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
3013         SYS_UTSNAME_H.
3014
3015 2009-12-31  Bruno Haible  <bruno@clisp.org>
3016
3017         spawn: Fix misapplied patch.
3018         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
3019         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
3020         warnings for GNULIB_POSIXCHECK.
3021
3022 2009-12-31  Bruno Haible  <bruno@clisp.org>
3023
3024         times: Update after sys_times changed.
3025         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
3026         * modules/times (Files): Add it.
3027         (configure.ac): Invoke gl_FUNC_TIMES.
3028
3029 2009-12-31  Bruno Haible  <bruno@clisp.org>
3030
3031         Use AC_C_INLINE where necessary.
3032         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
3033         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
3034         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
3035         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
3036         * m4/mbfile.m4 (gl_MBFILE): Likewise.
3037         * m4/mbiter.m4 (gl_MBITER): Likewise.
3038         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
3039         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
3040         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
3041         * modules/u64 (configure.ac): Likewise.
3042
3043 2009-12-31  Bruno Haible  <bruno@clisp.org>
3044
3045         Use AC_C_INLINE instead of module 'inline' where possible.
3046         * modules/inline (Description): Clarify purpose.
3047         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
3048         * modules/count-one-bits (Depends-on): Remove inline.
3049         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
3050         * modules/openat (Depends-on): Remove inline.
3051         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
3052         instead of depending on module 'inline'.
3053         * modules/filevercmp (Depends-on, configure.ac): Likewise.
3054         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
3055         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
3056         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
3057         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
3058         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
3059         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
3060         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
3061         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
3062         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
3063         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
3064         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
3065         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
3066         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
3067         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
3068         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
3069         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
3070         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
3071         Likewise.
3072         * modules/unictype/property-ascii-hex-digit (Depends-on,
3073         configure.ac): Likewise.
3074         * modules/unictype/property-bidi-arabic-digit (Depends-on,
3075         configure.ac): Likewise.
3076         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
3077         configure.ac): Likewise.
3078         * modules/unictype/property-bidi-block-separator (Depends-on,
3079         configure.ac): Likewise.
3080         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
3081         configure.ac): Likewise.
3082         * modules/unictype/property-bidi-common-separator (Depends-on,
3083         configure.ac): Likewise.
3084         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
3085         Likewise.
3086         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
3087         configure.ac): Likewise.
3088         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
3089         configure.ac): Likewise.
3090         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
3091         configure.ac): Likewise.
3092         * modules/unictype/property-bidi-european-digit (Depends-on,
3093         configure.ac): Likewise.
3094         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
3095         configure.ac): Likewise.
3096         * modules/unictype/property-bidi-left-to-right (Depends-on,
3097         configure.ac): Likewise.
3098         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
3099         configure.ac): Likewise.
3100         * modules/unictype/property-bidi-other-neutral (Depends-on,
3101         configure.ac): Likewise.
3102         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
3103         Likewise.
3104         * modules/unictype/property-bidi-segment-separator (Depends-on,
3105         configure.ac): Likewise.
3106         * modules/unictype/property-bidi-whitespace (Depends-on,
3107         configure.ac): Likewise.
3108         * modules/unictype/property-combining (Depends-on, configure.ac):
3109         Likewise.
3110         * modules/unictype/property-composite (Depends-on, configure.ac):
3111         Likewise.
3112         * modules/unictype/property-currency-symbol (Depends-on,
3113         configure.ac): Likewise.
3114         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
3115         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
3116         Likewise.
3117         * modules/unictype/property-default-ignorable-code-point (Depends-on,
3118         configure.ac): Likewise.
3119         * modules/unictype/property-deprecated (Depends-on, configure.ac):
3120         Likewise.
3121         * modules/unictype/property-diacritic (Depends-on, configure.ac):
3122         Likewise.
3123         * modules/unictype/property-extender (Depends-on, configure.ac):
3124         Likewise.
3125         * modules/unictype/property-format-control (Depends-on, configure.ac):
3126         Likewise.
3127         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
3128         Likewise.
3129         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
3130         Likewise.
3131         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
3132         Likewise.
3133         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
3134         Likewise.
3135         * modules/unictype/property-hyphen (Depends-on, configure.ac):
3136         Likewise.
3137         * modules/unictype/property-id-continue (Depends-on, configure.ac):
3138         Likewise.
3139         * modules/unictype/property-id-start (Depends-on, configure.ac):
3140         Likewise.
3141         * modules/unictype/property-ideographic (Depends-on, configure.ac):
3142         Likewise.
3143         * modules/unictype/property-ids-binary-operator (Depends-on,
3144         configure.ac): Likewise.
3145         * modules/unictype/property-ids-trinary-operator (Depends-on,
3146         configure.ac): Likewise.
3147         * modules/unictype/property-ignorable-control (Depends-on,
3148         configure.ac): Likewise.
3149         * modules/unictype/property-iso-control (Depends-on, configure.ac):
3150         Likewise.
3151         * modules/unictype/property-join-control (Depends-on, configure.ac):
3152         Likewise.
3153         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
3154         Likewise.
3155         * modules/unictype/property-line-separator (Depends-on, configure.ac):
3156         Likewise.
3157         * modules/unictype/property-logical-order-exception (Depends-on,
3158         configure.ac): Likewise.
3159         * modules/unictype/property-lowercase (Depends-on, configure.ac):
3160         Likewise.
3161         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
3162         * modules/unictype/property-non-break (Depends-on, configure.ac):
3163         Likewise.
3164         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
3165         Likewise.
3166         * modules/unictype/property-numeric (Depends-on, configure.ac):
3167         Likewise.
3168         * modules/unictype/property-other-alphabetic (Depends-on,
3169         configure.ac): Likewise.
3170         * modules/unictype/property-other-default-ignorable-code-point
3171         (Depends-on, configure.ac): Likewise.
3172         * modules/unictype/property-other-grapheme-extend (Depends-on,
3173         configure.ac): Likewise.
3174         * modules/unictype/property-other-id-continue (Depends-on,
3175         configure.ac): Likewise.
3176         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
3177         Likewise.
3178         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
3179         Likewise.
3180         * modules/unictype/property-other-math (Depends-on, configure.ac):
3181         Likewise.
3182         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
3183         Likewise.
3184         * modules/unictype/property-paired-punctuation (Depends-on,
3185         configure.ac): Likewise.
3186         * modules/unictype/property-paragraph-separator (Depends-on,
3187         configure.ac): Likewise.
3188         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
3189         Likewise.
3190         * modules/unictype/property-pattern-white-space (Depends-on,
3191         configure.ac): Likewise.
3192         * modules/unictype/property-private-use (Depends-on, configure.ac):
3193         Likewise.
3194         * modules/unictype/property-punctuation (Depends-on, configure.ac):
3195         Likewise.
3196         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
3197         Likewise.
3198         * modules/unictype/property-radical (Depends-on, configure.ac):
3199         Likewise.
3200         * modules/unictype/property-sentence-terminal (Depends-on,
3201         configure.ac): Likewise.
3202         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
3203         Likewise.
3204         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
3205         * modules/unictype/property-terminal-punctuation (Depends-on,
3206         configure.ac): Likewise.
3207         * modules/unictype/property-titlecase (Depends-on, configure.ac):
3208         Likewise.
3209         * modules/unictype/property-unassigned-code-value (Depends-on,
3210         configure.ac): Likewise.
3211         * modules/unictype/property-unified-ideograph (Depends-on,
3212         configure.ac): Likewise.
3213         * modules/unictype/property-uppercase (Depends-on, configure.ac):
3214         Likewise.
3215         * modules/unictype/property-variation-selector (Depends-on,
3216         configure.ac): Likewise.
3217         * modules/unictype/property-white-space (Depends-on, configure.ac):
3218         Likewise.
3219         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
3220         Likewise.
3221         * modules/unictype/property-xid-start (Depends-on, configure.ac):
3222         Likewise.
3223         * modules/unictype/property-zero-width (Depends-on, configure.ac):
3224         Likewise.
3225         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
3226         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
3227         Likewise.
3228
3229 2009-12-31  Bruno Haible  <bruno@clisp.org>
3230
3231         Remove unnecessary AC_C_INLINE invocation.
3232         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
3233         since 2009-08-21.
3234
3235 2009-12-31  Jim Meyering  <meyering@redhat.com>
3236
3237         maint.mk: don't require explicit gpg_key_ID in cfg.mk
3238         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
3239         With this change, we can all remove the gpg_key_ID = ... definition
3240         from our respective cfg.mk files.
3241
3242         maint.mk: create announcement template in ~/, not in /tmp
3243         * top/maint.mk (emit_upload_commands): Adjust.
3244         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
3245         Remove temporary file, .ci-msg.
3246
3247 2009-12-31  Eric Blake  <ebb9@byu.net>
3248
3249         link-warning: always build headers with link warnings
3250         * modules/arpa_inet (Makefile.am): Always build replacement
3251         header.
3252         * modules/ctype (Makefile.am): Likewise.
3253         * modules/dirent (Makefile.am): Likewise.
3254         * modules/inttypes (Makefile.am): Likewise.
3255         * modules/langinfo (Makefile.am): Likewise.
3256         * modules/locale (Makefile.am): Likewise.
3257         * modules/spawn (Makefile.am): Likewise.
3258         * modules/sys_file (Makefile.am): Likewise.
3259         * modules/sys_ioctl (Makefile.am): Likewise.
3260         * modules/sys_select (Makefile.am): Likewise.
3261         * modules/sys_socket (Makefile.am): Likewise.
3262         * modules/sys_times (Makefile.am): Likewise.
3263         * modules/sys_utsname (Makefile.am): Likewise.
3264         * modules/sys_wait (Makefile.am): Likewise.
3265         * modules/wchar (Makefile.am): Likewise.
3266         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
3267         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
3268         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
3269         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
3270         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
3271         Likewise.
3272         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
3273         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
3274         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
3275         Likewise.
3276         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
3277         Likewise.
3278         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
3279         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
3280         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
3281         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
3282         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
3283         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
3284         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
3285         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
3286         (gl_WCHAR_H_DEFAULTS): Likewise.
3287
3288 2009-12-31  Eric Blake  <ebb9@byu.net>
3289
3290         signal, spawn: use link warnings
3291         * lib/signal.in.h (sigset_t): Make unconditional.
3292         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
3293         (sigpending, sigprocmask, sigaction): Add link warnings.
3294         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
3295         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
3296         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
3297         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
3298         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
3299         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
3300         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
3301         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
3302         (posix_spawn_file_actions_destroy)
3303         (posix_spawn_file_actions_addopen)
3304         (posix_spawn_file_actions_addclose)
3305         (posix_spawwn_file_actions_adddup2): Likewise.
3306         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
3307         * tests/test-signal.c (main): Enhance test.
3308
3309         spawn: improve wrapper support
3310         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
3311         (gl_SPAWN_H_DEFAULTS): New defaults.
3312         * modules/spawn (Makefile.am): Substitute them.
3313         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
3314         Only declare if missing or broken.
3315
3316         sys_times, sys_utsname: use include_next
3317         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
3318         header.
3319         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
3320         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
3321         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
3322         * modules/sys_times (Depends-on): Add include_next.
3323         (Makefile.am): Substitute additional values.
3324         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
3325         * lib/sys_times.in.h (includes): Include native header, if
3326         available.
3327         * lib/sys_utsname.in.h (includes): Likewise.
3328         * tests/test-sys_times.c (main): Enhance test.
3329
3330         fdutimensat: revert prior patch
3331         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
3332         utimens.h.
3333         Reported by Bruno Haible.
3334
3335 2009-12-30  Eric Blake  <ebb9@byu.net>
3336
3337         sys_wait: drop link-warning dependency
3338         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
3339         link-warning efforts.
3340         * lib/sys_wait.in.h: Likewise.
3341
3342         fdutimensat: remove bogus dependency
3343         * modules/fdutimensat (Depends-on): Drop inline.
3344
3345         unistd: fix typo
3346         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
3347
3348 2009-12-30  Bruno Haible  <bruno@clisp.org>
3349
3350         Fix compilation error with Solaris cc.
3351         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
3352         * lib/unicase/u16-is-invariant.c: Likewise.
3353         * lib/unicase/u32-is-invariant.c: Likewise.
3354         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
3355
3356 2009-12-30  Bruno Haible  <bruno@clisp.org>
3357
3358         Fix test crash.
3359         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
3360         locales.
3361         Reported by Simon Josefsson <simon@josefsson.org>.
3362
3363 2009-12-30  Bruno Haible  <bruno@clisp.org>
3364
3365         Fix compilation error on most platforms.
3366         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
3367         Reported by Simon Josefsson <simon@josefsson.org>
3368         and Nelson H. F. Beebe <beebe@math.utah.edu>.
3369
3370 2009-12-30  Eric Blake  <ebb9@byu.net>
3371
3372         futimens, utimensat: work around ntfs-3g bug
3373         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
3374         a ctime bug is present, and expand workaround to cover ntfs-3g.
3375         * lib/utimens.c (fdutimens, lutimens): Likewise.
3376         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
3377         (validate_timespec): Adjust return value.
3378         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
3379         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
3380         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
3381
3382 2009-12-29  Eric Blake  <ebb9@byu.net>
3383
3384         link-warning: make usage consistent
3385         * modules/ctype (Depends-on): Add link-warning.
3386         (Makefile.am): Update rules accordingly.
3387         * modules/langinfo (Depends-on, Makefile.am): Likewise.
3388         * modules/locale (Depends-on, Makefile.am): Likewise.
3389         * modules/sys_file (Makefile.am): Likewise.
3390         * modules/getopt-posix (Makefile.am): Delete unused link warning
3391         efforts.
3392         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
3393         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
3394         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
3395         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
3396
3397         stdio: remove unused variables
3398         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
3399         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
3400         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
3401
3402         tests: test more substitute headers
3403         * modules/ctype-tests: New file.
3404         * modules/dirent-tests: Likewise.
3405         * modules/spawn-tests: Likewise.
3406         * modules/sys_file-tests: Likewise.
3407         * modules/sys_ioctl-tests: Likewise.
3408         * modules/sys_wait-tests: Likewise.
3409         * tests/test-ctype.c: Likewise.
3410         * tests/test-dirent.c: Likewise.
3411         * tests/test-spawn.c: Likewise.
3412         * tests/test-sys_file.c: Likewise.
3413         * tests/test-sys_ioctl.c: Likewise.
3414         * tests/test-sys_wait.c: Likewise.
3415         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
3416         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
3417         whether or not flock is in use.
3418
3419         tests: remove License section from module
3420         * modules/arpa_inet-tests: Remove unneeded section.
3421         * modules/byteswap-tests: Likewise.
3422         * modules/ceilf-tests: Likewise.
3423         * modules/ceill-tests: Likewise.
3424         * modules/crypto/des-tests: Likewise.
3425         * modules/crypto/gc-arcfour-tests: Likewise.
3426         * modules/crypto/gc-arctwo-tests: Likewise.
3427         * modules/crypto/gc-des-tests: Likewise.
3428         * modules/crypto/gc-hmac-md5-tests: Likewise.
3429         * modules/crypto/gc-hmac-sha1-tests: Likewise.
3430         * modules/crypto/gc-md2-tests: Likewise.
3431         * modules/crypto/gc-md4-tests: Likewise.
3432         * modules/crypto/gc-md5-tests: Likewise.
3433         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
3434         * modules/crypto/gc-rijndael-tests: Likewise.
3435         * modules/crypto/gc-sha1-tests: Likewise.
3436         * modules/crypto/gc-tests: Likewise.
3437         * modules/crypto/md2-tests: Likewise.
3438         * modules/crypto/md4-tests: Likewise.
3439         * modules/fcntl-h-tests: Likewise.
3440         * modules/floorf-tests: Likewise.
3441         * modules/floorl-tests: Likewise.
3442         * modules/frexp-nolibm-tests: Likewise.
3443         * modules/frexp-tests: Likewise.
3444         * modules/frexpl-nolibm-tests: Likewise.
3445         * modules/frexpl-tests: Likewise.
3446         * modules/getaddrinfo-tests: Likewise.
3447         * modules/inttypes-tests: Likewise.
3448         * modules/isfinite-tests: Likewise.
3449         * modules/isinf-tests: Likewise.
3450         * modules/ldexpl-tests: Likewise.
3451         * modules/locale-tests: Likewise.
3452         * modules/math-tests: Likewise.
3453         * modules/netdb-tests: Likewise.
3454         * modules/netinet_in-tests: Likewise.
3455         * modules/printf-frexp-tests: Likewise.
3456         * modules/printf-frexpl-tests: Likewise.
3457         * modules/priv-set-tests: Likewise.
3458         * modules/random_r-tests: Likewise.
3459         * modules/round-tests: Likewise.
3460         * modules/roundf-tests: Likewise.
3461         * modules/roundl-tests: Likewise.
3462         * modules/search-tests: Likewise.
3463         * modules/select-tests: Likewise.
3464         * modules/signal-tests: Likewise.
3465         * modules/stdbool-tests: Likewise.
3466         * modules/stddef-tests: Likewise.
3467         * modules/stdint-tests: Likewise.
3468         * modules/stdio-tests: Likewise.
3469         * modules/stdlib-tests: Likewise.
3470         * modules/string-tests: Likewise.
3471         * modules/strings-tests: Likewise.
3472         * modules/sys_select-tests: Likewise.
3473         * modules/sys_socket-tests: Likewise.
3474         * modules/sys_stat-tests: Likewise.
3475         * modules/sys_time-tests: Likewise.
3476         * modules/sys_utsname-tests: Likewise.
3477         * modules/sysexits-tests: Likewise.
3478         * modules/time-tests: Likewise.
3479         * modules/trunc-tests: Likewise.
3480         * modules/truncf-tests: Likewise.
3481         * modules/truncl-tests: Likewise.
3482         * modules/tsearch-tests: Likewise.
3483         * modules/unistd-tests: Likewise.
3484         * modules/wchar-tests: Likewise.
3485         * modules/wctype-tests: Likewise.
3486
3487         tests: fix license on several tests
3488         * tests/test-des.c: Update to GPLv3+.
3489         * tests/test-flock.c: Likewise.
3490         * tests/test-fsync.c: Likewise.
3491         * tests/test-futimens.h: Likewise.
3492         * tests/test-gc-arcfour.c: Likewise.
3493         * tests/test-gc-arctwo.c: Likewise.
3494         * tests/test-gc-des.c: Likewise.
3495         * tests/test-gc-hmac-md5.c: Likewise.
3496         * tests/test-gc-hmac-sha1.c: Likewise.
3497         * tests/test-gc-md2.c: Likewise.
3498         * tests/test-gc-md4.c: Likewise.
3499         * tests/test-gc-md5.c: Likewise.
3500         * tests/test-gc-pbkdf2-sha1.c: Likewise.
3501         * tests/test-gc-rijndael.c: Likewise.
3502         * tests/test-gc-sha1.c: Likewise.
3503         * tests/test-gc.c: Likewise.
3504         * tests/test-getcwd.c: Likewise.
3505         * tests/test-link.c: Likewise.
3506         * tests/test-link.h: Likewise.
3507         * tests/test-lutimens.h: Likewise.
3508         * tests/test-md2.c: Likewise.
3509         * tests/test-md4.c: Likewise.
3510         * tests/test-mkdir.h: Likewise.
3511         * tests/test-rename.c: Likewise.
3512         * tests/test-rename.h: Likewise.
3513         * tests/test-safe-alloc.c: Likewise.
3514         * tests/test-utimens-common.h: Likewise.
3515         * tests/test-utimens.h: Likewise.
3516
3517         maint: sync license texts
3518         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
3519         * doc/gpl-3.0.texi: Revert copyright year update.
3520         * doc/lgpl-3.0.texi: Likewise.
3521
3522 2009-12-29  Jim Meyering  <meyering@redhat.com>
3523
3524         update nearly all FSF copyright year lists to include 2009
3525         The files named by the following are exempted:
3526             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
3527               test -f "$dst" && { echo "$dst"; continue; }
3528               test -d "$dst" || continue
3529               echo "$dst"/$(basename "$src")
3530             done > exempt
3531             git ls-files tests/unictype >> exempt
3532         In the remaining files, convert to all-interval notation if
3533         - there is already at least one year interval like 2000-2003
3534         - the file is maintained by me
3535         - the file is in lib/uni*/, where that style already prevails
3536         Otherwise, use update-copyright's default.
3537
3538 2009-12-29  Simon Josefsson  <simon@josefsson.org>
3539         and Eric Blake  <ebb9@byu.net>
3540
3541         tests: don't require debug system() to pass
3542         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
3543         * tests/test-rmdir.h (test_rmdir_func): Likewise.
3544         * tests/test-unlink.h (test_unlink_func): Likewise.
3545         * tests/test-fstatat.c (main): ...into callers.
3546         * tests/test-lstat.c (main): Likewise.
3547         * tests/test-rmdir.c (main): Likewise.
3548         * tests/test-unlink.c (main): Likewise.
3549         * tests/test-unlinkat.c (main): Likewise.
3550         * tests/test-areadlink-with-size.c (main): Don't require a
3551         debug-only system call to pass, aiding cross-testing to mingw.
3552         * tests/test-areadlink.c (main): Likewise.
3553         * tests/test-areadlinkat-with-size.c (main): Likewise.
3554         * tests/test-areadlinkat.c (main): Likewise.
3555         * tests/test-canonicalize-lgpl.c (main): Likewise.
3556         * tests/test-canonicalize.c (main): Likewise.
3557         * tests/test-chown.c (main): Likewise.
3558         * tests/test-fchownat.c (main): Likewise.
3559         * tests/test-lchown.c (main): Likewise.
3560         * tests/test-fdutimensat.c (main): Likewise.
3561         * tests/test-futimens.c (main): Likewise.
3562         * tests/test-link.c (main): Likewise.
3563         * tests/test-linkat.c (main): Likewise.
3564         * tests/test-mkdir.c (main): Likewise.
3565         * tests/test-mkdirat.c (main): Likewise.
3566         * tests/test-mkfifo.c (main): Likewise.
3567         * tests/test-mkfifoat.c (main): Likewise.
3568         * tests/test-mknod.c (main): Likewise.
3569         * tests/test-readlink.c (main): Likewise.
3570         * tests/test-remove.c (main): Likewise.
3571         * tests/test-rename.c (main): Likewise.
3572         * tests/test-renameat.c (main): Likewise.
3573         * tests/test-symlink.c (main): Likewise.
3574         * tests/test-symlinkat.c (main): Likewise.
3575         * tests/test-utimens.c (main): Likewise.
3576         * tests/test-utimensat.c (main): Likewise.
3577
3578 2009-12-29  Simon Josefsson  <simon@josefsson.org>
3579
3580         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
3581         on $(UNUSED_PARAMETER_H) to avoid build failure.
3582
3583 2009-12-28  Jim Meyering  <meyering@redhat.com>
3584
3585         update-copyright: you may specify a max. line length other than 72
3586         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
3587
3588         maint: use consistent FSF copyright line syntax
3589         * lib/posixtm.c: Add missing comma in FSF copyright line.
3590         * lib/posixtm.h: Likewise.
3591         * lib/getugroups.c: Add missing ", Inc.".
3592
3593         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
3594         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
3595         FSF copyright line.  Remove trailing blanks.
3596
3597 2009-12-28  Eric Blake  <ebb9@byu.net>
3598
3599         test-dup2: reduce dependencies
3600         * modules/cloexec (Configure.ac): Set witness.
3601         * modules/dup2-tests (Depends-on): Drop cloexec.
3602         * tests/test-dup2.c (main): Skip portion of test if cloexec module
3603         not present.
3604         Suggested by Bruno Haible.
3605
3606 2009-12-26  Bruno Haible  <bruno@clisp.org>
3607
3608         Remove an unneeded dependency.
3609         * modules/fseterr (Depends-on): Remove dup2.
3610
3611 2009-12-26  Eric Blake  <ebb9@byu.net>
3612
3613         tests: use macros.h in more places
3614         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
3615         (ASSERT_STREAM): Provide default of stderr.
3616         * tests/test-dirent-safer.c: Include macros.h, using alternate
3617         stream for assertions.
3618         * tests/test-dup-safer.c: Likewise.
3619         * tests/test-freopen-safer.c: Likewise.
3620         * tests/test-getopt.c: Likewise.
3621         * tests/test-openat-safer.c: Likewise.
3622         * tests/test-pipe.c: Likewise.
3623         * tests/test-popen-safer.c: Likewise.
3624         * modules/dirent-safer-tests (Files): Include macros.h.
3625         * modules/unistd-safer-tests (Files): Likewise.
3626         * modules/freopen-safer-tests (Files): Likewise.
3627         * modules/getopt-posix-tests (Files): Likewise.
3628         * modules/openat-safer-tests (Files): Likewise.
3629         * modules/pipe-tests (Files): Likewise.
3630
3631 2009-12-26  Bruno Haible  <bruno@clisp.org>
3632
3633         javacomp: Portability fix.
3634         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
3635         that it also works on Solaris.
3636
3637 2009-12-26  Bruno Haible  <bruno@clisp.org>
3638
3639         localename: Fix storage allocation of gl_locale_name_thread's result.
3640         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
3641         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
3642         all platforms that have 'uselocale'.
3643         (gl_locale_name_thread_unsafe): New function, extracted from
3644         gl_locale_name_thread.
3645         (gl_locale_name_thread): Call struniq on all platforms that have
3646         'uselocale'.
3647         * tests/test-localename.c (test_locale_name_thread): Check that the
3648         resulting strings are permanently allocated.
3649         * modules/localename-tests (Depends-on): Add strdup.
3650
3651 2009-12-26  Bruno Haible  <bruno@clisp.org>
3652
3653         * tests/test-localename.c (categories): Fill in the strings.
3654
3655 2009-12-26  Jim Meyering  <meyering@redhat.com>
3656
3657         isdir: complete the removal of m4/isdir.m4
3658         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
3659
3660         isdir: clean up, since at least grep still uses it
3661         * lib/isdir.c: Include "isdir.h".
3662         (S_ISDIR): Remove now-unneeded definition.
3663         * modules/isdir (Files): Add lib/isdir.h.
3664         * lib/isdir.h: New file, with declaration.
3665         * m4/isdir.m4: Remove file -- unneeded.
3666
3667 2009-12-25  Bruno Haible  <bruno@clisp.org>
3668
3669         selinux-h: Make generated .h files standalone.
3670         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
3671         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
3672         * lib/se-selinux.in.h: Likewise.
3673         * modules/selinux-h (Depends-on): Add unused-parameter.
3674         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
3675         selinux/selinux.h and selinux/context.h.
3676         Suggested by Eric Blake.
3677
3678 2009-12-25  Bruno Haible  <bruno@clisp.org>
3679
3680         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
3681         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
3682         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
3683         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
3684         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
3685
3686 2009-12-24  Bruno Haible  <bruno@clisp.org>
3687
3688         openat: Fix warning.
3689         * lib/openat-proc.c: Include <unistd.h>.
3690
3691 2009-12-24  Bruno Haible  <bruno@clisp.org>
3692
3693         New module 'unused-parameter'.
3694         * build-aux/unused-parameter.h: New file, extracted from earlier
3695         gnulib-common.m4.
3696         * modules/unused-parameter: New file.
3697         * lib/unistr.h: Include unused-parameter.h.
3698         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
3699         _GL_UNUSED.
3700         * modules/unistr/base (Depends-on): Add unused-parameter.
3701
3702 2009-12-24  Bruno Haible  <bruno@clisp.org>
3703
3704         Add missing dependencies to 'extensions' module.
3705         * m4/extensions.m4: Add comment.
3706         * modules/accept4 (Depends-on): Add extensions.
3707         * modules/dup3 (Depends-on): Likewise.
3708         * modules/fcntl (Depends-on): Likewise.
3709         * modules/futimens (Depends-on): Likewise.
3710         * modules/mknod (Depends-on): Likewise.
3711         * modules/pipe2 (Depends-on): Likewise.
3712         * modules/stat-time (Depends-on): Likewise.
3713         * modules/strcasestr-simple (Depends-on): Likewise.
3714         * modules/strsignal (Depends-on): Likewise.
3715         * modules/utimensat (Depends-on): Likewise.
3716         * modules/localcharset (Depends-on): Likewise. Needed because of
3717         gl_FCNTL_O_FLAGS.
3718         * modules/wcrtomb (Depends-on): Likewise. Needed because of
3719         AC_TYPE_MBSTATE_T.
3720         * modules/wcsnrtombs (Depends-on): Likewise.
3721         * modules/wcsrtombs (Depends-on): Likewise.
3722
3723 2009-12-24  Bruno Haible  <bruno@clisp.org>
3724
3725         binary-io: Avoid gcc warning due to SET_BINARY.
3726         * lib/binary-io.h (SET_BINARY): Cast the result to void.
3727         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
3728
3729 2009-12-24  Bruno Haible  <bruno@clisp.org>
3730
3731         Avoid future namespace pollution on glibc systems.
3732         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
3733         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
3734         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
3735         glibc systems.
3736
3737 2009-12-24  Bruno Haible  <bruno@clisp.org>
3738
3739         Refactor common macros used in tests.
3740         * tests/macros.h: New file.
3741         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
3742         and/or <stdlib.h>, if appropriate.
3743         (ASSERT, SIZEOF): Remove macros.
3744         * tests/test-areadlink-with-size.c: Likewise.
3745         * tests/test-areadlinkat.c: Likewise.
3746         * tests/test-areadlinkat-with-size.c: Likewise.
3747         * tests/test-argmatch.c: Likewise.
3748         * tests/test-argv-iter.c: Likewise.
3749         * tests/test-array-mergesort.c: Likewise.
3750         * tests/test-array_list.c: Likewise.
3751         * tests/test-array_oset.c: Likewise.
3752         * tests/test-avltree_list.c: Likewise.
3753         * tests/test-avltree_oset.c: Likewise.
3754         * tests/test-avltreehash_list.c: Likewise.
3755         * tests/test-base64.c: Likewise.
3756         * tests/test-binary-io.c: Likewise.
3757         * tests/test-bitrotate.c: Likewise.
3758         * tests/test-btowc.c: Likewise.
3759         * tests/test-byteswap.c: Likewise.
3760         * tests/test-c-ctype.c: Likewise.
3761         * tests/test-c-stack.c: Likewise.
3762         * tests/test-c-strcasecmp.c: Likewise.
3763         * tests/test-c-strcasestr.c: Likewise.
3764         * tests/test-c-strncasecmp.c: Likewise.
3765         * tests/test-c-strstr.c: Likewise.
3766         * tests/test-canonicalize-lgpl.c: Likewise.
3767         * tests/test-canonicalize.c: Likewise.
3768         * tests/test-carray_list.c: Likewise.
3769         * tests/test-ceilf1.c: Likewise.
3770         * tests/test-ceilf2.c: Likewise.
3771         * tests/test-ceill.c: Likewise.
3772         * tests/test-chown.c: Likewise.
3773         * tests/test-cloexec.c: Likewise.
3774         * tests/test-copy-acl.c: Likewise.
3775         * tests/test-copy-file.c: Likewise.
3776         * tests/test-count-one-bits.c: Likewise.
3777         * tests/test-dprintf-posix.c: Likewise.
3778         * tests/test-dup2.c: Likewise.
3779         * tests/test-dup3.c: Likewise.
3780         * tests/test-duplocale.c: Likewise.
3781         * tests/test-fbufmode.c: Likewise.
3782         * tests/test-fchdir.c: Likewise.
3783         * tests/test-fchownat.c: Likewise.
3784         * tests/test-fcntl-safer.c: Likewise.
3785         * tests/test-fcntl.c: Likewise.
3786         * tests/test-fdopendir.c: Likewise.
3787         * tests/test-fdutimensat.c: Likewise.
3788         * tests/test-fflush2.c: Likewise.
3789         * tests/test-file-has-acl.c: Likewise.
3790         * tests/test-filevercmp.c: Likewise.
3791         * tests/test-flock.c: Likewise.
3792         * tests/test-floorf1.c: Likewise.
3793         * tests/test-floorf2.c: Likewise.
3794         * tests/test-floorl.c: Likewise.
3795         * tests/test-fnmatch.c: Likewise.
3796         * tests/test-fopen.h: Likewise.
3797         * tests/test-fpending.c: Likewise.
3798         * tests/test-fprintf-posix.c: Likewise.
3799         * tests/test-fpurge.c: Likewise.
3800         * tests/test-freadable.c: Likewise.
3801         * tests/test-freadahead.c: Likewise.
3802         * tests/test-freading.c: Likewise.
3803         * tests/test-freadptr.c: Likewise.
3804         * tests/test-freadptr2.c: Likewise.
3805         * tests/test-freadseek.c: Likewise.
3806         * tests/test-freopen.c: Likewise.
3807         * tests/test-frexp.c: Likewise.
3808         * tests/test-frexpl.c: Likewise.
3809         * tests/test-fseek.c: Likewise.
3810         * tests/test-fseeko.c: Likewise.
3811         * tests/test-fstatat.c: Likewise.
3812         * tests/test-fstrcmp.c: Likewise.
3813         * tests/test-fsync.c: Likewise.
3814         * tests/test-ftell.c: Likewise.
3815         * tests/test-ftello.c: Likewise.
3816         * tests/test-func.c: Likewise.
3817         * tests/test-futimens.c: Likewise.
3818         * tests/test-fwritable.c: Likewise.
3819         * tests/test-fwriting.c: Likewise.
3820         * tests/test-getcwd.c: Likewise.
3821         * tests/test-getdate.c: Likewise.
3822         * tests/test-getdelim.c: Likewise.
3823         * tests/test-getdtablesize.c: Likewise.
3824         * tests/test-getgroups.c: Likewise.
3825         * tests/test-getline.c: Likewise.
3826         * tests/test-getndelim2.c: Likewise.
3827         * tests/test-glob.c: Likewise.
3828         * tests/test-hash.c: Likewise.
3829         * tests/test-i-ring.c: Likewise.
3830         * tests/test-iconv-utf.c: Likewise.
3831         * tests/test-iconv.c: Likewise.
3832         * tests/test-idpriv-drop.c: Likewise.
3833         * tests/test-idpriv-droptemp.c: Likewise.
3834         * tests/test-inet_ntop.c: Likewise.
3835         * tests/test-inet_pton.c: Likewise.
3836         * tests/test-isblank.c: Likewise.
3837         * tests/test-isfinite.c: Likewise.
3838         * tests/test-isinf.c: Likewise.
3839         * tests/test-isnan.c: Likewise.
3840         * tests/test-isnand.h: Likewise.
3841         * tests/test-isnanf.h: Likewise.
3842         * tests/test-isnanl.h: Likewise.
3843         * tests/test-lchown.c: Likewise.
3844         * tests/test-ldexpl.c: Likewise.
3845         * tests/test-link.c: Likewise.
3846         * tests/test-linkat.c: Likewise.
3847         * tests/test-linked_list.c: Likewise.
3848         * tests/test-linkedhash_list.c: Likewise.
3849         * tests/test-localename.c: Likewise.
3850         * tests/test-lseek.c: Likewise.
3851         * tests/test-lstat.c: Likewise.
3852         * tests/test-mbmemcasecmp.c: Likewise.
3853         * tests/test-mbmemcasecoll.c: Likewise.
3854         * tests/test-mbrtowc.c: Likewise.
3855         * tests/test-mbscasecmp.c: Likewise.
3856         * tests/test-mbscasestr1.c: Likewise.
3857         * tests/test-mbscasestr2.c: Likewise.
3858         * tests/test-mbscasestr3.c: Likewise.
3859         * tests/test-mbscasestr4.c: Likewise.
3860         * tests/test-mbschr.c: Likewise.
3861         * tests/test-mbscspn.c: Likewise.
3862         * tests/test-mbsinit.c: Likewise.
3863         * tests/test-mbsncasecmp.c: Likewise.
3864         * tests/test-mbsnrtowcs.c: Likewise.
3865         * tests/test-mbspbrk.c: Likewise.
3866         * tests/test-mbspcasecmp.c: Likewise.
3867         * tests/test-mbsrchr.c: Likewise.
3868         * tests/test-mbsrtowcs.c: Likewise.
3869         * tests/test-mbsspn.c: Likewise.
3870         * tests/test-mbsstr1.c: Likewise.
3871         * tests/test-mbsstr2.c: Likewise.
3872         * tests/test-mbsstr3.c: Likewise.
3873         * tests/test-memchr.c: Likewise.
3874         * tests/test-memchr2.c: Likewise.
3875         * tests/test-memcmp.c: Likewise.
3876         * tests/test-memmem.c: Likewise.
3877         * tests/test-memrchr.c: Likewise.
3878         * tests/test-mkdir.c: Likewise.
3879         * tests/test-mkdirat.c: Likewise.
3880         * tests/test-mkfifo.c: Likewise.
3881         * tests/test-mkfifoat.c: Likewise.
3882         * tests/test-mknod.c: Likewise.
3883         * tests/test-nanosleep.c: Likewise.
3884         * tests/test-nl_langinfo.c: Likewise.
3885         * tests/test-obstack-printf.c: Likewise.
3886         * tests/test-open.c: Likewise.
3887         * tests/test-openat.c: Likewise.
3888         * tests/test-pipe-filter-gi1.c: Likewise.
3889         * tests/test-pipe-filter-gi2-main.c: Likewise.
3890         * tests/test-pipe-filter-ii1.c: Likewise.
3891         * tests/test-pipe-filter-ii2-main.c: Likewise.
3892         * tests/test-pipe2.c: Likewise.
3893         * tests/test-popen.h: Likewise.
3894         * tests/test-posixtm.c: Likewise.
3895         * tests/test-pread.c: Likewise.
3896         * tests/test-printf-frexp.c: Likewise.
3897         * tests/test-printf-frexpl.c: Likewise.
3898         * tests/test-printf-posix.c: Likewise.
3899         * tests/test-priv-set.c: Likewise.
3900         * tests/test-quotearg.c: Likewise.
3901         * tests/test-random_r.c: Likewise.
3902         * tests/test-rawmemchr.c: Likewise.
3903         * tests/test-rbtree_list.c: Likewise.
3904         * tests/test-rbtree_oset.c: Likewise.
3905         * tests/test-rbtreehash_list.c: Likewise.
3906         * tests/test-readlink.c: Likewise.
3907         * tests/test-remove.c: Likewise.
3908         * tests/test-rename.c: Likewise.
3909         * tests/test-renameat.c: Likewise.
3910         * tests/test-rmdir.c: Likewise.
3911         * tests/test-round1.c: Likewise.
3912         * tests/test-roundf1.c: Likewise.
3913         * tests/test-roundl.c: Likewise.
3914         * tests/test-safe-alloc.c: Likewise.
3915         * tests/test-sameacls.c: Likewise.
3916         * tests/test-set-mode-acl.c: Likewise.
3917         * tests/test-setenv.c: Likewise.
3918         * tests/test-sigaction.c: Likewise.
3919         * tests/test-signbit.c: Likewise.
3920         * tests/test-sleep.c: Likewise.
3921         * tests/test-snprintf-posix.c: Likewise.
3922         * tests/test-snprintf.c: Likewise.
3923         * tests/test-sprintf-posix.c: Likewise.
3924         * tests/test-stat-time.c: Likewise.
3925         * tests/test-stat.c: Likewise.
3926         * tests/test-strcasestr.c: Likewise.
3927         * tests/test-strchrnul.c: Likewise.
3928         * tests/test-strerror.c: Likewise.
3929         * tests/test-striconv.c: Likewise.
3930         * tests/test-striconveh.c: Likewise.
3931         * tests/test-striconveha.c: Likewise.
3932         * tests/test-strsignal.c: Likewise.
3933         * tests/test-strstr.c: Likewise.
3934         * tests/test-strtod.c: Likewise.
3935         * tests/test-strverscmp.c: Likewise.
3936         * tests/test-symlink.c: Likewise.
3937         * tests/test-symlinkat.c: Likewise.
3938         * tests/test-trunc1.c: Likewise.
3939         * tests/test-trunc2.c: Likewise.
3940         * tests/test-truncf1.c: Likewise.
3941         * tests/test-truncf2.c: Likewise.
3942         * tests/test-truncl.c: Likewise.
3943         * tests/test-uname.c: Likewise.
3944         * tests/test-unlink.c: Likewise.
3945         * tests/test-unlinkat.c: Likewise.
3946         * tests/test-unsetenv.c: Likewise.
3947         * tests/test-usleep.c: Likewise.
3948         * tests/test-utimens.c: Likewise.
3949         * tests/test-utimensat.c: Likewise.
3950         * tests/test-vasnprintf-posix.c: Likewise.
3951         * tests/test-vasnprintf-posix2.c: Likewise.
3952         * tests/test-vasnprintf.c: Likewise.
3953         * tests/test-vasprintf-posix.c: Likewise.
3954         * tests/test-vasprintf.c: Likewise.
3955         * tests/test-vdprintf-posix.c: Likewise.
3956         * tests/test-vfprintf-posix.c: Likewise.
3957         * tests/test-vprintf-posix.c: Likewise.
3958         * tests/test-vsnprintf-posix.c: Likewise.
3959         * tests/test-vsnprintf.c: Likewise.
3960         * tests/test-vsprintf-posix.c: Likewise.
3961         * tests/test-wcrtomb.c: Likewise.
3962         * tests/test-wcsnrtombs.c: Likewise.
3963         * tests/test-wcsrtombs.c: Likewise.
3964         * tests/test-wctype.c: Likewise.
3965         * tests/test-wcwidth.c: Likewise.
3966         * tests/test-xfprintf-posix.c: Likewise.
3967         * tests/test-xmemdup0.c: Likewise.
3968         * tests/test-xprintf-posix.c: Likewise.
3969         * tests/test-xvasprintf.c: Likewise.
3970         * tests/unicase/test-locale-language.c: Likewise.
3971         * tests/unicase/test-mapping-part1.h: Likewise.
3972         * tests/unicase/test-predicate-part1.h: Likewise.
3973         * tests/unicase/test-u8-casecmp.c: Likewise.
3974         * tests/unicase/test-u8-casecoll.c: Likewise.
3975         * tests/unicase/test-u8-casefold.c: Likewise.
3976         * tests/unicase/test-u8-is-cased.c: Likewise.
3977         * tests/unicase/test-u8-is-casefolded.c: Likewise.
3978         * tests/unicase/test-u8-is-lowercase.c: Likewise.
3979         * tests/unicase/test-u8-is-titlecase.c: Likewise.
3980         * tests/unicase/test-u8-is-uppercase.c: Likewise.
3981         * tests/unicase/test-u8-tolower.c: Likewise.
3982         * tests/unicase/test-u8-totitle.c: Likewise.
3983         * tests/unicase/test-u8-toupper.c: Likewise.
3984         * tests/unicase/test-u16-casecmp.c: Likewise.
3985         * tests/unicase/test-u16-casecoll.c: Likewise.
3986         * tests/unicase/test-u16-casefold.c: Likewise.
3987         * tests/unicase/test-u16-is-cased.c: Likewise.
3988         * tests/unicase/test-u16-is-casefolded.c: Likewise.
3989         * tests/unicase/test-u16-is-lowercase.c: Likewise.
3990         * tests/unicase/test-u16-is-titlecase.c: Likewise.
3991         * tests/unicase/test-u16-is-uppercase.c: Likewise.
3992         * tests/unicase/test-u16-tolower.c: Likewise.
3993         * tests/unicase/test-u16-totitle.c: Likewise.
3994         * tests/unicase/test-u16-toupper.c: Likewise.
3995         * tests/unicase/test-u32-casecmp.c: Likewise.
3996         * tests/unicase/test-u32-casecoll.c: Likewise.
3997         * tests/unicase/test-u32-casefold.c: Likewise.
3998         * tests/unicase/test-u32-is-cased.c: Likewise.
3999         * tests/unicase/test-u32-is-casefolded.c: Likewise.
4000         * tests/unicase/test-u32-is-lowercase.c: Likewise.
4001         * tests/unicase/test-u32-is-titlecase.c: Likewise.
4002         * tests/unicase/test-u32-is-uppercase.c: Likewise.
4003         * tests/unicase/test-u32-tolower.c: Likewise.
4004         * tests/unicase/test-u32-totitle.c: Likewise.
4005         * tests/unicase/test-u32-toupper.c: Likewise.
4006         * tests/unicase/test-ulc-casecmp.c: Likewise.
4007         * tests/unicase/test-ulc-casecoll.c: Likewise.
4008         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
4009         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
4010         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
4011         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
4012         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
4013         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
4014         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
4015         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
4016         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
4017         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
4018         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
4019         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
4020         * tests/unictype/test-bidi_byname.c: Likewise.
4021         * tests/unictype/test-bidi_name.c: Likewise.
4022         * tests/unictype/test-bidi_of.c: Likewise.
4023         * tests/unictype/test-bidi_test.c: Likewise.
4024         * tests/unictype/test-block_list.c: Likewise.
4025         * tests/unictype/test-block_of.c: Likewise.
4026         * tests/unictype/test-block_test.c: Likewise.
4027         * tests/unictype/test-categ_and.c: Likewise.
4028         * tests/unictype/test-categ_and_not.c: Likewise.
4029         * tests/unictype/test-categ_byname.c: Likewise.
4030         * tests/unictype/test-categ_name.c: Likewise.
4031         * tests/unictype/test-categ_none.c: Likewise.
4032         * tests/unictype/test-categ_of.c: Likewise.
4033         * tests/unictype/test-categ_or.c: Likewise.
4034         * tests/unictype/test-categ_test_withtable.c: Likewise.
4035         * tests/unictype/test-combining.c: Likewise.
4036         * tests/unictype/test-decdigit.c: Likewise.
4037         * tests/unictype/test-digit.c: Likewise.
4038         * tests/unictype/test-mirror.c: Likewise.
4039         * tests/unictype/test-numeric.c: Likewise.
4040         * tests/unictype/test-pr_byname.c: Likewise.
4041         * tests/unictype/test-pr_test.c: Likewise.
4042         * tests/unictype/test-predicate-part1.h: Likewise.
4043         * tests/unictype/test-scripts.c: Likewise.
4044         * tests/unictype/test-sy_c_ident.c: Likewise.
4045         * tests/unictype/test-sy_java_ident.c: Likewise.
4046         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
4047         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
4048         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
4049         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
4050         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
4051         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
4052         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
4053         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
4054         * tests/uninorm/test-canonical-decomposition.c: Likewise.
4055         * tests/uninorm/test-compat-decomposition.c: Likewise.
4056         * tests/uninorm/test-composition.c: Likewise.
4057         * tests/uninorm/test-decomposing-form.c: Likewise.
4058         * tests/uninorm/test-decomposition.c: Likewise.
4059         * tests/uninorm/test-u8-nfc.c: Likewise.
4060         * tests/uninorm/test-u8-nfd.c: Likewise.
4061         * tests/uninorm/test-u8-nfkc.c: Likewise.
4062         * tests/uninorm/test-u8-nfkd.c: Likewise.
4063         * tests/uninorm/test-u8-normcmp.c: Likewise.
4064         * tests/uninorm/test-u8-normcoll.c: Likewise.
4065         * tests/uninorm/test-u16-nfc.c: Likewise.
4066         * tests/uninorm/test-u16-nfd.c: Likewise.
4067         * tests/uninorm/test-u16-nfkc.c: Likewise.
4068         * tests/uninorm/test-u16-nfkd.c: Likewise.
4069         * tests/uninorm/test-u16-normcmp.c: Likewise.
4070         * tests/uninorm/test-u16-normcoll.c: Likewise.
4071         * tests/uninorm/test-u32-nfc.c: Likewise.
4072         * tests/uninorm/test-u32-nfd.c: Likewise.
4073         * tests/uninorm/test-u32-nfkc.c: Likewise.
4074         * tests/uninorm/test-u32-nfkd.c: Likewise.
4075         * tests/uninorm/test-u32-normalize-big.c: Likewise.
4076         * tests/uninorm/test-u32-normcmp.c: Likewise.
4077         * tests/uninorm/test-u32-normcoll.c: Likewise.
4078         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
4079         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
4080         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
4081         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
4082         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
4083         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
4084         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
4085         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
4086         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
4087         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
4088         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
4089         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
4090         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
4091         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
4092         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
4093         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
4094         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
4095         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
4096         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
4097         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
4098         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
4099         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
4100         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
4101         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
4102         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
4103         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
4104         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
4105         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
4106         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
4107         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
4108         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
4109         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
4110         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
4111         * tests/uniwidth/test-u8-strwidth.c: Likewise.
4112         * tests/uniwidth/test-u8-width.c: Likewise.
4113         * tests/uniwidth/test-u16-strwidth.c: Likewise.
4114         * tests/uniwidth/test-u16-width.c: Likewise.
4115         * tests/uniwidth/test-u32-strwidth.c: Likewise.
4116         * tests/uniwidth/test-u32-width.c: Likewise.
4117         * tests/uniwidth/test-uc_width.c: Likewise.
4118         * tests/uniwidth/test-uc_width2.c: Likewise.
4119         * modules/acl-tests (Files): Add tests/macros.h.
4120         * modules/areadlink-tests (Files): Likewise.
4121         * modules/areadlink-with-size-tests (Files): Likewise.
4122         * modules/areadlinkat-tests (Files): Likewise.
4123         * modules/areadlinkat-with-size-tests (Files): Likewise.
4124         * modules/argmatch-tests (Files): Likewise.
4125         * modules/argv-iter-tests (Files): Likewise.
4126         * modules/array-list-tests (Files): Likewise.
4127         * modules/array-mergesort-tests (Files): Likewise.
4128         * modules/array-oset-tests (Files): Likewise.
4129         * modules/avltree-list-tests (Files): Likewise.
4130         * modules/avltree-oset-tests (Files): Likewise.
4131         * modules/avltreehash-list-tests (Files): Likewise.
4132         * modules/base64-tests (Files): Likewise.
4133         * modules/binary-io-tests (Files): Likewise.
4134         * modules/bitrotate-tests (Files): Likewise.
4135         * modules/btowc-tests (Files): Likewise.
4136         * modules/byteswap-tests (Files): Likewise.
4137         * modules/c-ctype-tests (Files): Likewise.
4138         * modules/c-stack-tests (Files): Likewise.
4139         * modules/c-strcase-tests (Files): Likewise.
4140         * modules/c-strcasestr-tests (Files): Likewise.
4141         * modules/c-strstr-tests (Files): Likewise.
4142         * modules/canonicalize-lgpl-tests (Files): Likewise.
4143         * modules/canonicalize-tests (Files): Likewise.
4144         * modules/carray-list-tests (Files): Likewise.
4145         * modules/ceilf-tests (Files): Likewise.
4146         * modules/ceill-tests (Files): Likewise.
4147         * modules/chown-tests (Files): Likewise.
4148         * modules/cloexec-tests (Files): Likewise.
4149         * modules/copy-file-tests (Files): Likewise.
4150         * modules/count-one-bits-tests (Files): Likewise.
4151         * modules/dprintf-posix-tests (Files): Likewise.
4152         * modules/dup2-tests (Files): Likewise.
4153         * modules/dup3-tests (Files): Likewise.
4154         * modules/duplocale-tests (Files): Likewise.
4155         * modules/fbufmode-tests (Files): Likewise.
4156         * modules/fchdir-tests (Files): Likewise.
4157         * modules/fcntl-safer-tests (Files): Likewise.
4158         * modules/fcntl-tests (Files): Likewise.
4159         * modules/fdopendir-tests (Files): Likewise.
4160         * modules/fdutimensat-tests (Files): Likewise.
4161         * modules/fflush-tests (Files): Likewise.
4162         * modules/filevercmp-tests (Files): Likewise.
4163         * modules/flock-tests (Files): Likewise.
4164         * modules/floorf-tests (Files): Likewise.
4165         * modules/floorl-tests (Files): Likewise.
4166         * modules/fnmatch-tests (Files): Likewise.
4167         * modules/fopen-safer-tests (Files): Likewise.
4168         * modules/fopen-tests (Files): Likewise.
4169         * modules/fpending-tests (Files): Likewise.
4170         * modules/fprintf-posix-tests (Files): Likewise.
4171         * modules/fpurge-tests (Files): Likewise.
4172         * modules/freadable-tests (Files): Likewise.
4173         * modules/freadahead-tests (Files): Likewise.
4174         * modules/freading-tests (Files): Likewise.
4175         * modules/freadptr-tests (Files): Likewise.
4176         * modules/freadseek-tests (Files): Likewise.
4177         * modules/freopen-tests (Files): Likewise.
4178         * modules/frexp-nolibm-tests (Files): Likewise.
4179         * modules/frexp-tests (Files): Likewise.
4180         * modules/frexpl-nolibm-tests (Files): Likewise.
4181         * modules/frexpl-tests (Files): Likewise.
4182         * modules/fseek-tests (Files): Likewise.
4183         * modules/fseeko-tests (Files): Likewise.
4184         * modules/fstrcmp-tests (Files): Likewise.
4185         * modules/fsync-tests (Files): Likewise.
4186         * modules/ftell-tests (Files): Likewise.
4187         * modules/ftello-tests (Files): Likewise.
4188         * modules/func-tests (Files): Likewise.
4189         * modules/futimens-tests (Files): Likewise.
4190         * modules/fwritable-tests (Files): Likewise.
4191         * modules/fwriting-tests (Files): Likewise.
4192         * modules/getcwd-tests (Files): Likewise.
4193         * modules/getdate-tests (Files): Likewise.
4194         * modules/getdelim-tests (Files): Likewise.
4195         * modules/getdtablesize-tests (Files): Likewise.
4196         * modules/getgroups-tests (Files): Likewise.
4197         * modules/getline-tests (Files): Likewise.
4198         * modules/getndelim2-tests (Files): Likewise.
4199         * modules/glob-tests (Files): Likewise.
4200         * modules/hash-tests (Files): Likewise.
4201         * modules/i-ring-tests (Files): Likewise.
4202         * modules/iconv-tests (Files): Likewise.
4203         * modules/iconv_open-utf-tests (Files): Likewise.
4204         * modules/idpriv-drop-tests (Files): Likewise.
4205         * modules/idpriv-droptemp-tests (Files): Likewise.
4206         * modules/inet_ntop-tests (Files): Likewise.
4207         * modules/inet_pton-tests (Files): Likewise.
4208         * modules/isblank-tests (Files): Likewise.
4209         * modules/isfinite-tests (Files): Likewise.
4210         * modules/isinf-tests (Files): Likewise.
4211         * modules/isnan-tests (Files): Likewise.
4212         * modules/isnand-nolibm-tests (Files): Likewise.
4213         * modules/isnand-tests (Files): Likewise.
4214         * modules/isnanf-nolibm-tests (Files): Likewise.
4215         * modules/isnanf-tests (Files): Likewise.
4216         * modules/isnanl-nolibm-tests (Files): Likewise.
4217         * modules/isnanl-tests (Files): Likewise.
4218         * modules/lchown-tests (Files): Likewise.
4219         * modules/ldexpl-tests (Files): Likewise.
4220         * modules/link-tests (Files): Likewise.
4221         * modules/linkat-tests (Files): Likewise.
4222         * modules/linked-list-tests (Files): Likewise.
4223         * modules/linkedhash-list-tests (Files): Likewise.
4224         * modules/localename-tests (Files): Likewise.
4225         * modules/lseek-tests (Files): Likewise.
4226         * modules/lstat-tests (Files): Likewise.
4227         * modules/mbmemcasecmp-tests (Files): Likewise.
4228         * modules/mbmemcasecoll-tests (Files): Likewise.
4229         * modules/mbrtowc-tests (Files): Likewise.
4230         * modules/mbscasecmp-tests (Files): Likewise.
4231         * modules/mbscasestr-tests (Files): Likewise.
4232         * modules/mbschr-tests (Files): Likewise.
4233         * modules/mbscspn-tests (Files): Likewise.
4234         * modules/mbsinit-tests (Files): Likewise.
4235         * modules/mbsncasecmp-tests (Files): Likewise.
4236         * modules/mbsnrtowcs-tests (Files): Likewise.
4237         * modules/mbspbrk-tests (Files): Likewise.
4238         * modules/mbspcasecmp-tests (Files): Likewise.
4239         * modules/mbsrchr-tests (Files): Likewise.
4240         * modules/mbsrtowcs-tests (Files): Likewise.
4241         * modules/mbsspn-tests (Files): Likewise.
4242         * modules/mbsstr-tests (Files): Likewise.
4243         * modules/memchr-tests (Files): Likewise.
4244         * modules/memchr2-tests (Files): Likewise.
4245         * modules/memcmp-tests (Files): Likewise.
4246         * modules/memmem-tests (Files): Likewise.
4247         * modules/memrchr-tests (Files): Likewise.
4248         * modules/mkdir-tests (Files): Likewise.
4249         * modules/mkfifo-tests (Files): Likewise.
4250         * modules/mkfifoat-tests (Files): Likewise.
4251         * modules/mknod-tests (Files): Likewise.
4252         * modules/nanosleep-tests (Files): Likewise.
4253         * modules/nl_langinfo-tests (Files): Likewise.
4254         * modules/obstack-printf-tests (Files): Likewise.
4255         * modules/open-tests (Files): Likewise.
4256         * modules/openat-tests (Files): Likewise.
4257         * modules/pipe-filter-gi-tests (Files): Likewise.
4258         * modules/pipe-filter-ii-tests (Files): Likewise.
4259         * modules/pipe2-tests (Files): Likewise.
4260         * modules/popen-safer-tests (Files): Likewise.
4261         * modules/popen-tests (Files): Likewise.
4262         * modules/posixtm-tests (Files): Likewise.
4263         * modules/pread-tests (Files): Likewise.
4264         * modules/printf-frexp-tests (Files): Likewise.
4265         * modules/printf-frexpl-tests (Files): Likewise.
4266         * modules/printf-posix-tests (Files): Likewise.
4267         * modules/priv-set-tests (Files): Likewise.
4268         * modules/quotearg-tests (Files): Likewise.
4269         * modules/random_r-tests (Files): Likewise.
4270         * modules/rawmemchr-tests (Files): Likewise.
4271         * modules/rbtree-list-tests (Files): Likewise.
4272         * modules/rbtree-oset-tests (Files): Likewise.
4273         * modules/rbtreehash-list-tests (Files): Likewise.
4274         * modules/readlink-tests (Files): Likewise.
4275         * modules/remove-tests (Files): Likewise.
4276         * modules/rename-tests (Files): Likewise.
4277         * modules/renameat-tests (Files): Likewise.
4278         * modules/rmdir-tests (Files): Likewise.
4279         * modules/round-tests (Files): Likewise.
4280         * modules/roundf-tests (Files): Likewise.
4281         * modules/roundl-tests (Files): Likewise.
4282         * modules/safe-alloc-tests (Files): Likewise.
4283         * modules/setenv-tests (Files): Likewise.
4284         * modules/sigaction-tests (Files): Likewise.
4285         * modules/signbit-tests (Files): Likewise.
4286         * modules/sleep-tests (Files): Likewise.
4287         * modules/snprintf-posix-tests (Files): Likewise.
4288         * modules/snprintf-tests (Files): Likewise.
4289         * modules/sprintf-posix-tests (Files): Likewise.
4290         * modules/stat-tests (Files): Likewise.
4291         * modules/stat-time-tests (Files): Likewise.
4292         * modules/strcasestr-tests (Files): Likewise.
4293         * modules/strchrnul-tests (Files): Likewise.
4294         * modules/strerror-tests (Files): Likewise.
4295         * modules/striconv-tests (Files): Likewise.
4296         * modules/striconveh-tests (Files): Likewise.
4297         * modules/striconveha-tests (Files): Likewise.
4298         * modules/strsignal-tests (Files): Likewise.
4299         * modules/strstr-tests (Files): Likewise.
4300         * modules/strtod-tests (Files): Likewise.
4301         * modules/strverscmp-tests (Files): Likewise.
4302         * modules/symlink-tests (Files): Likewise.
4303         * modules/symlinkat-tests (Files): Likewise.
4304         * modules/trunc-tests (Files): Likewise.
4305         * modules/truncf-tests (Files): Likewise.
4306         * modules/truncl-tests (Files): Likewise.
4307         * modules/uname-tests (Files): Likewise.
4308         * modules/unicase/cased-tests (Files): Likewise.
4309         * modules/unicase/ignorable-tests (Files): Likewise.
4310         * modules/unicase/locale-language-tests (Files): Likewise.
4311         * modules/unicase/tolower-tests (Files): Likewise.
4312         * modules/unicase/totitle-tests (Files): Likewise.
4313         * modules/unicase/toupper-tests (Files): Likewise.
4314         * modules/unicase/u8-casecmp-tests (Files): Likewise.
4315         * modules/unicase/u8-casecoll-tests (Files): Likewise.
4316         * modules/unicase/u8-casefold-tests (Files): Likewise.
4317         * modules/unicase/u8-is-cased-tests (Files): Likewise.
4318         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
4319         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
4320         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
4321         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
4322         * modules/unicase/u8-tolower-tests (Files): Likewise.
4323         * modules/unicase/u8-totitle-tests (Files): Likewise.
4324         * modules/unicase/u8-toupper-tests (Files): Likewise.
4325         * modules/unicase/u16-casecmp-tests (Files): Likewise.
4326         * modules/unicase/u16-casecoll-tests (Files): Likewise.
4327         * modules/unicase/u16-casefold-tests (Files): Likewise.
4328         * modules/unicase/u16-is-cased-tests (Files): Likewise.
4329         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
4330         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
4331         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
4332         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
4333         * modules/unicase/u16-tolower-tests (Files): Likewise.
4334         * modules/unicase/u16-totitle-tests (Files): Likewise.
4335         * modules/unicase/u16-toupper-tests (Files): Likewise.
4336         * modules/unicase/u32-casecmp-tests (Files): Likewise.
4337         * modules/unicase/u32-casecoll-tests (Files): Likewise.
4338         * modules/unicase/u32-casefold-tests (Files): Likewise.
4339         * modules/unicase/u32-is-cased-tests (Files): Likewise.
4340         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
4341         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
4342         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
4343         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
4344         * modules/unicase/u32-tolower-tests (Files): Likewise.
4345         * modules/unicase/u32-totitle-tests (Files): Likewise.
4346         * modules/unicase/u32-toupper-tests (Files): Likewise.
4347         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
4348         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
4349         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
4350         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
4351         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
4352         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
4353         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
4354         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
4355         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
4356         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
4357         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
4358         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
4359         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
4360         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
4361         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
4362         * modules/unictype/bidicategory-name-tests (Files): Likewise.
4363         * modules/unictype/bidicategory-of-tests (Files): Likewise.
4364         * modules/unictype/bidicategory-test-tests (Files): Likewise.
4365         * modules/unictype/block-list-tests (Files): Likewise.
4366         * modules/unictype/block-of-tests (Files): Likewise.
4367         * modules/unictype/block-test-tests (Files): Likewise.
4368         * modules/unictype/category-C-tests (Files): Likewise.
4369         * modules/unictype/category-Cc-tests (Files): Likewise.
4370         * modules/unictype/category-Cf-tests (Files): Likewise.
4371         * modules/unictype/category-Cn-tests (Files): Likewise.
4372         * modules/unictype/category-Co-tests (Files): Likewise.
4373         * modules/unictype/category-Cs-tests (Files): Likewise.
4374         * modules/unictype/category-L-tests (Files): Likewise.
4375         * modules/unictype/category-Ll-tests (Files): Likewise.
4376         * modules/unictype/category-Lm-tests (Files): Likewise.
4377         * modules/unictype/category-Lo-tests (Files): Likewise.
4378         * modules/unictype/category-Lt-tests (Files): Likewise.
4379         * modules/unictype/category-Lu-tests (Files): Likewise.
4380         * modules/unictype/category-M-tests (Files): Likewise.
4381         * modules/unictype/category-Mc-tests (Files): Likewise.
4382         * modules/unictype/category-Me-tests (Files): Likewise.
4383         * modules/unictype/category-Mn-tests (Files): Likewise.
4384         * modules/unictype/category-N-tests (Files): Likewise.
4385         * modules/unictype/category-Nd-tests (Files): Likewise.
4386         * modules/unictype/category-Nl-tests (Files): Likewise.
4387         * modules/unictype/category-No-tests (Files): Likewise.
4388         * modules/unictype/category-P-tests (Files): Likewise.
4389         * modules/unictype/category-Pc-tests (Files): Likewise.
4390         * modules/unictype/category-Pd-tests (Files): Likewise.
4391         * modules/unictype/category-Pe-tests (Files): Likewise.
4392         * modules/unictype/category-Pf-tests (Files): Likewise.
4393         * modules/unictype/category-Pi-tests (Files): Likewise.
4394         * modules/unictype/category-Po-tests (Files): Likewise.
4395         * modules/unictype/category-Ps-tests (Files): Likewise.
4396         * modules/unictype/category-S-tests (Files): Likewise.
4397         * modules/unictype/category-Sc-tests (Files): Likewise.
4398         * modules/unictype/category-Sk-tests (Files): Likewise.
4399         * modules/unictype/category-Sm-tests (Files): Likewise.
4400         * modules/unictype/category-So-tests (Files): Likewise.
4401         * modules/unictype/category-Z-tests (Files): Likewise.
4402         * modules/unictype/category-Zl-tests (Files): Likewise.
4403         * modules/unictype/category-Zp-tests (Files): Likewise.
4404         * modules/unictype/category-Zs-tests (Files): Likewise.
4405         * modules/unictype/category-and-not-tests (Files): Likewise.
4406         * modules/unictype/category-and-tests (Files): Likewise.
4407         * modules/unictype/category-byname-tests (Files): Likewise.
4408         * modules/unictype/category-name-tests (Files): Likewise.
4409         * modules/unictype/category-none-tests (Files): Likewise.
4410         * modules/unictype/category-of-tests (Files): Likewise.
4411         * modules/unictype/category-or-tests (Files): Likewise.
4412         * modules/unictype/category-test-withtable-tests (Files): Likewise.
4413         * modules/unictype/combining-class-tests (Files): Likewise.
4414         * modules/unictype/ctype-alnum-tests (Files): Likewise.
4415         * modules/unictype/ctype-alpha-tests (Files): Likewise.
4416         * modules/unictype/ctype-blank-tests (Files): Likewise.
4417         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
4418         * modules/unictype/ctype-digit-tests (Files): Likewise.
4419         * modules/unictype/ctype-graph-tests (Files): Likewise.
4420         * modules/unictype/ctype-lower-tests (Files): Likewise.
4421         * modules/unictype/ctype-print-tests (Files): Likewise.
4422         * modules/unictype/ctype-punct-tests (Files): Likewise.
4423         * modules/unictype/ctype-space-tests (Files): Likewise.
4424         * modules/unictype/ctype-upper-tests (Files): Likewise.
4425         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
4426         * modules/unictype/decimal-digit-tests (Files): Likewise.
4427         * modules/unictype/digit-tests (Files): Likewise.
4428         * modules/unictype/mirror-tests (Files): Likewise.
4429         * modules/unictype/numeric-tests (Files): Likewise.
4430         * modules/unictype/property-alphabetic-tests (Files): Likewise.
4431         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
4432         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
4433         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
4434         Likewise.
4435         * modules/unictype/property-bidi-block-separator-tests (Files):
4436         Likewise.
4437         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
4438         Likewise.
4439         * modules/unictype/property-bidi-common-separator-tests (Files):
4440         Likewise.
4441         * modules/unictype/property-bidi-control-tests (Files): Likewise.
4442         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
4443         Likewise.
4444         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
4445         Likewise.
4446         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
4447         Likewise.
4448         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
4449         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
4450         Likewise.
4451         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
4452         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
4453         Likewise.
4454         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
4455         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
4456         * modules/unictype/property-bidi-segment-separator-tests (Files):
4457         Likewise.
4458         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
4459         * modules/unictype/property-byname-tests (Files): Likewise.
4460         * modules/unictype/property-combining-tests (Files): Likewise.
4461         * modules/unictype/property-composite-tests (Files): Likewise.
4462         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
4463         * modules/unictype/property-dash-tests (Files): Likewise.
4464         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
4465         * modules/unictype/property-default-ignorable-code-point-tests (Files):
4466         Likewise.
4467         * modules/unictype/property-deprecated-tests (Files): Likewise.
4468         * modules/unictype/property-diacritic-tests (Files): Likewise.
4469         * modules/unictype/property-extender-tests (Files): Likewise.
4470         * modules/unictype/property-format-control-tests (Files): Likewise.
4471         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
4472         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
4473         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
4474         * modules/unictype/property-hex-digit-tests (Files): Likewise.
4475         * modules/unictype/property-hyphen-tests (Files): Likewise.
4476         * modules/unictype/property-id-continue-tests (Files): Likewise.
4477         * modules/unictype/property-id-start-tests (Files): Likewise.
4478         * modules/unictype/property-ideographic-tests (Files): Likewise.
4479         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
4480         * modules/unictype/property-ids-trinary-operator-tests (Files):
4481         Likewise.
4482         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
4483         * modules/unictype/property-iso-control-tests (Files): Likewise.
4484         * modules/unictype/property-join-control-tests (Files): Likewise.
4485         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
4486         * modules/unictype/property-line-separator-tests (Files): Likewise.
4487         * modules/unictype/property-logical-order-exception-tests (Files):
4488         Likewise.
4489         * modules/unictype/property-lowercase-tests (Files): Likewise.
4490         * modules/unictype/property-math-tests (Files): Likewise.
4491         * modules/unictype/property-non-break-tests (Files): Likewise.
4492         * modules/unictype/property-not-a-character-tests (Files): Likewise.
4493         * modules/unictype/property-numeric-tests (Files): Likewise.
4494         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
4495         * modules/unictype/property-other-default-ignorable-code-point-tests
4496         (Files): Likewise.
4497         * modules/unictype/property-other-grapheme-extend-tests (Files):
4498         Likewise.
4499         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
4500         * modules/unictype/property-other-id-start-tests (Files): Likewise.
4501         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
4502         * modules/unictype/property-other-math-tests (Files): Likewise.
4503         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
4504         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
4505         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
4506         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
4507         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
4508         * modules/unictype/property-private-use-tests (Files): Likewise.
4509         * modules/unictype/property-punctuation-tests (Files): Likewise.
4510         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
4511         * modules/unictype/property-radical-tests (Files): Likewise.
4512         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
4513         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
4514         * modules/unictype/property-space-tests (Files): Likewise.
4515         * modules/unictype/property-terminal-punctuation-tests (Files):
4516         Likewise.
4517         * modules/unictype/property-test-tests (Files): Likewise.
4518         * modules/unictype/property-titlecase-tests (Files): Likewise.
4519         * modules/unictype/property-unassigned-code-value-tests (Files):
4520         Likewise.
4521         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
4522         * modules/unictype/property-uppercase-tests (Files): Likewise.
4523         * modules/unictype/property-variation-selector-tests (Files): Likewise.
4524         * modules/unictype/property-white-space-tests (Files): Likewise.
4525         * modules/unictype/property-xid-continue-tests (Files): Likewise.
4526         * modules/unictype/property-xid-start-tests (Files): Likewise.
4527         * modules/unictype/property-zero-width-tests (Files): Likewise.
4528         * modules/unictype/scripts-tests (Files): Likewise.
4529         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
4530         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
4531         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
4532         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
4533         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
4534         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
4535         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
4536         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
4537         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
4538         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
4539         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
4540         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
4541         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
4542         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
4543         * modules/uninorm/composition-tests (Files): Likewise.
4544         * modules/uninorm/decomposing-form-tests (Files): Likewise.
4545         * modules/uninorm/decomposition-tests (Files): Likewise.
4546         * modules/uninorm/filter-tests (Files): Likewise.
4547         * modules/uninorm/nfc-tests (Files): Likewise.
4548         * modules/uninorm/nfd-tests (Files): Likewise.
4549         * modules/uninorm/nfkc-tests (Files): Likewise.
4550         * modules/uninorm/nfkd-tests (Files): Likewise.
4551         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
4552         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
4553         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
4554         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
4555         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
4556         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
4557         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
4558         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
4559         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
4560         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
4561         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
4562         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
4563         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
4564         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
4565         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
4566         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
4567         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
4568         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
4569         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
4570         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
4571         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
4572         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
4573         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
4574         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
4575         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
4576         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
4577         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
4578         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
4579         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
4580         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
4581         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
4582         * modules/uniwidth/u8-width-tests (Files): Likewise.
4583         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
4584         * modules/uniwidth/u16-width-tests (Files): Likewise.
4585         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
4586         * modules/uniwidth/u32-width-tests (Files): Likewise.
4587         * modules/uniwidth/width-tests (Files): Likewise.
4588         * modules/unlink-tests (Files): Likewise.
4589         * modules/unsetenv-tests (Files): Likewise.
4590         * modules/usleep-tests (Files): Likewise.
4591         * modules/utimens-tests (Files): Likewise.
4592         * modules/utimensat-tests (Files): Likewise.
4593         * modules/vasnprintf-posix-tests (Files): Likewise.
4594         * modules/vasnprintf-tests (Files): Likewise.
4595         * modules/vasprintf-posix-tests (Files): Likewise.
4596         * modules/vasprintf-tests (Files): Likewise.
4597         * modules/vdprintf-posix-tests (Files): Likewise.
4598         * modules/vfprintf-posix-tests (Files): Likewise.
4599         * modules/vprintf-posix-tests (Files): Likewise.
4600         * modules/vsnprintf-posix-tests (Files): Likewise.
4601         * modules/vsnprintf-tests (Files): Likewise.
4602         * modules/vsprintf-posix-tests (Files): Likewise.
4603         * modules/wcrtomb-tests (Files): Likewise.
4604         * modules/wcsnrtombs-tests (Files): Likewise.
4605         * modules/wcsrtombs-tests (Files): Likewise.
4606         * modules/wctype-tests (Files): Likewise.
4607         * modules/wcwidth-tests (Files): Likewise.
4608         * modules/xmemdup0-tests (Files): Likewise.
4609         * modules/xprintf-posix-tests (Files): Likewise.
4610         * modules/xvasprintf-tests (Files): Likewise.
4611
4612 2009-12-24  Eric Blake  <ebb9@byu.net>
4613
4614         test-nanosleep: fix typo
4615         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
4616         patch.
4617         Reported by Bruno Haible.
4618
4619 2009-12-24  Bruno Haible  <bruno@clisp.org>
4620
4621         Reduce namespace pollution on glibc systems.
4622         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
4623         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
4624         systems.
4625         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
4626         <getopt.h> on glibc systems.
4627         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
4628         systems.
4629         * lib/fcntl.c: Include <unistd.h> here instead.
4630
4631 2009-12-24  Bruno Haible  <bruno@clisp.org>
4632
4633         * lib/stdlib.in.h (includes): Fix typo in today's commit.
4634
4635 2009-12-24  Eric Blake  <ebb9@byu.net>
4636
4637         tests: add signature checks
4638         * tests/signature.h (SIGNATURE_CHECK): New file.
4639         * modules/atexit-tests (Files): Use it.
4640         * modules/btowc-tests (Files): Likewise.
4641         * modules/canonicalize-lgpl-tests (Files): Likewise.
4642         * modules/ceilf-tests (Files): Likewise.
4643         * modules/ceill-tests (Files): Likewise.
4644         * modules/chown-tests (Files): Likewise.
4645         * modules/dprintf-posix-tests (Files): Likewise.
4646         * modules/dup2-tests (Files): Likewise.
4647         * modules/dup3-tests (Files): Likewise.
4648         * modules/duplocale-tests (Files): Likewise.
4649         * modules/fchdir-tests (Files): Likewise.
4650         * modules/fcntl-tests (Files): Likewise.
4651         * modules/fdopendir-tests (Files): Likewise.
4652         * modules/fflush-tests (Files): Likewise.
4653         * modules/flock-tests (Files): Likewise.
4654         * modules/floorf-tests (Files): Likewise.
4655         * modules/floorl-tests (Files): Likewise.
4656         * modules/fnmatch-tests (Files): Likewise.
4657         * modules/fopen-tests (Files): Likewise.
4658         * modules/fprintf-posix-tests (Files): Likewise.
4659         * modules/freopen-tests (Files): Likewise.
4660         * modules/frexp-nolibm-tests (Files): Likewise.
4661         * modules/frexp-tests (Files): Likewise.
4662         * modules/frexpl-nolibm-tests (Files): Likewise.
4663         * modules/frexpl-tests (Files): Likewise.
4664         * modules/fseek-tests (Files): Likewise.
4665         * modules/fseeko-tests (Files): Likewise.
4666         * modules/fsync-tests (Files): Likewise.
4667         * modules/ftell-tests (Files): Likewise.
4668         * modules/ftello-tests (Files): Likewise.
4669         * modules/futimens-tests (Files): Likewise.
4670         * modules/getaddrinfo-tests (Files): Likewise.
4671         * modules/getcwd-tests (Files): Likewise.
4672         * modules/getdelim-tests (Files): Likewise.
4673         * modules/getdtablesize-tests (Files): Likewise.
4674         * modules/getgroups-tests (Files): Likewise.
4675         * modules/gethostname-tests (Files): Likewise.
4676         * modules/getline-tests (Files): Likewise.
4677         * modules/getopt-posix-tests (Files): Likewise.
4678         * modules/gettimeofday-tests (Files): Likewise.
4679         * modules/glob-tests (Files): Likewise.
4680         * modules/iconv-tests (Files): Likewise.
4681         * modules/inet_ntop-tests (Files): Likewise.
4682         * modules/inet_pton-tests (Files): Likewise.
4683         * modules/isblank-tests (Files): Likewise.
4684         * modules/lchown-tests (Files): Likewise.
4685         * modules/ldexpl-tests (Files): Likewise.
4686         * modules/link-tests (Files): Likewise.
4687         * modules/linkat-tests (Files): Likewise.
4688         * modules/lseek-tests (Files): Likewise.
4689         * modules/lstat-tests (Files): Likewise.
4690         * modules/mbrtowc-tests (Files): Likewise.
4691         * modules/mbsinit-tests (Files): Likewise.
4692         * modules/mbsnrtowcs-tests (Files): Likewise.
4693         * modules/mbsrtowcs-tests (Files): Likewise.
4694         * modules/memchr-tests (Files): Likewise.
4695         * modules/memcmp-tests (Files): Likewise.
4696         * modules/memmem-tests (Files): Likewise.
4697         * modules/memrchr-tests (Files): Likewise.
4698         * modules/mkdir-tests (Files): Likewise.
4699         * modules/mkfifo-tests (Files): Likewise.
4700         * modules/mkfifoat-tests (Files): Likewise.
4701         * modules/mknod-tests (Files): Likewise.
4702         * modules/nanosleep-tests (Files): Likewise.
4703         * modules/nl_langinfo-tests (Files): Likewise.
4704         * modules/obstack-printf-tests (Files): Likewise.
4705         * modules/open-tests (Files): Likewise.
4706         * modules/openat-tests (Files): Likewise.
4707         * modules/perror-tests (Files): Likewise.
4708         * modules/pipe2-tests (Files): Likewise.
4709         * modules/poll-tests (Files): Likewise.
4710         * modules/popen-tests (Files): Likewise.
4711         * modules/posix_spawn-tests (Files): Likewise.
4712         * modules/posix_spawnp-tests (Files): Likewise.
4713         * modules/pread-tests (Files): Likewise.
4714         * modules/printf-posix-tests (Files): Likewise.
4715         * modules/pty-tests (Files): Likewise.
4716         * modules/random_r-tests (Files): Likewise.
4717         * modules/rawmemchr-tests (Files): Likewise.
4718         * modules/readlink-tests (Files): Likewise.
4719         * modules/remove-tests (Files): Likewise.
4720         * modules/rename-tests (Files): Likewise.
4721         * modules/renameat-tests (Files): Likewise.
4722         * modules/rmdir-tests (Files): Likewise.
4723         * modules/round-tests (Files): Likewise.
4724         * modules/roundf-tests (Files): Likewise.
4725         * modules/roundl-tests (Files): Likewise.
4726         * modules/select-tests (Files): Likewise.
4727         * modules/setenv-tests (Files): Likewise.
4728         * modules/sigaction-tests (Files): Likewise.
4729         * modules/sleep-tests (Files): Likewise.
4730         * modules/snprintf-posix-tests (Files): Likewise.
4731         * modules/snprintf-tests (Files): Likewise.
4732         * modules/sprintf-posix-tests (Files): Likewise.
4733         * modules/stat-tests (Files): Likewise.
4734         * modules/strcasestr-tests (Files): Likewise.
4735         * modules/strchrnul-tests (Files): Likewise.
4736         * modules/strerror-tests (Files): Likewise.
4737         * modules/strsignal-tests (Files): Likewise.
4738         * modules/strstr-tests (Files): Likewise.
4739         * modules/strtod-tests (Files): Likewise.
4740         * modules/strverscmp-tests (Files): Likewise.
4741         * modules/symlink-tests (Files): Likewise.
4742         * modules/symlinkat-tests (Files): Likewise.
4743         * modules/times-tests (Files): Likewise.
4744         * modules/trunc-tests (Files): Likewise.
4745         * modules/truncf-tests (Files): Likewise.
4746         * modules/truncl-tests (Files): Likewise.
4747         * modules/tsearch-tests (Files): Likewise.
4748         * modules/uname-tests (Files): Likewise.
4749         * modules/unlink-tests (Files): Likewise.
4750         * modules/unsetenv-tests (Files): Likewise.
4751         * modules/usleep-tests (Files): Likewise.
4752         * modules/utimensat-tests (Files): Likewise.
4753         * modules/vasprintf-tests (Files): Likewise.
4754         * modules/vdprintf-posix-tests (Files): Likewise.
4755         * modules/vfprintf-posix-tests (Files): Likewise.
4756         * modules/vprintf-posix-tests (Files): Likewise.
4757         * modules/vsnprintf-posix-tests (Files): Likewise.
4758         * modules/vsnprintf-tests (Files): Likewise.
4759         * modules/vsprintf-posix-tests (Files): Likewise.
4760         * modules/wcrtomb-tests (Files): Likewise.
4761         * modules/wcsnrtombs-tests (Files): Likewise.
4762         * modules/wcsrtombs-tests (Files): Likewise.
4763         * modules/wcwidth-tests (Files): Likewise.
4764         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
4765         * tests/test-isinf.c (isinf): Likewise.
4766         * tests/test-isnan.c (isnan): Likewise.
4767         * tests/test-signbit.c (signbit): Likewise.
4768         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
4769         declaration, either as macro or with correct signature.
4770         (select): Ensure function under test is declared with correct
4771         signature in correct header.
4772         * tests/test-atexit.c (atexit): Likewise.
4773         * tests/test-btowc.c (btowc): Likewise.
4774         * tests/test-canonicalize-lgpl.c (realpath)
4775         (canonicalize_file_name): Likewise.
4776         * tests/test-ceilf1.c (ceilf): Likewise.
4777         * tests/test-ceill.c (ceill): Likewise.
4778         * tests/test-chown.c (chown): Likewise.
4779         * tests/test-dprintf-posix.c (dprintf): Likewise.
4780         * tests/test-dup2.c (dup2): Likewise.
4781         * tests/test-dup3.c (dup3): Likewise.
4782         * tests/test-duplocale.c (duplocale): Likewise.
4783         * tests/test-fchdir.c (fchdir): Likewise.
4784         * tests/test-fchownat.c (fchownat): Likewise.
4785         * tests/test-fcntl.c (fcntl): Likewise.
4786         * tests/test-fdopendir.c (fdopendir): Likewise.
4787         * tests/test-fflush.c (fflush): Likewise.
4788         * tests/test-flock.c (flock): Likewise.
4789         * tests/test-floorf1.c (floorf): Likewise.
4790         * tests/test-floorl.c (floorl): Likewise.
4791         * tests/test-fnmatch.c (fnmatch): Likewise.
4792         * tests/test-fopen.c (fopen): Likewise.
4793         * tests/test-fprintf-posix.c (fprintf): Likewise.
4794         * tests/test-freopen.c (freopen): Likewise.
4795         * tests/test-frexp.c (frexp): Likewise.
4796         * tests/test-frexpl.c (frexpl): Likewise.
4797         * tests/test-fseek.c (fseek): Likewise.
4798         * tests/test-fseeko.c (fseeko): Likewise.
4799         * tests/test-fstatat.c (fstatat): Likewise.
4800         * tests/test-fsync.c (fsync): Likewise.
4801         * tests/test-ftell.c (ftell): Likewise.
4802         * tests/test-ftello.c (ftello): Likewise.
4803         * tests/test-futimens.c (futimens): Likewise.
4804         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
4805         (gai_strerror): Likewise.
4806         * tests/test-getcwd.c (getcwd): Likewise.
4807         * tests/test-getdelim.c (getdelim): Likewise.
4808         * tests/test-getdtablesize.c (getdtablesize): Likewise.
4809         * tests/test-getgroups.c (getgroups): Likewise.
4810         * tests/test-gethostname.c (gethostname): Likewise.
4811         * tests/test-getline.c (getline): Likewise.
4812         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
4813         Likewise.
4814         * tests/test-gettimeofday.c (gettimeofday): Likewise.
4815         * tests/test-glob.c (glob, globfree): Likewise.
4816         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
4817         * tests/test-inet_ntop.c (inet_ntop): Likewise.
4818         * tests/test-inet_pton.c (inet_pton): Likewise.
4819         * tests/test-isblank.c (isblank): Likewise.
4820         * tests/test-lchown.c (lchown): Likewise.
4821         * tests/test-ldexpl.c (ldexpl): Likewise.
4822         * tests/test-link.c (link): Likewise.
4823         * tests/test-linkat.c (linkat): Likewise.
4824         * tests/test-lseek.c (lseek): Likewise.
4825         * tests/test-lstat.c (lstat): Likewise.
4826         * tests/test-mbrtowc.c (mbrtowc): Likewise.
4827         * tests/test-mbsinit.c (mbsinit): Likewise.
4828         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
4829         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
4830         * tests/test-memchr.c (memchr): Likewise.
4831         * tests/test-memcmp.c (memcmp): Likewise.
4832         * tests/test-memmem.c (memmem): Likewise.
4833         * tests/test-memrchr.c (memrchr): Likewise.
4834         * tests/test-mkdir.c (mkdir): Likewise.
4835         * tests/test-mkdirat.c (mkdirat): Likewise.
4836         * tests/test-mkfifo.c (mkfifo): Likewise.
4837         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
4838         * tests/test-mknod.c (mknod): Likewise.
4839         * tests/test-nanosleep.c (nanosleep): Likewise.
4840         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
4841         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
4842         Likewise.
4843         * tests/test-open.c (open): Likewise.
4844         * tests/test-openat.c (openat): Likewise.
4845         * tests/test-perror.c (perror): Likewise.
4846         * tests/test-pipe2.c (pipe2): Likewise.
4847         * tests/test-poll.c (poll): Likewise.
4848         * tests/test-popen.c (popen, pclose): Likewise.
4849         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
4850         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
4851         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
4852         (posix_spawn_file_actions_destroy)
4853         (posix_spawn_file_actions_addclose)
4854         (posix_spawn_file_actions_addopen)
4855         (posix_spawn_file_actions_adddup2): Likewise.
4856         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
4857         * tests/test-pread.c (pread): Likewise.
4858         * tests/test-printf-posix.c (printf): Likewise.
4859         * tests/test-pty.c (openpty, forkpty): Likewise.
4860         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
4861         (random_r): Likewise.
4862         * tests/test-rawmemchr.c (rawmemchr): Likewise.
4863         * tests/test-readlink.c (readlink): Likewise.
4864         * tests/test-remove.c (remove): Likewise.
4865         * tests/test-rename.c (rename): Likewise.
4866         * tests/test-renameat.c (renameat): Likewise.
4867         * tests/test-rmdir.c (rmdir): Likewise.
4868         * tests/test-round1.c (round): Likewise.
4869         * tests/test-roundf1.c (roundf): Likewise.
4870         * tests/test-roundl.c (roundl): Likewise.
4871         * tests/test-setenv.c (setenv): Likewise.
4872         * tests/test-sigaction.c (sigaction): Likewise.
4873         * tests/test-sleep.c (sleep): Likewise.
4874         * tests/test-snprintf.c (snprintf): Likewise.
4875         * tests/test-sprintf-posix.c (sprintf): Likewise.
4876         * tests/test-stat.c (stat): Likewise.
4877         * tests/test-stpncpy.c (stpncpy): Likewise.
4878         * tests/test-strcasestr.c (strcasestr): Likewise.
4879         * tests/test-strchrnul.c (strchrnul): Likewise.
4880         * tests/test-strerror.c (strerror): Likewise.
4881         * tests/test-strsignal.c (strsignal): Likewise.
4882         * tests/test-strstr.c (strstr): Likewise.
4883         * tests/test-strtod.c (strtod): Likewise.
4884         * tests/test-strverscmp.c (strverscmp): Likewise.
4885         * tests/test-symlink.c (symlink): Likewise.
4886         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
4887         * tests/test-times.c (times): Likewise.
4888         * tests/test-trunc1.c (trunc): Likewise.
4889         * tests/test-truncf1.c (truncf): Likewise.
4890         * tests/test-truncl.c (truncl): Likewise.
4891         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
4892         Likewise.
4893         * tests/test-uname.c (uname): Likewise.
4894         * tests/test-unlink.c (unlink): Likewise.
4895         * tests/test-unlinkat.c (unlinkat): Likewise.
4896         * tests/test-unsetenv.c (unsetenv): Likewise.
4897         * tests/test-usleep.c (usleep): Likewise.
4898         * tests/test-utimensat.c (utimensat): Likewise.
4899         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
4900         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
4901         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
4902         * tests/test-vprintf-posix.c (vprintf): Likewise.
4903         * tests/test-vsnprintf.c (vsnprintf): Likewise.
4904         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
4905         * tests/test-wcrtomb.c (wcrtomb): Likewise.
4906         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
4907         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
4908         * tests/test-wcwidth.c (wcwidth): Likewise.
4909
4910         build: pull in conditional headers during GNULIB_POSIXCHECK
4911         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
4912         definitions from any conditionally-included headers.
4913         * lib/stdlib.in.h (includes): Likewise.
4914         * lib/unistd.in.h (includes): Likewise.
4915
4916 2009-12-24  Bruno Haible  <bruno@clisp.org>
4917
4918         * tests/test-argv-iter.c: Include header file being tested immediately
4919         after config.h.
4920         * tests/test-base64.c: Likewise.
4921         * tests/test-flock.c: Likewise.
4922         * tests/test-fsync.c: Likewise.
4923         * tests/test-getdate.c: Likewise.
4924         * tests/test-getndelim2.c: Likewise.
4925         * tests/test-isfinite.c: Likewise.
4926         * tests/test-isinf.c: Likewise.
4927         * tests/test-strerror.c: Likewise.
4928         * tests/test-strsignal.c: Likewise.
4929
4930 2009-12-23  Eric Blake  <ebb9@byu.net>
4931
4932         unistd: work around cygwin bug
4933         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
4934         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
4935         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
4936
4937 2009-12-23  Bruno Haible  <bruno@clisp.org>
4938
4939         localename: More tests.
4940         * tests/test-localename.c (SIZEOF): New macro.
4941         (categories): New variable.
4942         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
4943         test_locale_name_default): Add test w.r.t. thread locale.
4944         (test_locale_name_thread): New function.
4945         (main): Invoke it.
4946
4947         localename: Make aware of thread locale.
4948         * lib/localename.h (gl_locale_name_thread): New declaration.
4949         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
4950         behaviour with respect to thread locale.
4951         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
4952         <langinfo.h>, glthread/lock.h.
4953         (SIZE_BITS): New macro.
4954         (string_hash): New function.
4955         (struct hash_node): New type.
4956         (HASH_TABLE_SIZE): New macro.
4957         (struniq_hash_table, struniq_lock): New variables.
4958         (struniq): New function.
4959         (gl_locale_name_thread): New function.
4960         (gl_locale_name): Invoke it.
4961         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
4962         * modules/localename (Depends-on): Add lock.
4963         Reported by Mike Gran <spk121@yahoo.com>.
4964
4965 2009-12-23  Eric Blake  <ebb9@byu.net>
4966
4967         va-args: new module
4968         * modules/va-args: New file.
4969         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
4970         * MODULES.html.sh (Core language properties): Mention it.
4971
4972         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
4973         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
4974         named alias for __attribute__((__unused__)).
4975         * lib/chown.c: Update client.
4976         * lib/fchmodat.c: Likewise.
4977         * lib/fts.c: Likewise.
4978         * lib/getdate.y: Likewise.
4979         * lib/getgroups.c: Likewise.
4980         * lib/getopt.c: Likewise.
4981         * lib/getugroups.c: Likewise.
4982         * lib/mkdir.c: Likewise.
4983         * lib/mkfifo.c: Likewise.
4984         * lib/mkfifoat.c: Likewise.
4985         * lib/mknod.c: Likewise.
4986         * lib/mknodat.c: Likewise.
4987         * lib/readlink.c: Likewise.
4988         * lib/se-context.in.h: Likewise.
4989         * lib/se-selinux.in.h: Likewise.
4990         * lib/sockets.c: Likewise.
4991         * lib/symlink.c: Likewise.
4992         * lib/symlinkat.c: Likewise.
4993         * lib/unicodeio.c: Likewise.
4994         * lib/unistr.h: Likewise.
4995         * tests/test-areadlink.c: Likewise.
4996         * tests/test-areadlinkat.c: Likewise.
4997         * tests/test-filenamecat.c: Likewise.
4998         * tests/test-fseeko.c: Likewise.
4999         * tests/test-ftello.c: Likewise.
5000         * tests/test-getdate.c: Likewise.
5001         * tests/test-getgroups.c: Likewise.
5002         * tests/test-gethostname.c: Likewise.
5003         * tests/test-quotearg.c: Likewise.
5004         * tests/test-version-etc.c: Likewise.
5005         * tests/test-xalloc-die.c: Likewise.
5006         * tests/test-xfprintf-posix.c: Likewise.
5007         * tests/test-xprintf-posix.c: Likewise.
5008         * tests/test-xvasprintf.c: Likewise.
5009
5010         tests: avoid compiler warnings
5011         * tests/test-fcntl.c (main): Delete unused parameters.
5012         * tests/test-freopen-safer.c (main): Likewise.
5013         * tests/test-xalloc-die.c (main): Mark unused parameters.
5014         * tests/test-fseeko.c (main): Likewise.
5015         * tests/test-ftello.c (main): Likewise.
5016         * tests/test-nanosleep.c (main): Avoid declaration warning.
5017         * tests/test-sleep.c (main): Likewise.
5018         * tests/test-unsetenv.c (main): Silence warning about string
5019         literal.
5020         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
5021
5022 2009-12-23  Bruno Haible  <bruno@clisp.org>
5023
5024         * tests/test-localename.c (test_locale_name): New function, extracted
5025         from main. Also test mixed situations.
5026         (test_locale_name_posix, test_locale_name_environ,
5027         test_locale_name_default): New functions.
5028         (main): Invoke them all.
5029         * modules/localename-tests (configure.ac): Test for newlocale.
5030
5031 2009-12-23  Bruno Haible  <bruno@clisp.org>
5032
5033         unistd: Ensure getcwd gets declared before being overridden.
5034         * lib/unistd.in.h: Conditionally include <io.h>.
5035
5036 2009-12-22  Bruno Haible  <bruno@clisp.org>
5037
5038         wchar: Diagnose broken combination of glibc and gcc versions and flags.
5039         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
5040         (gl_WCHAR_H): Invoke it.
5041         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
5042         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
5043         Reported by Karl Berry <karl@freefriends.org>.
5044
5045 2009-12-22  Eric Blake  <ebb9@byu.net>
5046
5047         math, unistd: avoid redundant includes
5048         * lib/math.in.h (isnan): No need to re-include <math.h>.
5049         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
5050
5051         getsubopt: work around cygwin bug
5052         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
5053         avoid conflicting with system getsubopt.
5054         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
5055         bug.
5056
5057         getopt: synchronize from glibc
5058         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
5059         parameter order.  Adjust all callers.
5060         (_getopt_internal_r, main): Adjust quoting in error messages.
5061         Drop considerations for outdated POSIX 1003.2 error message.
5062         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
5063         callers.
5064         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
5065
5066         test-getopt: test stderr behavior
5067         * modules/getopt-posix-tests (Depends-on): Add dup2.
5068         * tests/test-getopt.c (ASSERT): Avoid stderr.
5069         (main): Move stderr to a temporary file.
5070         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
5071         Instead, add parameter to inform caller if output occurred.
5072         (test_getopt): Adjust all existing tests to expect silence, and
5073         add new tests of leading ":".
5074         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
5075         glibc shortcomings with leading "-:" or "+:" in optstring.
5076         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
5077         Likewise.
5078         * doc/posix-functions/getopt.texi (getopt): Likewise.
5079
5080         test-getopt: enhance test
5081         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
5082         supports optind=0.
5083         * tests/test-getopt.c (OPTIND_MIN): Move...
5084         * tests/test-getopt.h (OPTIND_MIN): ...here.
5085         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
5086         Require that optind=0 works, since modern BSD supports it in
5087         addition to optreset, and since coreutils expects it.
5088         (test_getopt_long_only): New test.
5089         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
5090         glibc shortcomings with 'W;', and enforcement of optind=0.
5091         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
5092         Likewise.
5093
5094 2009-12-21  Bruno Haible  <bruno@clisp.org>
5095
5096         localename: Improvements for MacOS X and Cygwin.
5097         * lib/localename.h (gl_locale_name_environ): New declaration.
5098         * lib/localename.c (gl_locale_name_environ): New function, extracted from
5099         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
5100         (gl_locale_name_posix): Invoke it.
5101         (gl_locale_name_default): Add comments. Use Windows native API also on
5102         Cygwin.
5103
5104 2009-12-21  Bruno Haible  <bruno@clisp.org>
5105
5106         Update list of Win32 locale ids.
5107         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
5108         (LANG_SAMI): Renamed from LANG_SAAMI.
5109         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
5110         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
5111         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
5112         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
5113         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
5114         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
5115         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
5116         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
5117         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
5118         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
5119         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
5120         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
5121         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
5122         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
5123         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
5124         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
5125         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
5126         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
5127         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
5128         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
5129         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
5130         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
5131         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
5132         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
5133         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
5134         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
5135         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
5136         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
5137         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
5138         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
5139         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
5140         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
5141         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
5142         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
5143         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
5144         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
5145         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
5146         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
5147         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
5148         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
5149         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
5150         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
5151         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
5152         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
5153         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
5154         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
5155         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
5156         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
5157         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
5158         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
5159         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
5160         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
5161         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
5162         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
5163         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
5164         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
5165         Add more languages and countries for Sami, Sorbian. Add more countries
5166         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
5167         for Pashto. Change country for Syriac, Tswana.
5168
5169 2009-12-21  Eric Blake  <ebb9@byu.net>
5170
5171         test-utimens: avoid spurious failure
5172         * tests/test-chown.h (nap): Factor...
5173         * tests/nap.h: ...into new file.
5174         * tests/test-lchown.h (nap): Avoid duplication.
5175         * tests/test-utimens-common.h (nap): Use shared implementation,
5176         necessary on file systems with 1-second resolution.
5177         * modules/chown-tests (Files): Include new file.
5178         * modules/fdutimensat-tests (Files): Likewise.
5179         * modules/futimens-tests (Files): Likewise.
5180         * modules/lchown-tests (Files): Likewise.
5181         * modules/openat-tests (Files): Likewise.
5182         * modules/utimens-tests (Files): Likewise.
5183         * modules/utimensat-tests (Files): Likewise.
5184
5185 2009-12-19  Eric Blake  <ebb9@byu.net>
5186
5187         futimens, utimensat: work around Linux bug
5188         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
5189         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
5190         * lib/utimensat.c (rpl_utimensat): Work around it.
5191         * lib/futimens.c (rpl_futimens): Adjust comment.
5192
5193         utimens: work around Linux ctime bug
5194         * lib/utimens.c (detect_ctime_bug): New helper function.
5195         (update_timespec): Differentiate between workaround needed for
5196         this bug vs. what is needed for systems that lack utimensat.
5197         (fdutimens, lutimens): Work around bug.
5198
5199         utimens: check for ctime update
5200         * tests/test-utimens-common.h (check_ctime): Define.
5201         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
5202         * tests/test-futimens.h (test_futimens): Likewise.
5203         * tests/test-lutimens.h (test_lutimens): Likewise.
5204         * doc/posix-functions/futimens.texi (futimens): Document the bug.
5205         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
5206
5207 2009-12-19  Bruno Haible  <bruno@clisp.org>
5208
5209         dprintf-posix: Check against memory leak fixed on 2009-12-15.
5210         * tests/test-dprintf-posix2.sh: New file.
5211         * tests/test-dprintf-posix2.c: New file.
5212         * modules/dprintf-posix-tests (Files): Add them.
5213         (configure.ac): Check for getrlimit and setrlimit.
5214         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
5215
5216 2009-12-19  Bruno Haible  <bruno@clisp.org>
5217
5218         fprintf-posix: Check against memory leak fixed on 2009-12-15.
5219         * tests/test-fprintf-posix3.sh: New file.
5220         * tests/test-fprintf-posix3.c: New file.
5221         * modules/fprintf-posix-tests (Files): Add them.
5222         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
5223
5224 2009-12-19  Eric Blake  <ebb9@byu.net>
5225
5226         dirfd: fix prototype
5227         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
5228         * lib/dirfd.c (dirfd): Likewise.
5229
5230         canonicalize: reduce memory usage
5231         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
5232         allocation to size.
5233         Reported by Solar Designer <solar@openwall.com>.
5234
5235 2009-12-19  Bruno Haible  <bruno@clisp.org>
5236
5237         New module attribute 'Applicability'.
5238         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
5239         * gnulib-tool: New option --extract-applicability.
5240         (func_usage): Document it.
5241         (sed_extract_prog): Recognize it.
5242         (func_get_applicability): New function.
5243         (func_import): Generalize handling of 'link-warning' module.
5244         * modules/link-warning (Applicability): New section.
5245         * modules/arg-nonnull (Applicability): New section.
5246         Repoted by Simon Josefsson <simon@josefsson.org>.
5247
5248 2009-12-19  Bruno Haible  <bruno@clisp.org>
5249
5250         fflush: tweak
5251         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
5252         * lib/fseeko.c (rpl_fseeko): Likewise.
5253
5254 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
5255
5256         * lib/gl_list.h: Fix typo in comment.
5257
5258 2009-12-16  Eric Blake  <ebb9@byu.net>
5259
5260         fcntl: use to simplify other modules
5261         * modules/cloexec (Depends-on): Add fcntl.
5262         * modules/fchdir (Depends-on): Likewise.
5263         * modules/fd-safer-flag (Depends-on): Likewise.
5264         * modules/unistd-safer (Depends-on): Likewise.
5265         * modules/dup3 (configure.ac): Set module indicator.
5266         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
5267         missing.
5268         * lib/fchdir.c (_gl_register_dup): Fix comment.
5269         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
5270         * lib/dup-safer.c (dup_safer): Likewise.
5271         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
5272         * lib/dup3.c (dup3): Likewise.
5273         * tests/test-fchdir.c (main): Enhance test.
5274         Fixes a dup_cloexec bug reported by Ondřej Vašík.
5275
5276         fcntl: port portions of fcntl to mingw
5277         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
5278         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
5279         replacement for mingw.
5280         * modules/fcntl (Description): Update.
5281         (Depends-on): Add dup2.
5282         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
5283         * modules/fcntl-h (Makefile.am): Substitute it.
5284         * lib/fcntl.in.h (fcntl): Update declaration.
5285         (F_DUPFD, F_GETFD): New macros, when needed.
5286         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
5287         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
5288         * tests/test-fcntl.c (check_flags, main): Enhance test for items
5289         we now guarantee.
5290
5291         fcntl: work around cygwin bug in F_DUPFD
5292         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
5293         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
5294         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
5295         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
5296         * doc/posix-functions/fcntl.texi (fcntl): Document it.
5297
5298         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
5299         * modules/fcntl (Files): List new files.
5300         (configure.ac): Run a test.
5301         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
5302         * lib/fcntl.c (rpl_fcntl): Likewise.
5303         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
5304         (gl_FCNTL_H): Always replace fcntl.h.
5305         * modules/fcntl-h (Makefile.am): Substitute witnesses.
5306         * lib/fcntl.in.h (fcntl): Declare replacement.
5307         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
5308         needed, plus a witness.
5309         * doc/posix-functions/fcntl.texi (fcntl): Document this.
5310         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
5311         * tests/test-fcntl.c: New file.
5312         * modules/fcntl-tests: Likewise.
5313
5314         binary-io: avoid potential compilation warning
5315         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
5316         directives.
5317
5318         fflush: avoid compilation error on NetBSD
5319         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
5320         between off_t and fpos_t, since the latter is sometimes a struct.
5321         * lib/fseeko.c (rpl_fseeko): Likewise.
5322         Reported by Alexander Nasonov <alnsn@yandex.ru>.
5323
5324 2009-12-15  Eric Blake  <ebb9@byu.net>
5325
5326         fcntl-h, stdio, sys_ioctl: fix declarations
5327         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
5328         function must not take arguments.
5329         * lib/sys_ioctl.in.h (ioctl): Likewise.
5330         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
5331         (open): Add a link warning.
5332
5333 2009-12-15  Jim Meyering  <meyering@redhat.com>
5334
5335         areadlink, areadlink-with-size: relax license to LGPLv2+
5336         * modules/areadlink (License): Relax to LGPLv2+.
5337         * modules/areadlink-with-size (License): Likewise.
5338
5339 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
5340             Bruno Haible  <bruno@clisp.org>
5341
5342         *printf: Fix memory leak.
5343         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
5344         * lib/vfprintf.c (vfprintf): Likewise.
5345         * lib/dprintf.c (dprintf): Likewise.
5346         * lib/vdprintf.c (vdprintf): Likewise.
5347
5348 2009-12-14  Eric Blake  <ebb9@byu.net>
5349
5350         accept4: adjust module dependencies
5351         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
5352
5353         utimens: one more try at avoiding compiler warning
5354         * lib/utimens.c (lutimens): Lower scope of result.
5355
5356 2009-12-13  Bruno Haible  <bruno@clisp.org>
5357
5358         Move the malloc checking from module 'list' to new module 'xlist'.
5359         * modules/xlist: New file.
5360         * lib/gl_xlist.h: New file.
5361         * lib/gl_xlist.c: New file.
5362         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
5363         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
5364         gl_list_add_last, gl_list_add_before, gl_list_add_after,
5365         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
5366         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
5367         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
5368         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
5369         gl_sortedlist_nx_add): New declarations.
5370         (struct gl_list_implementation): Rename and change methods accordingly.
5371         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
5372         (gl_list_nx_create): Renamed from gl_list_create.
5373         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
5374         (gl_list_nx_set_at): Renamed from gl_list_set_at.
5375         (gl_list_nx_add_first): Renamed from gl_list_add_first.
5376         (gl_list_nx_add_last): Renamed from gl_list_add_last.
5377         (gl_list_nx_add_before): Renamed from gl_list_add_before.
5378         (gl_list_nx_add_after): Renamed from gl_list_add_after.
5379         (gl_list_nx_add_at): Renamed from gl_list_add_at.
5380         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
5381         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
5382         gl_list_create_empty.
5383         (gl_list_nx_create): Renamed from gl_list_create.
5384         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
5385         (gl_list_nx_set_at): Renamed from gl_list_set_at.
5386         (gl_list_nx_add_first): Renamed from gl_list_add_first.
5387         (gl_list_nx_add_last): Renamed from gl_list_add_last.
5388         (gl_list_nx_add_before): Renamed from gl_list_add_before.
5389         (gl_list_nx_add_after): Renamed from gl_list_add_after.
5390         (gl_list_nx_add_at): Renamed from gl_list_add_at.
5391         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
5392         * lib/gl_array_list.c: Don't include xalloc.h.
5393         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
5394         NULL upon out-of-memory.
5395         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
5396         out-of-memory.
5397         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
5398         Change return type to 'int'.
5399         (gl_array_nx_set_at): Renamed from gl_array_set_at.
5400         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
5401         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
5402         upon out-of-memory.
5403         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
5404         upon out-of-memory.
5405         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
5406         upon out-of-memory.
5407         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
5408         upon out-of-memory.
5409         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
5410         out-of-memory.
5411         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
5412         Update.
5413         (gl_array_list_implementation): Update.
5414         * lib/gl_carray_list.c: Don't include xalloc.h.
5415         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
5416         Return NULL upon out-of-memory.
5417         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
5418         out-of-memory.
5419         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
5420         Change return type to 'int'.
5421         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
5422         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
5423         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
5424         upon out-of-memory.
5425         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
5426         upon out-of-memory.
5427         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
5428         out-of-memory.
5429         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
5430         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
5431         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
5432         Update.
5433         (gl_carray_list_implementation): Update.
5434         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
5435         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
5436         gl_linked_create_empty. Return NULL upon out-of-memory.
5437         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
5438         out-of-memory.
5439         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
5440         Change return type to 'int'. Return -1 upon out-of-memory.
5441         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
5442         out-of-memory.
5443         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
5444         upon out-of-memory.
5445         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
5446         upon out-of-memory.
5447         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
5448         NULL upon out-of-memory.
5449         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
5450         upon out-of-memory.
5451         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
5452         out-of-memory.
5453         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
5454         Update.
5455         * lib/gl_linked_list.c: Don't include xalloc.h.
5456         (gl_linked_list_implementation): Update.
5457         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
5458         (add_to_bucket): Change return type to 'int'.
5459         (gl_linkedhash_list_implementation): Update.
5460         * lib/gl_anytree_list1.h (free_subtree): New function.
5461         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
5462         gl_tree_create_empty. Return NULL upon out-of-memory.
5463         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
5464         Change return type to 'int'. Return -1 upon out-of-memory.
5465         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
5466         out-of-memory.
5467         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
5468         (gl_tree_remove_node): New function, moved here from
5469         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
5470         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
5471         Update.
5472         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
5473         malloc, not xmalloc. Return NULL upon out-of-memory.
5474         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
5475         out-of-memory.
5476         (gl_tree_remove_node_from_tree): New function, extracted from
5477         gl_tree_remove_node.
5478         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
5479         upon out-of-memory.
5480         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
5481         out-of-memory.
5482         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
5483         upon out-of-memory.
5484         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
5485         upon out-of-memory.
5486         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
5487         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
5488         not xmalloc. Return NULL upon out-of-memory.
5489         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
5490         out-of-memory.
5491         (gl_tree_remove_node_from_tree): New function, extracted from
5492         gl_tree_remove_node.
5493         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
5494         upon out-of-memory.
5495         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
5496         out-of-memory.
5497         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
5498         upon out-of-memory.
5499         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
5500         upon out-of-memory.
5501         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
5502         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
5503         gl_anytree_list1.h before gl_anyavltree_list2.h.
5504         (gl_avltree_list_implementation): Update.
5505         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
5506         gl_anytree_list1.h before gl_anyavltree_list2.h.
5507         (gl_rbtree_list_implementation): Update.
5508         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
5509         Change return type to 'int'. Return -1 upon out-of-memory. Use
5510         __builtin_expect.
5511         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
5512         (gl_avltreehash_list_implementation): Update.
5513         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
5514         (gl_rbtreehash_list_implementation): Update.
5515         * modules/array-list (Depends-on): Remove xalloc.
5516         * modules/carray-list (Depends-on): Likewise.
5517         * modules/linked-list (Depends-on): Likewise.
5518         * modules/linkedhash-list (Depends-on): Likewise.
5519         * modules/avltree-list (Depends-on): Likewise.
5520         * modules/rbtree-list (Depends-on): Likewise.
5521         * modules/avltreehash-list (Depends-on): Likewise.
5522         * modules/rbtreehash-list (Depends-on): Likewise.
5523
5524         * modules/xsublist: New file.
5525         * lib/gl_xsublist.h: New file.
5526         * lib/gl_xsublist.c: New file.
5527         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
5528         (gl_sublist_nx_create): New declaration.
5529         * lib/gl_sublist.c: Don't include xalloc.h.
5530         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
5531         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
5532         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
5533         Change return type to 'int'. Return -1 upon out-of-memory.
5534         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
5535         upon out-of-memory.
5536         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
5537         NULL upon out-of-memory.
5538         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
5539         upon out-of-memory.
5540         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
5541         NULL upon out-of-memory.
5542         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
5543         NULL upon out-of-memory.
5544         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
5545         upon out-of-memory.
5546         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
5547         (gl_sublist_list_implementation): Update.
5548         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
5549         upon out-of-memory.
5550         * modules/sublist (Depends-on): Remove xalloc.
5551
5552         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
5553         * tests/test-carray_list.c: Likewise.
5554         * tests/test-linked_list.c: Likewise.
5555         * tests/test-linkedhash_list.c: Likewise.
5556         * tests/test-avltree_list.c: Likewise.
5557         * tests/test-rbtree_list.c: Likewise.
5558         * tests/test-avltreehash_list.c: Likewise.
5559         * tests/test-rbtreehash_list.c: Likewise.
5560         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
5561         * modules/carray-list-tests (Makefile.am): Likewise.
5562         * modules/linked-list-tests (Makefile.am): Likewise.
5563         * modules/linkedhash-list-tests (Makefile.am): Likewise.
5564         * modules/avltree-list-tests (Makefile.am): Likewise.
5565         * modules/rbtree-list-tests (Makefile.am): Likewise.
5566         * modules/avltreehash-list-tests (Makefile.am): Likewise.
5567         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
5568
5569         * NEWS: Mention the changes.
5570
5571         * lib/clean-temp.c: Include gl_xlist.h.
5572         * modules/clean-temp (Depends-on): Add xlist.
5573
5574         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
5575         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
5576
5577         * tests/test-array_oset.c: Include gl_xlist.h.
5578         * modules/array-oset-tests (Depends-on): Add xlist.
5579
5580         Reported by José E. Marchesi <jemarch@gnu.org>.
5581
5582 2009-12-13  Bruno Haible  <bruno@clisp.org>
5583
5584         Move the malloc checking from module 'oset' to new module 'xoset'.
5585         * modules/xoset: New file.
5586         * lib/gl_xoset.h: New file.
5587         * lib/gl_xoset.c: New file.
5588         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
5589         declarations.
5590         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
5591         (struct gl_oset_implementation): Rename and change methods accordingly.
5592         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
5593         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
5594         'int'. Mark as __warn_unused_result__.
5595         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
5596         gl_oset_create_empty.
5597         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
5598         'int'.
5599         * lib/gl_array_oset.c: Don't include xalloc.h.
5600         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
5601         malloc, not xmalloc.
5602         (grow): Change return type to 'int'. Don't call xalloc_die.
5603         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
5604         to 'int'.
5605         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
5606         'int'.
5607         (gl_array_oset_implementation): Update.
5608         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
5609         gl_tree_create_empty.
5610         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
5611         'int'.
5612         * lib/gl_avltree_oset.c: Don't include xalloc.h.
5613         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
5614         xmalloc.
5615         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
5616         not xmalloc.
5617         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
5618         xmalloc.
5619         (gl_avltree_oset_implementation): Update.
5620         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
5621         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
5622         xmalloc.
5623         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
5624         not xmalloc.
5625         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
5626         xmalloc.
5627         (gl_rbtree_oset_implementation): Update.
5628         * modules/array-oset (Depends-on): Remove xalloc.
5629         * modules/avltree-oset (Depends-on): Likewise.
5630         * modules/rbtree-oset (Depends-on): Likewise.
5631         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
5632         * tests/test-avltree_oset.c: Likewise.
5633         * tests/test-rbtree_oset.c: Likewise.
5634         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
5635         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
5636         * modules/rbtree-oset-tests (Makefile.am): Likewise.
5637         * NEWS: Mention the change.
5638
5639 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
5640
5641         maint.mk: allow a project to override release-prep commands
5642         * top/maint.mk (alpha, beta, stable): Move release-preparatory
5643         commands into a new rule.
5644         (release-prep): New rule.
5645         (release-prep-hook): New overridable variable.
5646
5647 2009-12-13  Bruno Haible  <bruno@clisp.org>
5648
5649         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
5650
5651 2009-12-13  Jim Meyering  <meyering@redhat.com>
5652
5653         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
5654         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
5655
5656 2009-12-12  Bruno Haible  <bruno@clisp.org>
5657
5658         duplocale: Tweak.
5659         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
5660
5661 2009-12-12  Karl Berry  <karl@gnu.org>
5662
5663         * config/srclist.txt (strtoll.c): tab changes, no more sync.
5664
5665 2009-12-12  Bruno Haible  <bruno@clisp.org>
5666
5667         * m4/po.m4: Undo incorrect untabification.
5668
5669 2009-12-12  Bruno Haible  <bruno@clisp.org>
5670
5671         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
5672         * modules/c-strtod (Depends-on): Add locale.
5673         * modules/c-strtold (Depends-on): Likewise.
5674
5675 2009-12-12  Bruno Haible  <bruno@clisp.org>
5676
5677         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
5678
5679 2009-12-11  Eric Blake  <ebb9@byu.net>
5680
5681         setenv: relax requirement in light of POSIX ruling
5682         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
5683         not NULL.
5684         * tests/test-setenv.c (main): Relax test.
5685         * tests/test-unsetenv.c (main): Likewise.
5686         * doc/posix-functions/setenv.texi (setenv): Document this.
5687         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
5688
5689 2009-12-11  Bruno Haible  <bruno@clisp.org>
5690
5691         New module 'fd-safer-flag'.
5692         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
5693         * lib/dup-safer.c (dup_safer_flag): Remove function.
5694         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
5695         * lib/fd-safer.c (fd_safer_flag): Remove function.
5696         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
5697         * modules/cloexec (configure.ac): Drop indicator macro.
5698         * modules/fd-safer-flag: New file.
5699         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
5700         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
5701         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
5702
5703 2009-12-11  Bruno Haible  <bruno@clisp.org>
5704
5705         Tests for module 'nl_langinfo'.
5706         * modules/nl_langinfo-tests: New file.
5707         * tests/test-nl_langinfo.sh: New file.
5708         * tests/test-nl_langinfo.c: New file.
5709
5710         New module 'nl_langinfo'.
5711         * lib/nl_langinfo.c: New file.
5712         * m4/nl_langinfo.m4: New file.
5713         * modules/nl_langinfo: New file.
5714         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
5715
5716 2009-12-11  Bruno Haible  <bruno@clisp.org>
5717
5718         Tests for module 'langinfo'.
5719         * modules/langinfo-tests: New file.
5720         * tests/test-langinfo.c: New file.
5721
5722         New module 'langinfo'.
5723         * lib/langinfo.in.h: New file.
5724         * m4/langinfo_h.m4: New file.
5725         * modules/langinfo: New file.
5726         * doc/posix-headers/langinfo.texi: Mention the new module.
5727
5728 2009-12-11  Bruno Haible  <bruno@clisp.org>
5729
5730         * lib/config.charset: Untabify.
5731
5732 2009-12-11  Bruno Haible  <bruno@clisp.org>
5733
5734         * modules/unistd-safer (configure.ac): Drop indicator macro.
5735
5736 2009-12-11  Bruno Haible  <bruno@clisp.org>
5737
5738         Move pipe2-safer code to its own file.
5739         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
5740         * lib/pipe-safer.c (pipe2_safer): Remove function.
5741         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
5742         (Makefile.am): Add it to lib_SOURCES.
5743
5744 2009-12-10  Bruno Haible  <bruno@clisp.org>
5745
5746         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
5747
5748 2009-12-10  Bruno Haible  <bruno@clisp.org>
5749
5750         Declare which arguments expect non-NULL values, for GCC and clang.
5751         * build-aux/arg-nonnull.h: New file.
5752         * modules/arg-nonnull: New file.
5753         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
5754         (inet_ntop, inet_pton): Use it.
5755         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
5756         (closedir, dirfd, opendir, scandir, alphasort): Use it.
5757         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
5758         (open, openat): Use it.
5759         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
5760         (fnmatch): Use it.
5761         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
5762         (getopt, getopt_long, getopt_long_only): Use it.
5763         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
5764         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
5765         Use it.
5766         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
5767         (iconv_open): Use it.
5768         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
5769         (strtoimax, strtoumax): Use it.
5770         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
5771         (duplocale): Use it.
5772         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
5773         (frexp, frexpl): Use it.
5774         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
5775         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
5776         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
5777         (tsearch, tfind, tdelete, twalk): Use it.
5778         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
5779         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
5780         sigpending): Use it.
5781         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
5782         (posix_spawn, posix_spawnp, posix_spawnattr_init,
5783         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
5784         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
5785         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
5786         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
5787         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
5788         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
5789         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
5790         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
5791         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
5792         Use it.
5793         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
5794         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
5795         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
5796         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
5797         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
5798         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
5799         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
5800         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
5801         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
5802         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
5803         strtoull, unsetenv): Use it.
5804         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
5805         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
5806         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
5807         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
5808         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
5809         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
5810         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
5811         (strcasecmp, strncasecmp): Use it.
5812         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
5813         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
5814         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
5815         rpl_setsockopt): Use it.
5816         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
5817         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
5818         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
5819         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
5820         (gettimeofday): Use it.
5821         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
5822         (times): Use it.
5823         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
5824         (uname): Use it.
5825         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
5826         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
5827         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
5828         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
5829         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
5830         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
5831         unlinkat, write): Use it.
5832         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
5833         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
5834         * lib/argv-iter.h: Include arg-nonnull.h.
5835         (_ATTRIBUTE_NONNULL_): Remove macro.
5836         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
5837         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
5838         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
5839         optimization.
5840         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
5841         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
5842         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
5843         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
5844         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
5845         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
5846         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
5847         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
5848         * modules/arpa_inet (Depends-on): Add arg-nonnull.
5849         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
5850         * modules/dirent (Depends-on): Add arg-nonnull.
5851         (Makefile.am): Insert arg-nonnull.h into dirent.h.
5852         * modules/fcntl-h (Depends-on): Add arg-nonnull.
5853         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
5854         * modules/fnmatch (Depends-on): Add arg-nonnull.
5855         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
5856         * modules/getopt-posix (Depends-on): Add arg-nonnull.
5857         (Makefile.am): Insert arg-nonnull.h into getopt.h.
5858         * modules/glob (Depends-on): Add arg-nonnull.
5859         (Makefile.am): Insert arg-nonnull.h into glob.h.
5860         * modules/iconv_open (Depends-on): Add arg-nonnull.
5861         (Makefile.am): Insert arg-nonnull.h into iconv.h.
5862         * modules/inttypes (Depends-on): Add arg-nonnull.
5863         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
5864         * modules/locale (Depends-on): Add arg-nonnull.
5865         (Makefile.am): Insert arg-nonnull.h into locale.h.
5866         * modules/math (Depends-on): Add arg-nonnull.
5867         (Makefile.am): Insert arg-nonnull.h into math.h.
5868         * modules/netdb (Depends-on): Add arg-nonnull.
5869         (Makefile.am): Insert arg-nonnull.h into netdb.h.
5870         * modules/search (Depends-on): Add arg-nonnull.
5871         (Makefile.am): Insert arg-nonnull.h into search.h.
5872         * modules/signal (Depends-on): Add arg-nonnull.
5873         (Makefile.am): Insert arg-nonnull.h into signal.h.
5874         * modules/spawn (Depends-on): Add arg-nonnull.
5875         (Makefile.am): Insert arg-nonnull.h into spawn.h.
5876         * modules/stdio (Depends-on): Add arg-nonnull.
5877         (Makefile.am): Insert arg-nonnull.h into stdio.h.
5878         * modules/stdlib (Depends-on): Add arg-nonnull.
5879         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
5880         * modules/string (Depends-on): Add arg-nonnull.
5881         (Makefile.am): Insert arg-nonnull.h into string.h.
5882         * modules/strings (Depends-on): Add arg-nonnull.
5883         (Makefile.am): Insert arg-nonnull.h into strings.h.
5884         * modules/sys_socket (Depends-on): Add arg-nonnull.
5885         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
5886         * modules/sys_stat (Depends-on): Add arg-nonnull.
5887         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
5888         * modules/sys_time (Depends-on): Add arg-nonnull.
5889         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
5890         * modules/sys_times (Depends-on): Add arg-nonnull.
5891         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
5892         * modules/sys_utsname (Depends-on): Add arg-nonnull.
5893         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
5894         * modules/time (Depends-on): Add arg-nonnull.
5895         (Makefile.am): Insert arg-nonnull.h into time.h.
5896         * modules/unistd (Depends-on): Add arg-nonnull.
5897         (Makefile.am): Insert arg-nonnull.h into unistd.h.
5898         * modules/wchar (Depends-on): Add arg-nonnull.
5899         (Makefile.am): Insert arg-nonnull.h into wchar.h.
5900         * modules/argv-iter (Depends-on): Add arg-nonnull.
5901         * tests/test-canonicalize.c (null_ptr): New function.
5902         (main): Use it.
5903         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
5904         (main): Use it.
5905         * tests/test-memmem.c (null_ptr): New function.
5906         (main): Use it.
5907         Reported by Jim Meyering.
5908
5909 2009-12-10  Bruno Haible  <bruno@clisp.org>
5910
5911         Use spaces for indentation, not tabs.
5912         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
5913         * m4/*.m4: Untabify.
5914         * build-aux/*.h: Untabify.
5915         * tests/**/*.[hc]: Untabify.
5916         * README: New section "Indent with spaces, not TABs", based on
5917         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
5918         * NEWS: Mention the change.
5919
5920 2009-12-10  Bruno Haible  <bruno@clisp.org>
5921
5922         pty test: Fix link error.
5923         * modules/pty-tests (Makefile.am): Add the default LDADD value to
5924         test_pty_LDADD.
5925
5926 2009-12-07  Simon Josefsson  <simon@josefsson.org>
5927
5928         * modules/pty: New file.
5929         * modules/pty-tests: New file.
5930         * m4/pty.m4: New file.
5931         * tests/test-pty.c: New file.
5932         * doc/glibc-headers/pty.texi: Modified.
5933         * doc/glibc-functions/forkpty.texi: Modified.
5934         * doc/glibc-functions/openpty.texi: Modified.
5935
5936 2009-12-10  Bruno Haible  <bruno@clisp.org>
5937
5938         Avoid syntax error in C++ mode.
5939         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
5940
5941 2009-12-10  Bruno Haible  <bruno@clisp.org>
5942
5943         Use sed with option -e.
5944         * gnulib-tool (func_version, func_emit_copyright_notice,
5945         func_emit_initmacro_end, func_import, func_create_testdir): Pass
5946         option -e to sed.
5947         * modules/link-warning (Makefile.am): Likewise.
5948
5949 2009-12-10  Jim Meyering  <meyering@redhat.com>
5950
5951         mgetgroups: do not write bytes beyond end of malloc'd buffer
5952         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
5953         username, we call getgroups with a one-element-shorter buffer,
5954         but still told it the length was original, max_n_groups.
5955
5956 2009-12-09  Eric Blake  <ebb9@byu.net>
5957
5958         cloexec: relax license
5959         * modules/cloexec (Maintainer): Add myself.
5960         (License): Use LGPL, not GPL.
5961
5962         link-warning: optimize generation
5963         * modules/link-warning (Makefile.am): Reduce process usage.
5964
5965 2009-12-09  Bruno Haible  <bruno@clisp.org>
5966
5967         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
5968         workaround was added on 2009-11-17.
5969
5970 2009-12-09  Jim Meyering  <meyering@redhat.com>
5971             Bruno Haible  <bruno@clisp.org>
5972
5973         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
5974         * modules/link-warning (Makefile.am): Make the comment-removing sed
5975         command more robust in the face of bootstrap-prepended comment lines.
5976
5977 2009-12-09  Bruno Haible  <bruno@clisp.org>
5978
5979         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
5980         most one group.
5981
5982 2009-12-09  Simon Josefsson <simon@josefsson.org>
5983             Bruno Haible  <bruno@clisp.org>
5984
5985         * build-aux/link-warning.h: Add copyright notice.
5986         * modules/link-warning (Makefile.am): Generate link-warning.h from
5987         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
5988         * NEWS: Mention change in link-warning module.
5989         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
5990         * modules/dirent (Makefile.am): Add dependency to dirent.h.
5991         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
5992         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
5993         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
5994         * modules/math (Makefile.am): Add dependency to math.h.
5995         * modules/search (Makefile.am): Add dependency to search.h.
5996         * modules/signal (Makefile.am): Add dependency to signal.h.
5997         * modules/spawn (Makefile.am): Add dependency to spawn.h.
5998         * modules/stdio (Makefile.am): Add dependency to stdio.h.
5999         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
6000         * modules/string (Makefile.am): Add dependency to string.h.
6001         * modules/strings (Makefile.am): Add dependency to strings.h.
6002         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
6003         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
6004         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
6005         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
6006         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
6007         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
6008         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
6009         * modules/unistd (Makefile.am): Add dependency to unistd.h.
6010         * modules/wchar (Makefile.am): Add dependency to wchar.h.
6011
6012 2009-12-09  Bruno Haible  <bruno@clisp.org>
6013
6014         fchdir: Optimize away rpl_fstat when possible.
6015         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
6016         REPLACE_OPEN_DIRECTORY.
6017         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
6018
6019 2009-12-09  Bruno Haible  <bruno@clisp.org>
6020
6021         * lib/fchdir.c: Update comment.
6022
6023 2009-12-09  Bruno Haible  <bruno@clisp.org>
6024
6025         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
6026
6027 2009-12-08  Eric Blake  <ebb9@byu.net>
6028
6029         fchdir: avoid memory leak on re-registration.
6030         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
6031
6032 2009-12-08  Jim Meyering  <meyering@redhat.com>
6033
6034         init.sh: avoid Solaris 10 /bin/sh portability problem
6035         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
6036         sourced script:
6037           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
6038           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
6039           bar
6040         tests/init.sh relied on that, accepting a --set-path=DIR argument,
6041         and two tests used that idiom.
6042         * tests/init.sh: Update suggested usage comments.
6043         (path_prepend_): New function, to be used in place
6044         of the --src-path=DIR option.
6045         (setup_): Move PATH-prepending code into path_prepend_.
6046         * tests/test-pread.sh: Adapt to new usage.
6047         * tests/test-xalloc-die.sh: Likewise.
6048
6049 2009-12-08  Simon Josefsson  <simon@josefsson.org>
6050
6051         * doc/gnulib.texi (Glibc pty.h): Add.
6052         * doc/glibc-functions/forkpty.texi: Add.
6053         * doc/glibc-functions/openpty.texi: Add.
6054         Suggested by Bruno Haible.
6055
6056 2009-12-08  Eric Blake  <ebb9@byu.net>
6057
6058         fchdir: fix logic bugs
6059         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
6060         * tests/test-fchdir.c (main): Enhance test.
6061         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
6062         is in use.
6063
6064         dup2: fix logic bugs
6065         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
6066         REPLACE_DUP2 to decide when rpl_dup2 is needed.
6067         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
6068         exists.
6069         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
6070
6071 2009-12-07  Eric Blake  <ebb9@byu.net>
6072
6073         unlink: fix m4 detection
6074         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
6075
6076         unistd-safer: add unit test
6077         * modules/unistd-safer-tests: New file.
6078         * tests/test-dup-safer.c: Likewise.
6079         * tests/test-cloexec.c (setmode): Avoid compiler warning.
6080         * tests/test-dup2.c (setmode): Likewise.
6081         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
6082
6083         cloexec: preserve text vs. binary across dup_cloexec
6084         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
6085         mode.
6086         * modules/dup2-tests (Depends-on): Add binary-io.
6087         * modules/cloexec-tests (Depends-on): Likewise.
6088         * tests/test-dup2.c (setmode, is_mode): New helpers.
6089         (main): Add tests that translation mode is preserved.
6090         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
6091         Reported by Bruno Haible.
6092
6093         mgetgroups: reduce duplicate listings
6094         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
6095         resulting array.
6096         * tests/test-chown.h (test_chown): Simplify client.
6097         * tests/test-lchown.h (test_lchown): Likewise.
6098
6099 2009-12-06  Bruno Haible  <bruno@clisp.org>
6100
6101         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
6102         value.
6103
6104 2009-12-06  Bruno Haible  <bruno@clisp.org>
6105
6106         * lib/progname.c: Include stdio.h, stdlib.h.
6107         (set_program_name): Reject a NULL argument.
6108
6109 2009-12-05  Eric Blake  <ebb9@byu.net>
6110
6111         pipe2-safer: new module
6112         * modules/pipe2-safer: New file.
6113         * lib/unistd-safer.h (pipe2_safer): New prototype.
6114         * lib/unistd--.h (pipe2): New wrapper.
6115         * lib/pipe-safer.c (pipe2_safer): New function.
6116         * modules/pipe (Depends-on): Add pipe2-safer.
6117         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
6118
6119         stdlib-safer: preserve cloexec flag for mkostemp[s]
6120         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
6121         fd_safer_flag.
6122
6123         unistd-safer: allow preservation of cloexec status via flag
6124         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
6125         prototypes.
6126         * lib/dup-safer.c (dup_safer_flag): New function.
6127         * lib/fd-safer.c (fd_safer_flag): Likewise.
6128         * modules/cloexec (configure.ac): Set witness.
6129
6130         test-dup2: enhance test
6131         * modules/dup2-tests (Depends-on): Add cloexec.
6132         * tests/test-dup2.c (main): Enhance test.
6133
6134         cloexec: add dup_cloexec
6135         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
6136         header and comments.
6137         * lib/cloexec.c (set_cloexec_flag): Add comments.
6138         (dup_cloexec): New function, with mingw implementation borrowed
6139         from...
6140         * lib/w32spawn.h (dup_noinherit): ...here.
6141         * modules/execute (Depends-on): Add cloexec.
6142         * modules/pipe (Depends-on): Likewise.
6143         * modules/cloexec (Depends-on): Add dup2.
6144         * modules/cloexec-tests (Files): New file.
6145         * tests/test-cloexec.c: Likewise.
6146
6147         test-xalloc-die: fix test for mingw
6148         * modules/xalloc-die-tests (Files): Add tests/init.sh.
6149         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
6150         directory and .exe suffix off argv[0] output.
6151
6152         test-fseeko: fix test for mingw
6153         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
6154         than undefining fseek, so test will pass on mingw.
6155
6156 2009-12-05  Bruno Haible  <bruno@clisp.org>
6157
6158         * lib/progname.h (set_program_name): Clarify specification.
6159         * lib/progname.c (set_program_name): Likewise.
6160         Reported by Jim Meyering.
6161
6162 2009-12-05  Jim Meyering  <meyering@redhat.com>
6163
6164         maint.mk: backslash-escape parens in default regexp
6165         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
6166         backslash-escape the literal parentheses.
6167
6168         maint.mk: news-date-check: use grep -E
6169         * top/maint.mk (today): Define a Make variable, not a...
6170         (news-date-check): ...shell variable.
6171         (news-date-regexp): Use the Make variable.
6172         Use grep's -E option.  Change the failing diagnostic to mention
6173         the variable, $(news-date-regexp).
6174
6175 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
6176
6177         maintainer-makefile: allow customization of NEWS entry format
6178         * top/maint.mk (news-date-regexp): New overridable variable.
6179         (news-date-check): Use it.
6180
6181 2009-12-04  Eric Blake  <ebb9@byu.net>
6182
6183         mgetgroups: add xgetgroups, and avoid ENOSYS failures
6184         * lib/mgetgroups.h (xgetgroups): New prototype.
6185         * lib/mgetgroups.c (xgetgroups): New wrapper.
6186         (mgetgroups): Handle ENOSYS.
6187         * modules/mgetgroups (Depends-on): Add realloc.
6188         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
6189
6190         mgetgroups: avoid argument promotion issues with -1
6191         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
6192         for invalid gid_t.
6193         * tests/test-chown.h (getegid, test_chown): Likewise.
6194         * tests/test-lchown.h (getegid, test_lchown): Likewise.
6195
6196 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
6197
6198         exclude: Fix header file problems.
6199         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
6200
6201 2009-12-01  Jim Meyering  <meyering@redhat.com>
6202
6203         fts: fts_open: do not let an empty string cause immediate failure
6204         This is required in support of GNU rm, for which the command
6205         "rm A '' B" must process and remove both A and B, in spite of
6206         the empty string argument.
6207         * lib/fts.c (fts_open): Do not let the presence of an empty string
6208         cause fts_open to fail immediately.  Most fts-using tools must be
6209         able to process all arguments, in order, and can be expected to
6210         diagnose such arguments themselves.
6211
6212 2009-11-30  Eric Blake  <ebb9@byu.net>
6213
6214         utimens: fix compilation error
6215         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
6216         Declare variable at right scope.
6217
6218 2009-11-29  Jim Meyering  <meyering@redhat.com>
6219
6220         bootstrap: handle perl-5.11's changed --version output
6221         * build-aux/bootstrap (get_version): Handle perl separately,
6222         since perl-5.11's --version output is different.
6223
6224 2009-11-28  Jim Meyering  <meyering@redhat.com>
6225
6226         userspec: depend on the inttostr module, too
6227         * modules/userspec (Depends-on): Add inttostr.
6228
6229         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
6230         * lib/userspec.c (parse_with_separator): Do not accept a user ID
6231         number of MAXUID when it evaluates to (uid_t) -1.
6232         Likewise for group ID.  Reported by Matt McCutchen in
6233         <http://savannah.gnu.org/bugs/?28113>
6234
6235         userspec: reformat to use spaces, not TABs
6236         * lib/userspec.c: Expand TABs to spaces.
6237         Add Emacs' "indent-tabs-mode: nil" hint.
6238
6239 2009-11-27  Eric Blake  <ebb9@byu.net>
6240
6241         getopt-gnu: flush out another BSD bug
6242         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
6243         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
6244         flush out BSD bug.
6245         * tests/test-getopt.h (test_getopt): End lists with NULL.
6246         * tests/test-getopt_long.h (test_getopt_long): Likewise.
6247         (test_getopt_long_posix): Enhance test.
6248         * modules/getopt-posix-tests (Depends-on): Add stdbool.
6249         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
6250         getopt-gnu.
6251         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
6252         Likewise.
6253
6254 2009-11-27  Simon Josefsson  <simon@josefsson.org>
6255
6256         * modules/idpriv-droptemp-tests (Notice): Fix text.
6257
6258 2009-11-27  Jim Meyering  <meyering@redhat.com>
6259
6260         test-xalloc-die: avoid spurious failure due to libtool argv difference
6261         In a libtool-enabled project, this test would fail due to a difference
6262         in the emitted program name, e.g.,
6263         -test-xalloc-die: memory exhausted
6264         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
6265         Use program to avoid that.
6266         * modules/xalloc-die-tests (Depends-on): Add progname.
6267         * tests/test-xalloc-die.c: Include progname.h".
6268         (program_name): Remove decl.
6269         (main): Call set_program_name.
6270         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
6271
6272 2009-11-26  Richard Jones  <rjones@redhat.com>
6273
6274         w32sock: leave win32 error in place.
6275         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
6276
6277 2009-11-26  Eric Blake  <ebb9@byu.net>
6278
6279         init.sh: suggest to use skip_ and fail_ functions in comments
6280         * tests/init.sh: Add a sentence.
6281
6282 2009-11-25  Bruno Haible  <bruno@clisp.org>
6283
6284         init.sh: add documentation in comments
6285         * tests/init.sh: Add some developer and user documentation.
6286
6287 2009-11-26  Jim Meyering  <meyering@redhat.com>
6288
6289         init.sh: accommodate even those who specify bogus srcdir manually
6290         * tests/init.sh: Normally, srcdir is guaranteed by automake and
6291         configure-time tests to be sanitized, so that there is no need to
6292         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
6293         (with no double quotes) suffices.  However, since tests may be
6294         invoked manually, and since you may explicitly set srcdir to the
6295         name of a directory containing spaces, do quote its uses here.
6296         * tests/test-pread.sh: Likewise.
6297         Suggested by Bruno Haible.
6298
6299         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
6300         * tests/test-pread.sh: Write no data into the pipe, because
6301         test-pread actually reads none.  This avoids a diagnostic,
6302         "bash: echo: write error: Broken pipe", that arises in the unusual
6303         event something is ignoring SIGPIPE, and might be interpreted
6304         as some sort of failure.  Reported by Bruno Haible.
6305
6306 2009-11-25  Jim Meyering  <meyering@redhat.com>
6307
6308         test-pread: cover failure with ESPIPE and EINVAL
6309         * tests/test-pread.c (main): Test for failure, too.
6310         * tests/test-pread.sh: Invoke with stdin on a pipe.
6311         Suggested by Eric Blake.
6312
6313         pread: improvement and fix
6314         * modules/pread (Depends-on): Depend on lseek, for portability to
6315         e.g., mingw.  Suggested by Eric Blake.
6316         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
6317
6318         unistd.in.h: correct declaration of pread
6319         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
6320         Reported by Richard W.M. Jones.
6321
6322         test-pread.sh: distribute the test script
6323         * modules/pread-tests (Files): Include test-pread.sh.
6324
6325         test-pread.sh: clean up
6326         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
6327         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
6328         That is unnecessary, since it's always ".".
6329         Suggestion from Eric Blake.
6330
6331         test-pread.sh: make executable
6332         * tests/test-pread.sh: Set executable bit.
6333         Reported by Eric Blake.
6334
6335         correct typo in test-pread.sh
6336         * tests/test-pread.sh: Add #! line.
6337
6338         test pread
6339         * tests/test-pread.c: New file.
6340         * tests/test-pread.sh: Likewise.
6341         * modules/pread-tests: Likewise.
6342
6343         pread: new module
6344         * modules/pread: New file.
6345         * lib/unistd.in.h (pread): Define/declare.
6346         * lib/pread.c (pread): New file.
6347         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
6348         * modules/unistd (Makefile.am): Substitute witnesses.
6349         * doc/posix-functions/pread.texi (pread): Update.
6350         * MODULES.html.sh: Add pread.
6351
6352 2009-11-25  Jim Meyering  <meyering@redhat.com>
6353
6354         tests/init.sh: new file to be used via most *.sh tests
6355         * tests/init.sh: New file.
6356
6357 2009-11-25  Eric Blake  <ebb9@byu.net>
6358
6359         utimens: work around older Linux failure with symlinks
6360         * lib/utimens.c (lutimensat_works_really): New variable.
6361         (fdutimens, lutimens): Use it to manage kernels that support
6362         nanosecond times on files, but not on symlinks.
6363         Reported by Ondřej Vašík.
6364
6365         utimes: fix configure grammar
6366         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
6367
6368 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
6369
6370         regex: Fix fastmap for multibyte character ranges.
6371         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
6372         characters when a multibyte character range is included.
6373
6374 2009-11-22  Andy Wingo  <wingo@pobox.com>
6375
6376         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
6377         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
6378
6379 2009-11-24  Bruno Haible  <bruno@clisp.org>
6380
6381         doc: Most *_l functions exist in MacOS X 10.5.
6382         * doc/posix-functions/duplocale.texi: Update platforms list.
6383         * doc/posix-functions/freelocale.texi: Likewise.
6384         * doc/posix-functions/newlocale.texi: Likewise.
6385         * doc/posix-functions/uselocale.texi: Likewise.
6386         * doc/posix-functions/isalnum_l.texi: Likewise.
6387         * doc/posix-functions/isalpha_l.texi: Likewise.
6388         * doc/posix-functions/isblank_l.texi: Likewise.
6389         * doc/posix-functions/iscntrl_l.texi: Likewise.
6390         * doc/posix-functions/isdigit_l.texi: Likewise.
6391         * doc/posix-functions/isgraph_l.texi: Likewise.
6392         * doc/posix-functions/islower_l.texi: Likewise.
6393         * doc/posix-functions/isprint_l.texi: Likewise.
6394         * doc/posix-functions/ispunct_l.texi: Likewise.
6395         * doc/posix-functions/isspace_l.texi: Likewise.
6396         * doc/posix-functions/isupper_l.texi: Likewise.
6397         * doc/posix-functions/iswalnum_l.texi: Likewise.
6398         * doc/posix-functions/iswalpha_l.texi: Likewise.
6399         * doc/posix-functions/iswblank_l.texi: Likewise.
6400         * doc/posix-functions/iswcntrl_l.texi: Likewise.
6401         * doc/posix-functions/iswctype_l.texi: Likewise.
6402         * doc/posix-functions/iswdigit_l.texi: Likewise.
6403         * doc/posix-functions/iswgraph_l.texi: Likewise.
6404         * doc/posix-functions/iswlower_l.texi: Likewise.
6405         * doc/posix-functions/iswprint_l.texi: Likewise.
6406         * doc/posix-functions/iswpunct_l.texi: Likewise.
6407         * doc/posix-functions/iswspace_l.texi: Likewise.
6408         * doc/posix-functions/iswupper_l.texi: Likewise.
6409         * doc/posix-functions/iswxdigit_l.texi: Likewise.
6410         * doc/posix-functions/isxdigit_l.texi: Likewise.
6411         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
6412         * doc/posix-functions/strcasecmp_l.texi: Likewise.
6413         * doc/posix-functions/strcoll_l.texi: Likewise.
6414         * doc/posix-functions/strfmon_l.texi: Likewise.
6415         * doc/posix-functions/strftime_l.texi: Likewise.
6416         * doc/posix-functions/strncasecmp_l.texi: Likewise.
6417         * doc/posix-functions/strxfrm_l.texi: Likewise.
6418         * doc/posix-functions/tolower_l.texi: Likewise.
6419         * doc/posix-functions/toupper_l.texi: Likewise.
6420         * doc/posix-functions/towctrans_l.texi: Likewise.
6421         * doc/posix-functions/towlower_l.texi: Likewise.
6422         * doc/posix-functions/towupper_l.texi: Likewise.
6423         * doc/posix-functions/wcscoll_l.texi: Likewise.
6424         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
6425         * doc/posix-functions/wctrans_l.texi: Likewise.
6426         * doc/posix-functions/wctype_l.texi: Likewise.
6427         * doc/glibc-functions/strptime_l.texi: Likewise.
6428         * doc/glibc-functions/strtod_l.texi: Likewise.
6429         * doc/glibc-functions/strtof_l.texi: Likewise.
6430         * doc/glibc-functions/strtol_l.texi: Likewise.
6431         * doc/glibc-functions/strtold_l.texi: Likewise.
6432         * doc/glibc-functions/strtoll_l.texi: Likewise.
6433         * doc/glibc-functions/strtoul_l.texi: Likewise.
6434         * doc/glibc-functions/strtoull_l.texi: Likewise.
6435         * doc/glibc-functions/wcsftime_l.texi: Likewise.
6436         * doc/glibc-functions/wcstod_l.texi: Likewise.
6437         * doc/glibc-functions/wcstof_l.texi: Likewise.
6438         * doc/glibc-functions/wcstol_l.texi: Likewise.
6439         * doc/glibc-functions/wcstold_l.texi: Likewise.
6440         * doc/glibc-functions/wcstoll_l.texi: Likewise.
6441         * doc/glibc-functions/wcstoul_l.texi: Likewise.
6442         * doc/glibc-functions/wcstoull_l.texi: Likewise.
6443
6444 2009-11-24  Bruno Haible  <bruno@clisp.org>
6445
6446         duplocale: Fix logic bug.
6447         * lib/duplocale.c: Don't include <langinfo.h>.
6448         (_NL_LOCALE_NAME): Remove macro.
6449         (rpl_duplocale): Use setlocale instead of nl_langinfo.
6450         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
6451
6452 2009-11-23  Jim Meyering  <meyering@redhat.com>
6453
6454         test-update-copyright: don't hard-code /usr/bin/perl
6455         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
6456         perl to print the current year.  Gilles Espinasse reported that
6457         the replaced use of perl was hard-coded as /usr/bin/perl.
6458
6459 2009-11-23  Bruno Haible  <bruno@clisp.org>
6460
6461         duplocale: Add support for glibc 2.3.x.
6462         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
6463
6464 2009-11-22  Bruno Haible  <bruno@clisp.org>
6465
6466         vasnprintf: Tiny optimization.
6467         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
6468         MacOS X.
6469
6470 2009-11-22  Bruno Haible  <bruno@clisp.org>
6471
6472         Tests for module 'duplocale'.
6473         * modules/duplocale-tests: New file.
6474         * tests/test-duplocale.c: New file.
6475
6476         New module 'duplocale'.
6477         * m4/duplocale.m4: New file.
6478         * lib/locale.in.h (duplocale): New declaration.
6479         * lib/duplocale.c: New file.
6480         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
6481         gl_LOCALE_H_DEFAULTS): New macros.
6482         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
6483         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
6484         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
6485         REPLACE_DUPLOCALE.
6486         * modules/duplocale: New file.
6487         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
6488
6489 2009-11-22  Bruno Haible  <bruno@clisp.org>
6490
6491         * modules/locale-tests (configure.ac): Test for newlocale function.
6492         * tests/test-locale.c: When the system has extended locale functions,
6493         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
6494
6495         locale: Make locale_t available when possible.
6496         * lib/locale.in.h: Include <xlocale.h> when it exists.
6497         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
6498         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
6499         * modules/locale (Depends-on): Add extensions.
6500         (Makefile.am): Also substitute HAVE_XLOCALE_H.
6501         * doc/posix-headers/locale.texi: Document the problem with locale_t.
6502
6503 2009-11-22  Bruno Haible  <bruno@clisp.org>
6504
6505         Add comments.
6506         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
6507         invocation.
6508         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
6509         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
6510         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
6511
6512 2009-11-22  Bruno Haible  <bruno@clisp.org>
6513
6514         error: account for the possibility of freopen (stdout).
6515         * lib/error.c: Include <unistd.h>.
6516         (flush_stdout): New function, extracted from error and error_at_line.
6517         Determine stdout's fd dynamically.
6518         (error, error_at_line): Invoke flush_stdout.
6519         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
6520         * modules/error (Depends-on): Add unistd.
6521
6522 2009-11-22  Bruno Haible  <bruno@clisp.org>
6523
6524         diffseq: Add comment.
6525         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
6526
6527 2009-11-22  Jim Meyering  <meyering@redhat.com>
6528
6529         c-stack: avoid defining an unused static function
6530         * lib/c-stack.c (find_stack_direction): Do not define this function
6531         when it will not be used.
6532
6533         diffseq: avoid spurious gcc warnings
6534         * lib/diffseq.h (IF_LINT2): Define.
6535         (compareseq): Use it to initialize two members of "part".
6536         This avoids two used-uninitialized warnings.
6537
6538 2009-11-21  Jim Meyering  <meyering@redhat.com>
6539
6540         c-stack: avoid "ignoring return value of `write'" warning
6541         * lib/c-stack.c: Include "ignore-value.h".
6542         (die): Explicitly ignore each write return value.
6543         * modules/c-stack (Depends-on): Add ignore-value.
6544
6545 2009-11-21  Bruno Haible  <bruno@clisp.org>
6546
6547         diffseq: reduce scope of variable 'best'.
6548         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
6549         variable, earlier used for two different purposes.
6550
6551 2009-11-21  Jim Meyering  <meyering@redhat.com>
6552
6553         diffseq: remove useless assignment to "best"
6554         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
6555         assignment.  At that point "best" is already guaranteed to be zero.
6556
6557 2009-11-20  Eric Blake  <ebb9@byu.net>
6558
6559         build: mention ftp redirector in release announcements
6560         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
6561         values that used to come from cfg.mk; mention FTP redirect URL.
6562         * build-aux/announce-gen: Mention the mirror list.
6563         Suggested by Karl Berry.
6564
6565         nanosleep: improve port to mingw
6566         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
6567         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
6568         LIB_NANOSLEEP, but only when needed.
6569         * modules/select (Link): Document LIBSOCKET.
6570         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
6571         enough.
6572
6573         nanosleep: work around cygwin bug
6574         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
6575         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
6576         bug.
6577         (getnow): Delete, not needed.
6578         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
6579         LIB_CLOCK_GETTIME.
6580         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
6581         clock-time, gettime.
6582         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
6583         bug.
6584         * modules/nanosleep-tests: New test.
6585         * tests/test-nanosleep.c: New file.
6586
6587         sleep: work around cygwin bug
6588         * lib/sleep.c (rpl_sleep): Work around the bug.
6589         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
6590         (gl_PREREQ_SLEEP): Delete unused macro.
6591         * modules/sleep (Depends-on): Add verify.
6592         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
6593         * modules/unistd (Makefile.am): Substitute witness.
6594         * lib/unistd.in.h (sleep): Update prototype.
6595         * doc/posix-functions/sleep.texi (sleep): Document the bug.
6596         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
6597         * modules/sleep-tests (Depends-on): Check for alarm.
6598
6599 2009-11-20  Jim Meyering  <meyering@redhat.com>
6600
6601         maint.mk: improve sc_prohibit_magic_number_exit
6602         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
6603         so it does not match uses like System.exit(1).
6604         Add comments showing how to correct all offenders.
6605
6606 2009-11-19  Eric Blake  <ebb9@byu.net>
6607
6608         xalloc-die-tests: add missing library
6609         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
6610
6611         test-xvasprintf: silence compiler warnings
6612         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
6613         empty string from gcc.
6614
6615 2009-11-19  Jim Meyering  <meyering@redhat.com>
6616
6617         xfreopen: new module, from coreutils
6618         * modules/xfreopen: New module.
6619         * lib/xfreopen.c: New file.
6620         * lib/xfreopen.h: New file.
6621         * MODULES.html.sh (File stream based Input/Output"): Add it.
6622
6623 2009-11-19  Eric Blake  <ebb9@byu.net>
6624
6625         manywarnings: depend on warnings
6626         * modules/manywarnings (Depends-on): Add warnings.
6627
6628         build: avoid compiler warnings
6629         * lib/select.c (rpl_select): Delete unused variable.
6630         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
6631
6632 2009-11-18  Eric Blake  <ebb9@byu.net>
6633
6634         tests: avoid false negative with --with-packager
6635         * tests/test-version-etc.sh: Discard packager information.
6636         * tests/test-argp-version-etc-1.sh: Likewise.
6637         Reported by Mike Frysinger.
6638
6639         utimens: fix regression on Solaris
6640         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
6641         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
6642         can only change fd timestamps via futimesat.  Instead, use an
6643         additional witness macro to avoid BSD bug.
6644         Reported by Jim Meyering.
6645
6646 2009-11-17  Eric Blake  <ebb9@byu.net>
6647
6648         usleep: use it to simplify tests
6649         * modules/stat-time-tests (Depends-on): Add usleep.
6650         (configure.ac): Drop usleep check.
6651         * modules/chown-tests (Depends-on, configure.ac): Likewise.
6652         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
6653         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
6654         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
6655         * modules/openat-tests (Depends-on, configure.ac): Likewise.
6656         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
6657         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
6658         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
6659         Likewise.
6660         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
6661         * tests/test-lchown.h (nap): Likewise.
6662         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
6663         * tests/test-stat-time.c (nap): Likewise.
6664         * tests/test-utimens-common.h (nap): Update comments.
6665
6666         usleep: new module
6667         * modules/usleep: New file.
6668         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
6669         * lib/usleep.c (usleep): Likewise.
6670         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
6671         * modules/unistd (Makefile.am): Substitute witnesses.
6672         * lib/unistd.in.h (usleep): Add declaration.
6673         * doc/pastposix-functions/usleep.texi (usleep): Document this.
6674         * MODULES.html.sh (Date and time): Likewise.
6675         * modules/usleep-tests (Depends-on): New test.
6676         * tests/test-usleep.c: New file.
6677
6678         chown: work around OpenBSD bug
6679         * lib/chown.c (rpl_chown): Work around the bug.
6680         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
6681         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
6682         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
6683         * modules/chown (Depends-on): Add stdbool.
6684         * modules/lchown (Depends-on): Likewise.
6685         * doc/posix-functions/chown.texi (chown): Document the bug.
6686         * doc/posix-functions/lchown.texi (lchown): Likewise.
6687         * tests/test-lchown.h (test_chown): Relax test.
6688
6689         mkstemp: avoid conflict with C++ keyword template
6690         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
6691         * lib/mkostemp.c (mkostemp): Likewise.
6692         * lib/mkostemps.c (mkostemps): Likewise.
6693         * lib/mkstemp.c (mkstemp): Likewise.
6694         * lib/mkstemps.c (mkstemps): Likewise.
6695
6696         xalloc-die-tests: optimize
6697         * tests/test-xalloc-die.sh: Reduce number of processes.
6698
6699 2009-11-17  Simon Josefsson  <simon@josefsson.org>
6700
6701         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
6702         patch from ludo@gnu.org (Ludovic Courtès).
6703
6704 2009-11-17  Jim Meyering  <meyering@redhat.com>
6705
6706         version-etc: use proper license string
6707         * modules/version-etc (License): Use LGPL, not LGPLv3+.
6708         * modules/version-etc-fsf: Likewise.
6709
6710 2009-11-17  Simon Josefsson  <simon@josefsson.org>
6711
6712         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
6713         printed to stdout.  Deal with EOL differences.
6714
6715 2009-11-17  Eric Blake  <ebb9@byu.net>
6716
6717         unsetenv: work around Solaris bug
6718         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
6719         * lib/unsetenv.c (rpl_unsetenv): Work around it.
6720         Reported by Jim Meyering.
6721
6722         vasnprintf: avoid compiler warnings
6723         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
6724         variables.
6725         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
6726
6727 2009-11-17  Simon Josefsson  <simon@josefsson.org>
6728
6729         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
6730         settings since xalloc-die is no longer the self test,
6731         xalloc-die.sh is.
6732
6733 2009-11-17  Jim Meyering  <meyering@redhat.com>
6734
6735         test-xalloc-die.sh: make the code agree with the commit log
6736         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
6737         at the end, just in case you happen to have a test-xalloc-die
6738         program in some other PATH directory.
6739
6740         test-xalloc-die.sh: fix a portability bug
6741         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
6742         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
6743         Otherwise, argv[0] (as often seen in diagnostics) would be too
6744         system-dependent, sometimes with, and sometimes without the leading "./".
6745
6746         version-etc-fsf: relax license to LGPLv3+
6747         * modules/version-etc-fsf (License): Relax license.
6748
6749 2009-11-16  Eric Blake  <ebb9@byu.net>
6750
6751         xalloc-die-tests: avoid printing null pointer
6752         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
6753         shell script.
6754         * tests/test-xalloc-die.c (program_name): Declare.
6755         * tests/test-xalloc-die.sh (tmpfiles): New file.
6756
6757         setenv, unsetenv: work around various bugs
6758         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
6759         (setenv) [HAVE_SETENV]: Work around bugs.
6760         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
6761         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
6762         for bugs.
6763         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
6764         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
6765         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
6766         * modules/stdlib (Makefile.am): Update substitutions.
6767         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
6768         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
6769         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
6770         * modules/setenv-tests: New test.
6771         * modules/unsetenv-tests: Likewise.
6772         * tests/test-setenv.c: New file.
6773         * tests/test-unsetenv.c: Likewise.
6774
6775 2009-11-16  Jim Meyering  <meyering@redhat.com>
6776
6777         version-etc: relax license to LGPLv3+
6778         * modules/version-etc (License): Relax license.
6779
6780         better AC_REQUIRE expanded-before-required-warning avoidance
6781         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
6782         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
6783         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
6784         which is no longer needed.
6785
6786 2009-11-16  Eric Blake  <ebb9@byu.net>
6787
6788         test-freading: clean up temporary file
6789         * tests/test-freading.c (main): Remove file on success, and use
6790         ASSERT more liberally.
6791         Reported by Jim Meyering.
6792
6793 2009-11-16  Jim Meyering  <meyering@redhat.com>
6794
6795         avoid new AC_REQUIRE expanded-before-required warnings
6796         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
6797         merely using it.
6798         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
6799         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
6800
6801 2009-11-15  Simon Josefsson  <simon@josefsson.org>
6802
6803         * tests/test-xalloc-die.c: New file.
6804         * modules/xalloc-die-tests: New file.
6805         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
6806         XFAIL_TESTS so it can be appended by modules.
6807
6808 2009-11-15  Simon Josefsson  <simon@josefsson.org>
6809
6810         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
6811         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
6812
6813 2009-11-14  Eric Blake  <ebb9@byu.net>
6814
6815         fnmatch: avoid compiler warning
6816         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
6817         to silence compiler warning about mismatch signedness in ?:.
6818         Reported by Robert Millan.
6819
6820         intprops: add double-inclusion guard
6821         * lib/intprops.h: Allow idempotent includes.
6822         Suggested by Bruce Korb.
6823
6824         openat: detect Solaris fchownat bug
6825         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
6826         penalizing glibc chownat when only lchownat is broken.
6827         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
6828         trailing slash bugs.
6829         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
6830         * modules/openat-tests (Files): Include more files.
6831         (Depends-on): Add mgetgroups, sleep, stat-time.
6832         (configure.ac): Add additional checks.
6833         (Makefile.am): Build new test.
6834         * tests/test-fchownat.c: New file.
6835
6836         lchown: detect Solaris and FreeBSD bug
6837         * lib/lchown.c (rpl_lchown): Work around bug.
6838         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
6839         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
6840         * modules/unistd (Makefile.am): Populate it.
6841         * lib/unistd.in.h (lchown): Update declaration.
6842         * doc/posix-functions/lchown.texi (lchown): Document the bug.
6843         * modules/lchown-tests: New file.
6844         * tests/test-lchown.h (test_lchown): Likewise.
6845         * tests/test-lchown.c (main): Likewise.
6846
6847         chown: detect Solaris and FreeBSD bug
6848         * lib/chown.c (rpl_chown): Work around bug.
6849         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
6850         (gl_PREREQ_CHOWN): Delete.
6851         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
6852         * modules/unistd (Makefile.am): Populate it.
6853         * lib/unistd.in.h (chown): Update declaration.
6854         * lib/lchown.c (chown): Update client.
6855         * modules/lchown (Depends-on): Add lstat.
6856         * doc/posix-functions/chown.texi (chown): Document the bug.
6857         * doc/posix-functions/getgroups.texi (getgroups): Document
6858         getgroups pitfall.
6859         * modules/chown-tests: New file.
6860         * tests/test-chown.h (test_chown): Likewise.
6861         * tests/test-chown.c (main): Likewise.
6862
6863 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
6864
6865         gnulib-tool: correctly detect absence of m4 directories
6866         * gnulib-tool: Avoid extra newline on data passed to wc -l.
6867
6868 2009-11-14  Jim Meyering  <meyering@redhat.com>
6869
6870         maint.mk: Prohibit inclusion of "xalloc.h" without use.
6871         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
6872
6873 2009-11-14  John W. Eaton  <jwe@gnu.org>
6874
6875         strftime.h: wrap funtion declaration in extern "C" block
6876         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
6877
6878 2009-11-13  Eric Blake  <ebb9@byu.net>
6879
6880         getgroups: avoid compiler warning
6881         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
6882
6883         getgroups: work around FreeBSD bug
6884         * lib/getgroups.c (rpl_getgroups): Work around the bug.
6885         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
6886         * doc/posix-functions/getgroups.texi (getgroups): Document it.
6887         * tests/test-getgroups.c (main): Fix buffer overrun.
6888
6889         getgroups: avoid compilation failure
6890         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
6891         * modules/getgroups (Depends-on): Add stdint.
6892
6893 2009-11-13  Jim Meyering  <meyering@redhat.com>
6894
6895         test-getgroups: avoid compilation failure
6896         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
6897
6898 2009-11-13  Eric Blake  <ebb9@byu.net>
6899
6900         mgetgroups: new module, taken from coreutils
6901         * modules/mgetgroups: New file.
6902         * lib/mgetgroups.h: Likewise.
6903         * lib/mgetgroups.c (mgetgroups): Likewise.
6904         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
6905         * MODULES.html.sh (Users and groups): Mention it.
6906
6907         getgroups: don't expose GETGROUPS_T to user
6908         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
6909         an element at a time if GETGROUPS_T is wrong size.
6910         * lib/getugroups.h (getugroups): Change signature.
6911         * lib/unistd.in.h (getgroups): Likewise.
6912         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
6913         signature needs fixing.
6914         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
6915         AC_TYPE_GETGROUPS.
6916         * modules/group-member (Depends-on): Add getgroups.
6917         * lib/group-member.c (group_info, get_group_info): Use gid_t.
6918         (group_member): Rely on getgroups replacement.
6919         * lib/getugroups.c (getugroups): Use gid_t.
6920         * tests/test-getgroups.c (main): Likewise.
6921         * NEWS: Mention the signature change.
6922         * doc/posix-functions/getgroups.texi (getgroups): Mention the
6923         problem with signature.
6924         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
6925         GETGROUPS_T is still useful for setgroups.
6926
6927         getgroups, getugroups: provide stubs for mingw
6928         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
6929         * lib/getugroups.c (getugroups): Likewise.
6930         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
6931         function.  Modernize replacement scheme.
6932         (gl_PREREQ_GETGROUPS): Delete.
6933         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
6934         * modules/getgroups (configure.ac): Declare witness.
6935         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
6936         * modules/unistd (Depends-on): Substitute witness.
6937         * lib/unistd.in.h (getgroups): Declare replacement.
6938
6939         getgroups: avoid calling exit
6940         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
6941         drop xalloc.
6942         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
6943         dependencies.
6944         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
6945         exiting, in the rare case of malloc failure.
6946
6947         getgroups: fix logic error
6948         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
6949         has more than 20 groups.
6950         * modules/getgroups-tests: New test.
6951         * tests/test-getgroups.c: New file.
6952
6953 2009-11-13  Simon Josefsson  <simon@josefsson.org>
6954
6955         * tests/test-base64.c: Improve.
6956
6957 2009-11-13  Simon Josefsson  <simon@josefsson.org>
6958
6959         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
6960         Blake <ebb9@byu.net>.
6961
6962 2009-11-13  Simon Josefsson  <simon@josefsson.org>
6963
6964         * tests/test-xvasprintf.c: Add %s%s related checks.
6965
6966 2009-11-12  Eric Blake  <ebb9@byu.net>
6967
6968         version-etc: match standards.texi style
6969         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
6970         and use <> only for URLs.
6971
6972 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
6973
6974         fts: do not fail on a submount during traversal
6975         * lib/fts.c (fts_build): Read the stat info again after opening
6976         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
6977         Original report at http://bugzilla.redhat.com/501848.
6978
6979 2009-11-12  Jim Meyering  <meyering@redhat.com>
6980
6981         bootstrap: sync from coreutils
6982         * build-aux/bootstrap (bootstrap_epilogue): New function.
6983         Use git_modules_config in one more place.  This make bootstrap's
6984         --gnulib-srcdir option more useful for testing.
6985
6986         bootstrap: generalize autoheader check
6987         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
6988         AC_CONFIG_HEADERS.
6989
6990 2009-11-11  Eric Blake  <ebb9@byu.net>
6991
6992         mkfifoat: use new modules for Solaris and BSD bugs
6993         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
6994         * lib/mkfifoat.c (mknodat): Split...
6995         * lib/mknodat.c (mknodat): ...into new file.
6996         * modules/mkfifoat (Files): Ship new file.
6997         (Depends-on): Add mkfifo, mknod.
6998         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
6999         (Depends-on): Add symlink.
7000         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
7001         redundant with test_mkfifo.h.
7002         (do_mkfifoat, do_mknodat): New helpers.
7003
7004         mknod: new module
7005         * modules/mknod: New file.
7006         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
7007         * lib/mknod.c (mknod): Likewise.
7008         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
7009         defaults.
7010         * modules/sys_stat (Makefile.am): Substitute them.
7011         * lib/sys_stat.in.h (mknod): Declare replacement.
7012         * MODULES.html.sh (Support for systems lacking POSIX:2008):
7013         Document it.
7014         * doc/posix-functions/mknod.texi (mknod): Likewise.
7015         * modules/mknod-tests: New test.
7016         * tests/test-mknod.c: Likewise.
7017
7018         mkfifo: new module
7019         * modules/mkfifo: New file.
7020         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
7021         * lib/mkfifo.c (mkfifo): Likewise.
7022         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
7023         defaults.
7024         * modules/sys_stat (Makefile.am): Substitute them.
7025         * lib/sys_stat.in.h (mkfifo): Declare replacement.
7026         * MODULES.html.sh (Support for systems lacking POSIX:2008):
7027         Document it.
7028         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
7029         * modules/mkfifo-tests: New test.
7030         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
7031         from test-mkfifoat.c.
7032         * tests/test-mkfifo.c: New file.
7033
7034         readlink: detect FreeBSD bug
7035         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
7036         slash on symlink.
7037         * doc/posix-functions/readlink.texi (readlink): Document the bug.
7038         * tests/test-readlink.h (test_readlink): Enhance test.
7039
7040         symlink: detect FreeBSD bug
7041         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
7042         slash on symlink.
7043         * doc/posix-functions/symlink.texi (symlink): Document the bug.
7044         * tests/test-symlink.h (test_symlink): Enhance test.
7045
7046 2009-11-10  Eric Blake  <ebb9@byu.net>
7047
7048         link: detect FreeBSD bug
7049         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
7050         symlink.
7051         * doc/posix-functions/link.texi (link): Document the bug.
7052         * tests/test-link.h (test_link): Enhance test.
7053         * tests/test-linkat.c (main): Update caller.
7054
7055         unlink, remove: detect FreeBSD bug
7056         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
7057         slash on symlink.
7058         * doc/posix-functions/unlink.texi (unlink): Document the bug.
7059         * doc/posix-functions/remove.texi (remove): Likewise.
7060         * tests/test-unlink.h (test_unlink): Enhance test.
7061         * tests/test-remove.c (main): Likewise.
7062
7063 2009-11-09  Eric Blake  <ebb9@byu.net>
7064
7065         rename: detect FreeBSD bug
7066         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
7067         slash on symlink.
7068         * modules/renameat-tests (Depends-on): Add filenamecat.
7069         * tests/test-rename.h (test_rename): Allow one more errno.
7070         * tests/test-renameat.c (main): Likewise.
7071         * doc/posix-functions/rename.texi (rename): Document the bug.
7072
7073         open: detect FreeBSD bug
7074         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
7075         symlink.
7076         * doc/posix-functions/open.texi (open): Document the bug.
7077         * doc/posix-functions/utimes.texi (utimes): Likewise.
7078         * tests/test-open.h (test_open): Add parameters, and test symlink
7079         handling.
7080         * tests/test-open.c (main): Adjust caller.
7081         * tests/test-fcntl-safer.c (main): Likewise.
7082         * modules/open-tests (Depends-on): Add stdbool, symlink.
7083         * modules/fcntl-safer-tests (Depends-on): Likewise.
7084         * tests/test-openat.c (main): Add test-open tests.
7085
7086         stat: detect FreeBSD bug
7087         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
7088         symlink.
7089         * doc/posix-functions/stat.texi (stat): Document the bug.
7090         * tests/test-stat.h (test_stat_func): Add argument.
7091         * tests/test-stat.c (main): Adjust caller.
7092         * tests/test-fstatat.c (main): Likewise.
7093         * modules/stat-tests (Depends-on): Add stdbool, symlink.
7094         Reported by Jim Meyering.
7095
7096 2009-11-09  James Youngman  <jay@gnu.org>
7097
7098         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
7099         * lib/strftime.c: Correct placement of #include "ignore-value.h".
7100
7101 2009-11-08  Jim Meyering  <meyering@redhat.com>
7102
7103         utimens: remove invalid futimesat call
7104         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
7105         It used the file descriptor of the target file as the DIR_FD
7106         parameter and NULL as the file name.  That caused failure with
7107         errno == EFAULT on FreeBSD-8.0-rc2
7108
7109 2009-11-07  Eric Blake  <ebb9@byu.net>
7110
7111         fflush, freadseek: use fseeko, not fseek
7112         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
7113         (clear_ungetc_buffer): Avoid potential problems on large files.
7114         * lib/freadseek.c (freadseek): Likewise.
7115         * modules/freadseek (Depends-on): Add fseeko.
7116         * modules/fseek (configure.ac): Set a witness.
7117         * tests/test-fflush.c (main): Use fseeko.
7118         * tests/test-fpurge.c (fseek): Disable link warning.
7119         * tests/test-freadable.c (fseek): Likewise.
7120         * tests/test-freading.c (fseek): Likewise.
7121         * tests/test-fseeko.c (fseek): Likewise.
7122         * tests/test-ftell.c (fseek): Likewise.
7123         * tests/test-ftello.c (fseek): Likewise.
7124         * tests/test-fwritable.c (fseek): Likewise.
7125         * tests/test-fwriting.c (fseek): Likewise.
7126
7127 2009-11-06  Simon Josefsson  <simon@josefsson.org>
7128
7129         * modules/memchr (Depends-on): Drop getpagesize dependency.
7130
7131 2009-11-06  Simon Josefsson  <simon@josefsson.org>
7132
7133         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
7134         Reported by Ludovic Courtès.
7135         * build-aux/pmccabe2html: Improve example usage.
7136         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
7137
7138 2009-11-06  Jim Meyering  <meyering@redhat.com>
7139
7140         do-release-commit-and-tag: New module.
7141         Automate the release-commit and tag process.
7142         * build-aux/do-release-commit-and-tag: New script, from coreutils.
7143         * modules/do-release-commit-and-tag: New file.
7144         * MODULES.html.sh (Support for maintaining and releasing): Add it.
7145
7146 2009-11-06  Simon Josefsson  <simon@josefsson.org>
7147
7148         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
7149         because test-select.c uses inet_pton.
7150
7151 2009-11-06  Simon Josefsson  <simon@josefsson.org>
7152
7153         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
7154         GETADDRINFO_LIB.  Bump serial number.
7155         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
7156         Suggested by Eric Blake <ebb9@byu.net>.
7157
7158 2009-11-05  Eric Blake  <ebb9@byu.net>
7159
7160         strtod: detect darwin bug
7161         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
7162         Reported by Leo Davis.
7163
7164         freopen-safer: new module
7165         * modules/freopen-safer: New module.
7166         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
7167         * lib/freopen-safer.c (freopen_safer): New file.
7168         * lib/stdio-safer.h (freopen_safer): New declaration.
7169         * lib/stdio--.h (freopen): New override.
7170         * MODULES.html.sh (File stream based Input/Output): Mention it.
7171         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
7172         freopen-safer module.
7173         * doc/posix-functions/stderr.texi (stderr): Likewise.
7174         * doc/posix-functions/stdin.texi (stdin): Likewise.
7175         * doc/posix-functions/stdout.texi (stdout): Likewise.
7176         * modules/freopen-safer-tests: New test.
7177         * tests/test-reopen-safer.c: New file.
7178
7179 2009-11-05  Jim Meyering  <meyering@redhat.com>
7180
7181         maint.mk: Prohibit inclusion of "close-stream.h" without use.
7182         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
7183
7184 2009-11-05  Simon Josefsson  <simon@josefsson.org>
7185
7186         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
7187
7188 2009-11-05  Simon Josefsson  <simon@josefsson.org>
7189
7190         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
7191
7192 2009-11-05  Simon Josefsson  <simon@josefsson.org>
7193
7194         Fix link error.
7195         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
7196         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
7197
7198 2009-11-05  Simon Josefsson  <simon@josefsson.org>
7199
7200         * tests/test-func.c: Also test value of __func__.
7201
7202 2009-11-05  Simon Josefsson  <simon@josefsson.org>
7203
7204         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
7205         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
7206
7207 2009-11-05  Bruno Haible  <bruno@clisp.org>
7208
7209         Fix link error.
7210         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
7211         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
7212         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
7213
7214 2009-11-05  Bruno Haible  <bruno@clisp.org>
7215
7216         Tests for module 'inet_pton'.
7217         * modules/inet_pton-tests: New file.
7218         * tests/test-inet_pton.c: New file.
7219
7220 2009-11-05  Bruno Haible  <bruno@clisp.org>
7221
7222         Tests for module 'inet_ntop'.
7223         * modules/inet_ntop-tests: New file.
7224         * tests/test-inet_ntop.c: New file.
7225
7226 2009-11-04  Eric Blake  <ebb9@byu.net>
7227
7228         stdlib-safer: wrap all mkstemp variants
7229         * modules/mkostemp (configure.ac): Set witness.
7230         * modules/mkostemps (configure.ac): Likewise.
7231         * modules/mkstemps (configure.ac): Likewise.
7232         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
7233         (mkstemps_safer): Wrap more functions.
7234         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
7235         wrapping.
7236         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
7237         (mkstemps_safer): Implement the wrappers.
7238
7239         mkstemps, mkostemps: new modules
7240         * modules/mkostemps: New module.
7241         * modules/mkstemps: Likewise.
7242         * lib/mkostemps.c (mkostemps): New file.
7243         * lib/mkstemps.c (mkstemps): Likewise.
7244         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
7245         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
7246         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
7247         * modules/stdlib (Makefile.am): Substitute them.
7248         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
7249         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
7250         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
7251         * doc/gnulib.texi (Glibc stdlib.h): Include them.
7252         * MODULES.html.sh (File system functions): Mention them.
7253
7254         tempname: resync from glibc
7255         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
7256         same values for __GT_FILE as glibc.  Abort even when assertions
7257         are disabled.
7258         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
7259         match its value otherwise.  Allow idempotent inclusion.
7260         * lib/mkdtemp.c (mkdtemp): Adjust caller.
7261         * lib/mkostemp.c (mkostemp): Likewise.
7262         * lib/mkstemp.c (mkstemp): Likewise.
7263         * lib/tmpfile.c (tmpfile): Likewise.
7264         * NEWS: Document this.
7265
7266         utimens: fix use of futimens on older Linux
7267         * lib/utimens.c (fdutimens): Use updated, rather than original,
7268         timespec to avoid bug in older Linux kernel.
7269         Reported by Simon Josefsson.
7270
7271 2009-11-04  Bruno Haible  <bruno@clisp.org>
7272
7273         Make num_processors more flexible and consistent.
7274         * lib/nproc.h (enum nproc_query): New type.
7275         (num_processors): Add a 'query' argument.
7276         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
7277         (num_processors): Add a 'query' argument. Test the value of the
7278         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
7279         mingw, count the number of CPUs available for the current process.
7280         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
7281         Check for sched_getaffinity and sched_getaffinity_np.
7282         * modules/nproc (Depends-on): Add c-ctype, extensions.
7283         * NEWS: Mention the change.
7284
7285 2009-11-03  Bruno Haible  <bruno@clisp.org>
7286
7287         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
7288
7289 2009-11-03  Jim Meyering  <meyering@redhat.com>
7290
7291         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
7292         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
7293         if it is defined.
7294
7295 2009-11-02  Eric Blake  <ebb9@byu.net>
7296
7297         mktime, timegm: share common declaration
7298         * lib/mktime-internal.h: New file.
7299         * lib/mktime.c: Use it rather than open-coding a declaration.
7300         * lib/timegm.c: Likewise.
7301         * modules/mktime (Files): Ship it.
7302         * modules/timegm (Files): Likewise.
7303         Suggested by Bruno Haible.
7304
7305         test-update-copyright: update test to match script changes
7306         * tests/test-update-copyright.sh: Avoid hard-coding perl
7307         location.  Don't update *.bak created by earlier runs.
7308
7309 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
7310             Simon Josefsson  <simon@josefsson.org>
7311             Bruno Haible  <bruno@clisp.org>
7312
7313         Fix link error on Solaris 8.
7314         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
7315         also in libnsl. Define also INET_PTON_LIB.
7316         * modules/inet_pton (Link): New section.
7317
7318 2009-11-02  Simon Josefsson  <simon@josefsson.org>
7319             Bruno Haible  <bruno@clisp.org>
7320
7321         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
7322         * modules/inet_ntop (Link): New section.
7323         Reported by Boyan Kasarov <bkasarov@gmail.com>.
7324
7325 2009-11-02  Eric Blake  <ebb9@byu.net>
7326
7327         maint: avoid compiler warnings in m4 macros
7328         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
7329         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
7330
7331 2009-11-02  Simon Josefsson  <simon@josefsson.org>
7332
7333         * m4/pmccabe2html.m4: Remove file.
7334         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
7335         function.  Change maintainer.
7336         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
7337         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
7338         Courtès).
7339
7340 2009-10-31  Eric Blake  <ebb9@byu.net>
7341
7342         fseeko: fix m4 regression
7343         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
7344         regression from 2009-10-27.
7345         Reported by Ralf Wildenhues.
7346
7347 2009-10-31  Jim Meyering  <meyering@redhat.com>
7348
7349         inttostr: aesthetics and improved (compile-time) safety
7350         Define inttype_is_signed rather than inttype_is_unsigned,
7351         since the sole use is via "#if inttype_is_signed".
7352         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
7353         inttype_is_unsigned.
7354         * lib/offtostr.c (inttype_is_signed): Likewise.
7355         * lib/uinttostr.c (inttype_is_signed): Likewise.
7356         * lib/umaxtostr.c (inttype_is_signed): Likewise.
7357         * lib/inttostr.c (inttostr): Use verify to cross-check the
7358         inttype_is_signed value and the signedness of the actual type.
7359         * modules/inttostr (Depends-on): Add verify.
7360
7361 2009-10-30  Eric Blake  <ebb9@byu.net>
7362
7363         build: avoid compiler warnings
7364         * lib/fchmodat.c (lchmod): Mark unused variables.
7365         * lib/getopt.c (_getopt_initialize): Likewise.
7366         * lib/mktime.c (__mktime_internal): Provide prototype.
7367         * lib/inttostr.c (inttostr): Avoid compiler warning even with
7368         older gcc that do not understand #pragma GCC diagnostic.
7369         * lib/uinttostr.c (inttype_is_unsigned): Define.
7370         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
7371
7372 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
7373
7374         stat: fix compilation on AIX
7375         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
7376         only see struct stat64.
7377
7378 2009-10-30  Eric Blake  <ebb9@byu.net>
7379
7380         exclude: make more robust
7381         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
7382         rather than masking a coding bug.
7383         Suggested by Bruno Haible.
7384
7385 2009-10-30  Jim Meyering  <meyering@redhat.com>
7386
7387         perl scripts: remove #!/usr/bin/perl in favor of more portable...
7388         Rather than putting #!/usr/bin/perl on the first line,
7389         start with a variant of what's recommended by "man perlrun" that
7390         invokes the first "perl" program from your shell's search path.
7391         * build-aux/gitlog-to-changelog: Replace #!... as above.
7392         Add a "Local Variables" perl mode setting.
7393         Prompted by a patch from Ludovic Courtès.
7394         Improved by Eric Blake.
7395         * build-aux/useless-if-before-free: Likewise.
7396         * build-aux/announce-gen: Likewise.
7397         * build-aux/update-copyright: Likewise.
7398
7399 2009-10-29  Eric Blake  <ebb9@byu.net>
7400
7401         filenamecat-lgpl: adjust clients
7402         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
7403         filenamecat.
7404         * modules/renameat (Depends-on): Likewise.
7405
7406         filenamecat: split into filenamecat-lgpl
7407         * modules/filenamecat-lgpl: New module.
7408         * modules/filenamecat (Files): Move library-safe files into
7409         filenamecat-lgpl.
7410         (Depends-on): Add filenamecat-lgpl.
7411         (configure.ac): Declare witness.
7412         * lib/filenamecat.h (file_name_concat): Only declare when using
7413         GPL module.
7414         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
7415         Move...
7416         * lib/filenamecat-lgpl.c: ...into new file.
7417         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
7418         (gl_FILE_NAME_CONCAT): Use it.
7419         * MODULES.html.sh (File system functions): Mention new module.
7420
7421         argp: avoid memory leak
7422         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
7423         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
7424         base_name, since the latter malloc()s and can call exit().
7425         Leak introduced 2006-07-03.
7426
7427         dirname-lgpl: adjust clients that don't need full dirname
7428         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
7429         * modules/filenamecat (Depends-on): Likewise.
7430         * modules/linkat (Depends-on): Likewise.
7431         * modules/mkancesdirs (Depends-on): Likewise.
7432         * modules/mkdir (Depends-on): Likewise.
7433         * modules/openat (Depends-on): Likewise.
7434         * modules/savewd (Depends-on): Likewise.
7435         * modules/rename (Depends-on): Likewise.
7436         (License): Relax license.
7437         * modules/mkdir-tests (Depends-on): Drop progname.
7438         (Makefile.am): Delete unneeded LDADD.
7439         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
7440
7441         dirname: split into dirname-lgpl
7442         * modules/dirname-lgpl: New module.
7443         * modules/dirname (Files): Move library-safe files into
7444         dirname-lgpl.
7445         (Depends-on): Add dirname-lgpl.
7446         (configure.ac): Declare witness.
7447         * modules/double-slash-root (License): Relax license.
7448         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
7449         module.
7450         * lib/dirname.c (dir_len, mdir_name): Move...
7451         * lib/dirname-lgpl.c: ...into new file.
7452         * lib/basename.c (last_component, base_len): Move...
7453         * lib/basename-lgpl.c: ...into new file.
7454         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
7455         (gl_DIRNAME): Use it.
7456         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
7457         Mention new module.
7458         * modules/dirname-tests (Depends-on): Add progname.
7459         * tests/test-dirname.c (program_name): Delete.
7460
7461         mkdir: make safe for libraries
7462         * modules/mkdir (Depends-on): Drop xalloc.
7463         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
7464         exit.
7465
7466         tests: avoid some compiler warnings
7467         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
7468         literals.
7469         * tests/test-memchr.c (main): Avoid type mismatch.
7470         * tests/test-arpa_inet.c (main): Avoid unused parameters.
7471         * tests/test-base64.c (main): Likewise.
7472         * tests/test-getdelim.c (main): Likewise.
7473         * tests/test-gethostname.c (main): Likewise.
7474         * tests/test-getline.c (main): Likewise.
7475         * tests/test-netinet_in.c (main): Likewise.
7476         * tests/test-select.c (open_server_socket, main): Likewise.
7477         * tests/test-select-stdin.c (main): Likewise.
7478         * tests/test-sockets.c (main): Likewise.
7479         * tests/test-strsignal.c (main): Likewise.
7480         * tests/test-sys_select.c (main): Likewise.
7481         * tests/test-sys_socket.c (main): Likewise.
7482         * tests/test-u64.c (main): Likewise.
7483         * tests/test-xfprintf-posix.c (main): Likewise.
7484         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
7485
7486         sockets: avoid compiler warning
7487         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
7488
7489         maint: detect usage(1) and other suspicious exits
7490         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
7491
7492 2009-10-29  Jim Meyering  <meyering@redhat.com>
7493
7494         timespec: long-to-int truncation could make timespec_cmp malfunction
7495         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
7496         a multiple of 2^32 nanoseconds as no difference.
7497
7498 2009-10-28  Jim Meyering  <meyering@redhat.com>
7499
7500         fprintftime: wrap macro code argument in "do {...} while(0)"
7501         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
7502         cpy macro must be a statement that can be followed by a semicolon.
7503         Now that the else clause contains a comment and is hence longer
7504         than one line, I require curly braces.  That in turn requires
7505         that we wrap this code block in the standard do...while(0).
7506
7507         fprintftime: remove stray semicolon from previous change
7508         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
7509
7510         fprintftime: avoid a warning about ignored fwrite return value
7511         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
7512         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
7513         that is unsafe.
7514         * modules/fprintftime (Depends-on): Add ignore-value.
7515
7516         exclude: avoid an unwarranted warning
7517         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
7518
7519 2009-10-27  Eric Blake  <ebb9@byu.net>
7520
7521         fseek: avoid compilation failure when fflush is replaced
7522         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
7523         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
7524         module is in use.
7525         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
7526         module is not in use; since REPLACE_FSEEK worked otherwise.
7527         (GNULIB_FTELLO): Likewise for ftell.
7528         Reported by Ian Beckwith and others.
7529
7530 2009-10-27  Bruno Haible  <bruno@clisp.org>
7531
7532         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
7533         Reported by Jim Meyering.
7534
7535 2009-10-27  Jim Meyering  <jim@meyering.net>
7536             Bruno Haible  <bruno@clisp.org>
7537
7538         Avoid warning despite dropping the return value of fwrite.
7539         * lib/unicodeio.c: Include ignore-value.h.
7540         (fwrite_success_callback): Explicitly ignore fwrite's return value.
7541         * modules/unicodeio (Depends-on): Add ignore-value.
7542
7543 2009-10-26  Eric Blake  <ebb9@byu.net>
7544
7545         areadlinkat: fix fallback path
7546         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
7547         pointer and zero.
7548
7549 2009-10-22  Pádraig Brady  <P@draigBrady.com>
7550
7551         Use a better IO block size for modern systems
7552         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
7553         * lib/md2.c: Likewise.
7554         * lib/md4.c: Likewise.
7555         * lib/md5.c: Likewise.
7556         * lib/sha1.c: Likewise.
7557         * lib/sha256.c: Likewise.
7558         * lib/sha512.c: Likewise.
7559
7560 2009-10-22  Eric Blake  <ebb9@byu.net>
7561
7562         tests: avoid several compiler warnings
7563         * tests/test-getcwd.c (main): Avoid buffer underflow.
7564         * tests/test-getdate.c (main): String literals are not safe with
7565         putenv, so use setenv.  Declare unused argument.
7566         * modules/getdate-tests (Depends-on): Add setenv.
7567         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
7568         problems with string literals in char *.
7569         * tests/test-hash.c (main): Avoid shadowing declaration.
7570         (insert_new): Treat string literals as char const *.
7571         * tests/test-getopt.h (test_getopt): Likewise.
7572         (getopt_loop): Alter types to minimize casting elsewhere.
7573         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
7574         (test_getopt_long_posix): Likewise.
7575         (do_getopt_long): Add wrapper to minimize casting.
7576         * tests/test-atexit.c (clear_temp_file): Use void.
7577         * tests/test-areadlink-with-size.c (main): Declare unused
7578         arguments.
7579         * tests/test-areadlink.c (main): Likewise.
7580         * tests/test-areadlinkat-with-size.c (main): Likewise.
7581         * tests/test-areadlinkat.c (main): Likewise.
7582         * tests/test-canonicalize-lgpl.c (main): Likewise.
7583         * tests/test-canonicalize.c (main): Likewise.
7584         * tests/test-dirent-safer.c (main): Likewise.
7585         * tests/test-dirname.c (main): Likewise.
7586         * tests/test-dup2.c (main): Likewise.
7587         * tests/test-fchdir.c (main): Likewise.
7588         * tests/test-fcntl-h.c (main): Likewise.
7589         * tests/test-fcntl-safer.c (main): Likewise.
7590         * tests/test-fdopendir.c (main): Likewise.
7591         * tests/test-fdutimensat.c (main): Likewise.
7592         * tests/test-fflush.c (main): Likewise.
7593         * tests/test-filenamecat.c (main): Likewise.
7594         * tests/test-filevercmp.c (main): Likewise.
7595         * tests/test-fopen-safer.c (main): Likewise.
7596         * tests/test-fopen.c (main): Likewise.
7597         * tests/test-fpending.c (main): Likewise.
7598         * tests/test-fpurge.c (main): Likewise.
7599         * tests/test-freading.c (main): Likewise.
7600         * tests/test-fstatat.c (main): Likewise.
7601         * tests/test-fsync.c (main): Likewise.
7602         * tests/test-futimens.c (main): Likewise.
7603         * tests/test-getndelim2.c (main): Likewise.
7604         * tests/test-gettimeofday.c (main): Likewise.
7605         * tests/test-getopt.c (main): Likewise.
7606         * tests/test-i-ring.c (main): Likewise.
7607         * tests/test-inttypes.c (main): Likewise.
7608         * tests/test-link.c (main): Likewise.
7609         * tests/test-lstat.c (main): Likewise.
7610         * tests/test-math.c (main): Likewise.
7611         * tests/test-md5.c (main): Likewise.
7612         * tests/test-memchr2.c (main): Likewise.
7613         * tests/test-memrchr.c (main): Likewise.
7614         * tests/test-mkdir.c (main): Likewise.
7615         * tests/test-mkdirat.c (main): Likewise.
7616         * tests/test-mkfifoat.c (main): Likewise.
7617         * tests/test-open.c (main): Likewise.
7618         * tests/test-openat-safer.c (main): Likewise.
7619         * tests/test-openat.c (main): Likewise.
7620         * tests/test-quotearg.c (main): Likewise.
7621         * tests/test-rawmemchr.c (main): Likewise.
7622         * tests/test-readlink.c (main): Likewise.
7623         * tests/test-remove.c (main): Likewise.
7624         * tests/test-rename.c (main): Likewise.
7625         * tests/test-renameat.c (main): Likewise.
7626         * tests/test-rmdir.c (main): Likewise.
7627         * tests/test-sha1.c (main): Likewise.
7628         * tests/test-signal.c (main): Likewise.
7629         * tests/test-sigaction.c (main): Likewise.
7630         * tests/test-stat.c (main): Likewise.
7631         * tests/test-stat-time.c (main): Likewise.
7632         * tests/test-stddef.c (main): Likewise.
7633         * tests/test-stdint.c (main): Likewise.
7634         * tests/test-stdio.c (main): Likewise.
7635         * tests/test-stdlib.c (main): Likewise.
7636         * tests/test-strchrnul.c (main): Likewise.
7637         * tests/test-strerror.c (main): Likewise.
7638         * tests/test-string.c (main): Likewise.
7639         * tests/test-strtod.c (main): Likewise.
7640         * tests/test-strverscmp.c (main): Likewise.
7641         * tests/test-symlink.c (main): Likewise.
7642         * tests/test-symlinkat.c (main): Likewise.
7643         * tests/test-sys_stat.c (main): Likewise.
7644         * tests/test-sys_time.c (main): Likewise.
7645         * tests/test-time.c (main): Likewise.
7646         * tests/test-unistd.c (main): Likewise.
7647         * tests/test-unlink.c (main): Likewise.
7648         * tests/test-unlinkat.c (main): Likewise.
7649         * tests/test-utimens.c (main): Likewise.
7650         * tests/test-utimensat.c (main): Likewise.
7651         * tests/test-version-etc.c (main): Likewise.
7652         * tests/test-wchar.c (main): Likewise.
7653         * tests/test-wctype.c (main): Likewise.
7654         * tests/test-xprintf-posix.c (main): Likewise.
7655         * tests/test-posixtm.c (main): Likewise.
7656         (STREQ): Delete unused macro.
7657         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
7658         shadowed variables.
7659         * tests/test-memchr.c (main): Likewise.
7660
7661 2009-10-21  Eric Blake  <ebb9@byu.net>
7662
7663         areadlinkat: avoid failure on older glibc
7664         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
7665         rather than mis-comparing 0 against FUNC_RESULT of char*.
7666
7667 2009-10-21  Bruno Haible  <bruno@clisp.org>
7668
7669         * modules/stpncpy (License): Relicense under LGPLv2+.
7670         Reported by David Lutterkort <lutter@redhat.com>.
7671
7672 2009-10-20  Eric Blake  <ebb9@byu.net>
7673
7674         utimensat: work around Solaris 9 bug
7675         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
7676         has trailing slash bugs.
7677         * tests/test-lutimens.h (test_lutimens): Enhance test.
7678         * tests/test-utimens.h (test_utimens): Likewise.
7679         * doc/posix-functions/utime.texi (utime): Enhance documentation.
7680         * doc/posix-functions/utimes.texi (utimes): Likewise.
7681         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
7682         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
7683         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
7684         * doc/posix-functions/futimens.texi (futimens): Likewise.
7685
7686         fdutimensat: new module
7687         * modules/fdutimensat: New file.
7688         * lib/fdutimensat.c (fdutimensat): Likewise.
7689         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
7690         * MODULES.html.sh (File system functions): Mention module.
7691         * modules/fdutimensat-tests: New test.
7692         * tests/test-fdutimensat.c: Likewise.
7693
7694         doc: regenerate INSTALL
7695         * doc/INSTALL: Reflect recent autoconf update.
7696         * doc/INSTALL.ISO: Likewise.
7697         * doc/INSTALL.UTF-8: Likewise.
7698
7699 2009-10-20  Pádraig Brady  <P@draigBrady.com>
7700
7701         acl: warn if ACL support is not detected
7702         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
7703
7704 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
7705
7706         * lib/nproc.h: Add extern "C" block for C++.
7707
7708 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
7709             Bruno Haible  <bruno@clisp.org>
7710
7711         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
7712         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
7713         * doc/posix-functions/isalpha.texi: Likewise.
7714         * doc/posix-functions/isblank.texi: Likewise.
7715         * doc/posix-functions/iscntrl.texi: Likewise.
7716         * doc/posix-functions/isdigit.texi: Likewise.
7717         * doc/posix-functions/isgraph.texi: Likewise.
7718         * doc/posix-functions/islower.texi: Likewise.
7719         * doc/posix-functions/isprint.texi: Likewise.
7720         * doc/posix-functions/ispunct.texi: Likewise.
7721         * doc/posix-functions/isspace.texi: Likewise.
7722         * doc/posix-functions/isupper.texi: Likewise.
7723         * doc/posix-functions/isxdigit.texi: Likewise.
7724
7725 2009-10-18  Bruno Haible  <bruno@clisp.org>
7726
7727         Tests for module 'isblank'.
7728         * modules/isblank-tests: New file.
7729         * tests/test-isblank.c: New file.
7730
7731         New module 'isblank'.
7732         * lib/isblank.c: New file.
7733         * m4/isblank.m4: New file.
7734         * modules/isblank: New file.
7735         * doc/posix-functions/isblank.texi: Mention the new module.
7736
7737 2009-10-18  Bruno Haible  <bruno@clisp.org>
7738
7739         New module 'ctype'.
7740         * lib/ctype.in.h: New file.
7741         * m4/ctype.m4: New file.
7742         * modules/ctype: New file.
7743         * doc/posix-headers/ctype.texi: Mention the new module.
7744
7745 2009-10-18  Jim Meyering  <meyering@redhat.com>
7746
7747         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
7748         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
7749         right after its initialization, rather than farther down.
7750         Keeping these in close proximity makes it easier to ensure
7751         that each such variable is initialized.  E.g.,
7752
7753             LIB_CLOCK_GETTIME=
7754             AC_SUBST([LIB_CLOCK_GETTIME])
7755
7756         This change also increments these serial numbers.
7757         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
7758         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
7759         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
7760
7761 2009-10-18  Bruno Haible  <bruno@clisp.org>
7762
7763         Don't let environment variables perturb build.
7764         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
7765         (gl_PREREQ_GETHRXTIME): ... not here.
7766
7767 2009-10-18  Bruno Haible  <bruno@clisp.org>
7768
7769         Avoid symlink attack in localcharset module.
7770         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
7771         (O_NOFOLLOW): Define fallback.
7772         (get_charset_aliases): Don't open the file if it is a symbolic link.
7773         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
7774         gl_FCNTL_H.
7775         (gl_FCNTL_H): Require it.
7776         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
7777         * modules/localcharset (Files): Add m4/fcntl_h.m4.
7778         Reported by Fergal Glynn <fglynn@veracode.com>.
7779
7780 2009-10-18  Bruno Haible  <bruno@clisp.org>
7781
7782         Implement nproc for mingw.
7783         * lib/nproc.c: Include <windows.h>
7784         (num_processors): On native Windows platforms, try GetSystemInfo.
7785
7786 2009-10-18  Bruno Haible  <bruno@clisp.org>
7787
7788         Implement nproc for IRIX.
7789         * lib/nproc.c: Include <sys/sysmp.h>.
7790         (num_processors): On IRIX systems, try sysmp.
7791         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
7792
7793 2009-10-18  Bruno Haible  <bruno@clisp.org>
7794
7795         Implement nproc for HP-UX.
7796         * lib/nproc.c: Include <sys/pstat.h>
7797         (num_processors): On HP-UX systems, try pstat_getdynamic.
7798         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
7799         pstat_getdynamic.
7800
7801 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
7802             Bruno Haible  <bruno@clisp.org>
7803
7804         Implement nproc for NetBSD, OpenBSD.
7805         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
7806         (ARRAY_SIZE): New macro.
7807         (num_processors): On BSD systems, try sysctl of HW_NCPU.
7808         * m4/nproc.m4: New file.
7809         * modules/nproc (Files): Add m4/nproc.m4.
7810         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
7811         (Makefile.am): Instead, augment lib_SOURCES.
7812
7813 2009-10-18  Bruno Haible  <bruno@clisp.org>
7814
7815         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
7816         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
7817         sys/param.h.
7818
7819 2009-10-16  Eric Blake  <ebb9@byu.net>
7820
7821         utimensat: new module
7822         * modules/utimensat: New file.
7823         * lib/utimensat.c (utimensat): Likewise.
7824         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
7825         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
7826         so we can work around Linux bugs.
7827         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
7828         * modules/sys_stat (Makefile.am): Substitute them.
7829         * lib/sys_stat.in.h (utimensat): Declare it.
7830         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
7831         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
7832         * modules/utimensat-tests: New test.
7833         * tests/test-utimensat.c: Likewise.
7834
7835         utimens: let lutimens work on non-symlinks
7836         * lib/utimens.c (lutimens): Fall back to utimens rather than
7837         failing with ENOSYS, when file is not a symlink.
7838         (utimens): Reduce redirection.
7839         * tests/test-lutimens.h (test_lutimens): Update test to cover
7840         non-symlinks.
7841         * tests/test-utimens.h (test_utimens): Update test to cover
7842         symlinks.
7843         * tests/test-utimens.c (main): Update caller.
7844
7845         utimens: cache whether utimensat syscall works
7846         * lib/utimens.c (utimensat_works_really): New cache variable.
7847         (fdutimens, lutimens): Use it to avoid failing syscall.
7848
7849         test-stat-time, test-utimens: improve portability
7850         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
7851         ext4 on alpha, and for cygwin.
7852         * tests/test-utimens-common.h: New file.
7853         (nap): Factor delays into single function.
7854         * tests/test-lutimens.h (test_lutimens): Use new header.
7855         * tests/test-futimens.h (test_futimens): Likewise.
7856         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
7857         timestamps to occur from same machine, as was done previously for
7858         test_utimens.
7859         * modules/utimens-tests (Files): Ship new file.
7860         * modules/futimens-tests (Files): Likewise.
7861         Reported in part by Jim Meyering.
7862
7863         sys_stat: sort replacement declarations
7864         * lib/sys_stat.in.h: Sort declarations.
7865         * lib/futimens.c (futimens): Fix typo.
7866
7867 2009-10-15  Jim Meyering  <meyering@redhat.com>
7868
7869         don't let environment settings perturb build
7870         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
7871         could cause a configure-time and/or build-time malfunction.
7872         Typically, a configure-time function-in-library test is performed
7873         via code like this:
7874
7875           LIB_VAR=
7876           AC_SUBST([LIB_VAR])
7877           prefix_saved_LIBS=$LIBS
7878             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
7879                        [test "$ac_cv_search_FUNC" = "none required" ||
7880                         LIB_VAR=$ac_cv_search_FUNC])
7881           LIBS=$prefix_saved_LIBS
7882
7883         However, in each of the files affected by this change, the LIB_VAR=
7884         initialization was omitted.  Thus, when set in the environment, its
7885         value would propagate into generated Makefiles when FUNC is not found
7886         in LIB_NAME.
7887         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
7888         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
7889         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
7890
7891 2009-10-14  Eric Blake  <ebb9@byu.net>
7892
7893         fchdir: avoid infinite recursion in mingw
7894         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
7895         recursing.
7896
7897         test-stat-time: port to mingw
7898         * tests/test-stat-time.c (force_unlink): Return a value.
7899         (test_ctime) [W32]: Fix compilation error.
7900         (nap): Don't call usleep with too large an argument.  Use
7901         force_unlink.
7902         * doc/pastposix-functions/usleep.texi (usleep): Document the
7903         portability issue.
7904
7905 2009-10-13  Jim Meyering  <meyering@redhat.com>
7906
7907         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
7908         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
7909         * modules/pipe-filter-ii: Likewise.
7910         * modules/sys_socket-tests: Likewise.
7911         * modules/tsearch-tests: Likewise.
7912         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
7913         (check): Depend on it.
7914
7915 2009-10-12  Eric Blake  <ebb9@byu.net>
7916
7917         utimens-tests: port to NFS file systems
7918         * tests/test-utimens.h (test_utimens): Refactor utimecmp
7919         comparisons to avoid spurious failures from timestamp drift
7920         between NFS machines.
7921
7922 2009-10-12  Eric Blake  <ebb9@byu.net>
7923
7924         stat-time-tests: minor cleanups
7925         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
7926         * tests/test-stat-time.c (nap): Separate assignment from call.
7927         Suggested by Paolo Bonzini and Bruno Haible.
7928
7929         sys_stat: guarantee struct timespec
7930         * lib/sys_stat.in.h (includes): Always include <time.h>
7931         * modules/sys_stat (Depends-on): Add time.
7932         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
7933         mode_t permission values.
7934         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
7935         get at subsecond timestamps.
7936
7937 2009-10-10  Eric Blake  <ebb9@byu.net>
7938
7939         futimens: new module
7940         * modules/futimens: New file.
7941         * lib/futimens.c (futimens): Likewise.
7942         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
7943         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
7944         we can work around Linux bugs.
7945         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
7946         * modules/sys_stat (Makefile.am): Substitute them.
7947         * lib/sys_stat.in.h (futimens): Declare it.
7948         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
7949         * doc/posix-functions/futimens.texi (futimens): Likewise.
7950         * modules/futimens-tests: New test.
7951         * tests/test-futimens.c: Likewise.
7952
7953         utimens: introduce fdutimens
7954         * lib/utimens.h (fdutimens): New prototype.
7955         * lib/utimens.c (gl_futimens): Move guts...
7956         (fdutimens): ...to new interface.
7957         * tests/test-utimens.c (do_fdutimens): Use it.
7958
7959         utimens: add UTIME_NOW and UTIME_OMIT support
7960         * lib/utimens.c (validate_timespec, update_timespec): New helper
7961         functions.
7962         (gl_futimens, lutimens): Use them.
7963         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
7964         stdbool, sys_stat.
7965         (Link): Mention resulting library dependency.
7966         * modules/utimecmp (Link): Likewise.
7967         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
7968         (Makefile.am): Pick up library dependency.
7969         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
7970         definition.
7971         * tests/test-sys_stat.c: Test the definitions.
7972         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
7973         * NEWS: Document library dependency.
7974
7975         utimecmp: support symlink timestamps
7976         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
7977         hashing when possible.  Use pathconf when available.
7978         (SYSCALL_RESOLUTION): Recognize tighter resolution.
7979         * modules/utimecmp (Depends-on): Add lstat.
7980
7981         utimens: add lutimens interface
7982         * lib/utimens.c (lutimens): New function.
7983         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
7984         * lib/utimens.h (lutimens): Declare new interface.
7985         * tests/test-utimens.c (main): Enhance test.
7986         * tests/test-lutimens.h (test_lutimens): New file.
7987         * modules/utimens-tests (Files): Distribute it.
7988         (Depends-on): Add symlink.
7989         (configure.ac): Check for usleep.
7990
7991         utimens: validate futimens usage
7992         * lib/utimens.c (gl_futimens): Require valid fd up front, using
7993         fewer syscalls on failure later on.  Avoid compiler warning on
7994         mingw.
7995         * modules/utimens (Depends-on): Add dup2.
7996
7997         utimens: add test
7998         * modules/utimens-tests: New test.
7999         * tests/test-utimens.h: New file.
8000         * tests/test-futimens.h: Likewise.
8001         * tests/test-utimens.c: Likewise.
8002
8003         doc: mention timestamp portability issues
8004         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
8005         instead.
8006         * doc/posix-functions/utime.texi (utime): Likewise.
8007         * doc/posix-functions/utimes.texi (utimes): Likewise.
8008         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
8009         instead.
8010         * doc/posix-functions/futimens.texi (futimens): Mention utimens
8011         module.
8012         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
8013         Mention weakness with symlink timestamps.
8014         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
8015         to utimensat/futimens instead.
8016         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
8017
8018         test-dup2: enhance test
8019         * tests/test-dup2.c (main): Also check AT_FDCWD.
8020
8021         test-stat-time: avoid more spurious failures
8022         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
8023         xfs; and avoid race if the two timestamps cross quantization edge.
8024
8025         relocatable: prefer 'file system' over 'filesystem'
8026         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
8027         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
8028         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
8029         * doc/relocatable.texi (Enabling Relocatability): Likewise.
8030         * lib/relocatable.c (compute_curr_prefix): Likewise.
8031
8032 2009-10-10  Jim Meyering  <meyering@redhat.com>
8033
8034         stat-time-tests: check for the usleep function
8035         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
8036
8037 2009-10-10  Bruno Haible  <bruno@clisp.org>
8038
8039         * modules/xnanosleep: Put the Link section after the Include section.
8040
8041 2009-10-09  Eric Blake  <ebb9@byu.net>
8042
8043         dup2: work around FreeBSD 6.1 bug
8044         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
8045         * doc/posix-functions/dup2.texi (dup2): Document it.
8046         Reported by Nelson H. F. Beebe and Jim Meyering.
8047
8048         test-stat-time: port to buggy NFS clients
8049         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
8050         (test_ctime): Also skip test if mtime and ctime are skewed.
8051
8052         maint: prefer 'file system' over 'filesystem'
8053         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
8054         * doc/posix-functions/lstat.texi (lstat): Likewise.
8055         * lib/file-has-acl.c (file_has_acl): Likewise.
8056         * lib/fwriteerror.c [TEST]: Likewise.
8057         * tests/test-areadlink.h (test_areadlink): Likewise.
8058         * tests/test-areadlinkat-with-size.c (main): Likewise.
8059         * tests/test-areadlinkat.c (main): Likewise.
8060         * tests/test-canonicalize-lgpl.c (main): Likewise.
8061         * tests/test-canonicalize.c (main): Likewise.
8062         * tests/test-fstatat.c (main): Likewise.
8063         * tests/test-linkat.c (main): Likewise.
8064         * tests/test-lstat.h (test_lstat_func): Likewise.
8065         * tests/test-mkdir.h (test_mkdir): Likewise.
8066         * tests/test-readlink.h (test_readlink): Likewise.
8067         * tests/test-remove.c (main): Likewise.
8068         * tests/test-rename.h (test_rename): Likewise.
8069         * tests/test-renameat.c (main): Likewise.
8070         * tests/test-rmdir.h (test_rmdir_func): Likewise.
8071         * tests/test-symlink.h (test_symlink): Likewise.
8072         * tests/test-symlinkat.c (main): Likewise.
8073         * tests/test-unlink.h (test_unlink_func): Likewise.
8074         * tests/test-unlinkat.c (main): Likewise.
8075
8076         maint: make realtime library usage explicit
8077         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
8078         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
8079         * modules/settime (Link): Likewise.
8080         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
8081
8082         test-stat-time: speed up execution
8083         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
8084         warning on mingw.
8085         (nap): New helper function.
8086         (prepare_test): Use it to reduce sleep time.
8087         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
8088         execution.
8089         * modules/stat-time-tests (configure.ac): Check for usleep.
8090
8091 2009-10-09  Jim Meyering  <meyering@redhat.com>
8092
8093         selinux-h: always use getfilecon wrappers
8094         * lib/getfilecon.c: New file.
8095         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
8096         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
8097         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
8098         (fgetfilecon): Provide a stub.
8099         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
8100         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
8101         file unconditionally.
8102         When <selinux/selinux.h> is found, arrange to use wrappers.
8103         * modules/selinux-h (Files): Add getfilecon.c.
8104         (Makefile.am): Substitute include-next-related bits
8105         into the now-always-generated selinux/selinux.h file.
8106         * doc/glibc-functions/lgetfilecon.texi: New file.
8107         * doc/glibc-functions/fgetfilecon.texi: New file.
8108         * doc/glibc-functions/getfilecon.texi: New file.
8109         * doc/glibc-functions/getfilecon-desc.texi: New file.
8110         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
8111         which to pull in the new files.
8112         * MODULES.html.sh (Misc): Add selinux-h.
8113
8114 2009-10-08  Jim Meyering  <meyering@redhat.com>
8115
8116         unistd: fix comment typo
8117         * lib/unistd.in.h (euidaccess): Fix a comment typo.
8118
8119 2009-10-08  Eric Blake  <ebb9@byu.net>
8120
8121         areadlink: use SIZE_MAX consistently
8122         * modules/areadlink (Depends-on): Add stdint.
8123         * modules/areadlink-with-size (Depends-on): Likewise.
8124         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
8125         gives NULL; drop sys/types, since unistd gives size_t; and add
8126         stdint for SIZE_MAX.
8127         (SIZE_MAX): Rely on headers.
8128         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
8129         and add stdint.
8130         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
8131         (SIZE_MAX): Likewise.
8132         (INITIAL_BUF_SIZE): Turn into enum.
8133         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
8134
8135 2009-10-08  Jim Meyering  <meyering@redhat.com>
8136
8137         areadlinkat: avoid compilation failure
8138         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
8139         Fix typo in comment.
8140
8141 2009-10-07  Eric Blake  <ebb9@byu.net>
8142
8143         areadlinkat-with-size: new module
8144         * modules/areadlinkat-with-size: New module.
8145         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
8146         * lib/areadlink.h (areadlinkat): Declare it.
8147         * MODULES.html.sh (File system functions): Mention it.
8148         * modules/areadlinkat-with-size-tests: New test.
8149         * tests/test-areadlinkat-with-size.c: New file.
8150
8151         xreadlinkat: new module
8152         * modules/xreadlinkat: New module.
8153         * lib/xreadlinkat.c (xreadlinkat): New file.
8154         * lib/xreadlink.h (xreadlinkat): Declare it.
8155         * MODULES.html.sh (File system functions): Mention it.
8156
8157         areadlinkat: new module
8158         * lib/at-func.c (FUNC_FAIL): New define.
8159         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
8160         * modules/areadlinkat: New module.
8161         * lib/linkat.c (areadlinkat): Move...
8162         * lib/areadlinkat.c (areadlinkat): ...to new file.
8163         * lib/areadlink.h (areadlinkat): Declare it.
8164         * modules/linkat (Depends-on): Add areadlinkat.
8165         * MODULES.html.sh (File system functions): Mention it.
8166         * modules/areadlinkat-tests: New test.
8167         * tests/test-areadlinkat.c: New file.
8168
8169         areadlink, areadlink-with-size: add tests
8170         * modules/areadlink-tests: New test.
8171         * modules/areadlink-with-size-tests: Likewise.
8172         * tests/test-areadlink.h: New file.
8173         * tests/test-areadlink.c: Likewise.
8174         * tests/test-areadlink-with-size.c: Likewise.
8175
8176         maint: minor cleanups
8177         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
8178         _UNUSED_PARAMETER_ instead.
8179         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
8180         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
8181         * modules/linkat-tests (Files): Distribute test-link.h.
8182
8183         openat, utimens: whitespace cleanup
8184         * lib/openat.c: Prefer space throughout, rather than mix of 8
8185         spaces vs. tabs.
8186         * lib/at-func.c: Likewise.
8187         * lib/utimens.c: Likewise.
8188
8189         openat: avoid using wrong fd
8190         * lib/openat.c (openat_permissive): Reject user's fd if saving the
8191         working directory chooses same fd.
8192         * lib/at-func.c (AT_FUNC_NAME): Likewise.
8193
8194         mkdir, mkdirat: fix cygwin 1.5.x bug
8195         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
8196         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
8197         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
8198         bug.
8199         (gl_PREREQ_MKDIR): Delete unused macro.
8200         * modules/mkdir (Files): Track file rename.
8201         (configure.ac): Update macro name.
8202         * modules/openat (Depends-on): Add mkdir.
8203         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
8204
8205         mkdir, mkdirat: add tests
8206         * modules/mkdir-tests: New test.
8207         * tests/test-mkdir.h: New file.
8208         * tests/test-mkdir.c: Likewise.
8209         * tests/test-mkdirat.c: Likewise.
8210         * modules/openat-tests (Files): Add new files.
8211         (Makefile.am): Run new test.
8212
8213 2009-10-06  Eric Blake  <ebb9@byu.net>
8214
8215         doc: tweak *at function documentation
8216         * doc/posix-functions/faccessat.texi (faccessat): Mention
8217         known issue with replacement.
8218         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
8219         * doc/posix-functions/linkat.texi (linkat): Likewise.
8220         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
8221         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
8222         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
8223         * doc/posix-functions/renameat.texi (renameat): Likewise.
8224         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
8225
8226         openat: fix GNU/Hurd bug in unlinkat
8227         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
8228         broken.
8229         * doc/posix-functions/unlink.texi (unlink): Document this.
8230         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
8231
8232         fdopendir: fix GNU/Hurd bug
8233         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
8234         allowing non-directory fds.
8235         * lib/fdopendir.c (rpl_fdopendir): Work around it.
8236         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
8237         * modules/dirent (Makefile.am): Substitute it.
8238         * lib/dirent.in.h (fdopendir): Declare replacement.
8239         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
8240         * tests/test-fdopendir.c (main): Test something other than
8241         /dev/null, since on Hurd that behaves like a directory.
8242
8243         test-symlink: port to GNU/Hurd
8244         * tests/test-symlink.h (test_symlink): Relax expected errno.
8245
8246         doc: tweak more cygwin information
8247         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
8248         now compatible with glibc.
8249         * doc/posix-functions/getopt.texi (getopt): Likewise.
8250
8251         getopt-gnu: add another test
8252         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
8253         guarantee behavior relied on by m4.
8254         * tests/test-getopt.c (main): Use it.
8255         * modules/getopt-posix-tests (Depends-on): Add setenv.
8256         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
8257
8258         getopt: fix compilation on darwin
8259         * lib/getopt.in.h (includes): Leave breadcrumbs during system
8260         include.
8261         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
8262         Reported by Ludovic Courtès.
8263
8264 2009-10-06  Bruno Haible  <bruno@clisp.org>
8265
8266         * modules/size_max (Description): Discourage its use.
8267         Reported by Simon Josefsson.
8268
8269 2009-10-06  Jim Meyering  <meyering@redhat.com>
8270
8271         linkat: avoid compilation failure
8272         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
8273
8274 2009-10-05  Eric Blake  <ebb9@byu.net>
8275
8276         linkat: support Linux 2.6.17
8277         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
8278         linkat on Linux, but allow cache variable override.
8279         * lib/linkat.c (rpl_linkat): Define override.
8280         * modules/linkat (Depends-on): Add symlinkat.
8281         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
8282         * modules/unistd (Makefile.am): Substitute it.
8283         * lib/unistd.in.h (linkat): Declare replacement.
8284         Reported by Pádraig Brady.
8285
8286         quotearg: port test to systems with C.UTF-8 locale
8287         * tests/test-quotearg.c (struct result_strings): Add another
8288         member, differentiating between C.ASCII and C.UTF-8 handling.
8289         (compare_strings): Add parameter.
8290         (main): Adjust all callers.
8291
8292         getopt: avoid clash with FreeBSD _getopt_internal
8293         * lib/getopt.in.h (_getopt_internal): Override the name.
8294         * lib/getopt_int.h (includes): Pick up any overrides.
8295         Reported by Reuben Thomas.
8296
8297         hash: allow C89 compilation
8298         * lib/hash.c (check_tuning): Move declaration before statement.
8299         Reported by Reuben Thomas.
8300
8301 2009-10-05  Karl Berry  <karl@gnu.org>
8302
8303         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
8304
8305 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
8306             Bruno Haible  <bruno@clisp.org>
8307
8308         * lib/uname.c (uname): Use a table-driven algorithm to compute
8309         Windows NT versions.
8310
8311 2009-10-04  Bruno Haible  <bruno@clisp.org>
8312
8313         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
8314         program_invocation_short_name.
8315         * modules/progname (configure.ac): Test for presence of
8316         program_invocation_short_name.
8317         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
8318
8319 2009-10-04  Bruno Haible  <bruno@clisp.org>
8320
8321         * lib/progname.c (set_program_name): Fix comment.
8322         Reported by Jim Meyering.
8323
8324 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
8325             Bruno Haible  <bruno@clisp.org>
8326
8327         * lib/uname.c: Include <string.h>.
8328         (uname): Do only one call to GetVersionEx in the common case.
8329
8330 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
8331             Bruno Haible  <bruno@clisp.org>
8332
8333         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
8334         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
8335         (uname): Add support for Windows CE and various non-x86 CPU types.
8336
8337 2009-10-03  Bruno Haible  <bruno@clisp.org>
8338
8339         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
8340         invocation to tests/configure.ac.
8341         Reported by Ian Beckwith <ianb@erislabs.net>.
8342
8343 2009-10-02  Eric Blake  <ebb9@byu.net>
8344
8345         fchdir: avoid compiler warning
8346         * lib/fchdir.c (canonicalize_file_name)
8347         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
8348
8349         test-open: support mingw errno values
8350         * tests/test-open.h (test_open): Relax test.
8351         * tests/test-fopen.h (test_fopen): Likewise.
8352         * tests/test-openat-safer.c (main): Likewise.
8353
8354         open: fix opening directory on mingw
8355         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
8356
8357         test-open: on GNU/Hurd, /dev/null is a directory
8358         * tests/test-fopen.h (main): Rename...
8359         (test_fopen): ...to this.  Use a guaranteed non-directory when
8360         confirming open behavior on trailing slash.
8361         * tests/test-openat-safer.c (main): Likewise.
8362         * tests/test-open.h (main): Likewise....
8363         (test_open): ...to this.
8364         * tests/test-fopen.c (main): Adjust caller.
8365         * tests/test-fopen-safer.c (main): Likewise.
8366         * tests/test-open.c (main): Likewise.
8367         * tests/test-fcntl-safer.c (main): Likewise.
8368         Reported by Samuel Thibault.
8369
8370         rename, fchdir: don't ignore chdir failure
8371         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
8372         * lib/rename.c (rpl_rename) [W32]: Likewise.
8373         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
8374         an empty destination directory if source cannot be renamed,
8375         although there is still possibility for failure.
8376         * doc/posix-functions/rename.texi (rename): Document the race.
8377         Reported by Jim Meyering.
8378
8379         maint: cleanup whitespace in recent commits
8380         * lib/rename.c (rpl_rename): Remove tabs.
8381         * tests/test-link.h (test_link): Likewise.
8382         * lib/fchdir.c (get_name): Likewise.
8383         Reported by Jim Meyering.
8384
8385 2009-10-02  Ben Pfaff  <blp@gnu.org>
8386
8387         relocatable-prog-wrapper: Add missing dependency on
8388         double-slash-root.
8389         * modules/relocatable-prog-wrapper: Add dependency.
8390         Reported by Ian Beckwith <ianb@erislabs.net>.
8391
8392 2009-10-02  Eric Blake  <ebb9@byu.net>
8393
8394         renameat: fix Solaris bugs
8395         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
8396         needed fixing.
8397         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
8398         * modules/stdio (Makefile.am): Substitute it.
8399         * lib/stdio.in.h (renameat): Declare replacement.
8400         * lib/renameat.c (rpl_renameat): Implement fix.
8401
8402         renameat: new module
8403         * modules/renameat: New file.
8404         * lib/renameat.c (renameat): Likewise.
8405         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
8406         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
8407         * modules/stdio (Makefile.am): Substitute them.
8408         * lib/stdio.in.h (renameat): Declare it.
8409         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8410         * doc/posix-functions/renameat.texi (renameat): Likewise.
8411         * modules/renameat-tests: New test.
8412         * tests/test-renameat.c: Likewise.
8413
8414         rename: fix mingw bugs
8415         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
8416         directory overwrite bugs.
8417
8418         rename: fix another cygwin 1.5 bug
8419         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
8420         checks.
8421         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
8422         unnecessary cygwin workarounds.  Also work around bug with moving
8423         full directory onto an empty one.
8424         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
8425
8426         rename-dest-slash: merge into rename module
8427         * modules/rename-dest-slash (Status): Mark obsolete.
8428         (Depends-on): Add rename.
8429         (Files): Let rename do it all.
8430         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
8431         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
8432         * m4/rename-dest-slash.m4: ...so this file can be deleted.
8433         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
8434         * lib/rename.c (rpl_rename): Update comments.
8435
8436         rename: fix cygwin 1.5.x bugs
8437         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
8438         * lib/rename.c (rpl_rename): Work around them.
8439         * modules/rename (Depends-on): Add same-inode.
8440
8441         rename: fix Solaris 10 bug
8442         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
8443         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
8444         was the only bug.
8445
8446         rename: fix Solaris 9 bug
8447         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
8448         on non-directory.  Avoid calling exit.
8449         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
8450         strdup.
8451         * modules/rename-tests (Depends-on): Drop lstat.
8452         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
8453         (gl_PREREQ_RENAME): Delete unused macro.
8454
8455         rename-dest-slash: fix NetBSD bug
8456         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
8457         links.
8458         * modules/rename-dest-slash (Depends-on): Add same-inode.
8459
8460         rename-tests: new test, exposes several platform bugs
8461         * modules/rename-tests: New file.
8462         * tests/test-rename.h: Likewise.
8463         * tests/test-rename.c: Likewise.
8464         * doc/posix-functions/rename.texi (rename): Improve documentation,
8465         including bugs that will eventually be fixed in gnulib.
8466
8467 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
8468
8469         * lib/uname.c: Include <stdlib.h>
8470         (uname): Assume version info is available.
8471
8472 2009-10-02  Jim Meyering  <meyering@redhat.com>
8473
8474         gnu-web-doc-update: correct --help output
8475         * build-aux/gnu-web-doc-update: Make --help output relevant.
8476
8477         gnu-web-doc-update: add standard options
8478         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
8479
8480         gnu-web-doc-update: New module.
8481         Use this script to automatically update the on-line web documentation
8482         for your GNU project at http://www.gnu.org/software/$pkg/manual/
8483         * modules/gnu-web-doc-update: New file, from coreutils.
8484         * build-aux/gnu-web-doc-update: New script.
8485
8486 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
8487
8488         link: LoadLibrary is not needed.
8489         * lib/link.c: Use GetModuleHandle.
8490
8491 2009-10-01  Eric Blake  <ebb9@byu.net>
8492
8493         getopt: bump serial number
8494         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
8495         change.
8496
8497         tests: tighten link, rmdir, and remove tests
8498         * tests/test-link.h (includes): No need to use <config.h> here.
8499         Clean up if directory hard link was created, otherwise test for
8500         trailing '.'.
8501         * tests/test-linkat.c (main): Simplify.
8502         * tests/test-remove.c (main): Enhance test for trailing '.'.
8503         * tests/test-rmdir.h (test_rmdir_func): Likewise.
8504
8505 2009-10-01  Jim Meyering  <meyering@redhat.com>
8506
8507         maint.mk: requiring "make major" was annoying, for a "minor" release.
8508         What is intended is "stable", to contrast with alpha and beta,
8509         so require "make stable", not "make major".
8510         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
8511         (get_tool_versions): Likewise.
8512         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
8513
8514 2009-09-30  Ben Pfaff  <blp@gnu.org>
8515
8516         Fix broken build of replacement for Windows tmpfile().
8517         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
8518         flags argument added along with the 'mkostemp' module.
8519
8520 2009-09-28  Bruno Haible  <bruno@clisp.org>
8521
8522         Avoid identifier clash with POSIX function 'remove' defined as a macro.
8523         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
8524         to 'remove_elt'.
8525         (gl_list_remove): Update.
8526         * lib/gl_list.c (gl_list_remove): Update.
8527         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
8528         to 'remove_elt'.
8529         (gl_oset_remove): Update.
8530         * lib/gl_list.c (gl_oset_remove): Update.
8531         Reported by Eric Blake.
8532
8533 2009-09-28  Eric Blake  <ebb9@byu.net>
8534
8535         doc: mention yet more cygwin 1.7 status
8536         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
8537         cygwin.
8538         * doc/glibc-functions/execvpe.texi (execvpe): New file.
8539         * doc/gnulib.texi (Glibc unistd.h): Mention it.
8540
8541         argp: fix test failure
8542         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
8543         that are not upper-case.  Pass correct range to tolower.
8544
8545 2009-09-27  Jim Meyering  <meyering@redhat.com>
8546
8547         test-yesno: work around sparc-dash here-document infelicity
8548         Without this change, the literal \177 byte in a here document
8549         would make dash 0.5.5.1-3 access uninitialized memory.
8550         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
8551         Instead, use a marker, "@", and filter through tr to create the desired
8552         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
8553
8554 2009-09-27  Bruno Haible  <bruno@clisp.org>
8555
8556         Disable untested support for new flavours of ACLs on AIX.
8557         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
8558         progress.
8559         * lib/set-mode-acl.c (qset_acl): Likewise.
8560
8561 2008-12-07  Bruno Haible  <bruno@clisp.org>
8562
8563         Add support for new flavours of ACLs on AIX. (Untested.)
8564         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
8565         (file_has_acl): Add support for newer AIX.
8566         * lib/set-mode-acl.c (qset_acl): Likewise.
8567         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
8568         Rainer Tammer <tammer@tammer.net>.
8569
8570 2009-09-26  Eric Blake  <ebb9@byu.net>
8571
8572         argp: fix compilation of getopt
8573         * lib/getopt.in.h (includes): Use different guard than glibc.
8574         Reported by Sergey Poznyakoff.
8575
8576         doc: mention more cygwin 1.7 status
8577         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
8578         bug.
8579         * doc/posix-functions/execl.texi (execl): Likewise.
8580         * doc/posix-functions/execle.texi (execle): Likewise.
8581         * doc/posix-functions/execlp.texi (execlp): Likewise.
8582         * doc/posix-functions/execv.texi (execv): Likewise.
8583         * doc/posix-functions/execve.texi (execve): Likewise.
8584         * doc/posix-functions/execvp.texi (execvp): Likewise.
8585         * doc/glibc-functions/canonicalize_file_name.texi
8586         (canonicalize_file_name): Cygwin 1.7 now provides this.
8587         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
8588         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
8589         on AT_SYMLINK_NOFOLLOW.
8590
8591 2009-09-24  Eric Blake  <ebb9@byu.net>
8592
8593         test-linkat: make test more robust
8594         * tests/test-linkat.c (main): Avoid collision with EEXIST.
8595
8596         getopt: fix inclusion guards for cygwin
8597         * modules/getopt-posix (Depends-on): Add include-next.
8598         (Makefile.am): Substitute more items in replacement header.
8599         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
8600         <getopt.h>.
8601         * lib/getopt.in.h (includes): Use split inclusion guard, and
8602         prefer <getopt.h> over include <unistd.h> when one is present.
8603         (option): Also override name of 'struct option'.
8604
8605         same-inode: revert prior change; it is not yet ready
8606         * NEWS: Undo mention of this change.
8607         * lib/same-inode.h (same-inode.h): Undo tri-state change.
8608         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
8609         * lib/cycle-check.c (cycle_check): Likewise.
8610         * lib/same.c (same_name): Likewise.
8611         * lib/at-func2.c (at_func2): Likewise.
8612
8613 2009-09-23  Eric Blake  <ebb9@byu.net>
8614
8615         linkat: new module
8616         * modules/linkat: New file.
8617         * lib/at-func2.c (at_func2): Likewise.
8618         * lib/linkat.c (linkat): Likewise.
8619         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
8620         * lib/openat-priv.h (at_func2): Add declaration.
8621         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
8622         * modules/unistd (Makefile.am): Substitute them.
8623         * lib/unistd.in.h (linkat): Declare it.
8624         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8625         * doc/posix-functions/linkat.texi (linkat): Likewise.
8626         * doc/posix-functions/link.texi (link): Tweak wording.
8627         * tests/test-link.c (main): Move guts...
8628         * tests/test-link.h (test_link): ...into new file.
8629         * modules/linkat-tests: New test.
8630         * tests/test-linkat.c: Likewise.
8631         * modules/link-tests (Files): Ship new file.
8632         (Depends-on): Add stdbool.
8633
8634         dirname: add library-safe mdir_name
8635         * lib/dirname.h (mdir_name): New prototype.
8636         * lib/dirname.c (dir_name): Move guts...
8637         (mdir_name): ...to new function that avoids xalloc_die.
8638
8639         fchdir: another mingw fix
8640         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
8641         * lib/fchdir.c (get_name): New helper method; skips canonicalize
8642         on mingw (where it has not yet been ported), and make it optional
8643         elsewhere.
8644         (_gl_register_fd): Use it.
8645
8646         same-inode: make SAME_INODE tri-state, to port to mingw
8647         * NEWS: Mention this change.
8648         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
8649         st_ino always being 0.
8650         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
8651         * lib/cycle-check.c (cycle_check): Likewise.
8652         * lib/same.c (same_name): Likewise.
8653
8654         lstat: avoid mingw compilation error
8655         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
8656         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
8657         lstat ourselves.
8658         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
8659         was adequate.
8660         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
8661         the checks for lstat.
8662         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
8663
8664         link: fix test failure on Solaris 9
8665         * lib/link.c (rpl_link): Don't assume link will catch bogus
8666         trailing slash on source.
8667
8668         test-symlinkat: enhance test
8669         * tests/test-readlink.c (main): Move guts...
8670         * tests/test-readlink.h (test_readlink): ...into new file.
8671         * tests/test-symlink.c (main): Move guts...
8672         * tests/test-symlink.h (test_symlink): ...into new file.
8673         * tests/test-symlinkat.c (main): Use new files for further
8674         coverage.
8675         (do_symlink, do_readlink): New helper functions.
8676         * modules/symlink-tests (Files): Ship new file.
8677         (Depends-on): Add stdbool.
8678         * modules/readlink-tests (Files): Ship new file.
8679         (Depends-on): Add stdbool.
8680         * modules/symlinkat-tests (Files): Use new files.
8681
8682 2009-09-23  Eric Blake  <ebb9@byu.net>
8683
8684         readlink: document portability issue with symlink length
8685         * doc/posix-functions/lstat.texi (lstat): Mention that some file
8686         systems have bogus st_size on symlinks, and mention the
8687         areadlink-with-size module.
8688         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
8689         * doc/posix-functions/readlink.texi (readlink): Mention the
8690         areadlink module, and ERANGE failure.
8691         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
8692         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
8693
8694         readlink: fix Solaris 9 bug with trailing slash
8695         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
8696         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
8697         * doc/posix-functions/readlink.texi (readlink): Document this.
8698         * modules/readlink-tests: New test.
8699         * tests/test-readlink.c: Likewise.
8700
8701         readlink: fix cygwin 1.5.x bug with return type
8702         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
8703         * lib/unistd.in.h (readlink): Use ssize_t.
8704         * lib/readlink.c (readlink): Likewise.
8705         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
8706         * modules/unistd (Makefile.am): Substitute it.
8707         * lib/unistd.in.h (readlink): Declare replacement.
8708         * doc/posix-functions/readlink.texi (readlink): Document this.
8709
8710         symlink: use throughout gnulib
8711         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
8712         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
8713         symlink is not used.
8714         * modules/symlinkat (Depends-on): Add symlink.
8715         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
8716         * modules/canonicalize-tests (Depends-on): Likewise.
8717         * modules/lstat-tests (Depends-on): Likewise.
8718         * modules/openat-tests (Depends-on): Likewise.
8719         * modules/remove-tests (Depends-on): Likewise.
8720         * modules/rmdir-tests (Depends-on): Likewise.
8721         * modules/unlink-tests (Depends-on): Likewise.
8722         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
8723         * tests/test-canonicalize.c (symlink): Likewise.
8724         * tests/test-fstatat.c (symlink): Likewise.
8725         * tests/test-lstat.c (symlink): Likewise.
8726         * tests/test-remove.c (symlink): Likewise.
8727         * tests/test-rmdir.c (symlink): Likewise.
8728         * tests/test-unlink.c (symlink): Likewise.
8729         * tests/test-unlinkat.c (symlink): Likewise.
8730
8731         symlink: new module, for Solaris 9 bug
8732         * modules/symlink: New file.
8733         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
8734         * lib/symlink.c: Likewise.
8735         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
8736         * modules/unistd (Makefile.am): Substitute them.
8737         * lib/unistd.in.h (symlink): Declare replacement.
8738         * MODULES.html.sh (File system functions): Mention it.
8739         * doc/posix-functions/symlink.texi (symlink): Likewise.
8740         * modules/symlink-tests: New test.
8741         * tests/test-symlink.c: Likewise.
8742
8743 2009-09-23  Bruno Haible  <bruno@clisp.org>
8744
8745         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
8746         when needed.
8747         Test case: gnulib-tool --import --with-tests atexit inttypes.
8748         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
8749
8750 2009-09-23  Bruno Haible  <bruno@clisp.org>
8751
8752         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
8753         subcommand, not in a subshell.
8754
8755 2009-09-22  Eric Blake  <ebb9@byu.net>
8756
8757         unistd: sort replacement declarations
8758         * lib/unistd.in.h: Sort declarations.
8759
8760         open, openat: minor optimization
8761         * lib/open.c (open): If open succeeded, len is non-zero.
8762         * lib/openat.c (rpl_openat): Likewise.
8763
8764         link-follow: ensure correct result
8765         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
8766         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
8767         distinguish between possible failures.
8768
8769 2009-09-21  Eric Blake  <ebb9@byu.net>
8770
8771         fts: avoid compiler warning
8772         * lib/fts.c (dirent_inode_sort_may_be_useful)
8773         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
8774
8775 2009-09-19  Bruno Haible  <bruno@clisp.org>
8776
8777         * lib/progreloc.c (canonicalize_file_name): New declaration.
8778
8779 2009-09-19  Eric Blake  <ebb9@byu.net>
8780
8781         link: fix quoting
8782         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
8783
8784         openat: fix openat bugs on Solaris 9
8785         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
8786         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
8787         * modules/openat (Depends-on): Add open.
8788         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
8789         * modules/fcntl-h (Makefile.am): Substitute it.
8790         * lib/fcntl.in.h (openat): Declare replacement.
8791         * doc/posix-functions/openat.texi (openat): Document this.
8792
8793         openat: move fstatat and unlinkat into correct files
8794         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
8795         compiled.
8796         * lib/openat.c (fstatat, unlinkat): Move...
8797         * lib/fstatat.c (fstatat): ...into correct files.
8798         * lib/unlinkat.c (unlinkat): Likewise.
8799
8800         openat: fix unlinkat bugs on Solaris 9
8801         * lib/unlinkat.c (unlinkat): New file.
8802         * modules/openat (Depends-on): Add unlink.
8803         (Files): Distribute it.
8804         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
8805         trailing slash behavior is broken.
8806         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
8807         * modules/unistd (Makefile.am): Substitute it.
8808         * lib/unistd.in.h (unlinkat): Declare replacement.
8809         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
8810
8811         openat: fix fstatat bugs on Solaris 9
8812         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
8813         stat.
8814         * doc/posix-functions/fstatat.texi (fstatat): Document this.
8815
8816         test-unlinkat: enhance test, to expose Solaris 9 bug
8817         * tests/test-unlink.c (main): Factor guts...
8818         * tests/test-unlink.h (test_rmdir_func): ...into new file.
8819         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
8820         * tests/test-rmdir.c (main): Adjust caller.
8821         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
8822         (unlinker): New helper function.
8823         (rmdirat): Enhance check.
8824         * modules/rmdir-tests (Depends-on): Add stdbool.
8825         * modules/unlink-tests (Depends-on): Likewise.
8826         (Files): Add test-unlink.h.
8827         * modules/openat-tests (Files): Likewise.
8828         (Depends-on): Add unlinkdir.
8829
8830         test-fstatat: new test, to expose Solaris 9 bugs
8831         * tests/test-stat.c (main): Factor guts...
8832         * tests/test-stat.h (test_stat_func): ...into new file.
8833         * tests/test-lstat.c (main): Factor guts...
8834         * tests/test-lstat.h (test_lstat_func): ...into new file.
8835         * tests/test-fstatat.c: New file.
8836         * modules/stat-tests (Files): Add test-stat.h.
8837         * modules/lstat-tests (Files): Add test-lstat.h.
8838         (Depends-on): Add stdbool.
8839         * modules/openat-tests (Depends-on): Add pathmax.
8840         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
8841         (Makefile.am): Run new test.
8842
8843         remove: new module, for mingw and Solaris 9 bugs
8844         * modules/remove: New file.
8845         * lib/remove.c: Likewise.
8846         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
8847         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
8848         * modules/stdio (Makefile.am): Use them.
8849         * lib/stdio.in.h (remove): Declare replacement.
8850         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8851         * doc/posix-functions/remove.texi (remove): Likewise.
8852         * modules/remove-tests: New test.
8853         * tests/test-remove.c: Likewise.
8854
8855         unlink: new module, for Solaris 9 bug
8856         * modules/unlink: New file.
8857         * lib/unlink.c: Likewise.
8858         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
8859         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
8860         * modules/unistd (Makefile.am): Use them.
8861         * lib/unistd.in.h (stat): Declare replacement.
8862         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8863         * doc/posix-functions/unlink.texi (unlink): Likewise.
8864         * modules/unlink-tests: New test.
8865         * tests/test-unlink.c: Likewise.
8866
8867         lstat: fix Solaris 9 bug
8868         * lib/lstat.c (lstat): Also check for trailing slash on
8869         non-symlink, non-directories.  Use stat module to simplify logic.
8870         * doc/posix-functions/lstat.texi (lstat): Document it.
8871         * modules/lstat-tests (Depends-on): Add errno, same-inode.
8872         (configure.ac): Check for symlink.
8873         * tests/test-lstat.c (main): Add more tests.
8874
8875         stat: add as dependency to other modules
8876         * modules/chown (Depends-on): Add stat.
8877         * modules/euidaccess (Depends-on): Likewise.
8878         * modules/fchdir (Depends-on): Likewise.
8879         * modules/isdir (Depends-on): Likewise.
8880         * modules/link (Depends-on): Likewise.
8881         * modules/lstat (Depends-on): Likewise.
8882         * modules/mkdir-p (Depends-on): Likewise.
8883         * modules/modechange (Depends-on): Likewise.
8884         * modules/open (Depends-on): Likewise.
8885         * modules/readlink (Depends-on): Likewise.
8886         * modules/same (Depends-on): Likewise.
8887
8888         stat: fix Solaris 9 bug
8889         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
8890         slash.
8891         * lib/stat.c (rpl_stat): Work around it.
8892         * doc/posix-functions/stat.texi (stat): Update documentation.
8893
8894         stat: new module, for mingw bug
8895         * modules/stat: New file.
8896         * lib/stat.c: Likewise.
8897         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
8898         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
8899         * modules/sys_stat (Makefile.am): Use them.
8900         * lib/sys_stat.in.h (stat): Declare replacement.
8901         * lib/openat.c (fstatat): Deal with lstat and stat being function
8902         macros.
8903         * modules/openat (Depends-on): Add inline.
8904         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8905         * doc/posix-functions/stat.texi (stat): Likewise.
8906         * modules/stat-tests: New test.
8907         * tests/test-stat.c: Likewise.
8908
8909 2009-09-19  Jim Meyering  <meyering@redhat.com>
8910
8911         syntax-check: detect unnecessary inclusion of canonicalize.h
8912         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
8913
8914 2009-09-19  Eric Blake  <ebb9@byu.net>
8915
8916         canonicalize-lgpl: adjust clients to use correct header
8917         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
8918         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
8919         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
8920         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
8921         * lib/progreloc.c (includes): Likewise.
8922
8923 2009-09-19  Jim Meyering  <meyering@redhat.com>
8924
8925         test-posixtm.c: correct a comment
8926         * tests/test-posixtm.c: Correct first-line comment.
8927         Spotted by Eric Blake.
8928
8929 2009-09-16  Jim Meyering  <meyering@redhat.com>
8930
8931         posixtm-tests: make T const-correct; add a test case
8932         * tests/test-posixtm.c (T): Declare const.
8933         Add a test for -(2^31+1).
8934         Remove useless can-succeed-only-in-2002 test.
8935
8936         posixtm-tests: adjust the sole failing test
8937         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
8938         expected output matches what mktime now produces.  Cross-checked via
8939         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
8940
8941         posixtm: move #ifdef'd tests into a new module
8942         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
8943         * tests/test-posixtm.c: ... this new file.
8944         * modules/posixtm-tests: New module.
8945
8946 2009-09-19  Eric Blake  <ebb9@byu.net>
8947
8948         openat: simplify use of at-func.c
8949         * lib/at-func.c (includes): Include prerequisites here, to
8950         simplify requirements on client files.
8951         * lib/openat-priv.h: Add double-inclusion guard.
8952         * lib/faccessat.c (includes): Simplify.
8953         * lib/fchmodat.c (includes): Likewise.
8954         * lib/fchownat.c (includes): Likewise.
8955         * lib/mkdirat.c (includes): Likewise.
8956         * lib/mkfifoat.c (includes): Likewise.
8957         * lib/symlinkat.c (includes): Likewise.
8958
8959         openat: allow return of fd 0
8960         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
8961         * modules/save-cwd (Depends-on): Replace fcntl-safer with
8962         unistd-safer.
8963         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
8964         <fcntl.h>; this module does not leak fds.
8965         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
8966         must be allowed to return 0, leaving openat_safer to add the
8967         safety.
8968         (openat_permissive): Avoid writing to just-opened fd 2 if
8969         restoring the current directory fails.
8970         * lib/openat-die.c (openat_restore_fail): Add comment.
8971         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
8972         (save_cwd): Guarantee safe fd, but without use of open_safer.
8973         * tests/test-openat.c: New test.
8974         * modules/openat-tests (Files, Makefile.am): Distribute and build
8975         new file.
8976
8977         relocatable-prog-wrapper: fix build
8978         * modules/relocatable-prog-wrapper (Files): Update name of
8979         canonicalize m4 file, broken on 2009-09-17.
8980         Reported by emad hajjar <aleppos@hotmail.com>.
8981
8982 2009-09-19  Bruno Haible  <bruno@clisp.org>
8983
8984         * lib/safe-alloc.h: Use the standard header with GPL copyright.
8985         * lib/safe-alloc.c: Likewise.
8986         Reported by Ian Beckwith <ianb@erislabs.net>.
8987
8988 2009-09-18  Bruno Haible  <bruno@clisp.org>
8989
8990         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
8991         Reported by <erobles@sensacd.com.mx>.
8992
8993 2009-09-17  Eric Blake  <ebb9@byu.net>
8994
8995         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
8996         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
8997         slashes when checking if last component is missing.
8998         * tests/test-canonicalize.c (main): Test this.
8999
9000         canonicalize, canonicalize-lgpl: honor // if distinct from /
9001         * modules/canonicalize (Files): Add double-slash-root.m4.
9002         * modules/canonicalize-lgpl (Files): Likewise.
9003         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
9004         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
9005         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
9006         fallback definition.
9007         (canonicalize_filename_mode): Use it to protect //.
9008         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
9009         (__realpath): Likewise.
9010         * tests/test-canonicalize.c (main): Test this.
9011         * tests/test-canonicalize-lgpl.c (main): Likewise.
9012         * modules/canonicalize-tests (Depends-on): Add same-inode.
9013         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
9014
9015         canonicalize-lgpl: fix glibc bug with trailing slash
9016         * m4/canonicalize-lgpl.m4: Move contents...
9017         * m4/canonicalize.m4: ...here.
9018         (gl_CANONICALIZE_LGPL): Factor realpath check...
9019         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
9020         glibc 2.3.5 bug, fixed 2005-04-27.
9021         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
9022         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
9023         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
9024         * modules/canonicalize-lgpl (Files): Manage file rename.
9025         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
9026         * modules/stdlib (Makefile.am): Substitute witness.
9027         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
9028         is needed.
9029         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
9030         replacement is required.
9031         * lib/canonicalize.c (canonicalize_file_name): Likewise.
9032         * doc/glibc-functions/canonicalize_file_name.texi
9033         (canonicalize_file_name): Document this.
9034         * doc/posix-functions/realpath.texi (realpath): Likewise.
9035
9036         canonicalize-lgpl: reject non-directory with trailing slash
9037         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
9038         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
9039         catches failures in glibc 2.3.5.
9040         * tests/test-canonicalize.c (main): Likewise.
9041
9042         canonicalize-lgpl: use native realpath if it works
9043         * lib/canonicalize-lgpl.c (realpath): Guard with
9044         FUNC_REALPATH_WORKS.
9045         * lib/stdlib.in.h (realpath): Make declaration optional based on
9046         HAVE_REALPATH.
9047         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
9048         native realpath works.
9049         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
9050         * modules/stdlib (Makefile.am): Substitute witness.
9051
9052         canonicalize, canonicalize-lgpl: use <stdlib.h>
9053         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
9054         (Include): Mention <stdlib.h>.
9055         (configure.ac): Mention functions we provide.
9056         * modules/canonicalize (configure.ac): Likewise.
9057         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
9058         realpath if canonicalize_file_name is missing.
9059         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
9060         * modules/stdlib (Makefile.am): Substitute witnesses.
9061         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
9062         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
9063         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
9064         * NEWS: Document this.
9065         * doc/glibc-functions/canonicalize_file_name.texi
9066         (canonicalize_file_name): Likewise.
9067         * doc/posix-functions/realpath.texi (realpath): Likewise.
9068         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
9069
9070         test-canonicalize: consolidate into single C program
9071         * tests/test-canonicalize.sh: Delete; move setup into...
9072         * tests/test-canonicalize.c (main): ...the program, making it
9073         easier to run in debugger.  Add some tests.
9074         * modules/canonicalize-tests (Files): Remove unused file.
9075         (Depends-on): Add progname.
9076         (configure.ac, Makefile.am): Simplify.
9077
9078         test-canonicalize-lgpl: consolidate into single C program
9079         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
9080         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
9081         easier to run in debugger.  Add some tests.
9082         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
9083         (configure.ac, Makefile.am): Simplify.
9084
9085         canonicalize: avoid resolvepath
9086         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
9087         unnecessary checks.
9088         * lib/canonicalize.c (includes): Simplify.
9089         (canonicalize_file_name): Drop resolvepath implementation.
9090         * modules/canonicalize (Depends-on): Drop filenamecat.
9091
9092         canonicalize: don't lose errno
9093         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
9094         over calls to free.
9095
9096         canonicalize: simplify errno handling
9097         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
9098         assignment.
9099
9100         canonicalize, canonicalize-lgpl: update module dependencies
9101         * modules/canonicalize (Depends-on): Add extensions, lstat,
9102         pathmax, stdlib.
9103         (Files): Drop pathmax.h.
9104         (configure.ac): Adjust macro name.
9105         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
9106         lstat, stdlib, sys_stat.
9107         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
9108         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
9109         extensions.
9110         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
9111         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
9112         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
9113         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
9114         declaration, if available.
9115         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
9116         we can rely on the readlink module.
9117         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
9118         (includes): Use <unistd.h> unconditionally.
9119
9120 2009-09-17  Eric Blake  <ebb9@byu.net>
9121
9122         maint: make Include sections of modules consistent
9123         * modules/alloca: Use only header name; no need to list #include.
9124         * modules/alloca-opt: Likewise.
9125         * modules/arpa_inet: Likewise.
9126         * modules/canon-host: Likewise.
9127         * modules/configmake: Likewise.
9128         * modules/dirent: Likewise.
9129         * modules/eealloc: Likewise.
9130         * modules/environ: Likewise.
9131         * modules/fchdir: Likewise.
9132         * modules/fcntl: Likewise.
9133         * modules/fcntl-h: Likewise.
9134         * modules/gethrxtime: Likewise.
9135         * modules/gettime: Likewise.
9136         * modules/ignore-value: Likewise.
9137         * modules/inet_ntop: Likewise.
9138         * modules/inet_pton: Likewise.
9139         * modules/inttypes: Likewise.
9140         * modules/isnand-nolibm: Likewise.
9141         * modules/isnanf-nolibm: Likewise.
9142         * modules/mbchar: Likewise.
9143         * modules/mbfile: Likewise.
9144         * modules/mbiter: Likewise.
9145         * modules/mbuiter: Likewise.
9146         * modules/netdb: Likewise.
9147         * modules/netinet_in: Likewise.
9148         * modules/nproc: Likewise.
9149         * modules/pagealign_alloc: Likewise.
9150         * modules/poll: Likewise.
9151         * modules/printf-frexp: Likewise.
9152         * modules/pthread: Likewise.
9153         * modules/putenv: Likewise.
9154         * modules/random_r: Likewise.
9155         * modules/relocatable-prog: Likewise.
9156         * modules/search: Likewise.
9157         * modules/select: Likewise.
9158         * modules/selinux-h: Likewise.
9159         * modules/settime: Likewise.
9160         * modules/signal: Likewise.
9161         * modules/size_max: Likewise.
9162         * modules/socklen: Likewise.
9163         * modules/ssize_t: Likewise.
9164         * modules/stdarg: Likewise.
9165         * modules/stdbool: Likewise.
9166         * modules/stddef: Likewise.
9167         * modules/stdint: Likewise.
9168         * modules/stdio: Likewise.
9169         * modules/stdlib: Likewise.
9170         * modules/string: Likewise.
9171         * modules/strings: Likewise.
9172         * modules/sys_file: Likewise.
9173         * modules/sys_ioctl: Likewise.
9174         * modules/sys_select: Likewise.
9175         * modules/sys_socket: Likewise.
9176         * modules/sys_stat: Likewise.
9177         * modules/sys_time: Likewise.
9178         * modules/sys_times: Likewise.
9179         * modules/sys_utsname: Likewise.
9180         * modules/sys_wait: Likewise.
9181         * modules/sysexits: Likewise.
9182         * modules/time: Likewise.
9183         * modules/times: Likewise.
9184         * modules/tmpfile: Likewise.
9185         * modules/trim: Likewise.
9186         * modules/unistd: Likewise.
9187         * modules/wchar: Likewise.
9188         * modules/wctype: Likewise.
9189
9190 2009-09-17  Bruno Haible  <bruno@clisp.org>
9191
9192         Make getdate.y compile on QNX and NetBSD 5 / i386.
9193         * m4/getdate.m4 (gl_GETDATE): Conditionally define
9194         TIME_T_FITS_IN_LONG_INT.
9195         * lib/getdate.y (long_time_t): New type.
9196         (relative_time): Change type of 'seconds' field to long_time_t.
9197         (get_date): Update types of local variables. Check against overflow
9198         during conversion from long_time_t to time_t.
9199         Reported by Matt Kraai <kraai@ftbfs.org>
9200         and Hasso Tepper <hasso@netbsd.org>.
9201
9202 2009-09-17  Bruno Haible  <bruno@clisp.org>
9203
9204         * modules/COPYING: Update copyright years.
9205         * modules/README: Likeiwse.
9206         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
9207         Reported by Ian Beckwith <ianb@erislabs.net>.
9208
9209 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
9210
9211         * users.txt: Update references for gnuit package.
9212
9213 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
9214
9215         * m4/getdelim.m4: Fix typo in copyright line.
9216
9217 2009-09-17  Bruno Haible  <bruno@clisp.org>
9218
9219         * lib/atoll.c: Use the standard header with GPL copyright.
9220         * lib/argz.in.h: Likewise.
9221         * lib/glob.c: Likewise.
9222         * lib/glob-libc.h: Likewise.
9223         * lib/random_r.c: Likewise.
9224         * lib/siglist.h: Likewise.
9225         * lib/strsignal.c: Likewise.
9226         Reported by Ian Beckwith <ianb@erislabs.net>.
9227
9228 2009-09-17  Eric Blake  <ebb9@byu.net>
9229
9230         rmdir: ensure correct dependency order
9231         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
9232
9233 2009-09-17  Bruno Haible  <bruno@clisp.org>
9234
9235         Disable assertion that fails on NetBSD 5 / i386.
9236         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
9237         Reported by Sam Steingold <sds@gnu.org>
9238         and Hasso Tepper <hasso@netbsd.org>.
9239
9240 2009-09-16  Eric Blake  <ebb9@byu.net>
9241
9242         unlinkdir: port to mingw
9243         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
9244         on which no one can unlink a directory.
9245
9246         stdlib: sort witness names
9247         * modules/stdlib (Makefile.am): Sort replacements.
9248         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
9249         * lib/stdlib.in.h: Likewise.
9250
9251         parse-duration-tests: avoid link failure
9252         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
9253         LIBINTL.
9254         Reported by Tom G. Christensen.
9255
9256         openat-tests: ensure unlinkat behaves like rmdir
9257         * tests/test-rmdir.c (main): Factor guts...
9258         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
9259         * modules/rmdir-tests (Files): Ship new file.
9260         * modules/openat-tests: New test.
9261         * tests/test-unlinkat.c: Likewise.
9262
9263         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
9264         * modules/rmdir-errno (Status, Notice): Now obsolete.
9265
9266         rmdir: work around cygwin 1.5.x and mingw bugs
9267         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
9268         * lib/rmdir.c (rmdir): Work around it.
9269         * modules/rmdir (Status, Notice): No longer obsolete.
9270         (Files): Add dos.m4.
9271         (Depends-on): Add unistd.
9272         (configure.ac): Set witnesses.
9273         (License): Relax to LGPLv2+.
9274         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
9275         * modules/unistd (Makefile.am): Substitute witnesses.
9276         * lib/unistd.in.h (rmdir): Declare replacement.
9277         * doc/posix-functions/rmdir.texi (rmdir): Document this.
9278         * modules/rmdir-tests: New tests.
9279         * tests/test-rmdir.c: Likewise.
9280
9281 2009-09-15  Eric Blake  <ebb9@byu.net>
9282
9283         fchdir: improve use of replacement functions
9284         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
9285         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
9286         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
9287         REPLACE_CLOSEDIR.
9288         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
9289         * modules/sys_stat (Makefile.am): Substitute correct witness.
9290         * modules/dirent (Makefile.am): Likewise.
9291         * modules/unistd (Makefile.am): Likewise.
9292         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
9293         * lib/unistd.in.h (dup): Likewise.
9294         * lib/sys_stat.in.h (fstat): Likewise.
9295
9296         maint: ignore gnulib-tool temp files
9297         * .gitignore: Ignore files created during gnulib-tool --test.
9298
9299 2009-09-13  Jim Meyering  <meyering@redhat.com>
9300
9301         posixtm: don't reject a time that specify "60" as the number of seconds
9302         * lib/posixtm.c (posixtime): The code to reject invalid dates
9303         would also reject a time specified with the .60 suffix.
9304         But POSIX allows that, in order to accommodate leap seconds.
9305         So don't reject it.
9306         (main): Adjust tests accordingly.
9307         * modules/posixtm (Depends-on): Add stpcpy.
9308
9309 2009-09-11  Jim Meyering  <meyering@redhat.com>
9310
9311         announce-gen: include [$release_type] in emitted Subject:
9312         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
9313         e.g., [stable] in the emitted Subject: line.
9314
9315 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9316
9317         Remove obsolete macros from several modules.
9318         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
9319         obsolete Autoconf macros with their modern counterparts.
9320         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
9321         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
9322         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
9323         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
9324         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
9325         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
9326         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
9327         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
9328         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
9329         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
9330         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
9331         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
9332         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
9333         * m4/sockets.m4 (gl_SOCKETS): Likewise.
9334         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
9335         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
9336         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
9337         * m4/time_r.m4 (gl_TIME_R): Likewise.
9338         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
9339         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
9340         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
9341
9342         Fix copyright header in build-aux scripts.
9343         * build-aux/git-version-gen: Fix copyright header to match GPLv3
9344         recommendation.
9345         * build-aux/ncftpput-ftp: Likewise.
9346         * build-aux/update-copyright: Likewise.
9347
9348 2009-09-09  Eric Blake  <ebb9@byu.net>
9349
9350         test-link: allow Linux choice of errno
9351         * tests/test-link.c (main): Relax test for alternate error.
9352
9353         strndup: fix improper m4 caching
9354         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
9355         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
9356         (gl_PREREQ_STRNDUP): Delete.
9357         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
9358         * modules/string (Makefile.am): Substitute it.
9359         * lib/string.in.h (strndup): Modernize prototype.
9360
9361         getcwd: port to mingw
9362         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
9363         different from the POSIX assumptions made throughout the getcwd
9364         module; fortunately, the mingw getcwd does not need replacement.
9365         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
9366         * modules/getcwd-tests: New test.
9367         * tests/test-getcwd.c: Likewise.
9368
9369         link: fix platform bugs
9370         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
9371         * lib/link.c (link): Work around them.  Fix related mingw bug.
9372         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
9373         * modules/unistd (Makefile.am): Substitute it.
9374         * lib/unistd.in.h (link): Declare replacement.
9375         * doc/posix-functions/link.texi (link): Document this.
9376         * modules/link (Depends-on): Add strdup-posix, sys_stat.
9377
9378         test-link: consolidate into single C program, test more cases
9379         * tests/test-link.sh: Delete.
9380         * tests/test-link.c: Test more error conditions.  Exposes bugs on
9381         at least Cygwin and Solaris.
9382         * modules/link-tests (Files): Remove unused file.
9383         (Depends-on): Add errno, sys_stat.
9384         (Makefile.am): Simplify.
9385
9386 2009-09-08  Bruno Haible  <bruno@clisp.org>
9387
9388         Work around towlower, towupper bug on mingw.
9389         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
9390         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
9391         * doc/posix-functions/towlower.texi: Mention the mingw bug.
9392         * doc/posix-functions/towupper.texi: Likewise.
9393         Reported by Eric Blake.
9394
9395 2009-09-08  Jim Meyering  <meyering@redhat.com>
9396
9397         build: don't try to run autoheader if we don't use it
9398         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
9399         is not used in configure.ac.
9400
9401 2009-09-08  Eric Blake  <ebb9@byu.net>
9402
9403         euidaccess: fix compilation error
9404         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
9405
9406         rawmemchr: relax license
9407         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
9408         okay.
9409         Reported by Jim Meyering.
9410
9411         mkfifoat: new module
9412         * modules/mkfifoat: New file.
9413         * lib/mkfifoat.c: Likewise.
9414         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
9415         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
9416         * modules/sys_stat (Makefile.am): Use them.
9417         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
9418         * MODULES.html.sh (File system functions): Mention module.
9419         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
9420         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
9421         * modules/mkfifoat-tests: New test.
9422         * tests/test-mkfifoat.c: Likewise.
9423
9424         strchrnul: relax license
9425         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
9426         okay.
9427         Reported by Jim Meyering.
9428
9429 2009-09-08  Eric Blake  <ebb9@byu.net>
9430
9431         fstatat: fix compilation on Solaris
9432         * lib/fstatat.c (includes): Add fcntl.h.
9433         Reported by Pádraig Brady.
9434
9435 2009-09-07  Eric Blake  <ebb9@byu.net>
9436
9437         rename: modernize replacement
9438         * modules/rename (Depends-on): Add stdio.
9439         (configure.ac): Declare witness.
9440         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
9441         stdio take care of replacement.
9442         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
9443         * modules/stdio (Makefile.am): Substitute them.
9444         * lib/stdio.in.h (rename): Declare replacement.
9445         * lib/rename.c (includes): Allow cross-compilation to non-windows
9446         machines.
9447         * doc/posix-functions/rename.texi (rename): Improve
9448         documentation.
9449
9450         stdio: sort witness names
9451         * modules/stdio (Makefile.am): Sort replacements.
9452         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
9453         * lib/stdio.in.h: Likewise.
9454
9455         getcwd: minor cleanups
9456         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
9457         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
9458
9459         openat: provide more convenience names
9460         * modules/faccessat (configure.ac): Add C witness.
9461         * lib/unistd.in.h (readlinkat): Fix typo.
9462         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
9463         convenience wrappers.
9464         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
9465         wrappers in syntax checks.
9466
9467 2009-09-06  Eric Blake  <ebb9@byu.net>
9468
9469         doc: fix comments in recent patches
9470         * lib/faccessat.c: Mention correct function.
9471         * lib/fchmodat.c: Likewise.
9472         * lib/fchownat.c: Likewise.
9473         * lib/symlinkat.c: Likewise.
9474         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
9475         constants.
9476
9477         faccessat, symlinkat: continue cleanup of previous patch
9478         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
9479         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
9480         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
9481         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
9482         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
9483         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
9484         set.
9485
9486 2009-09-06  Bruno Haible  <bruno@clisp.org>
9487
9488         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
9489         (fstatat): Declare if GNULIB_FSTATAT is set.
9490         (mkdirat): Declare if GNULIB_MKDIRAT is set.
9491         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
9492         (unlinkat): Declare if GNULIB_UNLINKAT is set.
9493         * modules/fcntl-h (Files): Remove m4/openat.m4.
9494         * modules/sys_stat (Files): Remove m4/openat.m4.
9495         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
9496         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
9497         * modules/unistd (Files): Remove m4/openat.m4.
9498         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
9499         GNULIB_OPENAT.
9500         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
9501         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
9502         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
9503         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
9504         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
9505         gl_OPENAT_DEFAULTS.
9506         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
9507         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
9508         Don't require gl_OPENAT_DEFAULTS.
9509         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
9510         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
9511         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
9512         (gl_OPENAT_DEFAULTS): Remove macro.
9513
9514 2009-09-06  Bruno Haible  <bruno@clisp.org>
9515
9516         * modules/openat (configure.ac): Remove unneeded witness.
9517
9518 2009-09-06  Bruno Haible  <bruno@clisp.org>
9519
9520         Set errno to ENOSYS when a function is entirely unsupported.
9521         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
9522         EOPNOTSUPP.
9523         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
9524         * modules/chown (Depends-on): Remove errno.
9525
9526 2009-09-06  Bruno Haible  <bruno@clisp.org>
9527
9528         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
9529
9530 2009-09-06  Bruno Haible  <bruno@clisp.org>
9531
9532         * lib/sys_stat.in.h: Fix preprocessor command indentation.
9533
9534 2009-09-06  Ben Pfaff  <blp@gnu.org>
9535             Bruno Haible  <bruno@clisp.org>
9536
9537         Work around a glibc bug in strtok_r.
9538         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
9539         Undefine if UNDEFINE_STRTOK_R is set.
9540         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
9541         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
9542         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
9543         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
9544         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
9545         UNDEFINE_STRTOK_R.
9546         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
9547
9548 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
9549
9550         exclude: minor fix
9551         * lib/exclude.c: Include wctype.h
9552
9553 2009-09-06  Akim Demaille  <demaille@gostai.com>
9554
9555         bootstrap: improve error message
9556         * build-aux/bootstrap (find_tool): Upon failure, report the list
9557         of candidates.
9558         Honor the initial value of the envvar.
9559
9560 2009-09-05  Eric Blake  <ebb9@byu.net>
9561
9562         symlinkat: new module
9563         * modules/symlinkat: New file.
9564         * lib/symlinkat.c: Likewise.
9565         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
9566         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
9567         * modules/unistd (Makefile.am): Use them.
9568         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
9569         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
9570         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
9571         * MODULES.html.sh (File system functions): Mention module.
9572         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
9573         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
9574         * modules/symlinkat-tests: New test.
9575         * tests/test-symlinkat.c: Likewise.
9576
9577         test-openat-safer: add more checks
9578         * tests/test-openat-safer.c (main): Check more code paths.
9579
9580 2009-09-05  Jim Meyering  <meyering@redhat.com>
9581
9582         syntax-check: detect unnecessary inclusion of openat.h
9583         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
9584
9585 2009-09-05  Bruno Haible  <bruno@clisp.org>
9586
9587         Support towlower, towupper.
9588         * doc/posix-functions/towlower.texi: Mention module wctype.
9589         * doc/posix-functions/towupper.texi: Likewise.
9590         * lib/wctype.in.h (towlower, towupper): New functions.
9591         * tests/test-wctype.c: Include stdio.h, stdlib.h.
9592         (ASSERT): New macro.
9593         (e): New variable.
9594         (main): Test also towlower, towupper. Test WEOF argument.
9595         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
9596
9597 2009-09-05  Bruno Haible  <bruno@clisp.org>
9598
9599         Fix conversion behaviour when the input is invalid.
9600         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
9601         mark occurring in first pass of indirect conversion.
9602         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
9603         input.
9604         Found by clang's static analyzer.
9605
9606 2009-09-05  Bruno Haible  <bruno@clisp.org>
9607
9608         * tests/test-striconveh.c (main): Test indirect conversion on platforms
9609         where direct conversion is possible.
9610
9611 2009-09-04  Eric Blake  <ebb9@byu.net>
9612
9613         openat: fail with ENOENT on empty name
9614         * lib/openat-proc.c (openat_proc_name): Special-case the empty
9615         buffer.
9616
9617         link-follow: fix logic bug in prior patch
9618         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
9619         reversed sense of yes and no in prior patch.  Avoid confusing
9620         compilation failure with desired semantics.
9621
9622         link-follow: accomodate mingw and cross-compilation
9623         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
9624         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
9625         cross-compilation results to -1, to make linkat easier to
9626         implement when cross-compiling.  Trivially support mingw.
9627         * modules/link-follow (configure.ac): Call new name.
9628         * NEWS: Mention this.
9629
9630 2009-09-03  Eric Blake  <ebb9@byu.net>
9631
9632         faccessat: compile replacement
9633         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
9634         needed.
9635
9636         fts: fix compilation error
9637         * lib/fts.c (includes): Re-add "openat.h", for
9638         openat_needs_fchdir.
9639
9640         faccessat: new module
9641         * modules/faccessat: New file.
9642         * lib/faccessat.c: Likewise.
9643         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
9644         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
9645         * modules/unistd (Makefile.am): Use it.
9646         * lib/unistd.in.h (faccessat): Declare it.
9647         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
9648         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
9649         * MODULES.html.sh (File system functions): Mention it.
9650         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
9651         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
9652
9653         euidaccess: prefer POSIX over non-standard implementation
9654         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
9655         * lib/euidaccess.c (euidaccess): Use it if available.
9656
9657         openat: make template easier to use
9658         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
9659         AT_FUNC_F2 to be undefined.
9660         (VALIDATE_FLAG): New macro; use it to reject bad flags.
9661         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
9662         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
9663         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
9664         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
9665         Likewise.
9666         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
9667         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
9668         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
9669         Likewise.
9670
9671         openat: declare in POSIX headers
9672         * NEWS: Mention this.
9673         * modules/openat (configure.ac): Declare witnesses.
9674         (Depends-on): Add fcntl-h, sys_stat, unistd.
9675         (Include): Mention correct headers.
9676         * modules/fcntl-h (Depends-on): Add link-warning.
9677         (Files): Add openat.m4.
9678         (Makefile.am): Substitute witnesses.
9679         * modules/sys_stat (Files, Makefile.am): Likewise.
9680         * modules/unistd (Files, Makefile.am): Likewise.
9681         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
9682         (gl_OPENAT_DEFAULTS): New macro.
9683         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
9684         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
9685         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
9686         (SYS_STAT_H): Remove unused variable.
9687         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
9688         * lib/fcntl--.h (includes): Remove unneeded header.
9689         * lib/openat-safer.c (includes): Likewise.
9690         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
9691         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
9692         appropriate headers.
9693         (__OPENAT_PREFIX): Delete.
9694         * lib/fcntl.in.h (openat): Provide declaration.
9695         (AT_FDCWD): Fix Solaris bug.
9696         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
9697         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
9698         * lib/fchmodat.c (includes):  Adjust to find declaration.
9699         * lib/fchownat.c (includes): Likewise.
9700         * lib/mkdirat.c (includes): Likewise.
9701         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
9702         still visible.
9703
9704 2009-09-02  Eric Blake  <ebb9@byu.net>
9705
9706         errno: use consistently
9707         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
9708         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
9709         * lib/canonicalize.c (ELOOP): Likewise.
9710         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
9711         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
9712         * lib/lchown.c (EOPNOTSUPP): Likewise.
9713         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
9714         * lib/savewd.c (ESTALE): Likewise.
9715         * lib/settime.c (ENOSYS): Likewise.
9716         * lib/utimens.c (ENOSYS): Likewise.
9717         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
9718         * lib/chdir-safer.c (ELOOP): Likewise.
9719         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
9720         * modules/c-stack (Depends-on): Add errno.
9721         * modules/canonicalize (Depends-on): Likewise.
9722         * modules/chdir-safer (Depends-on): Likewise.
9723         * modules/fdopendir (Depends-on): Likewise.
9724         * modules/inet_ntop (Depends-on): Likewise.
9725         * modules/inet_pton (Depends-on): Likewise.
9726         * modules/lchown (Depends-on): Likewise.
9727         * modules/openat (Depends-on): Likewise.
9728         * modules/savewd (Depends-on): Likewise.
9729         * modules/settime (Depends-on): Likewise.
9730         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
9731
9732         fts: avoid leaking fds
9733         * modules/fts (Depends-on): Add cloexec.
9734         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
9735         flag.
9736
9737         fts: make directory fds more robust
9738         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
9739         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
9740
9741         backupfile, chdir-long, fts, savedir: make safer
9742         * lib/backupfile.c (includes): Use "dirent--.h", since
9743         numbered_backup can write to stderr during readdir.
9744         * lib/savedir.c (includes): Likewise.
9745         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
9746         emulation can write to stderr on failure.
9747         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
9748         * lib/getcwd.c: Document why opendir_safer is unused.
9749         * lib/glob.c: Likewise.
9750         * lib/scandir.c: Likewise.
9751         * lib/openat-proc.c: Likewise, for open_safer.
9752         * modules/backupfile (Depends-on): Add dirent-safer.
9753         * modules/savedir (Depends-on): Likewise.
9754         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
9755         * modules/chdir-long (Depends-on): Add openat-safer.
9756
9757         openat-safer: new module
9758         * modules/openat-safer: New file.
9759         * lib/openat-safer.c: Likewise.
9760         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
9761         * lib/fcntl-safer.h (openat_safer): Declare.
9762         * lib/fcntl--.h (openat): Override.
9763         * MODULES.html.sh (File descriptor based I/O): Mention it.
9764         * lib/openat.h: Add double-inclusion guards.
9765         * lib/openat.c (includes): Only include "fcntl-safer.h", not
9766         "fcntl--.h", so we can implement openat.
9767         * modules/openat-safer-tests: New test.
9768         * tests/test-openat-safer.c: New file.
9769
9770         dirent-safer: new module
9771         * modules/dirent-safer: New file.
9772         * lib/dirent--.h: Likewise.
9773         * lib/dirent-safer.h: Likewise.
9774         * lib/opendir-safer.c: Likewise.
9775         * m4/dirent-safer.m4: Likewise.
9776         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
9777         * modules/dirent-safer-tests: New test.
9778         * tests/test-dirent-safer.c: New file.
9779         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
9780
9781         fdopendir: optimize on mingw
9782         * lib/unistd.in.h (_gl_directory_name): New prototype.
9783         * lib/fchdir.c (_gl_directory_name): Implement it.
9784         (fchdir): Use it to simplify implementation.
9785         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
9786         fchdir, when available, to avoid calling [f]chdir().
9787
9788         fdopendir: split into its own module
9789         * lib/openat.c (fdopendir): Move...
9790         * lib/fdopendir.c: ...into new file.
9791         * modules/fdopendir: New module.
9792         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
9793         * modules/openat (Depends-on): Add fdopendir.
9794         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
9795         fdopendir here.
9796         * modules/savedir (Depends-on): Only need fdopendir, not full
9797         openat.
9798         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
9799         * lib/openat.h (fdopendir): Drop prototype.
9800         * lib/dirent.in.h (fdopendir): Provide prototype.
9801         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
9802         * modules/dirent (Makefile.am): Substitute them.
9803         * MODULES.html.sh (File system functions): Mention it.
9804         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
9805         * modules/fdopendir-tests: New file.
9806         * tests/test-fdopendir.c: Likewise.
9807
9808         fchdir: use more consistent macro convention
9809         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
9810         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
9811         REPLACE_FCHDIR, rather than relying on config.h macros.
9812         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
9813         inside a single make-time REPLACE_FCHDIR block, rather than using
9814         the config.h FCHDIR_REPLACEMENT.
9815         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
9816         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
9817         Manage fstat replacement.
9818         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
9819         REPLACE_FCHDIR.
9820         * modules/sys_stat (Files): Add m4/unistd_h.m4.
9821         (Makefile.am): Substitute REPLACE_FCHDIR.
9822         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
9823         FCHDIR_REPLACEMENT.
9824         * lib/dup-safer.c (dup_safer): Likewise.
9825         * lib/dup2.c (rpl_dup2): Likewise.
9826         * lib/dup3.c (rpl_dup3): Likewise.
9827         * lib/open.c (rpl_open): Likewise.
9828
9829         fchdir: simplify error handling, and support dup3
9830         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
9831         stdbool, malloc-posix, realloc-posix.
9832         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
9833         (ensure_dirs_slot): Return false on allocation failure.
9834         (rpl_dup2): Delete.
9835         (_gl_register_dup): New function.
9836         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
9837         (_gl_register_fd): Close fd on allocation failure.
9838         * lib/fcntl.in.h (_gl_register_fd): Update signature.
9839         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
9840         prototype.
9841         (rpl_dup2_fchdir): Delete prototype.
9842         * lib/open.c (open): Update caller.
9843         * lib/dup2.c (dup2): Track fchdir metadata.
9844         * lib/dup3.c (dup3): Likewise.
9845         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
9846         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
9847
9848 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9849
9850         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
9851         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
9852         don't pass arguments to AC_OUTPUT.
9853
9854 2009-09-02  Bruno Haible  <bruno@clisp.org>
9855
9856         * modules/mkdtemp (License): Relicense under LGPLv2+.
9857         Reported by Paolo Bonzini.
9858
9859 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9860
9861         Replace uses of obsolete autoconf macros in Jim's modules.
9862         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
9863         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
9864         can evoke a warning from autoconf when run with -Wobsolete
9865         enabled.  They were declared obsolete for good reasons (see
9866         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
9867         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
9868         should not continue using the deprecated macros.
9869         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
9870         obsolete Autoconf macros with modern counterparts.
9871         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
9872         * m4/dos.m4 (gl_AC_DOS): Likewise.
9873         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
9874         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
9875         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
9876         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
9877         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
9878         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
9879         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
9880         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
9881         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
9882         Likewise.
9883         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
9884         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
9885         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
9886         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
9887         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
9888         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
9889
9890 2009-09-01  Eric Blake  <ebb9@byu.net>
9891
9892         fchdir: fix off-by-one bug in previous patch
9893         * lib/fchdir.c (rpl_fstat): Use correct bounds.
9894         (_gl_unregister_fd): Delete useless if.
9895
9896 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
9897
9898         maint.mk: sort the list of syntax-check rules
9899         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
9900         easier to get a sense of progress when the rules are run sequentially
9901         and take a long time.
9902
9903 2009-09-01  Simon Josefsson  <simon@josefsson.org>
9904
9905         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
9906         * modules/netinet_in: Likewise.
9907         * modules/sys_file: Likewise.
9908         * modules/sys_ioctl: Likewise.
9909         * modules/sys_select: Likewise.
9910         * modules/sys_socket: Likewise.
9911         * modules/sys_stat: Likewise.
9912         * modules/sys_time: Likewise.
9913         * modules/sys_times: Likewise.
9914         * modules/sys_utsname: Likewise.
9915         * modules/sys_wait: Likewise.
9916
9917 2009-09-01  Jim Meyering  <meyering@redhat.com>
9918
9919         fts: help ensure that return values are not ignored
9920         * lib/fts_.h (__GNUC_PREREQ): Define.
9921         (__attribute_warn_unused_result__): Define.
9922         (fts_children, fts_close, fts_open, fts_read): Declare with
9923         __attribute_warn_unused_result__.
9924
9925         fts: fts_close now fails also when closing a dir file descriptor fails
9926         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
9927         and propagate to caller, along with errno.
9928
9929         announce-gen: correct formatting in --help output
9930         * build-aux/announce-gen (usage): Move the one-line description in
9931         --help output "up", to where it belongs, just after Usage:.
9932
9933 2009-08-31  Eric Blake  <ebb9@byu.net>
9934
9935         fchdir: port to mingw
9936         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
9937         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
9938         opened, then use a substitute.
9939         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
9940         replacement.
9941         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
9942         (_gl_register_fd): No need to check stat if open already filters
9943         all directories.
9944         (fchdir): Fix error condition to match POSIX.
9945         * modules/fchdir (Depends-on): Add sys_stat.
9946         * doc/posix-functions/open.texi (open): Document the limitation.
9947         * modules/fchdir-tests: New file.
9948         * tests/test-fchdir.c: Likewise.
9949
9950         canonicalize: allow cross-testing from cygwin to mingw
9951         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
9952         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
9953         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
9954         Likewise.
9955         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
9956         target does not support symlinks.
9957         * tests/test-canonicalize-lgpl.sh: Likewise.
9958
9959         chown: avoid compilation warning on mingw
9960         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
9961         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
9962         mingw.
9963         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
9964         * modules/chown (Depends-on): Add errno.
9965
9966 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
9967
9968         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
9969         command.
9970
9971 2009-08-31  Jim Meyering  <meyering@redhat.com>
9972
9973         canonicalize: remove useless initialization
9974         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
9975         initialization of local, "end".
9976
9977 2009-08-30  Bruno Haible  <bruno@clisp.org>
9978
9979         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
9980         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
9981         ENOSYS.
9982
9983 2009-08-30  Bruno Haible  <bruno@clisp.org>
9984
9985         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
9986         /usr/xpg4/bin/tr when it exists.
9987         * tests/test-pipe-filter-gi1.sh: Likewise.
9988
9989 2009-08-30  Bruno Haible  <bruno@clisp.org>
9990
9991         Work around deficient /usr/bin/id program on Solaris.
9992         * tests/test-file-has-acl.sh (ID): New variable.
9993         * tests/test-set-mode-acl.sh (ID): Likewise.
9994         * tests/test-copy-acl.sh (ID): Likewise.
9995         * tests/test-copy-file.sh (ID): Likewise.
9996
9997 2009-08-30  Bruno Haible  <bruno@clisp.org>
9998
9999         New module 'xstriconveh'.
10000         * lib/xstriconveh.h: New file.
10001         * lib/xstriconveh.c: New file.
10002         * modules/xstriconveh: New file.
10003
10004 2009-08-30  Bruno Haible  <bruno@clisp.org>
10005
10006         Make it easier to use mem_cd_iconveh.
10007         * lib/striconveh.h (iconveh_t): New type.
10008         (iconveh_open, iconveh_close): New declarations.
10009         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
10010         with a single 'const iconveh_t *' argument.
10011         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
10012         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
10013         with a single 'const iconveh_t *' argument.
10014         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
10015         * tests/test-striconveh.c (main): Update.
10016         * NEWS: Mention the change.
10017
10018 2009-08-30  Bruno Haible  <bruno@clisp.org>
10019
10020         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
10021         problem.
10022
10023 2009-08-30  Bruno Haible  <bruno@clisp.org>
10024
10025         Work around iconv_open problem on Solaris.
10026         * lib/iconv_open-solaris.gperf: New file.
10027         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
10028         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
10029         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
10030         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
10031         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
10032         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
10033
10034 2009-08-29  Jim Meyering  <meyering@redhat.com>
10035
10036         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
10037         * top/maint.mk (cvs-check): Remove target; it was just an alias
10038         to the better-named vc-diff-check.
10039         (maintainer-distcheck): Remove rule.  It was used only from
10040         the (alpha/beta/major) target, and all of its commands but one
10041         were coreutils-specific.
10042         (vc-dist): Remove rule.
10043         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
10044         Run vc-diff-check, not vc-dist.
10045         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
10046
10047 2009-08-27  Bruno Haible  <bruno@clisp.org>
10048
10049         * tests/test-bitrotate.c (main): Remove test that uses a shift count
10050         of 0.
10051
10052 2009-08-27  Bruno Haible  <bruno@clisp.org>
10053
10054         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
10055         compilers.
10056         * doc/func.texi: Document the SunPRO C bug.
10057
10058 2009-08-27  Bruno Haible  <bruno@clisp.org>
10059
10060         Fix link error on Solaris.
10061         * tests/test-parse-duration.c (xstrdup): Remove function.
10062
10063 2009-08-26  Pádraig Brady  <P@draigbrady.com>
10064
10065         ignore-value: handle pointer types, too
10066         * lib/ignore-value.h (__attribute__): Remove definition.
10067         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
10068         of a more concise and more-often effective "(void) i" statement.
10069         (ignore_ptr): New function to suppress warnings from functions that
10070         return pointers, and to make it explicit that one function doesn't
10071         handle all cases.
10072
10073 2009-08-25  Bruno Haible  <bruno@clisp.org>
10074
10075         dup2: work around a Linux bug.
10076         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
10077         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
10078         * doc/posix-functions/dup2.texi: Mention the Linux bug.
10079         Reported by Simon Josefsson.
10080
10081 2009-08-25  Jim Meyering  <meyering@redhat.com>
10082
10083         libguestfs uses gnulib
10084         * users.txt: Add libguestfs.
10085
10086 2009-08-24  Eric Blake  <ebb9@byu.net>
10087
10088         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
10089         * lib/pipe2.c (includes): Add binary-io.h.
10090         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
10091
10092 2009-08-24  Bruno Haible  <bruno@clisp.org>
10093
10094         Tolerate declared but missing accept4 syscall.
10095         * lib/accept4.c (accept4): Invoke original accept4 function first, if
10096         available.
10097         * lib/sys_socket.in.h (accept4): If the function is already present,
10098         override it.
10099         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
10100         * modules/accept4 (Makefile.am): Compile accept4.c always.
10101         Reported by Paolo Bonzini and Eric Blake.
10102
10103 2009-08-23  Bruno Haible  <bruno@clisp.org>
10104
10105         New module 'accept4'.
10106         * lib/sys_socket.in.h (accept4): New declaration.
10107         * lib/accept4.c: New file.
10108         * m4/accept4.m4: New file.
10109         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
10110         GNULIB_ACCEPT4, HAVE_ACCEPT4.
10111         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
10112         HAVE_ACCEPT4.
10113         * modules/accept4: New file.
10114         * doc/glibc-functions/accept4.texi: Mention the new module.
10115
10116 2009-08-24  Jim Meyering  <meyering@redhat.com>
10117
10118         progname: also set global program_invocation_name, when possible
10119         Before this change, a libtool-enabled program that calls glibc's
10120         error function would report the program name as
10121         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
10122         * modules/progname (configure.ac): Check for a declaration of
10123         program_invocation_name.
10124         * lib/progname.c:  Include <errno.h>.
10125         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
10126         Set program_invocation_name.
10127
10128 2009-08-23  Bruno Haible  <bruno@clisp.org>
10129
10130         * lib/dup3.c: Include <string.h>.
10131
10132 2009-08-23  Bruno Haible  <bruno@clisp.org>
10133
10134         * lib/dup3.c (dup3): Test only once whether the system actually exists.
10135         * lib/pipe2.c (pipe2): Likewise.
10136         Suggested by Eric Blake.
10137
10138 2009-08-23  Bruno Haible  <bruno@clisp.org>
10139
10140         Tolerate declared but missing dup3 syscall.
10141         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
10142         * lib/unistd.in.h (dup3): If the function is already present,
10143         override it.
10144         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
10145         * modules/dup3 (Makefile.am): Compile dup3.c always.
10146         Reported by Paolo Bonzini.
10147
10148 2009-08-23  Bruno Haible  <bruno@clisp.org>
10149
10150         Tolerate declared but missing pipe2 syscall.
10151         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
10152         available.
10153         * lib/unistd.in.h (pipe2): If the function is already present,
10154         override it.
10155         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
10156         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
10157         Reported by Paolo Bonzini.
10158
10159 2009-08-23  Bruno Haible  <bruno@clisp.org>
10160
10161         * lib/pipe2.c (pipe2): Move #ifs inside function.
10162
10163 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
10164
10165         quotearg: document limitations of quote_these_too
10166         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
10167         those limitations are created.
10168         * lib/quotearg.h (set_char_quoting): Document that digits and
10169         letters that are special after backslash are not permitted.
10170         (quotearg_char): Cross-reference set_char_quoting documentation.
10171
10172 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
10173
10174         quotearg: implement custom_quoting_style
10175         * lib/quotearg.c: (struct quoting_options): Add left_quote and
10176         right_quote fields.
10177         (set_custom_quoting): New public function.
10178         (quotearg_buffer_restyled): Add left_quote and right_quote
10179         arguments, handle them very much like locale quoting, and update
10180         all uses.
10181         (quotearg_n_custom): New public function.
10182         (quotearg_n_custom_mem): New public function.
10183         (quotearg_custom): New public function.
10184         (quotearg_custom_mem): New public function.
10185         * lib/quotearg.h: Prototype and document new public functions.
10186         (enum quoting_style): For escape_quoting_style and
10187         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
10188         ignored even though they're otherwise like c_quoting_style.
10189         Add custom_quoting_style member and document with comparison to
10190         clocale_quoting_style.
10191         * tests/test-quotearg.c (custom_quotes): New array.
10192         (custom_results): New array.
10193         (main): Extend to test custom quoting.
10194
10195 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
10196
10197         quotearg: fix right quote escaping when it's in quote_these_too
10198         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
10199         quote, be sure to prepend only one backslash.
10200         * tests/test-quotearg.c (use_quote_double_quotes): New function.
10201         (main): Test it.
10202
10203 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
10204
10205         quotearg-tests: test escaping of embedded locale quotes
10206         * tests/test-quotearg.c (struct result_strings): Add member for
10207         new input.
10208         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
10209         (inputs): Add new input.
10210         (results_g): Add expected results.
10211         (flag_results): Likewise.
10212         (locale_results): Likewise.
10213         (compare_strings): Check those.
10214
10215 2009-08-23  Bruno Haible  <bruno@clisp.org>
10216
10217         Tests for module 'dup3'.
10218         * modules/dup3-tests: New file.
10219         * tests/test-dup3.c: New file.
10220
10221         New module 'dup3'.
10222         * lib/unistd.in.h (dup3): New declaration.
10223         * lib/dup3.c: New file.
10224         * m4/dup3.m4: New file.
10225         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
10226         HAVE_DUP3.
10227         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
10228         * modules/dup3: New file.
10229         * doc/glibc-functions/dup3.texi: Mention the new module.
10230
10231 2009-08-23  Bruno Haible  <bruno@clisp.org>
10232
10233         Tweak the dup2 test.
10234         * tests/test-dup2.c (main): Create the test file empty. Verify that an
10235         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
10236         the test file is still empty. Fix argument order of lseek.
10237
10238 2009-08-23  Bruno Haible  <bruno@clisp.org>
10239
10240         Avoid test link errors when the modules getopt-gnu, gettext are used.
10241         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
10242         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10243
10244 2009-08-23  Bruno Haible  <bruno@clisp.org>
10245
10246         Fix getdtablesize() on mingw.
10247         * lib/getdtablesize.c (getdtablesize): Implement differently.
10248         * lib/unistd.in.h (getdtablesize): Improve comment.
10249
10250 2009-08-23  Bruno Haible  <bruno@clisp.org>
10251
10252         New module 'mkostemp'.
10253         Based on Ulrich Drepper's 2007-08-10 change in glibc.
10254         * lib/stdlib.in.h (mksotemp): New declaration.
10255         * lib/mkostemp.c: New file, from glibc with modifications.
10256         * lib/tempname.h (GT_FILE): Remove outdated comment.
10257         (gen_tempname): Add flags argument.
10258         * lib/tempname.c (__GT_BIGFILE): Remove macro.
10259         (__GT_FILE): Map to 1.
10260         (small_open, large_open): Remove macros.
10261         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
10262         * lib/mkstemp.c (mkstemp): Update.
10263         * lib/mkdtemp.c (mkdtemp): Likewise.
10264         * m4/mkostemp.m4: New file.
10265         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
10266         HAVE_MKOSTEMP.
10267         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
10268         HAVE_MKOSTEMP.
10269         * modules/mkostemp: New file, based on modules/mkstemp.
10270         * doc/glibc-functions/mkostemp.texi: Mention the new module.
10271         * NEWS: Mention the change.
10272
10273 2009-08-23  Bruno Haible  <bruno@clisp.org>
10274
10275         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
10276         Reported by Eric Blake.
10277
10278 2009-08-23  Bruno Haible  <bruno@clisp.org>
10279
10280         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
10281         Reported by Eric Blake.
10282
10283 2009-08-23  Bruno Haible  <bruno@clisp.org>
10284
10285         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
10286         * modules/pipe2 (Depends-on): Likewise.
10287
10288 2009-08-23  Eric Blake  <ebb9@byu.net>
10289
10290         fcntl-h: add O_TTY_INIT support
10291         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
10292         * tests/test-fcntl-h.c (o): Test it.
10293         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
10294
10295         fcntl-h: rename from fcntl, in preparation for fcntl(2)
10296         * modules/fcntl: Move <fcntl.h> header replacement...
10297         * modules/fcntl-h: ...to new name, so as not to collide with
10298         like-named function.
10299         * tests/test-fcntl.c: Rename...
10300         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
10301         * modules/fcntl-tests: Rename...
10302         * modules/fcntl-h-tests: ...to this.  Update test file name.
10303         * modules/chdir-long (Depends-on): Update clients.
10304         * modules/chdir-safer (Depends-on): Likewise.
10305         * modules/fcntl-safer (Depends-on): Likewise.
10306         * modules/fts (Depends-on): Likewise.
10307         * modules/mkancesdirs (Depends-on): Likewise.
10308         * modules/mkdir-p (Depends-on): Likewise.
10309         * modules/open (Depends-on): Likewise.
10310         * modules/savewd (Depends-on): Likewise.
10311         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
10312         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
10313
10314 2009-08-22  Bruno Haible  <bruno@clisp.org>
10315
10316         * modules/binary-io (License): Relicense under LGPL.
10317         * modules/pipe2 (License): Likewise.
10318
10319 2009-08-22  Bruno Haible  <bruno@clisp.org>
10320
10321         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
10322         return value.
10323         * lib/pipe-filter-gi.c (filter_init): Likewise.
10324         Reported by Eric Blake.
10325
10326 2009-08-22  Bruno Haible  <bruno@clisp.org>
10327
10328         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
10329         * modules/pipe (Depends-on): Add pipe2.
10330
10331 2009-08-22  Bruno Haible  <bruno@clisp.org>
10332
10333         Tests for module 'pipe2'.
10334         * modules/pipe2-tests: New file.
10335         * tests/test-pipe2.c: New file.
10336
10337         New module 'pipe2'.
10338         * lib/unistd.in.h (pipe2): New declaration.
10339         * lib/pipe2.c: New file.
10340         * m4/pipe2.m4: New file.
10341         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
10342         HAVE_PIPE2.
10343         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
10344         * modules/pipe2: New file.
10345         * doc/glibc-functions/pipe2.texi: Mention the new module.
10346
10347 2009-08-22  Bruno Haible  <bruno@clisp.org>
10348
10349         Reference some new glibc functions.
10350         * doc/glibc-functions/accept4.texi: New file.
10351         * doc/glibc-functions/dup3.texi: New file.
10352         * doc/glibc-functions/mkostemp.texi: New file.
10353         * doc/glibc-functions/pipe2.texi: New file.
10354         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
10355         (Glibc sys/socket.h): Refer to accept4.
10356         (Glibc unistd.h): Refer to dup3, pipe2.
10357         Reported by Eric Blake.
10358
10359 2009-08-22  Jim Meyering  <meyering@redhat.com>
10360             Bruno Haible  <bruno@clisp.org>
10361
10362         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
10363         This makes it so packages using automake-1.11's silent-rules option
10364         can print e.g., a single "GEN    configmake.h" line, rather than
10365         the 30+ statements that perform the job.  If you want to see the
10366         actual commands, you can still run "make V=1".
10367         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
10368         so that make output is abbreviated when those variables are defined
10369         appropriately.
10370         * modules/argz: Likewise.
10371         * modules/arpa_inet: Likewise.
10372         * modules/byteswap: Likewise.
10373         * modules/configmake: Likewise.
10374         * modules/dirent: Likewise.
10375         * modules/errno: Likewise.
10376         * modules/fcntl: Likewise.
10377         * modules/float: Likewise.
10378         * modules/fnmatch: Likewise.
10379         * modules/getopt-posix: Likewise.
10380         * modules/glob: Likewise.
10381         * modules/iconv_open: Likewise.
10382         * modules/inttypes: Likewise.
10383         * modules/localcharset: Likewise.
10384         * modules/locale: Likewise.
10385         * modules/math: Likewise.
10386         * modules/netdb: Likewise.
10387         * modules/netinet_in: Likewise.
10388         * modules/poll: Likewise.
10389         * modules/posix_spawnp-tests: Likewise.
10390         * modules/sched: Likewise.
10391         * modules/search: Likewise.
10392         * modules/selinux-h: Likewise.
10393         * modules/signal: Likewise.
10394         * modules/spawn: Likewise.
10395         * modules/stdarg: Likewise.
10396         * modules/stdbool: Likewise.
10397         * modules/stddef: Likewise.
10398         * modules/stdint: Likewise.
10399         * modules/stdio: Likewise.
10400         * modules/stdlib: Likewise.
10401         * modules/string: Likewise.
10402         * modules/strings: Likewise.
10403         * modules/sys_file: Likewise.
10404         * modules/sys_ioctl: Likewise.
10405         * modules/sys_select: Likewise.
10406         * modules/sys_socket: Likewise.
10407         * modules/sys_stat: Likewise.
10408         * modules/sys_time: Likewise.
10409         * modules/sys_times: Likewise.
10410         * modules/sys_utsname: Likewise.
10411         * modules/sys_wait: Likewise.
10412         * modules/sysexits: Likewise.
10413         * modules/time: Likewise.
10414         * modules/unistd: Likewise.
10415         * modules/wchar: Likewise.
10416         * modules/wctype: Likewise.
10417
10418 2009-08-22  Jim Meyering  <meyering@redhat.com>
10419
10420         announce-gen: detect write failure
10421         * build-aux/announce-gen: Add Coda at end.
10422         Remove equivalent-but-more-verbose block at top.
10423
10424 2009-08-19  Akim Demaille  <demaille@gostai.com>
10425
10426         bootstrap: --help to stdout.
10427         * bootstrap (usage): Don't send --help to stderr.
10428         Use a here doc instead of a long string.
10429
10430 2009-08-21  Eric Blake  <ebb9@byu.net>
10431
10432         test-popen-safer: split from test-popen
10433         * tests/test-popen.c (main): Move...
10434         * tests/test-popen.h: ...into new file.
10435         * tests/test-popen-safer2.c: New file.
10436         * modules/popen-tests (Files): Add test-popen.h.
10437         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
10438         Suggested by Bruno Haible.
10439
10440         test-fcntl-safer: split from test-open
10441         * tests/test-open.c (main): Move...
10442         * tests/test-open.h: ...into new file.
10443         * tests/test-fcntl-safer.c: New file.
10444         * modules/open-tests (Files): Add test-open.h.
10445         * modules/fcntl-safer-tests: New file.
10446         Suggested by Bruno Haible.
10447
10448         test-fopen-safer: split from test-fopen
10449         * tests/test-fopen.c (main): Move...
10450         * tests/test-fopen.h: ...into new file.
10451         * tests/test-fopen-safer.c: New file.
10452         * modules/fopen-tests (Files): Add test-fopen.h.
10453         * modules/fopen-safer-tests: New file.
10454         Suggested by Bruno Haible.
10455
10456 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
10457
10458         popen-safer: test O_CLOEXEC at run-time.
10459         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
10460
10461 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
10462
10463         fcntl: move more flags to the header
10464         * lib/cloexec.c: Do not define FD_CLOEXEC here.
10465         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
10466         * lib/fcntl.in.h: Do both things here.
10467
10468 2009-08-21  Jim Meyering  <meyering@redhat.com>
10469
10470         consistently remove $@-t before redirecting to it
10471         * modules/argz: Remove $@-t and $@ before redirecting to the former.
10472         * modules/alloca-opt: Likewise.
10473         * modules/byteswap: Likewise.
10474         * modules/fnmatch: Likewise.
10475         * modules/getopt-posix: Likewise.
10476         * modules/glob: Likewise.
10477         * modules/poll: Likewise.
10478         * modules/posix_spawnp-tests: Likewise.
10479         * modules/sys_socket: Likewise.
10480         * modules/sysexits: Likewise.
10481
10482 2009-08-21  Eric Blake  <ebb9@byu.net>
10483
10484         popen: simplify access to original popen
10485         * lib/popen.c (rpl_popen): No need to worry about popen being a
10486         macro.
10487         Reported by Bruno Haible.
10488
10489 2009-08-20  Eric Blake  <ebb9@byu.net>
10490
10491         build: avoid some compiler warnings
10492         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
10493         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
10494         type.
10495         (new_exclude_segment, excluded_file_pattern_p)
10496         (excluded_file_name_p): Reduce scope.
10497         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
10498         old-style declaration.
10499
10500 2009-08-20  Simon Josefsson  <simon@josefsson.org>
10501
10502         * tests/test-exclude1.sh: Handle Windows EOL.
10503         * tests/test-exclude2.sh: Likewise.
10504         * tests/test-exclude3.sh: Likewise.
10505         * tests/test-exclude4.sh: Likewise.
10506         * tests/test-exclude5.sh: Likewise.
10507         * tests/test-exclude6.sh: Likewise.
10508         * tests/test-exclude7.sh: Likewise.
10509
10510 2009-08-19  Akim Demaille  <demaille@gostai.com>
10511
10512         bootstrap: find sha1sum when named gsha1sum.
10513         * bootstrap (find_tool): New.
10514         ($SHA1SUM): New.
10515         Use it.
10516
10517 2009-08-20  Jim Meyering  <meyering@redhat.com>
10518
10519         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
10520         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
10521         expression that converts "." in a file name to "\." in the resulting
10522         regexp.  Start with a dummy statement, so that prior shell variable
10523         definitions are expanded portably.  Reported by Simon Josefsson.
10524
10525 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
10526
10527         Fix polling for writeability of a screen buffer.
10528         * lib/poll.c: Distinguish input and screen buffers for the
10529         Win32 implementation.
10530         * lib/select.c: Likewise.
10531
10532 2009-08-19  Eric Blake  <ebb9@byu.net>
10533
10534         popen-safer: prevent popen from clobbering std descriptors
10535         * modules/popen-safer: New file.
10536         * lib/popen-safer.c: Likewise.
10537         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
10538         * lib/stdio--.h (popen): Provide override.
10539         * lib/stdio-safer.h (popen_safer): Provide declaration.
10540         * tests/test-popen.c (includes): Partially test this.
10541         * modules/popen-safer-tests: New file, for more tests.
10542         * tests/test-popen-safer.c: Likewise.
10543         * MODULES.html.sh (file stream based Input/Output): Mention it.
10544
10545         tests: test some of the *-safer modules
10546         * modules/fopen-safer (Depends-on): Add fopen.
10547         * modules/fcntl-safer (Depends-on): Add fcntl.
10548         * modules/stdlib-safer (Depends-on): Add stdlib.
10549         (configure.ac): Set indicator.
10550         * modules/unistd-safer (configure.ac): Likewise.
10551         * modules/tmpfile-safer (configure.ac): Likewise.
10552         (Depends-on): Add tmpfile.
10553         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
10554         active.
10555         * tests/test-fopen.c (includes): Test safer versions when they are
10556         in use.
10557         * tests/test-open.c (includes): Likewise.
10558
10559         popen: fix cygwin 1.5 bug when stdin closed
10560         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
10561         * modules/popen: New file.
10562         * modules/popen-tests: Likewise.
10563         * tests/test-popen.c: Likewise.
10564         * m4/popen.m4: Likewise.
10565         * lib/popen.c: Likewise.
10566         * lib/stdio.in.h (popen): New declaration.
10567         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
10568         * modules/stdio (Makefile.am): Likewise.
10569         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
10570
10571 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
10572
10573         maint.mk: give full control over update-copyright exclusions
10574         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
10575         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
10576         (update-copyright): Don't force inclusion of top-level
10577         ChangeLog.  Don't force exclusion of all COPYING files, but make
10578         them the default exclusion instead.
10579
10580 2009-08-16  Bruno Haible  <bruno@clisp.org>
10581
10582         Fix test failures on Solaris 10.
10583         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
10584         tests when Solaris iconv() is used.
10585         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
10586         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
10587         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
10588         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
10589         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
10590
10591 2009-08-16  Bruno Haible  <bruno@clisp.org>
10592
10593         Fix test failures on Solaris 10.
10594         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
10595         'tr' program and pass it as first argument.
10596         * tests/test-pipe-filter-gi1.sh: Likewise.
10597         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
10598         program as first argument.
10599         * tests/test-pipe-filter-gi1.c (main): Likewise.
10600
10601 2009-08-16  Eric Blake  <ebb9@byu.net>
10602
10603         fpurge: fix previous commits
10604         * modules/fpurge (Makefile.am): Make replacement conditional,
10605         partially reverting 2007-04-29 change; missed in previous
10606         attempt.
10607         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
10608         is missing.
10609
10610 2009-08-16  Bruno Haible  <bruno@clisp.org>
10611
10612         Clarify fpurge's effect on the file position.
10613         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
10614         * tests/test-fpurge.c (main): Make a second pass for checking the file
10615         position.
10616
10617 2009-08-16  Bruno Haible  <bruno@clisp.org>
10618
10619         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
10620         declaration of fpurge is missing.
10621         * tests/test-fpurge.c (main): Check that the file has not more contents
10622         than expected. Close the file before removing it.
10623
10624 2009-08-15  Eric Blake  <ebb9@byu.net>
10625
10626         fpurge: don't wrap working cygwin implementation
10627         * lib/fpurge.c (fpurge): Fix comment typo.
10628         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
10629         1.7 to avoid replacement.
10630         * tests/test-fpurge.c (main): Enhance test.
10631
10632 2009-08-15  Eric Blake  <ebb9@byu.net>
10633         and Jim Meyering  <meyering@redhat.com>
10634
10635         test-update-copyright: skip if perl is insufficient
10636         * tests/test-update-copyright.sh: Failure to run maintainer tool
10637         should not cause testsuite failure on cygwin 1.5.
10638
10639 2009-08-14  Eric Blake  <ebb9@byu.net>
10640
10641         doc: mention more functions added in cygwin 1.7.0
10642         * doc/posix-headers/limits.texi (limits.h): Update for recent
10643         cygwin additions.
10644         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
10645         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
10646         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
10647         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
10648         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
10649
10650 2009-08-14  Eric Blake  <ebb9@byu.net>
10651
10652         maint.mk: simplify update-copyright rule
10653         * top/maint.mk (update-copyright-local): Delete, and document how
10654         to do it in cfg.mk instead.
10655         (update-copyright-exclude-regexp): Delete, and document how to do
10656         it in .x-update-copyright instead.
10657         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
10658         exclude ChangeLog.
10659
10660 2009-08-14  Bruno Haible  <bruno@clisp.org>
10661
10662         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
10663
10664 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
10665
10666         maint.mk: support update-copyright-env
10667         * top/maint.mk (update-copyright-env): Define place-holder.
10668         (update-copyright): Expand $(update-copyright-env) before
10669         invoking update-copyright.
10670
10671 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
10672
10673         update-copyright: implement forced reformatting
10674         * build-aux/update-copyright: Implement and document
10675         UPDATE_COPYRIGHT_FORCE.
10676         * tests/test-update-copyright.sh: Test it.
10677
10678 2009-08-14  Eric Blake  <ebb9@byu.net>
10679         and Bruno Haible  <bruno@clisp.org>
10680
10681         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
10682         * tests/test-locale.c: Revert previous patch related to NULL.
10683         * tests/test-stdio.c: Likewise.
10684         * tests/test-stdlib.c: Likewise.
10685         * tests/test-string.c: Likewise.
10686         * tests/test-unistd.c: Likewise.
10687         * modules/time-tests (Depends-on): Add verify.
10688         * modules/wchar-tests (Depends-on): Likewise.
10689         * tests/test-time.c: Test for NULL compliance.
10690         * tests/test-wchar.c: Likewise.
10691         * modules/locale (Depends-on): Add stddef.
10692         * modules/stdio (Depends-on): Likewise.
10693         * modules/stdlib (Depends-on): Likewise.
10694         * modules/string (Depends-on): Likewise.
10695         * modules/time (Depends-on): Likewise.
10696         * modules/unistd (Depends-on): Likewise.
10697         * modules/wchar (Depends-on): Likewise.
10698         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
10699         * lib/stdlib.in.h (includes): Likewise.
10700         * lib/string.in.h (includes): Likewise.
10701         * lib/time.in.h (includes): Likewise.
10702         * lib/unistd.in.h (includes): Likewise.
10703         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
10704         replaced.
10705         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
10706         * m4/stddef_h.m4: New file.
10707         * modules/stddef: Likewise.
10708         * lib/stddef.in.h: Likewise.
10709         * modules/stddef-tests: Likewise.
10710         * tests/test-stddef.c: Likewise.
10711         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
10712         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
10713         * doc/posix-headers/locale.texi (locale.h): Likewise.
10714         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
10715         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
10716         * doc/posix-headers/string.texi (string.h): Likewise.
10717         * doc/posix-headers/time.texi (time.h): Likewise.
10718         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
10719         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
10720
10721 2009-08-14  Eric Blake  <ebb9@byu.net>
10722
10723         doc: improve git diff of texinfo files
10724         * .gitattributes: Add rule for *.texi files, with hint on how to
10725         use it.
10726         Copied from m4, and based on a report by Bruno Haible.
10727
10728 2009-08-14  Bruno Haible  <bruno@clisp.org>
10729
10730         Disable multithread support by default on Cygwin 1.5.x for real.
10731         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
10732
10733 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
10734
10735         update-copyright: much ado about intervals
10736         * build-aux/update-copyright: Implement and document
10737         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
10738         of copyright year intervals.
10739         Also, document UPDATE_COPYRIGHT_YEAR.
10740         * tests/test-update-copyright.sh: Test it.
10741
10742         update-copyright: convert 2-digit to 4-digit years
10743         * build-aux/update-copyright: Implement and document.
10744         * tests/test-update-copyright.sh: Update.
10745
10746 2009-08-14  Jim Meyering  <meyering@redhat.com>
10747
10748         test-exclude: avoid coreutils "make check" failure
10749         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
10750         just as in test-argmatch.c.
10751
10752 2009-08-13  Eric Blake  <ebb9@byu.net>
10753
10754         test-dup2: fix bad assumption
10755         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
10756         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
10757
10758         test-version-etc: fix CRLF portability issue
10759         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
10760         recognize \r.
10761         * tests/test-argp-version-etc-1.sh: Likewise.
10762
10763         getopt: update client modules
10764         * modules/argp (Depends-on): Use getopt-gnu.
10765         * modules/git-merge-changelog (Depends-on): Likewise.
10766         * modules/long-options (Depends-on): Likewise.
10767         * modules/xstrtol (Depends-on): Likewise.
10768
10769 2009-08-13  Simon Josefsson  <simon@josefsson.org>
10770
10771         * tests/test-version-etc.sh: Don't fail on different
10772         project/version.  Don't fail on CRLF differences.  Rewrite to use
10773         multiple -e instead of multiple sed forks, suggested by Eric Blake
10774         <ebb9@byu.net>.
10775         * tests/test-argp-version-etc-1.sh: Likewise.
10776
10777 2009-08-13  Simon Josefsson  <simon@josefsson.org>
10778
10779         * tests/test-version-etc.sh: Don't fail on different
10780         project/version.
10781
10782 2009-08-12  Bruno Haible  <bruno@clisp.org>
10783
10784         Tests for modules 'getopt-posix', 'getopt-gnu'.
10785         * modules/getopt-posix-tests: New file.
10786         * tests/test-getopt.c: New file.
10787         * tests/test-getopt.h: New file.
10788         * tests/test-getopt_long.h: New file.
10789
10790         New modules 'getopt-posix', 'getopt-gnu'.
10791         * modules/getopt-gnu: New file, renamed from modules/getopt.
10792         * modules/getopt-posix: New file.
10793         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
10794         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
10795         (gl_GETOPT): Remove macro.
10796         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
10797         Disable the test against BSD systems that declare optreset. Test
10798         against mingw bug. Test against lack of support of optional arguments
10799         on many platforms.
10800         * doc/glibc-headers/getopt.texi: Update module name and list of
10801         relevant platforms.
10802         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
10803         'getopt-gnu' and more portability problems.
10804         * NEWS: Mention the changes.
10805
10806 2009-08-12  Bruno Haible  <bruno@clisp.org>
10807
10808         Ensure that optarg etc. get declared by <unistd.h>.
10809         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
10810         AC_USE_SYSTEM_EXTENSIONS.
10811         * modules/getopt (Depends-on): Add 'extensions'.
10812
10813 2009-08-12  Bruno Haible  <bruno@clisp.org>
10814
10815         Avoid test link errors.
10816         * modules/pipe-filter-ii-tests (Makefile.am): Define
10817         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
10818         * modules/pipe-filter-gi-tests (Makefile.am): Define
10819         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
10820         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10821
10822 2009-08-12  Bruno Haible  <bruno@clisp.org>
10823
10824         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
10825         gl_GETOPT_SUBSTITUTE before.
10826         (gl_GETOPT): Use it.
10827         * m4/argp.m4 (gl_ARGP): Update.
10828         Reported by Sergey Poznyakoff.
10829
10830         * m4/getopt.m4: Reorder macros.
10831         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
10832         (gl_GETOPT_SUBSTITUTE): Remove macro.
10833
10834 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
10835
10836         Minor improvement in gitlog-to-changelog
10837
10838         * build-aux/gitlog-to-changelog: New option `--format' makes
10839         output format string configurable.
10840
10841 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
10842
10843         Optimize exclude: use hash tables for non-wildcard patterns.
10844
10845         * lib/exclude.c: Include hash.h and mbuiter.h
10846         (struct exclude_pattern, exclude_segment): New data types.
10847         (struct exclude): Rewrite.
10848         (fnmatch_pattern_has_wildcards): New function.
10849         (new_exclude_segment, free_exclude_segment): New functions.
10850         (excluded_file_pattern_p, excluded_file_name_p): New functions.
10851         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
10852         * lib/exclude.h (is_fnmatch_pattern): New prototype.
10853         * modules/exclude: Depend on hash and mbuiter.
10854
10855         * modules/exclude-tests: New file.
10856         * tests/test-exclude.c: New file.
10857         * tests/test-exclude1.sh: New file.
10858         * tests/test-exclude2.sh: New file.
10859         * tests/test-exclude3.sh: New file.
10860         * tests/test-exclude4.sh: New file.
10861         * tests/test-exclude5.sh: New file.
10862         * tests/test-exclude6.sh: New file.
10863         * tests/test-exclude7.sh: New file.
10864
10865 2009-08-12  Bruno Haible  <bruno@clisp.org>
10866
10867         Ensure that getopt() gets declared by <unistd.h>.
10868         * lib/unistd.in.h: Conditionally include getopt.h.
10869         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
10870         Set GNULIB_UNISTD_H_GETOPT.
10871         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
10872         GNULIB_UNISTD_H_GETOPT.
10873         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
10874
10875 2009-08-12  Bruno Haible  <bruno@clisp.org>
10876
10877         Clarify logic.
10878         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
10879         gl_replace_getopt instead of GETOPT_H.
10880
10881 2009-08-12  Bruno Haible  <bruno@clisp.org>
10882
10883         * m4/getopt.m4: Add comments.
10884
10885 2009-08-12  Bruno Haible  <bruno@clisp.org>
10886
10887         Disable multithread support by default on Cygwin 1.5.x.
10888         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
10889         set gl_use_threads=no if not specified otherwise.
10890
10891 2009-08-11  Bruno Haible  <bruno@clisp.org>
10892
10893         Avoid compilation error on NetBSD 5.0.
10894         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
10895         * tests/test-stdio.c: Likewise.
10896         * tests/test-stdlib.c: Likewise.
10897         * tests/test-string.c: Likewise.
10898         * tests/test-unistd.c: Likewise.
10899         Reported by Greg Troxel <gdt@ir.bbn.com>
10900         at <https://savannah.gnu.org/support/?106973>.
10901
10902 2009-08-11  Bruno Haible  <bruno@clisp.org>
10903
10904         * modules/dup2-tests (Depends-on): Remove close.
10905
10906         Undo 2009-07-19 commit.
10907         * modules/acl-tests (Depends-on): Remove close.
10908         * modules/binary-io-tests (Depends-on): Likewise.
10909         * modules/closein-tests (Depends-on): Likewise.
10910         * modules/flock-tests (Depends-on): Likewise.
10911         * modules/fsync-tests (Depends-on): Likewise.
10912         * modules/lseek-tests (Depends-on): Likewise.
10913         * modules/pipe-tests (Depends-on): Likewise.
10914         * modules/posix_spawn-tests (Depends-on): Likewise.
10915         * modules/posix_spawnp-tests (Depends-on): Likewise.
10916         * modules/stat-time-tests (Depends-on): Likewise.
10917         * modules/yesno-tests (Depends-on): Likewise.
10918
10919 2009-08-10  Bruno Haible  <bruno@clisp.org>
10920
10921         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
10922
10923 2009-08-10  Bruno Haible  <bruno@clisp.org>
10924
10925         Fix a gcc warning.
10926         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
10927
10928 2009-08-10  Bruno Haible  <bruno@clisp.org>
10929
10930         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
10931         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
10932         not only the first time.
10933         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
10934         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
10935         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
10936         is 1, not only the the first time.
10937
10938 2009-08-10  Bruno Haible  <bruno@clisp.org>
10939
10940         Make it possible to use module 'gethostname' without module 'close'.
10941         * lib/unistd.in.h (close): Evoke a link error only if
10942         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
10943         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
10944         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
10945         * modules/unistd (Makefile.am): Substitute
10946         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
10947         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
10948         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
10949         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
10950         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
10951         * modules/sys_ioctl (Makefile.am): Substitute
10952         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
10953         * modules/socket (configure.ac): On native Windows, set
10954         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
10955         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
10956         Reported by Sam Steingold <sds@gnu.org>.
10957
10958 2009-08-10  Bruno Haible  <bruno@clisp.org>
10959
10960         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
10961         * modules/ioctl (configure.ac): Likewise.
10962
10963 2009-08-10  Bruno Haible  <bruno@clisp.org>
10964
10965         Avoid collision between gnulib wrapper and libintl wrapper.
10966         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
10967         already defined in intl/printf.c.
10968         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
10969         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
10970
10971 2009-08-09  Bruno Haible  <bruno@clisp.org>
10972
10973         Make <sys/select.h> really self-contained, also on Solaris 10.
10974         * lib/sys_select.in.h: Include <string.h>.
10975         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
10976         Solaris 10 problem.
10977         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
10978         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
10979         Reported by Jim Meyering.
10980
10981 2009-08-09  Bruno Haible  <bruno@clisp.org>
10982
10983         Avoid warnings from 'aclocal' that are due to a use of macro name
10984         AM_XGETTEXT_OPTION that is not defined in automake.
10985         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
10986         automake.
10987         * modules/error (configure.ac): Likewise.
10988         * modules/propername (configure.ac): Likewise.
10989         * modules/vasprintf (configure.ac): Likewise.
10990         * modules/verror (configure.ac): Likewise.
10991         * modules/xprintf (configure.ac): Likewise.
10992         * modules/xvasprintf (configure.ac): Likewise.
10993
10994 2009-08-08  Bruno Haible  <bruno@clisp.org>
10995
10996         Avoid compilation error in C++ mode.
10997         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
10998         Reported by Sam Steingold <sds@gnu.org>.
10999
11000 2009-08-08  Bruno Haible  <bruno@clisp.org>
11001
11002         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
11003         for the various Unix platforms.
11004         * doc/posix-headers/limits.texi: Update platforms list regarding
11005         HOST_NAME_MAX.
11006         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11007
11008 2009-08-07  Jim Meyering  <meyering@redhat.com>
11009
11010         selinux-at: fix typo in a comment
11011         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
11012         Spotted by Paolo Bonzini.
11013
11014         selinux-at: remove redundant m4 code, add documentation
11015         * modules/selinux-at (configure.ac): Remove redundant code.
11016         LIB_SELINUX is already set via the dependent module, selinux-h.
11017         (Include): Add quotes around selinux-at.h.
11018         * lib/selinux-at.h: Add documentation.
11019         Reported by Bruno Haible in
11020         http://marc.info/?l=gnulib-bug&m=124958988300749
11021
11022 2009-08-07  Bruno Haible  <bruno@clisp.org>
11023
11024         Avoid link error on MacOS X 10.3 and 10.4.
11025         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
11026         on non-ELF systems.
11027         * lib/argp-pv.c (argp_program_version): Likewise.
11028         Reported by Simon Josefsson.
11029
11030 2009-08-07  Simon Josefsson  <simon@josefsson.org>
11031
11032         * tests/test-version-etc.sh: Use $EXEEXT.
11033
11034 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
11035
11036         update-copyright: update documentation to point to maint.mk
11037         * build-aux/update-copyright: Here.
11038
11039 2009-08-06  Jim Meyering  <meyering@redhat.com>
11040
11041         maint.mk: support update-copyright-local
11042         * top/maint.mk (update-copyright-local): Define place-holder.
11043         (update-copyright): Depend on $(update-copyright-local).
11044
11045 2009-08-06  Jim Meyering  <meyering@redhat.com>
11046
11047         selinux-at: new module
11048         Initially written for coreutils, this module will soon be
11049         used by findutils, too.
11050         * MODULES.html.sh [Misc]: Add selinux-at.
11051         * lib/selinux-at.h: New file, from coreutils.
11052         * lib/selinux-at.c: Likewise.
11053         * modules/selinux-at: Likewise.
11054         (License): Change from LGPL to GPL, since it depends
11055         on the GPL'd openat module.
11056
11057         doc: update README
11058         * README: Remove references to cogito.
11059         Remove cvs-repo-updating instructions from 2007.
11060         Don't imply that CVS is better if you have limited disk space.
11061
11062 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
11063
11064         update-copyright: support C-style comments
11065         * build-aux/update-copyright: Implement and document.
11066         * tests/test-update-copyright.sh: Test.
11067
11068 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
11069
11070         update-copyright: support omitted "(C)"
11071         * build-aux/update-copyright: Implement and document.  Also,
11072         allow variable whitespace before "(C)".
11073         * tests/test-update-copyright.sh: Test.
11074
11075 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
11076
11077         update-copyright: don't trip on non-FSF copyright statements
11078         * build-aux/update-copyright: Fix so that the first correctly
11079         formatted FSF copyright statement is recognized no matter what
11080         appears before it.  Update documentation.
11081         * tests/test-update-copyright.sh: Test that.
11082
11083 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
11084
11085         update-copyright: clean up code a little
11086         * build-aux/update-copyright: Append "_re" to the name of any
11087         variable holding a regular expression.
11088         Replace "old" and "new" with "stmt" in variable names.
11089         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
11090         handled correctly.
11091         Format code more consistently.
11092
11093 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
11094
11095         update-copyright-tests: improve portability
11096         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
11097         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
11098
11099 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
11100
11101         update-copyright: support @copyright{} and &copy;
11102         * build-aux/update-copyright: Implement and document.
11103         * tests/test-update-copyright.sh: Test.
11104
11105 2009-08-04  Jim Meyering  <meyering@redhat.com>
11106
11107         update-copyright-tests: correctly test EOL=\r\n handling
11108         * tests/test-update-copyright.sh: Put \r at the end of some lines
11109         for the dos-eol tests.  Based on a patch by Joel E. Denny.
11110
11111         maint.mk: make update-copyright exclusion list more configurable
11112         * top/maint.mk (update-copyright): Default to excluding COPYING,
11113         but allow an override, in case someone does want to update that file.
11114
11115         maint.mk: don't update copyright date in COPYING
11116         * top/maint.mk (update-copyright): Exclude COPYING.
11117
11118         maint.mk: add a copyright-updating rule
11119         * top/maint.mk (update-copyright): New rule.
11120         Derived from coreutils/Makefile.am.
11121
11122         update-copyright: rename some variables
11123         * build-aux/update-copyright: Rename a few variables for clarity.
11124         Tweak syntax.  List Joel E. Denny as coauthor.
11125
11126 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
11127
11128         update-copyright: fix bug for 2-digit last year and add tests
11129         * build-aux/update-copyright: Fix bug.
11130         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
11131         specified.
11132         * modules/update-copyright-tests: New
11133         * tests/test-update-copyright.sh: New.
11134
11135 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
11136
11137         update-copyright: handle leading tabs in line prefix
11138         * build-aux/update-copyright: Count leading tabs as 8 spaces
11139         when computing margin.  This helps with the formatting of
11140         ChangeLogs, for example.
11141         Fix documentation a little.
11142
11143 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
11144
11145         update-copyright: support EOL=\r\n
11146         * build-aux/update-copyright: Implement that.
11147
11148 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
11149
11150         update-copyright: automatically format copyright statements
11151         * build-aux/update-copyright: Implement that.
11152         Also, be a little more predictable and safer by always failing
11153         when the full copyright format is not perfectly recognized as an
11154         unbroken whole.  Discussed at
11155         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
11156         Rewrite documentation.
11157
11158 2009-08-03  Bruno Haible  <bruno@clisp.org>
11159
11160         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
11161
11162 2009-08-02  Bruno Haible  <bruno@clisp.org>
11163
11164         Tests for module 'uname'.
11165         * modules/uname-tests: New file.
11166         * tests/test-uname.c: New file.
11167
11168         New module 'uname'.
11169         * lib/uname.c: New file.
11170         * m4/uname.m4: New file.
11171         * modules/uname: New file.
11172         * doc/posix-functions/uname.texi: Mention the new module.
11173
11174 2009-08-02  Bruno Haible  <bruno@clisp.org>
11175
11176         Tests for module 'sys_utsname'.
11177         * modules/sys_utsname-tests: New file.
11178         * tests/test-sys_utsname.c: New file.
11179
11180         New module 'sys_utsname'.
11181         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
11182         * m4/sys_utsname_h.m4: New file.
11183         * modules/sys_utsname: New file.
11184         * doc/posix-headers/sys_utsname.texi: Mention the new module.
11185
11186 2009-08-02  Bruno Haible  <bruno@clisp.org>
11187
11188         Implicitly initialize the sockets library.
11189         * lib/gethostname.c: Include sockets.h.
11190         (rpl_gethostname): Invoke gl_sockets_startup.
11191         * lib/socket.c: Include sockets.h.
11192         (rpl_socket): Invoke gl_sockets_startup.
11193         * modules/gethostname (Depends-on): Add sockets.
11194         * modules/socket (Depends-on): Likewise.
11195         * tests/test-poll.c: Don't include sockets.h.
11196         (main): Don't invoke gl_sockets_startup.
11197         * tests/test-select.c: Don't include sockets.h.
11198         (main): Don't invoke gl_sockets_startup.
11199
11200 2009-08-02  Bruno Haible  <bruno@clisp.org>
11201
11202         Allow multiple calls to gl_sockets_startup.
11203         * lib/sockets.c (initialized_sockets_version): New variable.
11204         (gl_sockets_startup): Do nothing if already called for this or a higher
11205         version.
11206         (gl_sockets_cleanup): Reset initialized_sockets_version.
11207
11208 2009-08-03  Simon Josefsson  <simon@josefsson.org>
11209
11210         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
11211         different project/version.
11212
11213 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
11214             Bruno Haible  <bruno@clisp.org>
11215
11216         Tests for module 'pipe-filter-gi'.
11217         * modules/pipe-filter-gi-tests: New file.
11218         * tests/test-pipe-filter-gi1.sh: New file.
11219         * tests/test-pipe-filter-gi1.c: New file.
11220         * tests/test-pipe-filter-gi2.sh: New file.
11221         * tests/test-pipe-filter-gi2-main.c: New file.
11222         * tests/test-pipe-filter-gi2-child.c: New file.
11223
11224         New module 'pipe-filter-gi'.
11225         * lib/pipe-filter-gi.c: New file.
11226         * modules/pipe-filter-gi: New file.
11227
11228 2009-08-02  Bruno Haible  <bruno@clisp.org>
11229             Paolo Bonzini  <bonzini@gnu.org>
11230
11231         Tests for module 'pipe-filter-ii'.
11232         * modules/pipe-filter-ii-tests: New file.
11233         * tests/test-pipe-filter-ii1.sh: New file.
11234         * tests/test-pipe-filter-ii1.c: New file.
11235         * tests/test-pipe-filter-ii2.sh: New file.
11236         * tests/test-pipe-filter-ii2-main.c: New file.
11237         * tests/test-pipe-filter-ii2-child.c: New file.
11238
11239         New module 'pipe-filter-ii'.
11240         * lib/pipe-filter.h: New file.
11241         * lib/pipe-filter-ii.c: New file.
11242         * lib/pipe-filter-aux.h: New file.
11243         * modules/pipe-filter-ii: New file.
11244
11245 2009-08-02  Simon Josefsson  <simon@josefsson.org>
11246
11247         * lib/gc-libgcrypt.c: Change copyright to FSF.
11248         * lib/gc-gnulib.c: Likewise.
11249
11250 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
11251
11252         * lib/gethostname.c: Include limits.h.
11253
11254 2009-08-02  Simon Josefsson  <simon@josefsson.org>
11255             Bruno Haible  <bruno@clisp.org>
11256
11257         Ensure HOST_NAME_MAX as part of the gethostname module.
11258         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
11259         define also HOST_NAME_MAX.
11260         * tests/test-gethostname.c: Include <limits.h>.
11261         (main): Check also HOST_NAME_MAX.
11262         * doc/posix-headers/limits.texi: Document the mingw problem.
11263
11264 2009-08-02  Bruno Haible  <bruno@clisp.org>
11265
11266         * lib/gethostname.c (gethostname): Fix handling of large len argument.
11267         Add comments.
11268
11269 2009-03-31  Simon Josefsson  <simon@josefsson.org>
11270
11271         * lib/gethostname.c: Add Windows wrapper.
11272         * m4/gethostname.m4: Look for gethostname in -lws2_32.
11273         * modules/gethostname: Depend on sys_socket & errno, for also
11274         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
11275         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
11276
11277 2009-07-31  Jim Meyering  <meyering@redhat.com>
11278
11279         getloadavg: fix symbol name in comment
11280         * lib/getloadavg.c: Correct a typo I introduced when adding
11281         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
11282         Matt Kraai spotted the problem.
11283
11284 2009-07-29  Matt Kraai  <mkraai@beckman.com>
11285
11286         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
11287         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
11288         code also if ! defined N_NAME_POINTER.
11289         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
11290         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
11291         but the n_name member is a 12-byte array.
11292
11293 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
11294
11295         update-copyright: generalize comment handling
11296         * build-aux/update-copyright: Handle copyright statements
11297         within more comment styles.
11298         Document usage.
11299         Report any file with an external copyright holder or parse failure.
11300
11301 2009-07-29  Jim Meyering  <meyering@redhat.com>
11302
11303         mktime: correct setting of REPLACE_MKTIME
11304         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
11305
11306         update-copyright: new module
11307         * modules/update-copyright: New file.
11308         * build-aux/update-copyright: New file.
11309         * MODULES.html.sh (maint+release support): Add update-copyright.
11310
11311 2009-07-27  Bruno Haible  <bruno@clisp.org>
11312
11313         Fix compilation error when <ctime> is used and mktime is replaced.
11314         * lib/time.in.h (mktime): New declaration.
11315         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
11316         REPLACE_MKTIME instead of defining mktime in config.h.
11317         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
11318         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
11319         Reported by Ross McFarland <rwmcfa1@neces.com>.
11320
11321 2009-07-27  Bruno Haible  <bruno@clisp.org>
11322
11323         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
11324         Reported by Matt Kraai <mkraai@beckman.com>.
11325
11326 2009-07-25  Jim Meyering  <meyering@redhat.com>
11327
11328         maint.mk: avoid warnings about missing files
11329         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
11330         diagnostic when .prev-version does not exist.
11331         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
11332         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
11333         nonexistent cfg.mk.
11334         Suggestions from Simon Josefsson.
11335
11336 2009-07-25  Bruno Haible  <bruno@clisp.org>
11337
11338         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
11339         defined as macros. Needed on QNX 6.4.1.
11340         Reported by Matt Kraai <mkraai@beckman.com>.
11341
11342 2009-07-23  Jim Meyering  <meyering@redhat.com>
11343
11344         maint.mk: invoke "make dist" with a working value of XZ_OPT
11345         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
11346
11347 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
11348
11349         Make fseeko.c compile on QNX.
11350         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
11351
11352 2009-07-22  Peter Simons  <simons@cryp.to>
11353
11354         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
11355         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
11356         * lib/md4.h: Likewise.
11357         * lib/md5.h: Likewise.
11358         * lib/sha1.h: Likewise.
11359         * lib/sha256.h: Likewise.
11360         * lib/sha512.h: Likewise.
11361
11362         tests-sha1: don't assign literal string to 'char *' variable
11363         * tests/test-sha1.c (main): Declare locals with "const" to match
11364         attributes of the right hand side.
11365
11366 2009-07-21  Eric Blake  <ebb9@byu.net>
11367
11368         dup2: fix more mingw problems
11369         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
11370         fd to itself.
11371         * doc/posix-functions/dup2.texi (dup2): Document the bug.
11372         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
11373         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
11374         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
11375         care of mingw bugs.
11376
11377 2009-07-21  Jim Meyering  <meyering@redhat.com>
11378
11379         vc-list-files: avoid failure when /bin/sh is dash
11380         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
11381         On some Debian based systems, /bin/sh is a symlink to dash, and running
11382         this command would omit the "/" following each 'tests' prefix:
11383           dash -x build-aux/vc-list-files -C . tests
11384         That is because bash and dash work differently:
11385           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
11386           bash ok
11387           dash odd
11388
11389 2009-07-21  Eric Blake  <ebb9@byu.net>
11390
11391         dup2-tests: test previous patch
11392         * modules/dup2-tests: New file.
11393         * tests/test-dup2.c: Likewise.
11394         * tests/test-open.c (main): Avoid unspecified behavior.
11395         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
11396         test.
11397
11398         dup2: work around mingw and cygwin 1.5 bug
11399         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
11400         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
11401         * modules/unistd (Makefile.am): Substitute it.
11402         * lib/unistd.in.h (dup2): Declare the replacement.
11403         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
11404         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
11405         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
11406         * modules/execute (Depends-on): Add dup2.
11407         * modules/fseterr (Depends-on): Likewise.
11408         * modules/pipe (Depends-on): Likewise.
11409         * modules/posix_spawn-internal (Depends-on): Likewise.
11410
11411 2009-07-21  Bruno Haible  <bruno@clisp.org>
11412
11413         * modules/.gitattributes: New file.
11414
11415 2009-07-20  Bruno Haible  <bruno@clisp.org>
11416
11417         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
11418         (main): Use it.
11419
11420 2009-07-20  Eric Blake  <ebb9@byu.net>
11421
11422         test-pipe: make a bit more robust.
11423         * tests/test-pipe.c (myerr): Allow error messages regardless of
11424         what we do to stderr.
11425         (test_pipe): Rearrange to avoid deadlock.
11426         (child_main): Try a larger read, to ensure we avoided deadlock.
11427         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
11428         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
11429         if misused.
11430
11431 2009-07-19  Jim Meyering  <meyering@redhat.com>
11432
11433         fts: avoid false-positive cycle-detection
11434         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
11435         for each new command line argument.
11436
11437 2009-07-19  Bruno Haible  <bruno@clisp.org>
11438
11439         Fix build error on mingw with the modules sys_select and unistd.
11440         * modules/acl-tests (Depends-on): Add close.
11441         * modules/binary-io-tests (Depends-on): Likewise.
11442         * modules/closein-tests (Depends-on): Likewise.
11443         * modules/flock-tests (Depends-on): Likewise.
11444         * modules/fsync-tests (Depends-on): Likewise.
11445         * modules/lseek-tests (Depends-on): Likewise.
11446         * modules/pipe-tests (Depends-on): Likewise.
11447         * modules/posix_spawn-tests (Depends-on): Likewise.
11448         * modules/posix_spawnp-tests (Depends-on): Likewise.
11449         * modules/stat-time-tests (Depends-on): Likewise.
11450         * modules/yesno-tests (Depends-on): Likewise.
11451
11452 2009-07-19  Bruno Haible  <bruno@clisp.org>
11453
11454         Unify conditionals.
11455         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
11456         macros, not at the compiler macros.
11457         * lib/pipe.c: Likewise.
11458         * lib/execute.c: Likewise.
11459         * lib/spawni.c: Likewise.
11460
11461 2009-07-19  Bruno Haible  <bruno@clisp.org>
11462
11463         Fix handling of closed stdin/stdout/stderr on mingw.
11464         * lib/w32spawn.h: Include unistd.h.
11465         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
11466         file descriptor with O_NOINHERIT flag.
11467         (fd_safer_noinherit): New function, based on fd-safer.c.
11468         (dup_safer_noinherit): New function, based on dup-safer.c.
11469         (undup_safer_noinherit): New function.
11470         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
11471         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
11472         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
11473         instead of fd_safer.
11474         * tests/test-pipe.c: Include <windows.h>.
11475         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
11476
11477         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
11478         from main.
11479         (test_pipe): Pass an extra argument for disambiguation.
11480         (main): Invoke parent_main or child_main.
11481
11482         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
11483         consistently.
11484
11485 2009-07-18  Eric Blake  <ebb9@byu.net>
11486
11487         test-pipe: fix mingw build
11488         * tests/test-pipe.c (main): Avoid fcntl on mingw.
11489
11490 2009-07-18  Bruno Haible  <bruno@clisp.org>
11491
11492         * modules/pipe-tests (Makefile.am): Fix typo.
11493
11494 2009-07-18  Eric Blake  <ebb9@byu.net>
11495
11496         error: fix mingw build
11497         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
11498         Reported by Bruno Haible.
11499
11500         error: avoid undefined use of stdout
11501         * lib/error.c (error, error_at_line): Check that fd 1 is open
11502         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
11503         is handling faults and the close_stdout module wants to report the
11504         detection of closed stdout as an error.
11505
11506 2009-07-17  Eric Blake  <ebb9@byu.net>
11507
11508         pipe: be robust in face of closed fds
11509         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
11510         should cause child to misbehave.
11511         * modules/pipe-tests: New module.
11512         * tests/test-pipe.c: New file.
11513         * tests/test-pipe.sh: New file.
11514         Reported by Akim Demaille.
11515
11516 2009-07-14  Bruno Haible  <bruno@clisp.org>
11517
11518         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
11519         Reported by anonymous kc.
11520
11521 2009-07-07  Jim Meyering  <meyering@redhat.com>
11522
11523         maint.mk: don't look for translatable strings in *.m4 or *.mk
11524         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
11525         when searching for translatable strings.
11526
11527 2009-07-05  Jim Meyering  <meyering@redhat.com>
11528
11529         remove superfluous parentheses in STREQ definition
11530         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
11531         * lib/getugroups.c (STREQ): Likewise.
11532         * lib/fnmatch.c (STREQ): Likewise.
11533         Spotted by Bruno Haible.
11534
11535 2009-07-04  Jim Meyering  <meyering@redhat.com>
11536
11537         argv-iter: new module
11538         * MODULES.html.sh: Add argv-iter.
11539         * lib/argv-iter.c, lib/argv-iter.h: New files.
11540         * modules/argv-iter: New file.
11541         * modules/argv-iter-tests: New file.
11542         * tests/test-argv-iter.c: Test it.
11543
11544 2009-07-04  Bruno Haible  <bruno@clisp.org>
11545
11546         Fix assertion.
11547         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
11548         contains more exact copies of a given entry than file2, leave the extra
11549         copies unpaired rather than aborting.
11550         Reported by Eric Blake.
11551
11552 2009-07-02  Bruno Haible  <bruno@clisp.org>
11553
11554         Speedup git-merge-changelog for git cherry-pick.
11555         * lib/git-merge-changelog.c (struct entries_mapping): New type.
11556         (entries_mapping_get): New function, extracted from compute_mapping.
11557         (entries_mapping_reverse_get): New function.
11558         (compute_mapping): Add a 'full' argument. Return the result in a
11559         'struct entries_mapping'.
11560         (main): Update. Access the mappings through entries_mapping_get.
11561         Reported by Eric Blake.
11562
11563 2009-07-02  Bruno Haible  <bruno@clisp.org>
11564
11565         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
11566         best_i.
11567
11568 2009-07-02  Bruno Haible  <bruno@clisp.org>
11569
11570         Speed up approximate search for matching ChangeLog entries.
11571         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
11572         argument. Call fstrcmp_bounded instead of fstrcmp.
11573         (compute_mapping, try_split_merged_entry, main): Update callers.
11574
11575 2009-07-02  Bruno Haible  <bruno@clisp.org>
11576
11577         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
11578
11579 2009-06-30  Bruno Haible  <bruno@clisp.org>
11580
11581         Reduce the number of uc_is_cased calls.
11582         * lib/unicase.h (casing_suffix_context_t): Add
11583         'first_char_except_ignorable' field.
11584         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
11585         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
11586         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
11587         Update initializer.
11588         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
11589         case-ignorable characters.
11590         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
11591         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
11592         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
11593         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
11594         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
11595
11596 2009-06-30  Bruno Haible  <bruno@clisp.org>
11597
11598         Tests for module 'unicase/ignorable'.
11599         * modules/unicase/ignorable-tests: New file.
11600         * tests/unicase/test-ignorable.c: New file, generated by
11601         gen-uni-tables.
11602
11603         Tests for module 'unicase/cased'.
11604         * modules/unicase/cased-tests: New file.
11605         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
11606         * tests/unicase/test-predicate-part1.h: New file, derived from
11607         tests/unictype/test-predicate-part1.h.
11608         * tests/unicase/test-predicate-part2.h: New file, same as
11609         tests/unictype/test-predicate-part2.h.
11610
11611         Fix evaluation of "Before C" condition of FINAL_SIGMA.
11612         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
11613         (output_casing_properties): New function.
11614         (main): Call it.
11615         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
11616         * lib/unicase/cased.c: Include unictype/bitmap.h.
11617         (uc_is_cased): Define through a bitmap lookup.
11618         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
11619         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
11620         (uc_is_case_ignorable): Define through a bitmap lookup.
11621         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
11622         lib/unictype/bitmap.h.
11623         (Depends-on): Add inline. Clean up.
11624         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
11625         lib/unictype/bitmap.h.
11626         (Depends-on): Add inline. Clean up.
11627         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
11628         recognition.
11629         * tests/unicase/test-u16-tolower.c (main): Likewise.
11630         * tests/unicase/test-u32-tolower.c (main): Likewise.
11631
11632 2009-06-30  Bruno Haible  <bruno@clisp.org>
11633
11634         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
11635         * lib/unicase/u16-casemap.c: Likewise.
11636         * lib/unicase/u32-casemap.c: Likewise.
11637
11638 2009-06-29  Bruno Haible  <bruno@clisp.org>
11639
11640         Define u32_casefold as a wrapper around u32_ct_casefold.
11641         * lib/unicase/u32-casefold.c: Update.
11642         * modules/unicase/u32-casefold (Depends-on): Add
11643         unicase/u32-ct-casefold, unicase/empty-prefix-context,
11644         unicase/empty-suffix-context. Clean up.
11645
11646         Define u16_casefold as a wrapper around u16_ct_casefold.
11647         * lib/unicase/u16-casefold.c: Update.
11648         * modules/unicase/u16-casefold (Depends-on): Add
11649         unicase/u16-ct-casefold, unicase/empty-prefix-context,
11650         unicase/empty-suffix-context. Clean up.
11651
11652         Define u8_casefold as a wrapper around u8_ct_casefold.
11653         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
11654         * lib/unicase/u8-casefold.c: Update.
11655         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
11656         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
11657
11658         Define u32_totitle as a wrapper around u32_ct_totitle.
11659         * lib/unicase/u32-totitle.c: Update.
11660         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
11661         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
11662
11663         Define u16_totitle as a wrapper around u16_ct_totitle.
11664         * lib/unicase/u16-totitle.c: Update.
11665         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
11666         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
11667
11668         Define u8_totitle as a wrapper around u8_ct_totitle.
11669         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
11670         functions.
11671         (FUNC): Delegate to U_CT_TOTITLE.
11672         * lib/unicase/u8-totitle.c: Update.
11673         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
11674         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
11675
11676         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
11677         invocation.
11678         * modules/unicase/u32-tolower (Depends-on): Add
11679         unicase/empty-prefix-context, unicase/empty-suffix-context.
11680
11681         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
11682         invocation.
11683         * modules/unicase/u16-tolower (Depends-on): Add
11684         unicase/empty-prefix-context, unicase/empty-suffix-context.
11685
11686         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
11687         * modules/unicase/u8-tolower (Depends-on): Add
11688         unicase/empty-prefix-context, unicase/empty-suffix-context.
11689
11690         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
11691         invocation.
11692         * modules/unicase/u32-toupper (Depends-on): Add
11693         unicase/empty-prefix-context, unicase/empty-suffix-context.
11694
11695         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
11696         invocation.
11697         * modules/unicase/u16-toupper (Depends-on): Add
11698         unicase/empty-prefix-context, unicase/empty-suffix-context.
11699
11700         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
11701         * modules/unicase/u8-toupper (Depends-on): Add
11702         unicase/empty-prefix-context, unicase/empty-suffix-context.
11703
11704         New module 'unicase/u32-ct-casefold'.
11705         * lib/unicase/u32-ct-casefold.c: New file.
11706         * modules/unicase/u32-ct-casefold: New file.
11707
11708         New module 'unicase/u16-ct-casefold'.
11709         * lib/unicase/u16-ct-casefold.c: New file.
11710         * modules/unicase/u16-ct-casefold: New file.
11711
11712         New module 'unicase/u8-ct-casefold'.
11713         * lib/unicase/u8-ct-casefold.c: New file.
11714         * lib/unicase/u-ct-casefold.h: New file, derived from
11715         lib/unicase/u-casefold.h.
11716         * modules/unicase/u8-ct-casefold: New file.
11717
11718         New module 'unicase/u32-ct-totitle'.
11719         * lib/unicase/u32-ct-totitle.c: New file.
11720         * modules/unicase/u32-ct-totitle: New file.
11721
11722         New module 'unicase/u16-ct-totitle'.
11723         * lib/unicase/u16-ct-totitle.c: New file.
11724         * modules/unicase/u16-ct-totitle: New file.
11725
11726         New module 'unicase/u8-ct-totitle'.
11727         * lib/unicase/u8-ct-totitle.c: New file.
11728         * lib/unicase/u-ct-totitle.h: New file, derived from
11729         lib/unicase/u-totitle.h.
11730         * modules/unicase/u8-ct-totitle: New file.
11731
11732         New module 'unicase/u32-ct-tolower'.
11733         * lib/unicase/u32-ct-tolower.c: New file.
11734         * modules/unicase/u32-ct-tolower: New file.
11735
11736         New module 'unicase/u16-ct-tolower'.
11737         * lib/unicase/u16-ct-tolower.c: New file.
11738         * modules/unicase/u16-ct-tolower: New file.
11739
11740         New module 'unicase/u8-ct-tolower'.
11741         * lib/unicase/u8-ct-tolower.c: New file.
11742         * modules/unicase/u8-ct-tolower: New file.
11743
11744         New module 'unicase/u32-ct-toupper'.
11745         * lib/unicase/u32-ct-toupper.c: New file.
11746         * modules/unicase/u32-ct-toupper: New file.
11747
11748         New module 'unicase/u16-ct-toupper'.
11749         * lib/unicase/u16-ct-toupper.c: New file.
11750         * modules/unicase/u16-ct-toupper: New file.
11751
11752         New module 'unicase/u8-ct-toupper'.
11753         * lib/unicase/u8-ct-toupper.c: New file.
11754         * modules/unicase/u8-ct-toupper: New file.
11755
11756         Add context arguments to u*_casemap functions.
11757         * lib/unicase/unicasemap.h: Include unicase.h.
11758         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
11759         suffix_context arguments.
11760         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
11761         functions.
11762         (FUNC): Add prefix_context and suffix_context arguments. Use
11763         uc_is_cased and uc_is_case_ignorable.
11764         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
11765         * lib/unicase/u16-casemap.c: Likewise.
11766         * lib/unicase/u32-casemap.c: Likewise.
11767         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
11768         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
11769         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
11770         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
11771         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
11772         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
11773
11774         New module 'unicase/u32-suffix-context'.
11775         * lib/unicase/u32-suffix-context.c: New file.
11776         * modules/unicase/u32-suffix-context: New file.
11777
11778         New module 'unicase/u16-suffix-context'.
11779         * lib/unicase/u16-suffix-context.c: New file.
11780         * modules/unicase/u16-suffix-context: New file.
11781
11782         New module 'unicase/u8-suffix-context'.
11783         * lib/unicase/u8-suffix-context.c: New file.
11784         * lib/unicase/u-suffix-context.h: New file.
11785         * modules/unicase/u8-suffix-context: New file.
11786
11787         New module 'unicase/empty-suffix-context'.
11788         * lib/unicase/empty-suffix-context.c: New file.
11789         * modules/unicase/empty-suffix-context: New file.
11790
11791         New module 'unicase/u32-prefix-context'.
11792         * lib/unicase/u32-prefix-context.c: New file.
11793         * modules/unicase/u32-prefix-context: New file.
11794
11795         New module 'unicase/u16-prefix-context'.
11796         * lib/unicase/u16-prefix-context.c: New file.
11797         * modules/unicase/u16-prefix-context: New file.
11798
11799         New module 'unicase/u8-prefix-context'.
11800         * lib/unicase/u8-prefix-context.c: New file.
11801         * lib/unicase/u-prefix-context.h: New file.
11802         * lib/unicase/context.h: New file.
11803         * modules/unicase/u8-prefix-context: New file.
11804
11805         New module 'unicase/empty-prefix-context'.
11806         * lib/unicase/empty-prefix-context.c: New file.
11807         * modules/unicase/empty-prefix-context: New file.
11808
11809         New module 'unicase/ignorable'.
11810         * lib/unicase/ignorable.c: New file.
11811         * modules/unicase/ignorable: New file.
11812
11813         New module 'unicase/cased'.
11814         * lib/unicase/caseprop.h: New file.
11815         * lib/unicase/cased.c: New file.
11816         * modules/unicase/cased: New file.
11817
11818         New functions for case mapping of substrings.
11819         * lib/unicase.h (casing_prefix_context_t): New type.
11820         (unicase_empty_prefix_context): New variable.
11821         (u8_casing_prefix_context, u16_casing_prefix_context,
11822         u32_casing_prefix_context, u8_casing_prefixes_context,
11823         u16_casing_prefixes_context, u32_casing_prefixes_context): New
11824         declarations.
11825         (casing_suffix_context_t): New type.
11826         (unicase_empty_suffix_context): New variable.
11827         (u8_casing_suffix_context, u16_casing_suffix_context,
11828         u32_casing_suffix_context, u8_casing_suffixes_context,
11829         u16_casing_suffixes_context, u32_casing_suffixes_context,
11830         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
11831         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
11832         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
11833         declarations.
11834
11835 2009-06-28  Jim Meyering  <meyering@redhat.com>
11836
11837         boostrap: indent only with spaces
11838         * build-aux/bootstrap: Indent only with spaces, never TABs.
11839
11840         bootstrap: split long lines
11841         * build-aux/bootstrap: Keep line length < 80.
11842
11843         bootstrap: sync from coreutils
11844         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
11845         just as autoreconf does.  Verify a list of prerequisite
11846         package-name,version-number pairs if defined in bootstrap.conf.
11847         Refer to README-prereq, if prerequisites are not satisfied.
11848
11849 2009-06-27  Eric Blake  <ebb9@byu.net>
11850
11851         tests: add test for bogus NULL definition
11852         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
11853         * tests/test-stdlib.c: Likewise.
11854         * tests/test-string.c: Likewise.
11855         * tests/test-locale.c: Likewise.
11856         * tests/test-unistd.c: Likewise.
11857         * modules/stdio-tests (Depends-on): Add verify.
11858         * modules/stdlib-tests (Depends-on): Likewise.
11859         * modules/string-tests (Depends-on): Likewise.
11860         * modules/locale-tests (Depends-on): Likewise.
11861         * modules/unistd-tests (Depends-on): Likewise.
11862
11863 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
11864
11865         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
11866         self-explaining comment.
11867         * m4/selinux-selinux-h: Update serial.
11868         (gl_LIBSELINUX): New macro, adding a warning for missing development
11869         packages to code extracted from...
11870         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
11871         Add warning for missing development packages here, too.
11872
11873 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
11874
11875         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
11876
11877 2009-06-25  Eric Blake  <ebb9@byu.net>
11878
11879         version-etc: fix regression
11880         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
11881         gcc.
11882         (version_etc): Use it, to catch bugs with trailing NULL.
11883         * lib/version-etc.c (version_etc_arn): Delete unused argument.
11884         (version_etc_va): Fix logic bug.
11885         * modules/version-etc-tests: Add test.
11886         * tests/test-version-etc.c: New file.
11887         * tests/test-version-etc.sh: Likewise.
11888
11889 2009-06-25  Sam Steingold  <sds@gnu.org>
11890
11891         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
11892         mbtowc declaration.
11893
11894 2009-06-25  Eric Blake  <ebb9@byu.net>
11895
11896         fpurge: migrate into <stdio.h>
11897         * lib/fpurge.h: Delete...
11898         * lib/stdio.in.h (fpurge): ...and declare here, instead.
11899         * lib/fpurge.c (fpurge): Change declaring header.
11900         * modules/fpurge (Files): Drop deleted file.
11901         (Depends-on): Add stdio.
11902         (configure.ac): Set witness.
11903         * modules/stdio (Makefile.am): Support fpurge macros.
11904         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
11905         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
11906         * lib/fflush.c: Update client.
11907         * tests/test-fpurge.c: Likewise.
11908         * NEWS: Mention the change.
11909
11910 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
11911
11912         * lib/argp-version-etc.c (program_authors): Add const
11913         qualifier.
11914         * lib/version-etc.c: Fix typos in the comments.
11915         * modules/argp-version-etc: Depends on version-etc.
11916
11917 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
11918
11919         argp-version-etc: new module.
11920
11921         * lib/argp-version-etc.c: New file.
11922         * lib/argp-version-etc.h: New file.
11923         * modules/argp-version-etc: New file.
11924         * modules/argp-version-etc-tests: New file.
11925         * tests/test-argp-version-etc.c: New test.
11926         * tests/test-argp-version-etc-1.sh: New test.
11927
11928 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
11929
11930         Provide additional interfaces and documentation for version-etc
11931         module.
11932
11933         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
11934         interfaces.
11935         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
11936         prototypes.
11937
11938 2009-06-24  Bruno Haible  <bruno@clisp.org>
11939
11940         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
11941         HAVE_LIB${NAME} macro.
11942         Reported by Sam Steingold <sds@gnu.org>.
11943
11944 2009-06-23  Simon Josefsson  <simon@josefsson.org>
11945
11946         * modules/hash-tests (test_hash_LDADD): Link to libintl when
11947         needed.
11948
11949 2009-06-21  Bruno Haible  <bruno@clisp.org>
11950
11951         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
11952         work.
11953         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
11954         together with LIB${NAME}, LTLIB${NAME}.
11955         Reported by Sam Steingold <sds@gnu.org>.
11956
11957 2009-06-20  Jim Meyering  <meyering@redhat.com>
11958
11959         tests: make sc_require_test_exit_idiom more generic
11960         * top/maint.mk (Exit_witness_file): New overridable variable.
11961         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
11962         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
11963
11964 2009-06-19  Jim Meyering  <meyering@redhat.com>
11965
11966         hash: reverse order of src/dst parameters in an internal interface
11967         * lib/hash.c (transfer_entries): Reverse order of parameters to
11968         put DST before SRC.  Adjust callers.
11969
11970         tests: test-hash: avoid wholesale duplication
11971         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
11972         Instead, use a loop and add a single conditional.
11973
11974         tests: test-hash: allow seed selection via a command line argument
11975         * tests/test-hash.c (get_seed): New function.
11976         (main): Use it.
11977
11978 2009-06-19  Eric Blake  <ebb9@byu.net>
11979
11980         hash: avoid memory leak on allocation failure
11981         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
11982         failure.  Factor repeated algorithm...
11983         (transfer_entries): ...into new helper routine.
11984         (hash_delete): React to hash_rehash return value.
11985
11986         hash: reduce memory pressure in hash_rehash no-op case
11987         * lib/hash.c (next_prime): Avoid overflow.
11988         (hash_initialize): Factor bucket size computation...
11989         (compute_bucket_size): ...into new helper function.
11990         (hash_rehash): Use new function and open coding to reduce memory
11991         pressure, and avoid a memory leak in USE_OBSTACK code.
11992         Reported by Jim Meyering.
11993
11994 2009-06-18  Eric Blake  <ebb9@byu.net>
11995
11996         hash: make rotation more obvious
11997         * modules/hash (Depends-on): Add bitrotate and stdint.
11998         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
11999         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
12000         (SIZE_MAX): Rely on headers for definition.
12001         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
12002         (raw_hasher): Use rotr_sz.
12003         Suggested by Jim Meyering.
12004
12005         hash: fix memory leak in last patch
12006         * lib/hash.c (hash_rehash): Avoid memory leak.
12007
12008         hash: avoid no-op rehashing
12009         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
12010
12011         hash: provide default callback functions
12012         * lib/hash.c (raw_hasher, raw_comparator): New functions.
12013         (hash_initialize): Use them as defaults.
12014         * tests/test-hash.c (main): Test this.
12015
12016         hash: minor optimization
12017         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
12018         when possible.
12019         (hash_initialize): Document this promise.
12020         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
12021         * tests/test-hash.c (hash_compare_strings): Test this.
12022
12023 2009-06-18  Bruno Haible  <bruno@clisp.org>
12024
12025         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
12026         going to be replaced anyway.
12027
12028 2009-06-18  Bruno Haible  <bruno@clisp.org>
12029
12030         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
12031         in one place.
12032         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
12033         be replaced anyway.
12034
12035 2009-06-18  Eric Blake  <ebb9@byu.net>
12036
12037         hash: check for resize before insertion
12038         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
12039         threshold before insertion, so that a pathological hash_rehash
12040         that fills every bucket can still trigger another rehash.
12041
12042 2009-06-18  Jim Meyering  <meyering@redhat.com>
12043
12044         hash-tests: add a loop around the small tests
12045         * tests/test-hash.c (main): Repeat small tests with selected
12046         small initial table sizes.
12047
12048 2009-06-17  Eric Blake  <ebb9@byu.net>
12049
12050         hash: minor cleanups
12051         * lib/hash.h (hash_entry): Make opaque, by moving...
12052         * lib/hash.c (hash_entry): ...here.
12053         (hash_insert): Clarify restrictions on what can be inserted.
12054         (hash_get_next): Clarify when it is safe to remove an element
12055         during traversal.
12056         (check_tuning): Skip verification when tuning is known safe.
12057         (hash_initialize): Clarify restrictions on tuning.
12058
12059 2009-06-17  Jim Meyering  <jim@meyering.net>
12060         and Eric Blake  <ebb9@byu.net>
12061
12062         hash-tests: new module
12063         * modules/hash-tests: New file.
12064         * tests/test-hash.c: New file.
12065
12066 2009-06-17  Eric Blake  <ebb9@byu.net>
12067
12068         strstr-simple: document new module
12069         * MODULES.html.sh: Document new module.
12070
12071         strstr, strcasestr: replace on platforms with broken memchr
12072         * modules/strstr: Split into...
12073         * modules/strstr-simple: ...new module that does not care about
12074         performance, but does care about glibc bug.
12075         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
12076         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
12077         if platform memchr is broken, per Debian bug 521737.
12078         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
12079         memchr.
12080         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
12081         * doc/posix-functions/strstr.texi (strstr): Document the fix.
12082         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
12083         * modules/mountlist (Depends-on): Add strstr-simple.
12084         * modules/gen-uni-tables (Depends-on): Likewise.
12085         * modules/argz (Depends-on): Add strstr.
12086
12087 2009-06-17  Bruno Haible  <bruno@clisp.org>
12088
12089         * modules/posix_spawn-internal (Depends-on): Add errno.
12090
12091 2009-06-17  Bruno Haible  <bruno@clisp.org>
12092
12093         Define missing ESTALE on Interix 3.5.
12094         * lib/errno.in.h (ESTALE): Assign a value if missing.
12095         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
12096         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
12097         missing.
12098         * doc/posix-headers/errno.texi: Mention the Interix bug.
12099         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
12100
12101 2009-06-15  Eric Blake  <ebb9@byu.net>
12102
12103         memchr, memchr2: add valgrind exception
12104         * lib/memchr.valgrind: New file.
12105         * lib/memchr2.valgrind: New file.
12106         * modules/memchr (Files): Distribute valgrind file.
12107         * modules/memchr2 (Files): Likewise.
12108
12109         docs: memchr is no longer obsolete
12110         * MODULES.html.sh: Move memchr from obsolete to string.h section.
12111         * lib/string.in.h (memchr): Simplify logic.
12112
12113 2009-06-14  Jim Meyering  <meyering@redhat.com>
12114
12115         link-follow: fix the "checking..." message to not mention trailing slash
12116         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
12117         never considered trailing slashes.
12118
12119 2009-06-14  Bruno Haible  <bruno@clisp.org>
12120
12121         * m4/memchr.m4: Mention also the bug on IA-64.
12122         * doc/posix-functions/memchr.texi: Likewise.
12123
12124 2009-06-12  Eric Blake  <ebb9@byu.net>
12125
12126         memchr: detect broken x86_64 and alpha implementations
12127         * modules/memchr-tests (Depends-on): Move mmap detection...
12128         * modules/memchr (Depends-on): ...here.
12129         (configure.ac): Set indicator.
12130         * lib/string.in.h (memchr): Declare replacement.
12131         * modules/string (Makefile.am): Trigger replacement.
12132         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
12133         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
12134         bugs.
12135         * doc/posix-functions/memchr.texi (memchr): Document the bug.
12136         * modules/getpagesize (License): Relax license.
12137
12138 2009-06-11  Bruno Haible  <bruno@clisp.org>
12139
12140         * lib/idpriv.h: Add more references.
12141
12142 2009-06-08  Bruno Haible  <bruno@clisp.org>
12143
12144         Tests for module 'idpriv-droptemp'.
12145         * modules/idpriv-droptemp-tests: New file.
12146         * tests/test-idpriv-droptemp.sh: New file.
12147         * tests/test-idpriv-droptemp.su.sh: New file.
12148         * tests/test-idpriv-droptemp.c: New file.
12149
12150         New module 'idpriv-droptemp'.
12151         * lib/idpriv-droptemp.c: New file.
12152         * modules/idpriv-droptemp: New file.
12153
12154 2009-06-08  Bruno Haible  <bruno@clisp.org>
12155
12156         Tests for module 'idpriv-drop'.
12157         * modules/idpriv-drop-tests: New file.
12158         * tests/test-idpriv-drop.sh: New file.
12159         * tests/test-idpriv-drop.su.sh: New file.
12160         * tests/test-idpriv-drop.c: New file.
12161
12162         New module 'idpriv-drop'.
12163         * lib/idpriv.h: New file.
12164         * lib-idpriv-drop.c: New file.
12165         * m4/idpriv.m4: New file.
12166         * modules/idpriv-drop: New file.
12167
12168 2009-06-08  Bruno Haible  <bruno@clisp.org>
12169
12170         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
12171         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
12172         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
12173         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
12174         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
12175         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
12176         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
12177
12178 2009-06-08  Eric Blake  <ebb9@byu.net>
12179
12180         test-strstr: use memory fence, when possible
12181         * tests/test-strstr.c (main): Use memory fence, in order to be
12182         more likely to trigger Debian bug 521737.
12183         * modules/strstr-tests (Files): Pull in additional files.
12184
12185         memchr: no longer obsolete, for wider field testing
12186         * modules/memchr (Status, Notice): Delete, this module is no
12187         longer obsolete.
12188         * modules/vasnprintf (Depends-on): Add memchr.
12189
12190 2009-06-07  Jim Meyering  <meyering@redhat.com>
12191
12192         hash: declare some functions with the warn_unused_result attribute
12193         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
12194
12195 2009-06-07  Bruno Haible  <bruno@clisp.org>
12196
12197         * tests/test-alignof.c: Don't test int64_t if it does not exist.
12198         Reported by Eric Blake.
12199
12200 2009-06-06  Eric Blake  <ebb9@byu.net>
12201
12202         test-alignof: fix typo with long double
12203         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
12204         compiler error.
12205
12206 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
12207
12208         Escape non-texinfo { and }s.
12209         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
12210         markup error.
12211
12212 2009-06-04  Jim Meyering  <meyering@redhat.com>
12213
12214         gitlog-to-changelog: don't infloop on an empty commit log
12215         * build-aux/gitlog-to-changelog: Warn about an empty log message.
12216         Reported by Boris Petersen <transacid@centerim.org>.
12217
12218 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
12219
12220         version-etc: extend for packagers
12221         Add three new configure options, intended for packagers:
12222           --with-packager="packager name"
12223           --with-packager-version="packager-specific version"
12224           --with-packager-bug-reports="packager bug reporting"
12225         An example with coreutils:
12226           $ ./configure \
12227             --with-packager=Gentoo \
12228             --with-packager-bug-report=http://bugs.gentoo.org/ \
12229             --with-packager-version="patchset 1.6"
12230           $ ./src/ls --version | head -n2
12231           ls (GNU coreutils) 7.1-dirty
12232           Packaged by Gentoo (patchset 1.6)
12233         Note that the bug reporting info via --help doesn't show up because
12234         coreutils uses its own custom emit_bug_reporting_address() implementation
12235         in src/system.h.  If it didn't, it'd look like:
12236           $ ./src/ls --help | tail -n4
12237           Report bugs to <bug-coreutils@gnu.org>.
12238           Report Gentoo bugs to <http://bugs.gentoo.org/>.
12239           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
12240           General help using GNU software: <http://www.gnu.org/gethelp/>.
12241         * lib/version-etc.c: Print new information, if provided.
12242         * m4/version-etc.m4: New file.
12243         * modules/version-etc (Files): Add m4/version-etc.m4.
12244         (configure.ac): Add gl_VERSION_ETC.
12245
12246 2009-05-31  Bruno Haible  <bruno@clisp.org>
12247
12248         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
12249         and 'int64_t'.
12250         * modules/alignof-tests (Dependencies): Add stdint.
12251         Reported by Eric Blake.
12252
12253 2009-05-31  Bruno Haible  <bruno@clisp.org>
12254
12255         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
12256         restriction due to compiler bugs.
12257         Reported by Eric Blake.
12258
12259 2009-05-31  Simon Josefsson  <simon@josefsson.org>
12260             Bruno Haible  <bruno@clisp.org>
12261
12262         Fix test-alignof failure.
12263         * lib/alignof.h (alignof_slot): New macro.
12264         (alignof_type): New macro, with the same semantics as the previous
12265         'alignof'.
12266         (alignof): Alias to alignof_slot.
12267         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
12268         check that the results are usable as constant expressions.
12269
12270 2009-05-31  Bruno Haible  <bruno@clisp.org>
12271
12272         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
12273         * tests/test-memchr.c (main): Check that memchr does not read past the
12274         first occurrence of the byte.
12275         * tests/test-strstr.c (main): Update comment.
12276         Suggested by Eric Blake.
12277
12278 2009-05-30  Bruno Haible  <bruno@clisp.org>
12279
12280         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
12281         detail how to use dumpbin.
12282         Reported by David Byron <dbyron@dbyron.com>.
12283
12284 2009-06-02  Simon Josefsson  <simon@josefsson.org>
12285
12286         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
12287
12288 2009-06-02  Simon Josefsson  <simon@josefsson.org>
12289
12290         * m4/manywarnings.m4: Add GCC 4.4 warnings.
12291
12292 2009-05-28  Bruno Haible  <bruno@clisp.org>
12293
12294         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
12295         build-aux/ files.
12296
12297 2009-05-28  Simon Josefsson  <simon@josefsson.org>
12298
12299         * gnulib-tool (func_import): Transform license on build-aux/ files too.
12300
12301 2009-05-27  Simon Josefsson  <simon@josefsson.org>
12302
12303         * gnulib-tool (sed_transform_main_lib_file)
12304         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
12305         regexps.
12306
12307 2009-05-26  Simon Josefsson  <simon@josefsson.org>
12308
12309         * tests/test-strstr.c: Add another self-test.
12310         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
12311         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
12312
12313 2009-05-23  Bruno Haible  <bruno@clisp.org>
12314
12315         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
12316         change.
12317
12318 2009-05-21  Bruno Haible  <bruno@clisp.org>
12319
12320         Simplify use of mode_t varargs.
12321         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
12322         uses 'mode_t' or 'int'.
12323         * lib/openat.c (openat): Likewise.
12324         * lib/open-safer.c (open_safer): Likewise.
12325         * m4/mode_t.m4: New file.
12326         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
12327         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
12328         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
12329         * modules/open (Files): Add m4/mode_t.m4.
12330         * modules/openat (Files): Likewise.
12331         * modules/fcntl-safer (Files): Likewise.
12332         Suggested by Eric Blake.
12333
12334 2009-05-21  Pádraig Brady  <P@draigbrady.com>
12335
12336         * doc/glibc-functions/fallocate.texi: New file.
12337         * doc/gnulib.texi: Include it.
12338
12339 2009-05-21  Eric Blake  <ebb9@byu.net>
12340             Bruno Haible  <bruno@clisp.org>
12341
12342         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
12343         invocations.
12344         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
12345
12346 2009-05-21  Eric Blake  <ebb9@byu.net>
12347             Bruno Haible  <bruno@clisp.org>
12348
12349         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
12350         include_next. Fix of 2008-11-20 commit.
12351         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
12352         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
12353         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
12354         NEXT_MATH_H.
12355         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
12356         instead of NEXT_MATH_H.
12357
12358 2009-05-21  Bruno Haible  <bruno@clisp.org>
12359
12360         Avoid redefinition warnings for SIZE_MAX.
12361         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
12362         Reported by Simon Josefsson.
12363
12364 2009-05-21  Bruno Haible  <bruno@clisp.org>
12365
12366         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
12367         AC_CACHE_VAL.
12368
12369 2009-05-20  Bruno Haible  <bruno@clisp.org>
12370
12371         Make zeroptr.h work on mingw.
12372         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
12373         mprotect.
12374         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
12375         * modules/memchr2-tests (configure.ac): Likewise.
12376         * modules/memcmp-tests (configure.ac): Likewise.
12377         * modules/memmem-tests (configure.ac): Likewise.
12378         * modules/memrchr-tests (configure.ac): Likewise.
12379         Reported by Simon Josefsson.
12380
12381 2009-05-20  Simon Josefsson  <simon@josefsson.org>
12382
12383         * tests/test-glob.c: Include string.h for strcmp prototype.
12384
12385 2009-05-20  Simon Josefsson  <simon@josefsson.org>
12386
12387         * modules/getdelim (Depends-on): Add explicit stdint, although it
12388         was implicitly already pulled in via realloc-posix.
12389         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
12390
12391 2009-05-20  Simon Josefsson  <simon@josefsson.org>
12392
12393         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
12394         G. Christensen" <tgc@jupiterrise.com>.
12395         * m4/sys_socket_h.m4: Check for sa_family_t.
12396         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
12397         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
12398         * tests/test-sys_socket.c: Check that sa_family_t works.
12399
12400 2009-05-18  Eric Blake  <ebb9@byu.net>
12401
12402         maint.mk: allow gnulib_dir in VPATH build
12403         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
12404
12405 2009-05-15  Jim Meyering  <meyering@redhat.com>
12406
12407         maint.mk: Give gnulib_dir a default definition.
12408         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
12409         Thus, most packages no longer need to specify this variable in cfg.mk
12410
12411 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
12412
12413         rename.m4: fix typos that would make non-mingw cross-configure fail
12414         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
12415
12416 2009-05-13  Eric Blake  <ebb9@byu.net>
12417
12418         mmap-anon: avoid out-of-order autoconf expansion
12419         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
12420         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
12421         * modules/memchr-tests (Depends-on): Add extensions.
12422         * modules/memchr2-tests (Depends-on): Add extensions.
12423         * modules/memcmp-tests (Depends-on): Add extensions.
12424         * modules/memmem-tests (Depends-on): Add extensions.
12425         * modules/memrchr-tests (Depends-on): Add extensions.
12426
12427 2009-05-13  Bruno Haible  <bruno@clisp.org>
12428
12429         Make some tests ISO C 99 compliant.
12430         * tests/zerosize-ptr.h: New file.
12431         * tests/test-memchr.c: Include zerosize-ptr.h.
12432         (main): Use a zero-size object pointer instead of NULL.
12433         * tests/test-memchr2.c: Include zerosize-ptr.h.
12434         (main): Use a zero-size object pointer instead of NULL.
12435         * tests/test-memcmp.c: Include zerosize-ptr.h.
12436         (main): Use a zero-size object pointer instead of NULL.
12437         * tests/test-memmem.c: Include zerosize-ptr.h.
12438         (main): Use a zero-size object pointer instead of NULL.
12439         * tests/test-memrchr.c: Include zerosize-ptr.h.
12440         (main): Use a zero-size object pointer instead of NULL.
12441         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
12442         m4/mmap-anon.m4.
12443         (Depends-on): Add getpagesize.
12444         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
12445         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
12446         m4/mmap-anon.m4.
12447         (Depends-on): Add getpagesize.
12448         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
12449         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
12450         m4/mmap-anon.m4.
12451         (Depends-on): Add getpagesize.
12452         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
12453         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
12454         m4/mmap-anon.m4.
12455         (Depends-on): Add getpagesize.
12456         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
12457         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
12458         m4/mmap-anon.m4.
12459         (Depends-on): Add getpagesize.
12460         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
12461
12462 2009-05-12  Bruno Haible  <bruno@clisp.org>
12463
12464         Tests for module 'alignof'.
12465         * modules/alignof-tests: New file.
12466         * tests/test-alignof.c: New file.
12467
12468 2009-05-12  Bruno Haible  <bruno@clisp.org>
12469
12470         Fix alignof macro.
12471         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
12472         vendor compilers that are always correct.
12473
12474 2009-05-12  Bruno Haible  <bruno@clisp.org>
12475
12476         Make the MAP_ANONYMOUS detection work on HP-UX 11.
12477         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
12478         not whether its fully works.
12479
12480 2009-05-12  Bruno Haible  <bruno@clisp.org>
12481
12482         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
12483
12484 2009-05-12  Jim Meyering  <meyering@redhat.com>
12485
12486         * top/maint.mk: Adjust backslash alignment.
12487
12488 2009-05-11  Simon Josefsson  <simon@josefsson.org>
12489
12490         * top/maint.mk: Make $(srcdir)/build-aux configurable.
12491
12492 2009-05-11  Eric Blake  <ebb9@byu.net>
12493
12494         argp: avoid undefined behavior
12495         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
12496         macros.
12497
12498 2009-05-08  Simon Josefsson  <simon@josefsson.org>
12499
12500         * tests/test-vc-list-files-git.sh: Do git config of user.email and
12501         user.name to prevent git commit from complaining.
12502
12503 2009-05-10  Bruno Haible  <bruno@clisp.org>
12504
12505         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
12506         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
12507         it rewrites every file name only once.
12508         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
12509
12510 2009-05-08  Bruno Haible  <bruno@clisp.org>
12511
12512         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
12513         instead of 'max'.
12514
12515 2009-05-08  Simon Josefsson  <simon@josefsson.org>
12516
12517         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
12518         sockaddr_storage test.
12519
12520 2009-05-07  Simon Josefsson  <simon@josefsson.org>
12521
12522         * modules/sys_socket (Makefile.am): Substitute
12523         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
12524         * m4/sys_socket_h.m4: Check for sockaddr_storage.
12525         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
12526         * tests/test-sys_socket.c: Check sockaddr_storage.
12527
12528 2009-05-08  Bruno Haible  <bruno@clisp.org>
12529
12530         New module 'alignof'.
12531         * lib/alignof.h: New file.
12532         * modules/alignof: New file.
12533
12534 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
12535             Bruno Haible  <bruno@clisp.org>
12536
12537         Fix test-file-has-acl on FreeBSD.
12538         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
12539         mask is implicitly added.
12540         * tests/test-file-has-acl.c: Include <signal.h>.
12541         (main): Terminate the test after 5 seconds.
12542         * modules/acl-tests (configure.ac): Check for alarm function.
12543
12544 2009-05-04  Bruno Haible  <bruno@clisp.org>
12545
12546         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
12547         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
12548         * modules/errno (configure.ac): Drop AC_REQUIRE.
12549         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
12550         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
12551
12552 2009-05-04  Simon Josefsson  <simon@josefsson.org>
12553
12554         * modules/glob-tests: New module.
12555         * tests/test-glob.c: Add.
12556
12557 2009-05-04  Simon Josefsson  <simon@josefsson.org>
12558
12559         * modules/fnmatch-tests: New module.
12560         * tests/test-fnmatch.c: Add.
12561
12562 2009-05-04  Eric Blake  <ebb9@byu.net>
12563
12564         maint: make the new no-submodule-changes rule VPATH-safe
12565         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
12566
12567 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
12568             Bruno Haible  <bruno@clisp.org>
12569
12570         acl: Fix infinite loop on FreeBSD.
12571         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
12572         of return value from acl_get_entry.
12573         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
12574         Likewise.
12575
12576 2009-05-03  Bruno Haible  <bruno@clisp.org>
12577
12578         * lib/acl-internal.h (acl_entries): Clarify return value.
12579         * lib/acl_entries.c (acl_entries): Likewise.
12580
12581 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
12582
12583         Bug fix in acl module.
12584         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
12585
12586 2009-05-03  Bruno Haible  <bruno@clisp.org>
12587
12588         Create gperf-generated file in the source dir, not in the build dir.
12589         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
12590         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
12591         * modules/unicase/locale-language (unicase/locale-languages.h):
12592         Likewise.
12593         * modules/unicase/special-casing (unicase/special-casing-table.h):
12594         Likewise.
12595         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
12596         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
12597         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
12598         Reported by Ralf Wildenhues.
12599
12600 2009-05-03  Bruno Haible  <bruno@clisp.org>
12601
12602         * modules/fnmatch (Description, configure.ac): Taken from
12603         fnmatch-posix.
12604         * modules/fnmatch-posix: Turn into a symbolic reference to the
12605         'fnmatch' module, and deprecate.
12606         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
12607
12608 2009-05-03  Bruno Haible  <bruno@clisp.org>
12609
12610         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
12611         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
12612         Reported by Ralf Wildenhues.
12613
12614 2009-05-04  Simon Josefsson  <simon@josefsson.org>
12615
12616         * m4/fnmatch.m4: Fix fnmatch re-define.
12617
12618 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
12619
12620         priv-set: new module and tests; adapt write-any-file
12621         * lib/priv-set.c: New file.
12622         * lib/priv-set.h: New file.
12623         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
12624         * lib/write-any-file.c: Simplify by using priv-set module.
12625         * m4/priv-set.m4: New file.
12626         * modules/priv-set: New file.
12627         * modules/unlinkdir: Add dependency on priv-set module.
12628         * modules/write-any-file: Likewise.
12629
12630         Tests for module 'priv-set'.
12631         * modules/priv-set-tests: New file.
12632         * tests/test-priv-set.c: New file.
12633
12634 2009-05-03  Jim Meyering  <meyering@redhat.com>
12635             Bruno Haible  <bruno@clisp.org>
12636
12637         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
12638         use the converted UTF-8 variant of the name instead.
12639
12640 2009-05-03  Jim Meyering  <meyering@redhat.com>
12641
12642         tests: tighten some getdate tests
12643         * tests/test-getdate.c (main): Tighten tests: require equality,
12644         not just greater than.  Set TZ envvar to UTC0.
12645
12646 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
12647
12648         getdate: correctly interpret "next monday" when run on a Monday
12649         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
12650         that e.g., "next tues" (when run on a tuesday) results in a date
12651         that is one week in the future, and not today's date.
12652         I.e., add a week when the wday is the same as the current one.
12653         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
12654         and earlier by Martin Bernreuther and Jan Minář.
12655         * tests/test-getdate.c (main): Check that "next DAY" is always in
12656         the future and that "last DAY" is always in the past.
12657
12658 2009-05-02  Jim Meyering  <meyering@redhat.com>
12659
12660         build: ensure that a release build fails when a submodule is unclean
12661         * top/maint.mk (no-submodule-changes): New rule.
12662         (alpha beta major): Depend on it.
12663
12664 2009-05-02  Bruno Haible  <bruno@clisp.org>
12665
12666         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
12667         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
12668         shell variable gl_fnmatch_required to detect which variant is
12669         requested.
12670         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
12671         gl_FUNC_FNMATCH_POSIX.
12672         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
12673         exclude fnmatch-posix.
12674
12675 2009-05-02  Bruno Haible  <bruno@clisp.org>
12676
12677         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
12678         * modules/mbsrtowcs (License): Change to LGPLv2+.
12679         * modules/strnlen1 (License): Likewise.
12680         Reported by Simon Josefsson.
12681
12682 2009-05-02  Bruno Haible  <bruno@clisp.org>
12683
12684         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
12685         "cross".
12686         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
12687         gnulib-tool was called with option --source-base=lib.
12688
12689 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12690
12691         Use automake *-local hooks without commands, for extensibility.
12692         * modules/localcharset (Makefile.am): Rename install-exec-local
12693         rule to install-exec-localcharset, and make it a prerequisite of
12694         install-exec-local.  Likewise, rename the uninstall-local rule to
12695         uninstall-localcharset, and make it a prerequisite of the former.
12696
12697 2009-05-01  Bruno Haible  <bruno@clisp.org>
12698
12699         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
12700         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
12701         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
12702         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
12703         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
12704         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
12705         m4/locale-zh.m4, m4/codeset.m4.
12706
12707         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
12708         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
12709         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
12710         m4/locale-zh.m4.
12711
12712         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
12713         REPLACE_WCRTOMB if mbstate_t must be replaced.
12714         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
12715         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
12716
12717 2009-05-01  Bruno Haible  <bruno@clisp.org>
12718
12719         Avoid compiler warnings when redefining macros defined by <libintl.h>.
12720         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
12721         dngettext, dcngettext, textdomain, bindtextdomain,
12722         bind_textdomain_codeset): Undefine before redefining.
12723
12724 2009-04-30  Bruno Haible  <bruno@clisp.org>
12725
12726         Fix bug introduced on 2009-04-25.
12727         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
12728         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
12729         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
12730         is defined.
12731         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
12732         is defined.
12733         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
12734         is defined.
12735         Reported by Elbert_Pol <elbert.pol@gmail.com>.
12736
12737 2009-04-28  Bruno Haible  <bruno@clisp.org>
12738
12739         Comment tweaks.
12740         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
12741         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
12742         * lib/unicase.h (u*_casexfrm): Likewise.
12743         Reported by Paolo Bonzini.
12744
12745 2009-04-28  Bruno Haible  <bruno@clisp.org>
12746
12747         Fix a compilation error.
12748         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
12749         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
12750         Reported by Jim Meyering.
12751
12752 2009-04-27  Bruno Haible  <bruno@clisp.org>
12753
12754         New module 'libunistring'.
12755         * modules/libunistring: New file.
12756         * m4/libunistring.m4: New file.
12757         * MODULES.html.sh (Unicode string functions): Add it.
12758
12759 2009-04-27  Eric Blake  <ebb9@byu.net>
12760
12761         maint.mk: allow package-specific header to provide <config.h>
12762         * top/maint.mk (sc_require_config_h): New variable.
12763         (sc_require_config_h, sc_require_config_h_first): Use it.
12764
12765 2009-04-27  Simon Josefsson  <simon@josefsson.org>
12766
12767         * top/maint.mk (sc_avoid_if_before_free): Except
12768         useless-if-before-free script.
12769
12770 2009-04-27  Eric Blake  <ebb9@byu.net>
12771
12772         maintainer-makefile: depend on all required helper scripts
12773         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
12774         useless-if-before-free.
12775         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
12776         version, rather than assuming gnulib checkout is available.
12777         Reported by Simen Josefsson.
12778
12779 2009-04-26  Bruno Haible  <bruno@clisp.org>
12780
12781         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
12782         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
12783         "../" or "..".
12784
12785 2009-04-26  Bruno Haible  <bruno@clisp.org>
12786
12787         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
12788         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
12789         AC_LIB_HAVE_LINKFLAGS.
12790
12791 2009-04-26  Bruno Haible  <bruno@clisp.org>
12792
12793         Simplify calling convention of u*_conv_from_encoding.
12794         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
12795         u32_conv_from_encoding): Expect a resultbuf argument and return the
12796         result directly as a pointer.
12797         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
12798         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
12799         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
12800         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
12801         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
12802         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
12803         Update.
12804         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
12805         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
12806         * lib/vasnprintf.c (VASNPRINTF): Update.
12807         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
12808         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
12809         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
12810         * NEWS: Mention the change.
12811
12812 2009-04-26  Bruno Haible  <bruno@clisp.org>
12813
12814         Simplify calling convention of u*_conv_to_encoding.
12815         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
12816         u32_conv_to_encoding): Expect a resultbuf argument and return the
12817         result directly as a pointer.
12818         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
12819         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
12820         freeing scaled_offsets if mem_iconveha failed.
12821         * lib/unicase/u-casexfrm.h (FUNC): Update.
12822         * lib/uninorm/u-normxfrm.h (FUNC): Update.
12823         * lib/vasnprintf.c (VASNPRINTF): Update.
12824         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
12825         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
12826         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
12827         * NEWS: Mention the change.
12828
12829 2009-04-26  Bruno Haible  <bruno@clisp.org>
12830
12831         Avoid test failures on AIX and OSF/1.
12832         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
12833         malloc(0).
12834         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
12835         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
12836         Likewise.
12837         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
12838         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
12839         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
12840         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
12841         * doc/posix-functions/malloc.texi: Document the portability problem
12842         related to malloc(0).
12843
12844 2009-04-26  Bruno Haible  <bruno@clisp.org>
12845
12846         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
12847         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
12848         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
12849
12850 2009-04-25  Bruno Haible  <bruno@clisp.org>
12851
12852         Avoid link error when creating a namespace clean library.
12853         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
12854         as macro with arguments if already defined as an alias.
12855         * lib/signbitf.c (gl_signbitf): Don't undefine.
12856         * lib/signbitd.c (gl_signbitd): Don't undefine.
12857         * lib/signbitl.c (gl_signbitl): Don't undefine.
12858
12859 2009-04-25  Jim Meyering  <meyering@redhat.com>
12860
12861         vc-list-files: fix another quoting bug
12862         * build-aux/vc-list-files: Avoid sed backslash expansion
12863         of pathological directory names.
12864
12865 2009-04-25  Eric Blake  <ebb9@byu.net>
12866
12867         vc-list-files: fix shell quoting error
12868         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
12869         timestamp.
12870
12871 2009-04-25  Jim Meyering  <meyering@redhat.com>
12872
12873         vc-list-files: restore lost functionality with subdir argument
12874         * build-aux/vc-list-files: When given a non-"." sub-directory
12875         argument, substitute the $dir/ prefix back onto each resulting name.
12876         Otherwise, coreutils' root_tests check would fail.
12877
12878 2009-04-24  Eric Blake  <ebb9@byu.net>
12879
12880         vc-list-files: ignore git symlinks
12881         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
12882         than ls-files, to ignore git symlinks.
12883
12884         maint.mk: import improvements from m4
12885         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
12886         (move_if_change): Delete unused macro.
12887         (news-date-check, vc-diff-check): Support VPATH builds.
12888         (announcement): Likewise.  Split --bootstrap-tools list...
12889         (boostrap-tools): ...into separate list, which can be overridden
12890         in cfg.mk.
12891         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
12892         requiring dependency on useless-if-before-free module.
12893         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
12894         Support VPATH builds.
12895
12896 2009-04-24  Jim Meyering  <meyering@redhat.com>
12897
12898         maint.mk: remove coreutils-specific rules and variables
12899         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
12900         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
12901         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
12902
12903         maint.mk: remove obsolete rule
12904         * top/maint.mk (rel-check): Remove rule.
12905         (WGET, WGETFLAGS): Remove now-unused variables.
12906
12907 2009-04-24  Simon Josefsson  <simon@josefsson.org>
12908
12909         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
12910         consistency.
12911
12912         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
12913         '$(PATH_SEPARATOR)' instead of ':'.
12914
12915 2009-04-24  Simon Josefsson  <simon@josefsson.org>
12916
12917         * lib/getopt1.c (main): Use 'const' for static array.
12918
12919 2009-04-24  Simon Josefsson  <simon@josefsson.org>
12920
12921         * top/maint.mk: Sync with coreutils.
12922         * NEWS: Explain incompatibilities.
12923
12924 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
12925             Bruno Haible  <bruno@clisp.org>
12926
12927         Fix cross-compilation results.
12928         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
12929         statement, as third argument of AC_TRY_RUN.
12930         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
12931         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
12932         Likewise.
12933         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
12934         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
12935         Likewise.
12936         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
12937         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
12938         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
12939
12940 2009-04-20  Bruno Haible  <bruno@clisp.org>
12941
12942         Avoid test failure on mingw.
12943         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
12944
12945 2009-04-20  Bruno Haible  <bruno@clisp.org>
12946
12947         Avoid compilation error on mingw.
12948         * modules/localename-tests (Depends-on): Add locale.
12949
12950 2009-04-19  Bruno Haible  <bruno@clisp.org>
12951
12952         Support for building a shared library on Windows platforms.
12953         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
12954         (main): Test the presence of UNINORM_NFC here.
12955         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
12956         (main): Test the presence of UNINORM_NFD here.
12957         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
12958         (main): Test the presence of UNINORM_NFKC here.
12959         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
12960         (main): Test the presence of UNINORM_NFKD here.
12961
12962 2009-04-19  Bruno Haible  <bruno@clisp.org>
12963
12964         Avoid a compiler warning.
12965         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
12966         Change type of variable 'sequence'.
12967
12968 2009-04-19  Bruno Haible  <bruno@clisp.org>
12969
12970         * modules/configmake (Makefile.am): When the contents of configmake.h
12971         does not change, arrange to preserve its modification time.
12972
12973 2009-04-17  Simon Josefsson  <simon@josefsson.org>
12974
12975         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
12976         gettext domain.
12977
12978 2009-04-16  Jim Meyering  <meyering@redhat.com>
12979
12980         useless-if-before-free: improve conversion code
12981         * build-aux/useless-if-before-free: Adjust code-in-comment to match
12982         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
12983
12984 2009-04-14  Bruno Haible  <bruno@clisp.org>
12985
12986         * modules/fcntl (Depends-on): Add extensions.
12987         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
12988
12989 2009-04-12  Ben Pfaff  <blp@gnu.org>
12990
12991         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
12992         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
12993
12994 2009-03-20  Ben Pfaff  <blp@gnu.org>
12995
12996         Make rename replace existing destinations on Windows.
12997         * m4/rename.m4: Add test for Mingw.
12998         * lib/rename.c: Add rename replacement that uses MoveFileEx with
12999         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
13000         * doc/posix-functions/rename.texi: Document.
13001
13002 2009-04-10  Bruno Haible  <bruno@clisp.org>
13003
13004         New include file "iconveh.h".
13005         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
13006         * lib/striconveh.h: Include it.
13007         (enum iconv_ilseq_handler): Remove definition.
13008         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
13009         striconveh.h.
13010         * lib/striconveha.c: Include striconveh.h.
13011         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
13012         * modules/striconveh (Files): Add lib/iconveh.h.
13013         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
13014         lib/striconveh.h.
13015
13016 2009-04-10  Bruno Haible  <bruno@clisp.org>
13017
13018         * lib/uniconv.h: Update comment.
13019
13020 2009-04-10  Bruno Haible  <bruno@clisp.org>
13021
13022         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
13023         always.
13024         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
13025         * lib/unistr/u16-mbtouc-aux.c: Likewise.
13026         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
13027         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
13028         "unistring-notinline.h", so that the function gets defined always.
13029         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
13030         * lib/unistr/u8-uctomb.c: Likewise.
13031         * lib/unistr/u16-mbtouc.c: Likewise.
13032         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
13033         * lib/unistr/u16-uctomb.c: Likewise.
13034         * lib/unistr/u32-mbtouc.c: Likewise.
13035         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
13036         * lib/unistr/u32-uctomb.c: Likewise.
13037
13038 2009-04-10  Bruno Haible  <bruno@clisp.org>
13039
13040         Mark 'utime' obsolete.
13041         * modules/utime (Status, Notice): New sections.
13042         Suggested by Jim Meyering.
13043
13044         Fix cross-compile guess for utime test.
13045         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
13046         autoconf.
13047         * doc/posix-functions/utime.texi: Give more precisions.
13048         Reported by Jan <ipif@ymail.com>.
13049
13050 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
13051
13052         filevercmp: correct today's change
13053         * lib/filevercmp.c: Also handle coreutils' test inputs.
13054         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
13055
13056         Fix regression in 'filevercmp' module. Thanks Sven Joachim
13057         for reporting it.
13058         * lib/filevercmp.c: Special handle for "", "." and "..".
13059         * tests/test-filevercmp.c: Enlarge the set suite.
13060
13061 2009-04-07  Jim Meyering  <meyering@redhat.com>
13062
13063         useless-if-before-free: show how to remove braced useless free, too
13064         * build-aux/useless-if-before-free: still only in a comment, though.
13065
13066 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
13067
13068         maint.mk: import changes to syntax-check macros from coreutils
13069         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
13070         Use them in the relevant macros.
13071
13072 2009-04-06  Bruno Haible  <bruno@clisp.org>
13073
13074         Fix unportable use of bit-fields.
13075         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
13076         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
13077         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
13078
13079 2009-04-06  Bruno Haible  <bruno@clisp.org>
13080
13081         Avoid test failures on AIX and OSF/1.
13082         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
13083         that malloc(0) = NULL.
13084         * tests/unicase/test-u8-tolower.c (check): Likewise.
13085         * tests/unicase/test-u8-totitle.c (check): Likewise.
13086         * tests/unicase/test-u8-toupper.c (check): Likewise.
13087         * tests/unicase/test-u16-casefold.c (check): Likewise.
13088         * tests/unicase/test-u16-tolower.c (check): Likewise.
13089         * tests/unicase/test-u16-totitle.c (check): Likewise.
13090         * tests/unicase/test-u16-toupper.c (check): Likewise.
13091         * tests/unicase/test-u32-casefold.c (check): Likewise.
13092         * tests/unicase/test-u32-tolower.c (check): Likewise.
13093         * tests/unicase/test-u32-totitle.c (check): Likewise.
13094         * tests/unicase/test-u32-toupper.c (check): Likewise.
13095         * tests/uninorm/test-u8-nfc.c (check): Likewise.
13096         * tests/uninorm/test-u8-nfd.c (check): Likewise.
13097         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
13098         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
13099         * tests/uninorm/test-u16-nfc.c (check): Likewise.
13100         * tests/uninorm/test-u16-nfd.c (check): Likewise.
13101         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
13102         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
13103         * tests/uninorm/test-u32-nfc.c (check): Likewise.
13104         * tests/uninorm/test-u32-nfd.c (check): Likewise.
13105         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
13106         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
13107
13108 2009-04-05  Bruno Haible  <bruno@clisp.org>
13109
13110         Work around an autoconf limitation.
13111         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
13112         comment line if it would be longer than 3 KB.
13113
13114 2009-04-05  Bruno Haible  <bruno@clisp.org>
13115
13116         Avoid test failure with libiconv-1.13.
13117         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
13118         of the expected test results.
13119
13120 2009-04-05  Bruno Haible  <bruno@clisp.org>
13121
13122         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
13123         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
13124         that it should be installed.
13125
13126 2009-04-05  Bruno Haible  <bruno@clisp.org>
13127
13128         * gnulib-tool: New option --copy-file.
13129         (func_usage): Document it.
13130         (func_dest_tmpfilename): Moved out of func_import.
13131         (func_add_file, func_update_file): New functions, extracted from
13132         func_import.
13133         (func_import): Update.
13134
13135 2009-04-05  Karl Berry  <karl@gnu.org>
13136
13137         * README: prominently mention gnulib-tool.
13138         Rearrange sections so getting the code is near the top.
13139
13140 2009-04-05  Bruno Haible  <bruno@clisp.org>
13141
13142         * lib/unicase.h: Mention u*_cmp2.
13143         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
13144         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
13145         * lib/unicase/ulc-casecmp.c: Likewise.
13146         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
13147         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
13148         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
13149         unistr/u8-cmp.
13150         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
13151         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
13152         unistr/u16-cmp.
13153         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
13154         unistr/u32-cmp.
13155
13156         * lib/uninorm.h: Mention u*_cmp2.
13157         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
13158         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
13159         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
13160         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
13161         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
13162         unistr/u8-cmp.
13163         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
13164         unistr/u16-cmp.
13165         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
13166         unistr/u32-cmp.
13167
13168         New module 'unistr/u32-cmp2'.
13169         * lib/unistr/u32-cmp2.c: New file.
13170         * modules/unistr/u32-cmp2: New file.
13171
13172         New module 'unistr/u16-cmp2'.
13173         * lib/unistr/u16-cmp2.c: New file.
13174         * modules/unistr/u16-cmp2: New file.
13175
13176         New module 'unistr/u8-cmp2'.
13177         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
13178         * lib/unistr/u8-cmp2.c: New file.
13179         * lib/unistr/u-cmp2.h: New file.
13180         * modules/unistr/u8-cmp2: New file.
13181
13182 2009-04-05  Bruno Haible  <bruno@clisp.org>
13183
13184         * lib/unictype.h (uc_property_is_valid): New macro.
13185         * tests/unictype/test-pr_byname.c (main): Use it.
13186
13187         * lib/unistr.h: Doc fixes.
13188         * lib/uniconv.h: Doc fixes.
13189         * lib/unictype.h: Doc fixes.
13190
13191 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
13192
13193         Port coreutils 7.2 to Solaris 8.
13194
13195         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
13196         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
13197         for Solaris 8.  This is a bit of a hack, as it means it's the
13198         caller's responsibility to add -lnsl if needed, but most likely it
13199         won't be needed since only getaddrinfo uses this and getaddrinfo
13200         isn't needed on Solaris 8.
13201
13202         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
13203         problem to Solaris 8 encountered with coreutils 7.2, which
13204         resulted in a message "fnmatch.c:292: warning: passing argument 4
13205         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
13206         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
13207
13208 2009-04-03  Simon Josefsson  <simon@josefsson.org>
13209
13210         * m4/ld-version-script.m4: Add FIXME comment.
13211
13212 2009-04-02  Simon Josefsson  <simon@josefsson.org>
13213
13214         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
13215         SOVERSION variable.
13216
13217 2009-04-02  Bruno Haible  <bruno@clisp.org>
13218
13219         * Makefile (info, html, dvi, pdf): Combine the rules.
13220         Suggested by Jim Meyering.
13221
13222 2009-04-01  Bruno Haible  <bruno@clisp.org>
13223
13224         * Makefile (info, html, dvi, pdf): New targets.
13225         Reported by Reuben Thomas <rrt@sc3d.org>.
13226
13227 2009-04-01  Bruno Haible  <bruno@clisp.org>
13228
13229         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
13230         can be put into PATH.
13231         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
13232
13233 2009-04-01  Bruno Haible  <bruno@clisp.org>
13234
13235         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
13236
13237 2009-04-01  Bruno Haible  <bruno@clisp.org>
13238
13239         Rename module 'visibility'.
13240         * modules/lib-symbol-visibility: Renamed from modules/visibility.
13241         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
13242         * doc/gnulib.texi: Update.
13243         * MODULES.html.sh (Misc): Update.
13244         * NEWS: Mention the change.
13245
13246 2009-04-01  Simon Josefsson  <simon@josefsson.org>
13247
13248         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
13249         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
13250         Eric Blake <ebb9@byu.net> for review.
13251         * MODULES.html.sh: Add lib-msvc-compat.
13252         * doc/gnulib.texi: Link to new section.
13253         * m4/ld-output-def.m4: New file.
13254         * doc/ld-output-def.texi: New file.
13255
13256 2009-04-01  Simon Josefsson  <simon@josefsson.org>
13257
13258         Rename ld-version-script to lib-symbol-versions.  Suggested by
13259         Bruno Haible <bruno@clisp.org>.
13260         * modules/ld-version-script: Renamed to lib-symbol-versions.
13261         * doc/ld-version-script.texi: Fix module name.
13262         * MODULES.html.sh: Add lib-symbol-versions.
13263
13264 2009-03-31  Simon Josefsson  <simon@josefsson.org>
13265
13266         * modules/u64-tests: New file.
13267         * tests/test-u64.c: New file.
13268
13269 2009-03-04  Simon Josefsson  <simon@josefsson.org>
13270
13271         * MODULES.html.sh: Mention u64.
13272         * modules/u64: New module.
13273         * modules/crypto/sha512: Depend on u64 module instead of providing
13274         u64.h.
13275
13276 2009-03-27  Eric Blake  <ebb9@byu.net>
13277
13278         test-strerror: make debugging EAI_SYSTEM easier
13279         * modules/getaddrinfo-tests (Depends-on): Add strerror.
13280         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
13281         failure was EAI_SYSTEM.
13282
13283 2009-03-25  Bruno Haible  <bruno@clisp.org>
13284
13285         Fix a problem with --enable-relocatable on Solaris 7.
13286         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
13287         since 2008-02-24.
13288
13289 2009-03-25  Eric Blake  <ebb9@byu.net>
13290
13291         test-sockets: avoid gcc warning
13292         * tests/test-sockets.c (main): Silence compiler warning.
13293
13294 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
13295
13296         New modules nproc, pthread, contributed by Glen Lenker.
13297
13298         * MODULES.html.sh: Add pthread, nproc.
13299         * lib/nproc.c: New file.
13300         * lib/nproc.h: New file.
13301         * lib/pthread.in.h: New file.
13302         * m4/pthread.m4: New file.
13303         * modules/nproc: New file.
13304         * modules/pthread: New file.
13305
13306 2009-03-24  Simon Josefsson  <simon@josefsson.org>
13307
13308         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
13309         New variable.
13310
13311 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
13312
13313         filevercmp: handle simple~ and numbered.~3~ backup suffixes
13314         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
13315         * tests/test-filevercmp.c: Add tests for backup suffixes.
13316
13317 2009-03-24  Simon Josefsson  <simon@josefsson.org>
13318
13319         * modules/stdlib (Depends-on): Add stdint, needed when defining
13320         struct random_data on, for example, HP-UX 10.20.  Reported by
13321         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
13322
13323 2009-03-24  Simon Josefsson  <simon@josefsson.org>
13324
13325         * lib/readline.c (readline): Call fflush on stdout after printing
13326         prompt.
13327
13328 2009-03-20  Bruno Haible  <bruno@clisp.org>
13329
13330         Remove dependency from 'close' module to -lws2_32 on native Windows.
13331         * lib/close-hook.h: New file.
13332         * lib/close-hook.c: New file.
13333         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
13334         w32sock.h.
13335         (_gl_close_fd_maybe_socket): Remove function.
13336         (rpl_close): Invoke execute_all_close_hooks instead of
13337         _gl_close_fd_maybe_socket.
13338         * lib/sockets.c: Include close-hook.h, w32sock.h.
13339         (close_fd_maybe_socket): New function, essentially from lib/close.c.
13340         (close_sockets_hook): New variable.
13341         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
13342         (gl_sockets_cleanup): Unregister it.
13343         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
13344         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
13345         * modules/close-hook: New file.
13346         * modules/close (Files): Remove lib/w32sock.h.
13347         (Depends-on): Add close-hook.
13348         (Link): Remove section.
13349         * modules/sockets (Files): Add lib/w32sock.h.
13350         (Depends-on): Add close-hook.
13351         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
13352         invocation.
13353         * NEWS: Mention that LIB_CLOSE is gone.
13354
13355 2009-03-23  Eric Blake  <ebb9@byu.net>
13356
13357         signal-tests: test previous patch
13358         * tests/test-signal.c: New file.
13359         * modules/signal-tests: Likewise.
13360
13361         signal.h: always support 'volatile sig_atomic_t'
13362         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
13363         (gl_SIGNAL_H_DEFAULTS): Add a default.
13364         * modules/signal (Makefile.am): Substitute if needed.
13365         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
13366         users can blindly add volatile.
13367         * doc/posix-headers/signal.texi (signal.h): Document it.
13368         Reported by Matthew Woehlke.
13369
13370 2009-03-23  Jim Meyering  <meyering@redhat.com>
13371
13372         pathmax: PATH_MAX: use pathconf only when available
13373         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
13374         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
13375         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
13376         This avoids a link failure in a PSP cross-compilation environment
13377         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
13378
13379         * lib/vasnprintf.c (divide): Fix typo in comment.
13380
13381 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13382
13383         * gnulib-tool (func_filter_filelist): Fix comment.
13384
13385 2009-03-20  Bruno Haible  <bruno@clisp.org>
13386
13387         Make sockets.h self-contained.
13388         * lib/sockets.c: Include sockets.h first.
13389         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
13390
13391 2009-03-19  Eric Blake  <ebb9@byu.net>
13392
13393         doc: mention more functions added in cygwin 1.7.0
13394         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
13395         addition.
13396         * doc/posix-functions/log2f.texi: Likewise.
13397
13398 2009-03-19  Jim Meyering  <meyering@redhat.com>
13399
13400         fsusage: avoid syntax error due to statement-before-declaration
13401         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
13402         after all declarations.  Reported by Matthew Woehlke in
13403         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
13404
13405 2009-03-18  Eric Blake  <ebb9@byu.net>
13406
13407         build-aux/compile: sync from automake
13408         * build-aux/compile: New file, from automake.
13409         * config/srclist.txt: Mention build-aux/compile.
13410
13411 2009-03-17  Bruno Haible  <bruno@clisp.org>
13412
13413         * lib/git-merge-changelog.c: Fix typo in comment.
13414         Reported by Reuben Thomas <rrt@sc3d.org>.
13415
13416 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
13417
13418         * m4/regex.m4: update and improve help for
13419         --without-included-regex.
13420
13421 2009-03-17  Simon Josefsson  <simon@josefsson.org>
13422
13423         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
13424         failure on missing include files.
13425
13426 2009-03-17  Eric Blake  <ebb9@byu.net>
13427
13428         doc: mention more functions added in cygwin 1.7.0
13429         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
13430         addition.
13431         * doc/posix-functions/fwscanf.texi: Likewise.
13432         * doc/posix-functions/swprintf.texi: Likewise.
13433         * doc/posix-functions/swscanf.texi: Likewise.
13434         * doc/posix-functions/vfwprintf.texi: Likewise.
13435         * doc/posix-functions/vfwscanf.texi: Likewise.
13436         * doc/posix-functions/vswprintf.texi: Likewise.
13437         * doc/posix-functions/vswscanf.texi: Likewise.
13438         * doc/posix-functions/vwprintf.texi: Likewise.
13439         * doc/posix-functions/vwscanf.texi: Likewise.
13440         * doc/posix-functions/wcscasecmp.texi: Likewise.
13441         * doc/posix-functions/wcsdup.texi: Likewise.
13442         * doc/posix-functions/wcsftime.texi: Likewise.
13443         * doc/posix-functions/wcsncasecmp.texi: Likewise.
13444         * doc/posix-functions/wprintf.texi: Likewise.
13445         * doc/posix-functions/wscanf.texi: Likewise.
13446         * doc/glibc-functions/gethostbyname2.texi: Likewise.
13447
13448 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13449
13450         maint.mk: really add $(AM_MAKEFLAGS)
13451         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
13452         was inadvertently omitted in the last commit.
13453         Spotted by Bruno Haible.
13454
13455         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
13456         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
13457         $(AM_MAKEFLAGS)' rather than plain `make'.
13458
13459         gnulib-tool: execute $MAKE not make
13460         * gnulib-tool: Default $MAKE to 'make'.
13461         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
13462         than make.  Initialize $MAKE in the do-autobuild script.
13463
13464         gnulib-tool: use $MAKE not make in generated files
13465         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
13466         make, in generated files.  Initialize $MAKE in the do-autobuild
13467         script.
13468
13469         * top/GNUmakefile (_have-git-version-gen): Fix typo.
13470
13471         GNUmakefile: disable parallelism only for multiple, recursive targets
13472         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
13473         additions in the Makefile.
13474         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
13475         by Automake.
13476         (.NOTPARALLEL): Only disable parallel builds if multiple targets
13477         are listed on the command line and at least one of them is
13478         listed in $(ALL_RECURSIVE_TARGETS).
13479
13480 2009-03-14  Bruno Haible  <bruno@clisp.org>
13481
13482         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
13483         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
13484         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
13485         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
13486         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
13487         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
13488         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
13489         unistr/u8-uctomb.
13490         * modules/unistr/u8-strchr (Depends-on): Likewise.
13491         * modules/unistr/u8-strrchr (Depends-on): Likewise.
13492         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
13493         unistr/u16-uctomb.
13494         * modules/unistr/u16-strchr (Depends-on): Likewise.
13495         * modules/unistr/u16-strrchr (Depends-on): Likewise.
13496
13497 2009-03-12  Bruno Haible  <bruno@clisp.org>
13498
13499         Work around select() bug on Interix 3.5.
13500         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
13501         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
13502         * m4/select.m4: New file.
13503         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
13504         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
13505         * modules/select (Files): Add m4/select.m4.
13506         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
13507         * modules/nanosleep (Depends-on): Add select.
13508         * modules/poll (Depends-on): Likewise.
13509         * doc/posix-functions/select.texi: Mention the Interix bug.
13510         Reported by Markus Duft <mduft@gentoo.org>.
13511
13512         * lib/select.c: Renamed from lib/winsock-select.c.
13513         * modules/select (Files): Add lib/select.c, remove
13514         lib/winsock-select.c.
13515         (configure.ac): Update.
13516
13517 2009-03-12  Jim Meyering  <meyering@redhat.com>
13518
13519         avoid gcc warnings about unused macro definitions
13520         * lib/readtokens.c (STREQ): Remove unused definition.
13521         * lib/xmalloc.c (SIZE_MAX): Likewise.
13522         * lib/openat-die.c (N_): Likewise.
13523         * lib/mountlist.c (SIZE_MAX): Remove definition.
13524         Instead, include <stdint.h>.
13525         * lib/readutmp.c: Likewise.
13526         * modules/readutmp (Depends-on): Add stdint.
13527         * modules/mountlist (Depends-on): Add stdint.
13528         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
13529
13530 2009-03-10  Bruno Haible  <bruno@clisp.org>
13531
13532         Tests for module 'mbmemcasecoll'.
13533         * modules/mbmemcasecoll-tests: New file.
13534         * tests/test-mbmemcasecoll1.sh: New file.
13535         * tests/test-mbmemcasecoll2.sh: New file.
13536         * tests/test-mbmemcasecoll3.sh: New file.
13537         * tests/test-mbmemcasecoll.c: New file.
13538
13539         New module 'mbmemcasecoll'.
13540         * lib/mbmemcasecoll.h: New file.
13541         * lib/mbmemcasecoll.c: New file.
13542         * modules/mbmemcasecoll: New file.
13543
13544         * tests/test-mbmemcasecmp.h: New file, extracted from
13545         tests/test-mbmemcasecmp.c.
13546         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
13547         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
13548         (main): Update.
13549         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
13550
13551 2009-03-09  Bruno Haible  <bruno@clisp.org>
13552
13553         Tests for module 'mbmemcasecmp'.
13554         * modules/mbmemcasecmp-tests: New file.
13555         * tests/test-mbmemcasecmp1.sh: New file.
13556         * tests/test-mbmemcasecmp2.sh: New file.
13557         * tests/test-mbmemcasecmp3.sh: New file.
13558         * tests/test-mbmemcasecmp.c: New file.
13559
13560         New module 'mbmemcasecmp'.
13561         * lib/mbmemcasecmp.h: New file.
13562         * lib/mbmemcasecmp.c: New file.
13563         * modules/mbmemcasecmp: New file.
13564
13565 2009-03-09  Bruno Haible  <bruno@clisp.org>
13566
13567         Tests for module 'unicase/ulc-casecoll'.
13568         * modules/unicase/ulc-casecoll-tests: New file.
13569         * tests/unicase/test-ulc-casecoll1.sh: New file.
13570         * tests/unicase/test-ulc-casecoll2.sh: New file.
13571         * tests/unicase/test-ulc-casecoll.c: New file.
13572
13573         New module 'unicase/ulc-casecoll'.
13574         * lib/unicase.h (ulc_casecoll): New declaration.
13575         * lib/unicase/ulc-casecoll.c: New file.
13576         * modules/unicase/ulc-casecoll: New file.
13577
13578         New module 'unicase/ulc-casexfrm'.
13579         * lib/unicase.h (ulc_casexfrm): New declaration.
13580         * lib/unicase/ulc-casexfrm.c: New file.
13581         * modules/unicase/ulc-casexfrm: New file.
13582
13583 2009-03-09  Bruno Haible  <bruno@clisp.org>
13584
13585         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
13586         invocations.
13587
13588         * m4/mbscasecmp.m4: Remove file.
13589         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
13590         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
13591
13592         * m4/mbscasestr.m4: Remove file.
13593         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
13594         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
13595
13596         * m4/mbschr.m4: Remove file.
13597         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
13598         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
13599
13600         * m4/mbscspn.m4: Remove file.
13601         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
13602         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
13603
13604         * m4/mbslen.m4: Remove file.
13605         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
13606         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
13607
13608         * m4/mbsncasecmp.m4: Remove file.
13609         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
13610         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
13611
13612         * m4/mbsnlen.m4: Remove file.
13613         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
13614         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
13615
13616         * m4/mbspbrk.m4: Remove file.
13617         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
13618         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
13619
13620         * m4/mbspcasecmp.m4: Remove file.
13621         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
13622         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
13623
13624         * m4/mbsrchr.m4: Remove file.
13625         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
13626         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
13627
13628         * m4/mbssep.m4: Remove file.
13629         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
13630         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
13631
13632         * m4/mbsspn.m4: Remove file.
13633         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
13634         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
13635
13636         * m4/mbsstr.m4: Remove file.
13637         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
13638         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
13639
13640         * m4/mbstok_r.m4: Remove file.
13641         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
13642         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
13643
13644         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
13645
13646         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
13647         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
13648
13649         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
13650
13651 2009-03-08  Bruno Haible  <bruno@clisp.org>
13652
13653         Tests for module 'unicase/ulc-casecmp'.
13654         * modules/unicase/ulc-casecmp-tests: New file.
13655         * tests/unicase/test-ulc-casecmp1.sh: New file.
13656         * tests/unicase/test-ulc-casecmp2.sh: New file.
13657         * tests/unicase/test-ulc-casecmp.c: New file.
13658
13659         New module 'unicase/ulc-casecmp'.
13660         * lib/unicase.h (ulc_casecmp): New declaration.
13661         * lib/unicase/ulc-casecmp.c: New file.
13662         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
13663         'const SRC_UNIT *'.
13664         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
13665         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
13666         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
13667         * modules/unicase/ulc-casecmp: New file.
13668
13669         Tests for module 'unicase/u32-is-cased'.
13670         * modules/unicase/u32-is-cased-tests: New file.
13671         * tests/unicase/test-u32-is-cased.c: New file.
13672
13673         Tests for module 'unicase/u16-is-cased'.
13674         * modules/unicase/u16-is-cased-tests: New file.
13675         * tests/unicase/test-u16-is-cased.c: New file.
13676
13677         Tests for module 'unicase/u8-is-cased'.
13678         * modules/unicase/u8-is-cased-tests: New file.
13679         * tests/unicase/test-u8-is-cased.c: New file.
13680         * tests/unicase/test-is-cased.h: New file.
13681
13682         New module 'unicase/u32-is-cased'.
13683         * lib/unicase/u32-is-cased.c: New file.
13684         * modules/unicase/u32-is-cased: New file.
13685
13686         New module 'unicase/u16-is-cased'.
13687         * lib/unicase/u16-is-cased.c: New file.
13688         * modules/unicase/u16-is-cased: New file.
13689
13690         New module 'unicase/u8-is-cased'.
13691         * lib/unicase/u8-is-cased.c: New file.
13692         * lib/unicase/u-is-cased.h: New file.
13693         * modules/unicase/u8-is-cased: New file.
13694
13695         Tests for module 'unicase/u32-is-casefolded'.
13696         * modules/unicase/u32-is-casefolded-tests: New file.
13697         * tests/unicase/test-u32-is-casefolded.c: New file.
13698
13699         Tests for module 'unicase/u16-is-casefolded'.
13700         * modules/unicase/u16-is-casefolded-tests: New file.
13701         * tests/unicase/test-u16-is-casefolded.c: New file.
13702
13703         Tests for module 'unicase/u8-is-casefolded'.
13704         * modules/unicase/u8-is-casefolded-tests: New file.
13705         * tests/unicase/test-u8-is-casefolded.c: New file.
13706         * tests/unicase/test-is-casefolded.h: New file.
13707
13708         New module 'unicase/u32-is-casefolded'.
13709         * lib/unicase/u32-is-casefolded.c: New file.
13710         * modules/unicase/u32-is-casefolded: New file.
13711
13712         New module 'unicase/u16-is-casefolded'.
13713         * lib/unicase/u16-is-casefolded.c: New file.
13714         * modules/unicase/u16-is-casefolded: New file.
13715
13716         New module 'unicase/u8-is-casefolded'.
13717         * lib/unicase/u8-is-casefolded.c: New file.
13718         * modules/unicase/u8-is-casefolded: New file.
13719
13720         Tests for module 'unicase/u32-is-titlecase'.
13721         * modules/unicase/u32-is-titlecase-tests: New file.
13722         * tests/unicase/test-u32-is-titlecase.c: New file.
13723
13724         Tests for module 'unicase/u16-is-titlecase'.
13725         * modules/unicase/u16-is-titlecase-tests: New file.
13726         * tests/unicase/test-u16-is-titlecase.c: New file.
13727
13728         Tests for module 'unicase/u8-is-titlecase'.
13729         * modules/unicase/u8-is-titlecase-tests: New file.
13730         * tests/unicase/test-u8-is-titlecase.c: New file.
13731         * tests/unicase/test-is-titlecase.h: New file.
13732
13733         New module 'unicase/u32-is-titlecase'.
13734         * lib/unicase/u32-is-titlecase.c: New file.
13735         * modules/unicase/u32-is-titlecase: New file.
13736
13737         New module 'unicase/u16-is-titlecase'.
13738         * lib/unicase/u16-is-titlecase.c: New file.
13739         * modules/unicase/u16-is-titlecase: New file.
13740
13741         New module 'unicase/u8-is-titlecase'.
13742         * lib/unicase/u8-is-titlecase.c: New file.
13743         * modules/unicase/u8-is-titlecase: New file.
13744
13745         Tests for module 'unicase/u32-is-lowercase'.
13746         * modules/unicase/u32-is-lowercase-tests: New file.
13747         * tests/unicase/test-u32-is-lowercase.c: New file.
13748
13749         Tests for module 'unicase/u16-is-lowercase'.
13750         * modules/unicase/u16-is-lowercase-tests: New file.
13751         * tests/unicase/test-u16-is-lowercase.c: New file.
13752
13753         Tests for module 'unicase/u8-is-lowercase'.
13754         * modules/unicase/u8-is-lowercase-tests: New file.
13755         * tests/unicase/test-u8-is-lowercase.c: New file.
13756         * tests/unicase/test-is-lowercase.h: New file.
13757
13758         New module 'unicase/u32-is-lowercase'.
13759         * lib/unicase/u32-is-lowercase.c: New file.
13760         * modules/unicase/u32-is-lowercase: New file.
13761
13762         New module 'unicase/u16-is-lowercase'.
13763         * lib/unicase/u16-is-lowercase.c: New file.
13764         * modules/unicase/u16-is-lowercase: New file.
13765
13766         New module 'unicase/u8-is-lowercase'.
13767         * lib/unicase/u8-is-lowercase.c: New file.
13768         * modules/unicase/u8-is-lowercase: New file.
13769
13770         Tests for module 'unicase/u32-is-uppercase'.
13771         * modules/unicase/u32-is-uppercase-tests: New file.
13772         * tests/unicase/test-u32-is-uppercase.c: New file.
13773
13774         Tests for module 'unicase/u16-is-uppercase'.
13775         * modules/unicase/u16-is-uppercase-tests: New file.
13776         * tests/unicase/test-u16-is-uppercase.c: New file.
13777
13778         Tests for module 'unicase/u8-is-uppercase'.
13779         * modules/unicase/u8-is-uppercase-tests: New file.
13780         * tests/unicase/test-u8-is-uppercase.c: New file.
13781         * tests/unicase/test-is-uppercase.h: New file.
13782
13783         New module 'unicase/u32-is-uppercase'.
13784         * lib/unicase/u32-is-uppercase.c: New file.
13785         * modules/unicase/u32-is-uppercase: New file.
13786
13787         New module 'unicase/u16-is-uppercase'.
13788         * lib/unicase/u16-is-uppercase.c: New file.
13789         * modules/unicase/u16-is-uppercase: New file.
13790
13791         New module 'unicase/u8-is-uppercase'.
13792         * lib/unicase/u8-is-uppercase.c: New file.
13793         * modules/unicase/u8-is-uppercase: New file.
13794
13795         New module 'unicase/u32-is-invariant'.
13796         * lib/unicase/u32-is-invariant.c: New file.
13797         * modules/unicase/u32-is-invariant: New file.
13798
13799         New module 'unicase/u16-is-invariant'.
13800         * lib/unicase/u16-is-invariant.c: New file.
13801         * modules/unicase/u16-is-invariant: New file.
13802
13803         New module 'unicase/u8-is-invariant'.
13804         * lib/unicase/u8-is-invariant.c: New file.
13805         * lib/unicase/invariant.h: New file.
13806         * lib/unicase/u-is-invariant.h: New file.
13807         * modules/unicase/u8-is-invariant: New file.
13808
13809         Tests for module 'unicase/u32-casecoll'.
13810         * modules/unicase/u32-casecoll-tests: New file.
13811         * tests/unicase/test-u32-casecoll.c: New file.
13812
13813         Tests for module 'unicase/u16-casecoll'.
13814         * modules/unicase/u16-casecoll-tests: New file.
13815         * tests/unicase/test-u16-casecoll.c: New file.
13816
13817         Tests for module 'unicase/u8-casecoll'.
13818         * modules/unicase/u8-casecoll-tests: New file.
13819         * tests/unicase/test-u8-casecoll.c: New file.
13820
13821         New module 'unicase/u32-casecoll'.
13822         * lib/unicase/u32-casecoll.c: New file.
13823         * modules/unicase/u32-casecoll: New file.
13824
13825         New module 'unicase/u16-casecoll'.
13826         * lib/unicase/u16-casecoll.c: New file.
13827         * modules/unicase/u16-casecoll: New file.
13828
13829         New module 'unicase/u8-casecoll'.
13830         * lib/unicase/u8-casecoll.c: New file.
13831         * lib/unicase/u-casecoll.h: New file.
13832         * modules/unicase/u8-casecoll: New file.
13833
13834         New module 'unicase/u32-casexfrm'.
13835         * lib/unicase/u32-casexfrm.c: New file.
13836         * modules/unicase/u32-casexfrm: New file.
13837
13838         New module 'unicase/u16-casexfrm'.
13839         * lib/unicase/u16-casexfrm.c: New file.
13840         * modules/unicase/u16-casexfrm: New file.
13841
13842         New module 'unicase/u8-casexfrm'.
13843         * lib/unicase/u8-casexfrm.c: New file.
13844         * lib/unicase/u-casexfrm.h: New file.
13845         * modules/unicase/u8-casexfrm: New file.
13846
13847         Tests for module 'unicase/u32-casecmp'.
13848         * modules/unicase/u32-casecmp-tests: New file.
13849         * tests/unicase/test-u32-casecmp.c: New file.
13850
13851         Tests for module 'unicase/u16-casecmp'.
13852         * modules/unicase/u16-casecmp-tests: New file.
13853         * tests/unicase/test-u16-casecmp.c: New file.
13854
13855         Tests for module 'unicase/u8-casecmp'.
13856         * modules/unicase/u8-casecmp-tests: New file.
13857         * tests/unicase/test-u8-casecmp.c: New file.
13858         * tests/unicase/test-casecmp.h: New file.
13859
13860         New module 'unicase/u32-casecmp'.
13861         * lib/unicase/u32-casecmp.c: New file.
13862         * modules/unicase/u32-casecmp: New file.
13863
13864         New module 'unicase/u16-casecmp'.
13865         * lib/unicase/u16-casecmp.c: New file.
13866         * modules/unicase/u16-casecmp: New file.
13867
13868         New module 'unicase/u8-casecmp'.
13869         * lib/unicase/u8-casecmp.c: New file.
13870         * lib/unicase/u-casecmp.h: New file.
13871         * modules/unicase/u8-casecmp: New file.
13872
13873         Tests for module 'unicase/u32-casefold'.
13874         * modules/unicase/u32-casefold-tests: New file.
13875         * tests/unicase/test-u32-casefold.c: New file.
13876
13877         Tests for module 'unicase/u16-casefold'.
13878         * modules/unicase/u16-casefold-tests: New file.
13879         * tests/unicase/test-u16-casefold.c: New file.
13880
13881         Tests for module 'unicase/u8-casefold'.
13882         * modules/unicase/u8-casefold-tests: New file.
13883         * tests/unicase/test-u8-casefold.c: New file.
13884
13885         New module 'unicase/u32-casefold'.
13886         * lib/unicase/u32-casefold.c: New file.
13887         * modules/unicase/u32-casefold: New file.
13888
13889         New module 'unicase/u16-casefold'.
13890         * lib/unicase/u16-casefold.c: New file.
13891         * modules/unicase/u16-casefold: New file.
13892
13893         New module 'unicase/u8-casefold'.
13894         * lib/unicase/u8-casefold.c: New file.
13895         * lib/unicase/u-casefold.h: New file.
13896         * modules/unicase/u8-casefold: New file.
13897
13898         New module 'unicase/tocasefold'.
13899         * lib/unicase/casefold.h: New file.
13900         * lib/unicase/tocasefold.c: New file.
13901         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
13902         * modules/unicase/tocasefold: New file.
13903
13904         Tests for module 'unicase/u32-totitle'.
13905         * modules/unicase/u32-totitle-tests: New file.
13906         * tests/unicase/test-u32-totitle.c: New file.
13907
13908         Tests for module 'unicase/u16-totitle'.
13909         * modules/unicase/u16-totitle-tests: New file.
13910         * tests/unicase/test-u16-totitle.c: New file.
13911
13912         Tests for module 'unicase/u8-totitle'.
13913         * modules/unicase/u8-totitle-tests: New file.
13914         * tests/unicase/test-u8-totitle.c: New file.
13915
13916         New module 'unicase/u32-totitle'.
13917         * lib/unicase/u32-totitle.c: New file.
13918         * modules/unicase/u32-totitle: New file.
13919
13920         New module 'unicase/u16-totitle'.
13921         * lib/unicase/u16-totitle.c: New file.
13922         * modules/unicase/u16-totitle: New file.
13923
13924         New module 'unicase/u8-totitle'.
13925         * lib/unicase/u8-totitle.c: New file.
13926         * lib/unicase/u-totitle.h: New file.
13927         * modules/unicase/u8-totitle: New file.
13928
13929         Tests for module 'unicase/u32-tolower'.
13930         * modules/unicase/u32-tolower-tests: New file.
13931         * tests/unicase/test-u32-tolower.c: New file.
13932
13933         Tests for module 'unicase/u16-tolower'.
13934         * modules/unicase/u16-tolower-tests: New file.
13935         * tests/unicase/test-u16-tolower.c: New file.
13936
13937         Tests for module 'unicase/u8-tolower'.
13938         * modules/unicase/u8-tolower-tests: New file.
13939         * tests/unicase/test-u8-tolower.c: New file.
13940
13941         New module 'unicase/u32-tolower'.
13942         * lib/unicase/u32-tolower.c: New file.
13943         * modules/unicase/u32-tolower: New file.
13944
13945         New module 'unicase/u16-tolower'.
13946         * lib/unicase/u16-tolower.c: New file.
13947         * modules/unicase/u16-tolower: New file.
13948
13949         New module 'unicase/u8-tolower'.
13950         * lib/unicase/u8-tolower.c: New file.
13951         * modules/unicase/u8-tolower: New file.
13952
13953         Tests for module 'unicase/u32-toupper'.
13954         * modules/unicase/u32-toupper-tests: New file.
13955         * tests/unicase/test-u32-toupper.c: New file.
13956
13957         Tests for module 'unicase/u16-toupper'.
13958         * modules/unicase/u16-toupper-tests: New file.
13959         * tests/unicase/test-u16-toupper.c: New file.
13960
13961         Tests for module 'unicase/u8-toupper'.
13962         * modules/unicase/u8-toupper-tests: New file.
13963         * tests/unicase/test-u8-toupper.c: New file.
13964
13965         New module 'unicase/u32-toupper'.
13966         * lib/unicase/u32-toupper.c: New file.
13967         * modules/unicase/u32-toupper: New file.
13968
13969         New module 'unicase/u16-toupper'.
13970         * lib/unicase/u16-toupper.c: New file.
13971         * modules/unicase/u16-toupper: New file.
13972
13973         New module 'unicase/u8-toupper'.
13974         * lib/unicase/u8-toupper.c: New file.
13975         * modules/unicase/u8-toupper: New file.
13976
13977         New module 'unicase/u32-casemap'.
13978         * lib/unicase/u32-casemap.c: New file.
13979         * modules/unicase/u32-casemap: New file.
13980
13981         New module 'unicase/u16-casemap'.
13982         * lib/unicase/u16-casemap.c: New file.
13983         * modules/unicase/u16-casemap: New file.
13984
13985         New module 'unicase/u8-casemap'.
13986         * lib/unicase/unicasemap.h: New file.
13987         * lib/unicase/u8-casemap.c: New file.
13988         * lib/unicase/u-casemap.h: New file.
13989         * modules/unicase/u8-casemap: New file.
13990
13991         New module 'unicase/special-casing'.
13992         * lib/unicase/special-casing.h: New file.
13993         * lib/unicase/special-casing.c: New file.
13994         * lib/unicase/special-casing-table.gperf: New file, generated by
13995         gen-uni-tables.c.
13996         * modules/unicase/special-casing: New file.
13997
13998         Tests for module 'unicase/locale-language'.
13999         * modules/unicase/locale-language-tests: New file.
14000         * tests/unicase/test-locale-language.sh: New file.
14001         * tests/unicase/test-locale-language.c: New file.
14002
14003         New module 'unicase/locale-language'.
14004         * lib/unicase/locale-language.c: New file.
14005         * lib/unicase/locale-languages.gperf: New file.
14006         * modules/unicase/locale-language: New file.
14007
14008         Generate more tables for case conversion and case folding.
14009         * lib/gen-uni-tables.c (SCC_*): New enum items.
14010         (struct special_casing_rule): New type.
14011         (casing_rules, num_casing_rules, allocated_casing_rules): New
14012         variables.
14013         (add_casing_rule, fill_casing_rules): New functions.
14014         (struct casefold_rule): New type.
14015         (casefolding_rules, num_casefolding_rules,
14016         allocated_casefolding_rules): New variables.
14017         (fill_casefolding_rules): New function.
14018         (unicode_casefold): New variable.
14019         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
14020         sort_casing_rules, output_casing_rules): New functions.
14021         (main): Accept to more arguments: SpecialCasing.txt and
14022         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
14023         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
14024         Output mapping for casefolding.
14025
14026         * lib/unicase.h: Include stdbool.h, uninorm.h.
14027         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
14028         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
14029         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
14030         arguments.
14031         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
14032         resultp arguments.
14033         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
14034         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
14035         resultp arguments.
14036         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
14037         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
14038         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
14039         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
14040         declarations.
14041         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
14042
14043 2009-03-08  Bruno Haible  <bruno@clisp.org>
14044
14045         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
14046         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
14047         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
14048         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
14049
14050 2009-03-07  Bruno Haible  <bruno@clisp.org>
14051
14052         Adjust u*_normcmp, u*_normcoll API.
14053         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
14054         u16_normcoll, u32_normcoll): Change failure conventions.
14055         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
14056         errno and return -1.
14057         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
14058
14059 2009-03-07  Bruno Haible  <bruno@clisp.org>
14060
14061         Tests for module 'uninorm/u32-normcoll'.
14062         * modules/uninorm/u32-normcoll-tests: New file.
14063         * tests/uninorm/test-u32-normcoll.c: New file.
14064
14065         Tests for module 'uninorm/u16-normcoll'.
14066         * modules/uninorm/u16-normcoll-tests: New file.
14067         * tests/uninorm/test-u16-normcoll.c: New file.
14068
14069         Tests for module 'uninorm/u8-normcoll'.
14070         * modules/uninorm/u8-normcoll-tests: New file.
14071         * tests/uninorm/test-u8-normcoll.c: New file.
14072
14073 2009-03-07  Bruno Haible  <bruno@clisp.org>
14074
14075         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
14076         tests/uninorm/test-u32-normcmp.c.
14077         * tests/uninorm/test-u32-normcmp.c: Include it.
14078         (test_nonascii): New function, extracted from main. Add some more
14079         tests.
14080         (main): Invoke test_ascii and test_nonascii.
14081         * modules/uninorm/u32-normcmp-tests (Files): Add
14082         tests/uninorm/test-u32-normcmp.h.
14083         (Depends-on): Remove uninorm/u32-normcmp.
14084
14085         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
14086         tests/uninorm/test-u16-normcmp.c.
14087         * tests/uninorm/test-u16-normcmp.c: Include it.
14088         (test_nonascii): New function, extracted from main. Add some more
14089         tests.
14090         (main): Invoke test_ascii and test_nonascii.
14091         * modules/uninorm/u16-normcmp-tests (Files): Add
14092         tests/uninorm/test-u16-normcmp.h.
14093         (Depends-on): Remove uninorm/u16-normcmp.
14094
14095         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
14096         tests/uninorm/test-u8-normcmp.c.
14097         * tests/uninorm/test-u8-normcmp.c: Include it.
14098         (test_nonascii): New function, extracted from main. Add some more
14099         tests.
14100         (main): Invoke test_ascii and test_nonascii.
14101         * modules/uninorm/u8-normcmp-tests (Files): Add
14102         tests/uninorm/test-u8-normcmp.h.
14103         (Depends-on): Remove uninorm/u8-normcmp.
14104
14105 2009-03-07  Bruno Haible  <bruno@clisp.org>
14106
14107         New module 'uninorm/u32-normcoll'.
14108         * lib/uninorm/u32-normcoll.c: New file.
14109         * modules/uninorm/u32-normcoll: New file.
14110
14111         New module 'uninorm/u16-normcoll'.
14112         * lib/uninorm/u16-normcoll.c: New file.
14113         * modules/uninorm/u16-normcoll: New file.
14114
14115         New module 'uninorm/u8-normcoll'.
14116         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
14117         declarations.
14118         * lib/uninorm/u8-normcoll.c: New file.
14119         * lib/uninorm/u-normcoll.h: New file.
14120         * modules/uninorm/u8-normcoll: New file.
14121
14122         New module 'uninorm/u32-normxfrm'.
14123         * lib/uninorm/u32-normxfrm.c: New file.
14124         * modules/uninorm/u32-normxfrm: New file.
14125
14126         New module 'uninorm/u16-normxfrm'.
14127         * lib/uninorm/u16-normxfrm.c: New file.
14128         * modules/uninorm/u16-normxfrm: New file.
14129
14130         New module 'uninorm/u8-normxfrm'.
14131         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
14132         declarations.
14133         * lib/uninorm/u8-normxfrm.c: New file.
14134         * lib/uninorm/u-normxfrm.h: New file.
14135         * modules/uninorm/u8-normxfrm: New file.
14136
14137 2009-03-07  Bruno Haible  <bruno@clisp.org>
14138
14139         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
14140         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
14141         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
14142
14143 2009-03-07  Bruno Haible  <bruno@clisp.org>
14144
14145         New module 'memxfrm'.
14146         * lib/memxfrm.h: New file.
14147         * lib/memxfrm.c: New file.
14148         * modules/memxfrm: New file.
14149
14150 2009-03-07  Bruno Haible  <bruno@clisp.org>
14151
14152         New module 'memcmp2'.
14153         * lib/memcmp2.h: New file.
14154         * lib/memcmp2.c: New file.
14155         * modules/memcmp2: New file.
14156
14157 2009-03-07  Bruno Haible  <bruno@clisp.org>
14158
14159         Tests for module 'uninorm/decomposing-form'.
14160         * modules/uninorm/decomposing-form-tests: New file.
14161         * tests/uninorm/test-decomposing-form.c: New file.
14162
14163         New module 'uninorm/decomposing-form'.
14164         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
14165         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
14166         Add 'decomposing_variant' field.
14167         * lib/uninorm/decomposing-form.c: New file.
14168         * lib/uninorm/nfc.c (uninorm_nfc): Update.
14169         * lib/uninorm/nfd.c (uninorm_nfd): Update.
14170         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
14171         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
14172         * modules/uninorm/decomposing-form: New file.
14173         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
14174         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
14175
14176 2009-03-07  Bruno Haible  <bruno@clisp.org>
14177
14178         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
14179         strings.
14180
14181 2009-03-06  Bruno Haible  <bruno@clisp.org>
14182
14183         Tests for module 'uninorm/u32-normcmp'.
14184         * tests/uninorm/test-u32-normcmp.c: New file.
14185         * modules/uninorm/u32-normcmp-tests: New file.
14186
14187         Tests for module 'uninorm/u16-normcmp'.
14188         * tests/uninorm/test-u16-normcmp.c: New file.
14189         * modules/uninorm/u16-normcmp-tests: New file.
14190
14191         Tests for module 'uninorm/u8-normcmp'.
14192         * tests/uninorm/test-u8-normcmp.c: New file.
14193         * modules/uninorm/u8-normcmp-tests: New file.
14194
14195         New module 'uninorm/u32-normcmp'.
14196         * lib/uninorm/u32-normcmp.c: New file.
14197         * modules/uninorm/u32-normcmp: New file.
14198
14199         New module 'uninorm/u16-normcmp'.
14200         * lib/uninorm/u16-normcmp.c: New file.
14201         * modules/uninorm/u16-normcmp: New file.
14202
14203         New module 'uninorm/u8-normcmp'.
14204         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
14205         declarations.
14206         * lib/uninorm/u8-normcmp.c: New file.
14207         * lib/uninorm/u-normcmp.h: New file.
14208         * modules/uninorm/u8-normcmp: New file.
14209
14210 2009-03-06  Bruno Haible  <bruno@clisp.org>
14211
14212         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
14213         Reported by Eric Blake.
14214
14215 2009-03-06  Eric Blake  <ebb9@byu.net>
14216             Bruno Haible  <bruno@clisp.org>
14217
14218         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
14219         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
14220         condition.
14221         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
14222         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
14223         condition.
14224         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
14225
14226 2009-03-06  Eric Blake  <ebb9@byu.net>
14227
14228         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
14229         to avoid compiler warnings.
14230         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
14231
14232 2009-03-05  Bruno Haible  <bruno@clisp.org>
14233
14234         * tests/test-ftell.c (main): Disable test beyond end of file on
14235         FreeMiNT.
14236         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
14237
14238 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
14239
14240         * lib/filevercmp.c: Move hidden files up in ordering.
14241         * tests/test-filevercmp.c: Add tests for hidden files.
14242
14243 2009-03-04  Bruno Haible  <bruno@clisp.org>
14244
14245         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
14246         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
14247         AM_CFLAGS.
14248         Reported by Simon Josefsson.
14249
14250 2009-03-03  Bruno Haible  <bruno@clisp.org>
14251
14252         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
14253         Reported by Simon Josefsson.
14254
14255         * doc/ld-version-script.texi: Update node reference.
14256
14257 2009-03-03  Bruno Haible  <bruno@clisp.org>
14258
14259         * modules/visibility (License): Change to 'unlimited'.
14260         Suggested by Simon Josefsson.
14261
14262 2009-03-03  Jim Meyering  <meyering@redhat.com>
14263
14264         unlinkdir: cannot_unlink_dir may modify process state
14265         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
14266         it's neither thread-safe nor appropriate for use in a library.
14267
14268 2009-03-03  Eric Blake  <ebb9@byu.net>
14269
14270         test-closein: silence test under Darwin
14271         * tests/test-closein.sh: Ignore stderr from cat, since we don't
14272         care if it dies from EPIPE or EBADF.
14273
14274 2009-03-03  Bruno Haible  <bruno@clisp.org>
14275
14276         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
14277         earlier.
14278         * doc/visibility.texi: Fix @node and @section.
14279
14280 2009-03-03  Simon Josefsson  <simon@josefsson.org>
14281
14282         * doc/gnulib.texi: Link to sections for ld version script and
14283         visibility.
14284         * doc/visibility.texi: Add @node and @section.
14285         * modules/ld-version-script: New module.
14286         * m4/ld-version-script.m4: New file.
14287         * doc/ld-version-script.texi: New file.
14288
14289 2009-03-02  David Lutterkort  <lutter@redhat.com>
14290
14291         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
14292         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14293
14294 2009-03-02  Bruno Haible  <bruno@clisp.org>
14295
14296         * doc/visibility.texi: Mention libtool's -export-symbols option.
14297
14298 2009-03-02  Jim Meyering  <meyering@redhat.com>
14299
14300         announce-gen: new option: --no-print-checksums
14301         * build-aux/announce-gen (usage): Describe it.
14302         (print_checksums): Print a newline here, not in the [*] footnote.
14303         (main): Honor it.
14304
14305 2009-03-01  Bruno Haible  <bruno@clisp.org>
14306
14307         Use socklen_t in the native Windows replacements prototypes.
14308         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
14309         instead of 'int'.
14310         * lib/getsockopt.c (rpl_getsockopt): Likewise.
14311         * lib/setsockopt.c (rpl_setsockopt): Likewise.
14312         * modules/getsockopt (Depends-on): Add socklen.
14313         * modules/setsockopt (Depends-on): Add socklen.
14314
14315 2009-03-01  Bruno Haible  <bruno@clisp.org>
14316
14317         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
14318         least 4.2.
14319
14320 2009-03-01  Eric Blake  <ebb9@byu.net>
14321             Bruno Haible  <bruno@clisp.org>
14322
14323         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
14324         error messages.
14325         * lib/wait-process.c (wait_subprocess): Omit error message about
14326         deadly signal sent to the child of termsigp != NULL.
14327
14328 2009-03-01  Eric Blake  <ebb9@byu.net>
14329
14330         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
14331
14332 2009-03-01  Bruno Haible  <bruno@clisp.org>
14333
14334         Avoid a gcc warning.
14335         * tests/test-sched.c (b): Make global.
14336         Reported by Eric Blake.
14337
14338 2009-01-19  Martin Lambers  <marlam@marlam.de>
14339
14340         Provide POSIX semantics for socket timeout options on W32.
14341         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
14342         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
14343         * modules/setsockopt: Depend on sys_time module for struct timeval.
14344         * modules/getsockopt: Depend on sys_time module for struct timeval.
14345
14346 2009-03-01  Simon Josefsson  <simon@josefsson.org>
14347
14348         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
14349         __USE_GNU, for consistency with netdb.in.h.
14350         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
14351
14352 2009-03-01  Bruno Haible  <bruno@clisp.org>
14353
14354         More support for FreeMiNT.
14355         * lib/fseeko.c (rpl_fseeko): Complete last commit.
14356         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
14357
14358 2009-03-01  Bruno Haible  <bruno@clisp.org>
14359
14360         More support for FreeMiNT.
14361         * lib/fpurge.c (fpurge): Correct last commit.
14362         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
14363
14364 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14365
14366         Fix unportable awk script in vc-list-files.
14367         * build-aux/vc-list-files: In the replacement awk script, use
14368         substr with a second argument of 1, not zero.
14369         Report by Simon Josefsson.
14370
14371 2009-02-28  Bruno Haible  <bruno@clisp.org>
14372
14373         More support for FreeMiNT.
14374         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
14375         to FreeMiNT today.
14376         * lib/fwriting.c (fwriting): Likewise.
14377         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
14378
14379 2009-02-28  Bruno Haible  <bruno@clisp.org>
14380
14381         * tests/test-freadseek.c (main): Disable test beyond end of file on
14382         FreeMiNT.
14383         * tests/test-ftello.c (main): Likewise.
14384         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
14385
14386 2009-02-28  Bruno Haible  <bruno@clisp.org>
14387
14388         Add tentative support for FreeMiNT.
14389         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
14390         * lib/fpurge.c (fpurge): Likewise.
14391         * lib/freadable.c (freadable): Likewise.
14392         * lib/freading.c (freading): Likewise.
14393         * lib/freadptr.c (freadptr): Likewise.
14394         * lib/freadseek.c (freadptrinc): Likewise.
14395         * lib/fseeko.c (rpl_fseeko): Likewise.
14396         * lib/fseterr.c (fseterr): Likewise.
14397         * lib/fwritable.c (fwritable): Likewise.
14398         * lib/fwriting.c (fwriting): Likewise.
14399         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
14400         Hourihane.
14401         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
14402
14403 2009-02-28  Bruno Haible  <bruno@clisp.org>
14404
14405         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
14406         SIGCHLD.
14407         Reported by Jim Meyering.
14408
14409 2009-02-28  Bruno Haible  <bruno@clisp.org>
14410
14411         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
14412         Mention the results of these tests on various platforms.
14413         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
14414         order.
14415         * doc/posix-functions/printf.texi: Likewise.
14416         * doc/posix-functions/snprintf.texi: Likewise.
14417         * doc/posix-functions/sprintf.texi: Likewise.
14418         * doc/posix-functions/vfprintf.texi: Likewise.
14419         * doc/posix-functions/vprintf.texi: Likewise.
14420         * doc/posix-functions/vsnprintf.texi: Likewise.
14421         * doc/posix-functions/vsprintf.texi: Likewise.
14422         * doc/glibc-functions/obstack_printf.texi: Likewise.
14423         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
14424
14425 2009-02-28  Bruno Haible  <bruno@clisp.org>
14426
14427         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
14428         Reported by Loïc Minier <lool@dooz.org>.
14429
14430 2009-02-27  Bruno Haible  <bruno@clisp.org>
14431
14432         * gnulib-tool (func_import): Make the sed expression used to create the
14433         sed script for updating the .gitignore file POSIX compliant.
14434         Reported by Eric Blake.
14435
14436 2009-02-27  Bruno Haible  <bruno@clisp.org>
14437
14438         * gnulib-tool (sed): Don't alias as "sed --posix".
14439         Reported by Eric Blake.
14440
14441 2009-02-27  Bruno Haible  <bruno@clisp.org>
14442
14443         Avoid test link errors.
14444         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
14445         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
14446         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
14447         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
14448         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14449
14450 2009-02-27  Bruno Haible  <bruno@clisp.org>
14451
14452         Avoid spurious "(cached)" in configure output.
14453         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
14454         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
14455         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
14456         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
14457         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
14458         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
14459         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
14460         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
14461         Reported by Eric Blake.
14462
14463 2009-02-27  Eric Blake  <ebb9@byu.net>
14464
14465         printf: fix regression in previous patch
14466         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
14467
14468 2009-02-27  Bruno Haible  <bruno@clisp.org>
14469
14470         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
14471         value.
14472         * lib/stdint.in.h: Likewise.
14473         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
14474
14475 2009-02-27  Eric Blake  <ebb9@byu.net>
14476
14477         doc: mention more functions added in cygwin 1.7.0
14478         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
14479         addition.
14480         * doc/posix-functions/open_wmemstream.texi: Likewise.
14481         * doc/posix-functions/wcsnlen.texi: Likewise.
14482         * doc/posix-functions/wcsnrtombs.texi: Likewise.
14483         * doc/posix-functions/wcstod.texi: Likewise.
14484         * doc/posix-functions/wcstof.texi: Likewise.
14485         * doc/posix-functions/wcstoimax.texi: Likewise.
14486         * doc/posix-functions/wcstok.texi: Likewise.
14487         * doc/posix-functions/wcstoumax.texi: Likewise.
14488
14489         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
14490         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
14491         * doc/posix-functions/fprintf.texi: Update.
14492         * doc/posix-functions/printf.texi: Update.
14493         * doc/posix-functions/snprintf.texi: Update.
14494         * doc/posix-functions/sprintf.texi: Update.
14495         * doc/posix-functions/vfprintf.texi: Update.
14496         * doc/posix-functions/vprintf.texi: Update.
14497         * doc/posix-functions/vsnprintf.texi: Update.
14498         * doc/posix-functions/vsprintf.texi: Update.
14499         * doc/glibc-functions/obstack_printf.texi: Update.
14500         * doc/glibc-functions/obstack_vprintf.texi: Update.
14501
14502 2009-02-26  Eric Blake  <ebb9@byu.net>
14503
14504         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
14505         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
14506         compilation bug by using runtime conversion.
14507         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
14508         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
14509         * modules/ceill-tests (Files): Use nan.h.
14510         * modules/floorl-tests (Files): Likewise.
14511         * modules/frexpl-tests (Files): Likewise.
14512         * modules/isnanl-tests (Files): Likewise.
14513         * modules/ldexpl-tests (Files): Likewise.
14514         * modules/roundl-tests (Files): Likewise.
14515         * modules/truncl-tests (Files): Likewise.
14516         * tests/test-ceill.c (main): Use a working NaN.
14517         * tests/test-floorl.c (main): Likewise.
14518         * tests/test-frexpl.c (main): Likewise.
14519         * tests/test-isnan.c (test_long_double): Likewise.
14520         * tests/test-isnanl.h (main): Likewise.
14521         * tests/test-ldexpl.h (main): Likewise.
14522         * tests/test-roundl.h (main): Likewise.
14523         * tests/test-truncl.h (main): Likewise.
14524         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
14525
14526 2009-02-26  Eric Blake  <ebb9@byu.net>
14527             Bruno Haible  <bruno@clisp.org>
14528
14529         Work around a *printf bug with %ls on Solaris.
14530         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
14531         precision is specified, sprintf stops converting the wide string
14532         argument when the number of bytes that have been produced by this
14533         conversion equals or exceeds the precision.
14534         * doc/posix-functions/fprintf.texi: Update.
14535         * doc/posix-functions/printf.texi: Update.
14536         * doc/posix-functions/snprintf.texi: Update.
14537         * doc/posix-functions/sprintf.texi: Update.
14538         * doc/posix-functions/vfprintf.texi: Update.
14539         * doc/posix-functions/vprintf.texi: Update.
14540         * doc/posix-functions/vsnprintf.texi: Update.
14541         * doc/posix-functions/vsprintf.texi: Update.
14542         * doc/glibc-functions/obstack_printf.texi: Update.
14543         * doc/glibc-functions/obstack_vprintf.texi: Update.
14544
14545 2009-02-26  Eric Blake  <ebb9@byu.net>
14546
14547         stdlib: favor compiler check of random.h
14548         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
14549         to avoid an ObjC random.h installed by Swarm.
14550
14551 2009-02-26  Bruno Haible  <bruno@clisp.org>
14552
14553         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
14554         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
14555         Reported by Gary V. Vaughan <gary@gnu.org>.
14556
14557 2009-02-26  Bruno Haible  <bruno@clisp.org>
14558
14559         Fix *printf behaviour regarding the %ls directive.
14560         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
14561         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
14562         NEED_PRINTF_DIRECTIVE_LS.
14563         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
14564         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
14565         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
14566         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
14567         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
14568         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
14569         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
14570         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
14571         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
14572         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
14573         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
14574         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
14575         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
14576         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
14577         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
14578         * doc/posix-functions/fprintf.texi: Update.
14579         * doc/posix-functions/printf.texi: Update.
14580         * doc/posix-functions/snprintf.texi: Update.
14581         * doc/posix-functions/sprintf.texi: Update.
14582         * doc/posix-functions/vfprintf.texi: Update.
14583         * doc/posix-functions/vprintf.texi: Update.
14584         * doc/posix-functions/vsnprintf.texi: Update.
14585         * doc/posix-functions/vsprintf.texi: Update.
14586         * doc/glibc-functions/obstack_printf.texi: Update.
14587         * doc/glibc-functions/obstack_vprintf.texi: Update.
14588         Reported by Eric Blake.
14589
14590 2009-02-25  Bruno Haible  <bruno@clisp.org>
14591
14592         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
14593         with known value.
14594         Reported by Gary V. Vaughan <gary@gnu.org>.
14595
14596 2009-02-25  Bruno Haible  <bruno@clisp.org>
14597
14598         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
14599         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
14600         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
14601         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
14602         Reported by Gary V. Vaughan <gary@gnu.org>.
14603
14604 2009-02-25  Bruno Haible  <bruno@clisp.org>
14605
14606         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
14607         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
14608         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
14609         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
14610         Reported by Gary V. Vaughan <gary@gnu.org>.
14611
14612 2009-02-25  Eric Blake  <ebb9@byu.net>
14613
14614         tests: skip fseek/ftell tests if ungetc is broken
14615         * m4/ungetc.m4: New file.
14616         * modules/fseek-tests: Split test, so ungetc dependency is
14617         separate from rest of test.
14618         * modules/fseeko-tests: Likewise.
14619         * modules/ftell-tests: Likewise.
14620         * modules/ftello-tests: Likewise.
14621         * tests/test-fseek.c (main): Isolate ungetc dependency.
14622         * tests/test-fseeko.c (main): Likewise.
14623         * tests/test-ftell.c (main): Likewise.
14624         * tests/test-ftello.c (main): Likewise.
14625         * tests/test-fseek2.sh: New file.
14626         * tests/test-fseeko2.sh: Likewise.
14627         * tests/test-ftell2.sh: Likewise.
14628         * tests/test-ftello2.sh: Likewise.
14629
14630 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
14631
14632         test-getaddrinfo: fix usage of skip return code 77
14633         * tests/test-gettaddrinfo.c: Return skip code 77 only
14634         for first occurance of skip (4x77 is not 77)
14635
14636 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
14637
14638         strtod: avoid C99 decl-after-statement
14639         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
14640
14641 2009-02-24  Eric Blake  <ebb9@byu.net>
14642
14643         strtod: detect HP-UX 11.31 bug
14644         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
14645         Reported by Gary V. Vaughan.
14646
14647 2009-02-23  Bruno Haible  <bruno@clisp.org>
14648
14649         Fix invalid read past end of memory block.
14650         * lib/vasnprintf.c (DCHAR_SET): Define.
14651         (local_wcslen): Define only when needed.
14652         (local_strnlen, local_wcsnlen): New functions.
14653         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
14654         directives that involve a conversion ourselves.
14655         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
14656         wcsnlen, mbrtowc, wcrtomb.
14657         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
14658         * tests/test-vasprintf-posix.c (test_function): Likewise.
14659         * tests/test-snprintf-posix.h (test_function): Likewise.
14660         * tests/test-sprintf-posix.h (test_function): Likewise.
14661         Reported by Ben Pfaff <blp@cs.stanford.edu>.
14662
14663 2009-02-22  Bruno Haible  <bruno@clisp.org>
14664
14665         Implement new clarified decomposition of Hangul syllables.
14666         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
14667         of type LTV, return only a pairwise decomposition.
14668         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
14669         Likewise.
14670         * tests/uninorm/test-decomposition.c (main): Updated expected result.
14671         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
14672         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
14673
14674 2009-02-22  Bruno Haible  <bruno@clisp.org>
14675
14676         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
14677         zero-length results and shrink excess allocated memory.
14678         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
14679         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
14680         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
14681         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
14682         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
14683         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
14684         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
14685         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
14686         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
14687         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
14688         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
14689         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
14690
14691 2009-02-21  Bruno Haible  <bruno@clisp.org>
14692
14693         * doc/gnulib.texi: Include safe-alloc.texi earlier.
14694         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
14695         spaces after a period. Put a space between a macro name and its
14696         argument list. Trivial rewordings.
14697         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
14698         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
14699         (main): Return 0 explicitly.
14700
14701 2009-02-21  Bruno Haible  <bruno@clisp.org>
14702
14703         Tests for module 'uninorm/filter'.
14704         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
14705         * modules/uninorm/filter-tests: New file.
14706
14707         New module 'uninorm/filter'.
14708         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
14709         uninorm_filter_flush, uninorm_filter_free): New declarations.
14710         * lib/uninorm/uninorm-filter.c: New file.
14711         * modules/uninorm/filter: New file.
14712
14713 2009-02-21  Bruno Haible  <bruno@clisp.org>
14714
14715         Tests for module 'uninorm/nfkc'.
14716         * tests/uninorm/test-nfkc.c: New file.
14717         * tests/uninorm/test-u8-nfkc.c: New file.
14718         * tests/uninorm/test-u16-nfkc.c: New file.
14719         * tests/uninorm/test-u32-nfkc.c: New file.
14720         * tests/uninorm/test-u32-nfkc-big.sh: New file.
14721         * tests/uninorm/test-u32-nfkc-big.c: New file.
14722         * modules/uninorm/nfkc-tests: New file.
14723
14724         New module 'uninorm/nfkc'.
14725         * lib/uninorm/nfkc.c: New file.
14726         * modules/uninorm/nfkc: New file.
14727
14728         Tests for module 'uninorm/nfkd'.
14729         * tests/uninorm/test-nfkd.c: New file.
14730         * tests/uninorm/test-u8-nfkd.c: New file.
14731         * tests/uninorm/test-u16-nfkd.c: New file.
14732         * tests/uninorm/test-u32-nfkd.c: New file.
14733         * tests/uninorm/test-u32-nfkd-big.sh: New file.
14734         * tests/uninorm/test-u32-nfkd-big.c: New file.
14735         * modules/uninorm/nfkd-tests: New file.
14736
14737         New module 'uninorm/nfkd'.
14738         * lib/uninorm/nfkd.c: New file.
14739         * modules/uninorm/nfkd: New file.
14740
14741         Tests for module 'uninorm/nfc'.
14742         * tests/uninorm/test-nfc.c: New file.
14743         * tests/uninorm/test-u8-nfc.c: New file.
14744         * tests/uninorm/test-u16-nfc.c: New file.
14745         * tests/uninorm/test-u32-nfc.c: New file.
14746         * tests/uninorm/test-u32-nfc-big.sh: New file.
14747         * tests/uninorm/test-u32-nfc-big.c: New file.
14748         * modules/uninorm/nfc-tests: New file.
14749
14750         New module 'uninorm/nfc'.
14751         * lib/uninorm/nfc.c: New file.
14752         * modules/uninorm/nfc: New file.
14753
14754         Tests for module 'uninorm/nfd'.
14755         * tests/uninorm/test-nfd.c: New file.
14756         * tests/uninorm/test-u8-nfd.c: New file.
14757         * tests/uninorm/test-u16-nfd.c: New file.
14758         * tests/uninorm/test-u32-nfd.c: New file.
14759         * tests/uninorm/test-u32-nfd-big.sh: New file.
14760         * tests/uninorm/test-u32-nfd-big.c: New file.
14761         * tests/uninorm/test-u32-normalize-big.h: New file.
14762         * tests/uninorm/test-u32-normalize-big.c: New file.
14763         * tests/uninorm/NormalizationTest.txt: New file, created from
14764         Unicode 5.1.0 NormalizationTest.txt.
14765         * modules/uninorm/nfd-tests: New file.
14766
14767         New module 'uninorm/nfd'.
14768         * lib/uninorm/nfd.c: New file.
14769         * modules/uninorm/nfd: New file.
14770
14771         New module 'uninorm/u32-normalize'.
14772         * lib/uninorm/u32-normalize.c: New file.
14773         * modules/uninorm/u32-normalize: New file.
14774
14775         New module 'uninorm/u16-normalize'.
14776         * lib/uninorm/u16-normalize.c: New file.
14777         * modules/uninorm/u16-normalize: New file.
14778
14779         New module 'uninorm/u8-normalize'.
14780         * lib/uninorm/u8-normalize.c: New file.
14781         * lib/uninorm/normalize-internal.h: New file.
14782         * lib/uninorm/u-normalize-internal.h: New file.
14783         * modules/uninorm/u8-normalize: New file.
14784
14785         New module 'uninorm/decompose-internal'.
14786         * lib/uninorm/decompose-internal.c: New file.
14787         * modules/uninorm/decompose-internal: New file.
14788
14789         Tests for module 'uninorm/composition'.
14790         * tests/uninorm/test-composition.c: New file.
14791         * modules/uninorm/composition-tests: New file.
14792
14793         New module 'uninorm/composition'.
14794         * lib/uninorm/composition.c: New file.
14795         * lib/uninorm/composition-table.gperf: New file, generated by
14796         gen-uni-tables.
14797         * modules/uninorm/composition: New file.
14798
14799         Tests for module 'uninorm/compat-decomposition'.
14800         * tests/uninorm/test-compat-decomposition.c: New file.
14801         * modules/uninorm/compat-decomposition-tests: New file.
14802
14803         New module 'uninorm/compat-decomposition'.
14804         * lib/uninorm/decompose-internal.h: New file.
14805         * lib/uninorm/compat-decomposition.c: New file.
14806         * modules/uninorm/compat-decomposition: New file.
14807
14808         Tests for module 'uninorm/canonical-decomposition'.
14809         * tests/uninorm/test-canonical-decomposition.c: New file.
14810         * modules/uninorm/canonical-decomposition-tests: New file.
14811
14812         New module 'uninorm/canonical-decomposition'.
14813         * lib/uninorm/canonical-decomposition.c: New file.
14814         * modules/uninorm/canonical-decomposition: New file.
14815
14816         Tests for module 'uninorm/decomposition'.
14817         * tests/uninorm/test-decomposition.c: New file.
14818         * modules/uninorm/decomposition-tests: New file.
14819
14820         New module 'uninorm/decomposition'.
14821         * lib/uninorm/decomposition.c: New file.
14822         * modules/uninorm/decomposition: New file.
14823
14824         New module 'uninorm/decomposition-table'.
14825         * lib/uninorm/decomposition-table.h: New file.
14826         * lib/uninorm/decomposition-table.c: New file.
14827         * lib/uninorm/decomposition-table1.h: New file, generated by
14828         gen-uni-tables.
14829         * lib/uninorm/decomposition-table2.h: New file, generated by
14830         gen-uni-tables.
14831         * modules/uninorm/decomposition-table: New file.
14832
14833         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
14834         (UC_DECOMP_*): New enumeration items.
14835         (get_decomposition): New function.
14836         (struct decomp_table): New type.
14837         (output_decomposition, output_decomposition_tables): New functions.
14838         (unicode_composition_exclusions): New variable.
14839         (fill_composition_exclusions, debug_output_composition_tables): New
14840         functions.
14841         (main): Accept one more argument. Invoke fill_composition_exclusions.
14842         Output decomposition and composition tables.
14843
14844         New module 'uninorm/base'.
14845         * lib/uninorm.h: New file.
14846         * lib/unictype.h: Update comment.
14847         * modules/uninorm/base: New file.
14848
14849 2009-02-21  David Lutterkort  <lutter@redhat.com>
14850
14851         Tests for module 'safe-alloc'.
14852         * tests/test-safe-alloc.c: New file.
14853         * modules/safe-alloc-tests: New file.
14854
14855         New module 'safe-alloc'.
14856         * lib/safe-alloc.h: New file.
14857         * lib/safe-alloc.c: New file.
14858         * m4/safe-alloc.m4: New file.
14859         * modules/safe-alloc: New file.
14860         * doc/safe-alloc.texi: New file.
14861         * doc/gnulib.texi: Include it.
14862         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
14863         safe-alloc.
14864
14865 2009-02-18  Bruno Haible  <bruno@clisp.org>
14866
14867         Fix link error on non-glibc systems.
14868         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
14869         variable.
14870         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14871
14872 2009-02-18  Jim Meyering  <meyering@redhat.com>
14873
14874         fts: avoid used-uninitialized error due to recent change
14875         * lib/fts.c (fts_read): Guard uses of the new member,
14876         parent->fts_n_dirs_remaining, since it's not relevant for
14877         the parent of a directory specified on the command-line.
14878
14879 2009-02-17  James Youngman  <jay@gnu.org>
14880             Bruno Haible  <bruno@clisp.org>
14881
14882         * m4/include_next.m4: Reformulate comment.
14883
14884 2009-02-16  Jim Meyering  <meyering@redhat.com>
14885
14886         fts: add #if guards so that the fts_lgpl module still builds
14887         * lib/fts.c: Guard just-added hash-table-using parts with
14888         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
14889         Reported by Simon Josefsson.
14890
14891 2009-02-15  Bruno Haible  <bruno@clisp.org>
14892
14893         * modules/array-mergesort-tests: New file.
14894         * tests/test-array-mergesort.c: New file.
14895
14896         New module 'array-mergesort'.
14897         * modules/array-mergesort: New file.
14898         * lib/array-mergesort.h: New file.
14899
14900 2009-02-15  Bruno Haible  <bruno@clisp.org>
14901
14902         Fix 2009-02-07 commit.
14903         * lib/gen-uni-tables.c (output_predicate, output_category,
14904         output_combclass, output_bidi_category, output_decimal_digit,
14905         output_digit, output_numeric, output_mirror, output_scripts,
14906         output_ident_category, output_simple_mapping): Fix format directives.
14907         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
14908
14909 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
14910
14911         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
14912         fixes are available from IBM.
14913
14914 2009-02-13  Jim Meyering  <meyering@redhat.com>
14915
14916         fts: arrange not to stat non-directories in more cases
14917         This makes GNU find (when it doesn't need to stat each file)
14918         *much* more efficient at traversing reiserfs file systems.
14919         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
14920         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
14921         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
14922         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
14923         (leaf_optimization_applies): New function.
14924         (LCO_hash, LCO_compare): New helper functions.
14925         (link_count_optimize_ok): New function.
14926         (fts_stat): Initialize new member (if dir).
14927         (fts_read): Decrement parent's fts_n_dirs_remaining count if
14928         we've just stat'ed a directory.  Skip the stat call when possible.
14929         ---
14930         Note this AFS-related exchange:
14931         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
14932         and note find's pioctl call in find/fstype.c.
14933         But that is necessary only if you want to enable the
14934         optimization for AFS, and for now, I don't.
14935
14936         fts: move a function definition "up" (no semantic change)
14937         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
14938         "up" to precede upcoming use of a related function.
14939
14940 2009-02-11  Jim Meyering  <meyering@redhat.com>
14941
14942         fts: correct internal computation of nlinks (optimization-related)
14943         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
14944         whether the current entry is a directory, so don't test it.
14945
14946 2009-02-10  Bruno Haible  <bruno@clisp.org>
14947
14948         Tests for module 'uniwbrk/ulc-wordbreaks'.
14949         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
14950         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
14951         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
14952
14953         Tests for module 'uniwbrk/u32-wordbreaks'.
14954         * modules/uniwbrk/u32-wordbreaks-tests: New file.
14955         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
14956
14957         Tests for module 'uniwbrk/u16-wordbreaks'.
14958         * modules/uniwbrk/u16-wordbreaks-tests: New file.
14959         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
14960
14961         Tests for module 'uniwbrk/u8-wordbreaks'.
14962         * modules/uniwbrk/u8-wordbreaks-tests: New file.
14963         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
14964
14965 2009-02-10  Bruno Haible  <bruno@clisp.org>
14966
14967         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
14968         property.
14969         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
14970         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
14971         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
14972
14973 2009-02-10  Simon Josefsson  <simon@josefsson.org>
14974
14975         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
14976         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
14977
14978 2009-02-10  Bruno Haible  <bruno@clisp.org>
14979
14980         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
14981         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
14982         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
14983         * lib/unilbrk/u8-possible-linebreaks.c: Update.
14984         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
14985         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
14986
14987 2009-02-09  Simon Josefsson  <simon@josefsson.org>
14988
14989         * lib/sockets.h (gl_fd_to_handle): New function.
14990
14991         * tests/test-sockets.c: Call gl_fd_to_handle.
14992
14993 2009-02-09  Bruno Haible  <bruno@clisp.org>
14994
14995         * doc/havelib.texi: Document the conventions on bi-arch systems.
14996
14997 2009-02-08  Bruno Haible  <bruno@clisp.org>
14998
14999         Document the AC_LIB_LINKFLAGS macro.
15000         * doc/havelib.texi: New file, mostly written on 2005-05-24.
15001         * doc/gnulib.texi: Include it.
15002
15003 2009-02-08  Bruno Haible  <bruno@clisp.org>
15004
15005         Fix wrong order of sections, compared to TOC.
15006         * doc/gnulib.texi: Include relocatable-maint.texi after the
15007         "Regular expressions" node, not before.
15008
15009 2009-02-08  Bruno Haible  <bruno@clisp.org>
15010
15011         Tests for module 'unicase/totitle'.
15012         * modules/unicase/totitle-tests: New file.
15013
15014         Tests for module 'unicase/tolower'.
15015         * modules/unicase/tolower-tests: New file.
15016
15017         Tests for module 'unicase/toupper'.
15018         * modules/unicase/toupper-tests: New file.
15019         * tests/unicase/test-mapping-part1.h: New file.
15020         * tests/unicase/test-mapping-part2.h: New file.
15021
15022         New module 'unicase/totitle'.
15023         * modules/unicase/totitle: New file.
15024         * lib/unicase/totitle.c: New file.
15025
15026         New module 'unicase/tolower'.
15027         * modules/unicase/tolower: New file.
15028         * lib/unicase/tolower.c: New file.
15029
15030         New module 'unicase/toupper'.
15031         * modules/unicase/toupper: New file.
15032         * lib/unicase/toupper.c: New file.
15033         * lib/unicase/simple-mapping.h: New file.
15034
15035         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
15036         (mapping_table): New structure.
15037         (output_simple_mapping): New function.
15038         (main): Invoke output_simple_mapping_test and output_simple_mapping.
15039         * modules/gen-uni-tables (Description): Update.
15040         * lib/unicase/toupper.h: New file, automatically generated by
15041         gen-uni-tables.
15042         * lib/unicase/tolower.h: New file, automatically generated by
15043         gen-uni-tables.
15044         * lib/unicase/totitle.h: New file, automatically generated by
15045         gen-uni-tables.
15046         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
15047         gen-uni-tables.
15048         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
15049         gen-uni-tables.
15050         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
15051         gen-uni-tables.
15052
15053         New module 'unicase/base'.
15054         * modules/unicase/base: New file.
15055         * lib/unicase.h: New file.
15056
15057 2009-02-08  Bruno Haible  <bruno@clisp.org>
15058
15059         New module 'uniwbrk/ulc-wordbreaks'.
15060         * modules/uniwbrk/ulc-wordbreaks: New file.
15061         * lib/uniwbrk/ulc-wordbreaks.c: New file.
15062
15063         New module 'uniwbrk/u32-wordbreaks'.
15064         * modules/uniwbrk/u32-wordbreaks: New file.
15065         * lib/uniwbrk/u32-wordbreaks.c: New file.
15066
15067         New module 'uniwbrk/u16-wordbreaks'.
15068         * modules/uniwbrk/u16-wordbreaks: New file.
15069         * lib/uniwbrk/u16-wordbreaks.c: New file.
15070
15071         New module 'uniwbrk/u8-wordbreaks'.
15072         * modules/uniwbrk/u8-wordbreaks: New file.
15073         * lib/uniwbrk/u8-wordbreaks.c: New file.
15074         * lib/uniwbrk/u-wordbreaks.h: New file.
15075
15076         New module 'uniwbrk/table'.
15077         * modules/uniwbrk/table: New file.
15078         * lib/uniwbrk/wbrktable.h: New file.
15079         * lib/uniwbrk/wbrktable.c: New file.
15080
15081         New module 'uniwbrk/wordbreak-property'.
15082         * modules/uniwbrk/wordbreak-property: New file.
15083         * lib/uniwbrk/wordbreak-property.c: New file.
15084
15085         * lib/gen-uni-tables.c (WBP_*): New enum items.
15086         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
15087         (unicode_org_wbp): New variable.
15088         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
15089         New functions.
15090         (wbp_table): New structure.
15091         (output_wbp, output_wbrk_tables): New functions.
15092         (main): Accept additional argument. Invoke fill_org_wbp,
15093         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
15094         output_wbrk_tables.
15095         * modules/gen-uni-tables (Description): Update.
15096         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
15097         gen-uni-tables.
15098
15099         New module 'uniwbrk/base'.
15100         * modules/uniwbrk/base: New file.
15101         * lib/uniwbrk.h: New file.
15102
15103 2009-02-08  Bruno Haible  <bruno@clisp.org>
15104
15105         Update to Unicode 5.1.0.
15106         * lib/gen-uni-tables.c (is_property_alphabetic): Include
15107         U+2185..U+2188.
15108         (is_property_default_ignorable_code_point): Don't include characters
15109         of category Cc or Cs and not-a-characters.
15110         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
15111         U+0D79, U+109E, U+109F, U+A60C.
15112         * lib/unictype/bidi_of.h: Regenerated.
15113         * lib/unictype/blocks.h: Regenerated.
15114         * lib/unictype/categ_C.h: Regenerated.
15115         * lib/unictype/categ_Cf.h: Regenerated.
15116         * lib/unictype/categ_Cn.h: Regenerated.
15117         * lib/unictype/categ_L.h: Regenerated.
15118         * lib/unictype/categ_Ll.h: Regenerated.
15119         * lib/unictype/categ_Lm.h: Regenerated.
15120         * lib/unictype/categ_Lo.h: Regenerated.
15121         * lib/unictype/categ_Lu.h: Regenerated.
15122         * lib/unictype/categ_M.h: Regenerated.
15123         * lib/unictype/categ_Mc.h: Regenerated.
15124         * lib/unictype/categ_Me.h: Regenerated.
15125         * lib/unictype/categ_Mn.h: Regenerated.
15126         * lib/unictype/categ_N.h: Regenerated.
15127         * lib/unictype/categ_Nd.h: Regenerated.
15128         * lib/unictype/categ_Nl.h: Regenerated.
15129         * lib/unictype/categ_No.h: Regenerated.
15130         * lib/unictype/categ_P.h: Regenerated.
15131         * lib/unictype/categ_Pd.h: Regenerated.
15132         * lib/unictype/categ_Pe.h: Regenerated.
15133         * lib/unictype/categ_Pf.h: Regenerated.
15134         * lib/unictype/categ_Pi.h: Regenerated.
15135         * lib/unictype/categ_Po.h: Regenerated.
15136         * lib/unictype/categ_Ps.h: Regenerated.
15137         * lib/unictype/categ_S.h: Regenerated.
15138         * lib/unictype/categ_Sk.h: Regenerated.
15139         * lib/unictype/categ_Sm.h: Regenerated.
15140         * lib/unictype/categ_So.h: Regenerated.
15141         * lib/unictype/categ_of.h: Regenerated.
15142         * lib/unictype/combining.h: Regenerated.
15143         * lib/unictype/ctype_alnum.h: Regenerated.
15144         * lib/unictype/ctype_alpha.h: Regenerated.
15145         * lib/unictype/ctype_graph.h: Regenerated.
15146         * lib/unictype/ctype_lower.h: Regenerated.
15147         * lib/unictype/ctype_print.h: Regenerated.
15148         * lib/unictype/ctype_punct.h: Regenerated.
15149         * lib/unictype/ctype_upper.h: Regenerated.
15150         * lib/unictype/decdigit.h: Regenerated.
15151         * lib/unictype/digit.h: Regenerated.
15152         * lib/unictype/mirror.h: Regenerated.
15153         * lib/unictype/numeric.h: Regenerated.
15154         * lib/unictype/pr_alphabetic.h: Regenerated.
15155         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
15156         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
15157         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
15158         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
15159         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
15160         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
15161         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
15162         * lib/unictype/pr_combining.h: Regenerated.
15163         * lib/unictype/pr_dash.h: Regenerated.
15164         * lib/unictype/pr_decimal_digit.h: Regenerated.
15165         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
15166         * lib/unictype/pr_deprecated.h: Regenerated.
15167         * lib/unictype/pr_diacritic.h: Regenerated.
15168         * lib/unictype/pr_extender.h: Regenerated.
15169         * lib/unictype/pr_format_control.h: Regenerated.
15170         * lib/unictype/pr_grapheme_base.h: Regenerated.
15171         * lib/unictype/pr_grapheme_extend.h: Regenerated.
15172         * lib/unictype/pr_grapheme_link.h: Regenerated.
15173         * lib/unictype/pr_id_continue.h: Regenerated.
15174         * lib/unictype/pr_id_start.h: Regenerated.
15175         * lib/unictype/pr_ideographic.h: Regenerated.
15176         * lib/unictype/pr_ignorable_control.h: Regenerated.
15177         * lib/unictype/pr_lowercase.h: Regenerated.
15178         * lib/unictype/pr_math.h: Regenerated.
15179         * lib/unictype/pr_numeric.h: Regenerated.
15180         * lib/unictype/pr_other_alphabetic.h: Regenerated.
15181         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
15182         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
15183         * lib/unictype/pr_other_id_continue.h: Regenerated.
15184         * lib/unictype/pr_other_lowercase.h: Regenerated.
15185         * lib/unictype/pr_other_math.h: Regenerated.
15186         * lib/unictype/pr_punctuation.h: Regenerated.
15187         * lib/unictype/pr_sentence_terminal.h: Regenerated.
15188         * lib/unictype/pr_soft_dotted.h: Regenerated.
15189         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
15190         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
15191         * lib/unictype/pr_unified_ideograph.h: Regenerated.
15192         * lib/unictype/pr_uppercase.h: Regenerated.
15193         * lib/unictype/pr_xid_continue.h: Regenerated.
15194         * lib/unictype/pr_xid_start.h: Regenerated.
15195         * lib/unictype/pr_zero_width.h: Regenerated.
15196         * lib/unictype/scripts.h: Regenerated.
15197         * lib/unictype/scripts_byname.gperf: Regenerated.
15198         * lib/unictype/sy_java_ident.h: Regenerated.
15199         * lib/unilbrk/lbrkprop1.h: Regenerated.
15200         * lib/unilbrk/lbrkprop2.h: Regenerated.
15201         * tests/unictype/test-categ_C.c: Regenerated.
15202         * tests/unictype/test-categ_Cf.c: Regenerated.
15203         * tests/unictype/test-categ_Cn.c: Regenerated.
15204         * tests/unictype/test-categ_L.c: Regenerated.
15205         * tests/unictype/test-categ_Ll.c: Regenerated.
15206         * tests/unictype/test-categ_Lm.c: Regenerated.
15207         * tests/unictype/test-categ_Lo.c: Regenerated.
15208         * tests/unictype/test-categ_Lu.c: Regenerated.
15209         * tests/unictype/test-categ_M.c: Regenerated.
15210         * tests/unictype/test-categ_Mc.c: Regenerated.
15211         * tests/unictype/test-categ_Me.c: Regenerated.
15212         * tests/unictype/test-categ_Mn.c: Regenerated.
15213         * tests/unictype/test-categ_N.c: Regenerated.
15214         * tests/unictype/test-categ_Nd.c: Regenerated.
15215         * tests/unictype/test-categ_Nl.c: Regenerated.
15216         * tests/unictype/test-categ_No.c: Regenerated.
15217         * tests/unictype/test-categ_P.c: Regenerated.
15218         * tests/unictype/test-categ_Pd.c: Regenerated.
15219         * tests/unictype/test-categ_Pe.c: Regenerated.
15220         * tests/unictype/test-categ_Pf.c: Regenerated.
15221         * tests/unictype/test-categ_Pi.c: Regenerated.
15222         * tests/unictype/test-categ_Po.c: Regenerated.
15223         * tests/unictype/test-categ_Ps.c: Regenerated.
15224         * tests/unictype/test-categ_S.c: Regenerated.
15225         * tests/unictype/test-categ_Sk.c: Regenerated.
15226         * tests/unictype/test-categ_Sm.c: Regenerated.
15227         * tests/unictype/test-categ_So.c: Regenerated.
15228         * tests/unictype/test-ctype_alnum.c: Regenerated.
15229         * tests/unictype/test-ctype_alpha.c: Regenerated.
15230         * tests/unictype/test-ctype_graph.c: Regenerated.
15231         * tests/unictype/test-ctype_lower.c: Regenerated.
15232         * tests/unictype/test-ctype_print.c: Regenerated.
15233         * tests/unictype/test-ctype_punct.c: Regenerated.
15234         * tests/unictype/test-ctype_upper.c: Regenerated.
15235         * tests/unictype/test-decdigit.h: Regenerated.
15236         * tests/unictype/test-digit.h: Regenerated.
15237         * tests/unictype/test-numeric.h: Regenerated.
15238         * tests/unictype/test-pr_alphabetic.c: Regenerated.
15239         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
15240         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
15241         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
15242         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
15243         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
15244         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
15245         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
15246         * tests/unictype/test-pr_combining.c: Regenerated.
15247         * tests/unictype/test-pr_dash.c: Regenerated.
15248         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
15249         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
15250         * tests/unictype/test-pr_deprecated.c: Regenerated.
15251         * tests/unictype/test-pr_diacritic.c: Regenerated.
15252         * tests/unictype/test-pr_extender.c: Regenerated.
15253         * tests/unictype/test-pr_format_control.c: Regenerated.
15254         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
15255         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
15256         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
15257         * tests/unictype/test-pr_id_continue.c: Regenerated.
15258         * tests/unictype/test-pr_id_start.c: Regenerated.
15259         * tests/unictype/test-pr_ideographic.c: Regenerated.
15260         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
15261         * tests/unictype/test-pr_lowercase.c: Regenerated.
15262         * tests/unictype/test-pr_math.c: Regenerated.
15263         * tests/unictype/test-pr_numeric.c: Regenerated.
15264         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
15265         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
15266         Regenerated.
15267         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
15268         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
15269         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
15270         * tests/unictype/test-pr_other_math.c: Regenerated.
15271         * tests/unictype/test-pr_punctuation.c: Regenerated.
15272         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
15273         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
15274         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
15275         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
15276         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
15277         * tests/unictype/test-pr_uppercase.c: Regenerated.
15278         * tests/unictype/test-pr_xid_continue.c: Regenerated.
15279         * tests/unictype/test-pr_xid_start.c: Regenerated.
15280         * tests/unictype/test-pr_zero_width.c: Regenerated.
15281
15282         Update to Unicode 5.1.0.
15283         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
15284         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
15285         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
15286         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
15287         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
15288         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
15289         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
15290         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
15291         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
15292         (nonspacing_table_ind): Update.
15293         * tests/uniwidth/test-uc_width2.sh: Update expected result.
15294
15295         Update to Unicode 5.1.0.
15296         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
15297         code transform.
15298         * lib/uniname/uniname.c (unicode_character_name,
15299         unicode_name_character): Add the range 0x1Fxxx to the code transform.
15300         * lib/uniname/uninames.h: Regenerated.
15301         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
15302
15303 2009-02-07  Bruno Haible  <bruno@clisp.org>
15304
15305         Merge gen-ctype and gen-lbrk into a single program.
15306         * lib/gen-uni-tables.c: New file, incorporating
15307         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
15308         Add directory prefixes to the names of the generated files.
15309         * lib/unictype/gen-ctype.c: Remove file.
15310         * lib/unilbrk/gen-lbrk.c: Remove file.
15311         * modules/gen-uni-tables: New file.
15312         * modules/unictype/gen-ctype: Remove file.
15313         * modules/unilbrk/gen-lbrk: Remove file.
15314
15315 2009-02-07  Bruno Haible  <bruno@clisp.org>
15316
15317         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
15318
15319         New module 'unistr/u32-strcoll'.
15320         * modules/unistr/u32-strcoll: New file.
15321         * lib/unistr/u32-strcoll.c: New file.
15322
15323         New module 'unistr/u16-strcoll'.
15324         * modules/unistr/u16-strcoll: New file.
15325         * lib/unistr/u16-strcoll.c: New file.
15326
15327         New module 'unistr/u8-strcoll'.
15328         * modules/unistr/u8-strcoll: New file.
15329         * lib/unistr/u8-strcoll.c: New file.
15330         * lib/unistr/u-strcoll.h: New file.
15331
15332 2009-02-07  Bruno Haible  <bruno@clisp.org>
15333
15334         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
15335         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
15336         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
15337         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
15338         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
15339         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
15340
15341 2009-02-07  Bruno Haible  <bruno@clisp.org>
15342
15343         Make 64-bit clean.
15344         * lib/unictype/gen-ctype.c (output_predicate, output_category,
15345         output_combclass, output_bidi_category, output_decimal_digit,
15346         output_digit, output_numeric, output_mirror, output_scripts,
15347         output_ident_category): Use proper width specifier in format strings.
15348
15349 2009-02-07  Bruno Haible  <bruno@clisp.org>
15350
15351         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
15352         failure behaviour.
15353
15354 2009-02-07  Jim Meyering  <meyering@redhat.com>
15355
15356         regex: avoid compilation failure with upcoming gcc-4.4
15357         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
15358         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
15359         "... error: integer overflow in preprocessor expression".
15360
15361 2009-02-05  Ben Pfaff  <blp@gnu.org>
15362
15363         Fix link errors on Windows when close module is used.
15364         * modules/close: Add $(LIB_CLOSE) to Link section.
15365         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
15366         $(LIB_CLOSE) on Windows.
15367
15368 2009-02-05  Jim Meyering  <meyering@redhat.com>
15369
15370         still avoid unused-parameter warnings, but do it cleanly
15371         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
15372         (get_fs_usage): Cast to void instead.
15373         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
15374         (dev_from_mount_options, read_file_system_list): Cast to void.
15375         Prompted by Bruno Haible.
15376
15377 2009-02-04  Jim Meyering  <meyering@redhat.com>
15378
15379         fsusage.c: correct copyright year
15380         * lib/fsusage.c: Reflect year in which the change is pushed into
15381
15382         avoid misc. warnings
15383         * lib/fsusage.c (UNUSED_PARAM): Define.
15384         (get_fs_usage): Mark parameter "disk" as unused.
15385         * lib/getugroups.c (getgrent): Use "void" in prototype.
15386         * lib/mountlist.c: Mark unused parameters.
15387         (read_file_system_list): Declare a local with "const".
15388         * lib/nanosleep.c (getnow): Declare static.
15389         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
15390
15391         dirfd: set errno upon failure
15392         * lib/dirfd.c: Include <errno.h>.
15393         Set errno to ENOTSUP when returning -1.
15394         * modules/dirfd (Depends-on): Add errno.
15395         Suggested by John Kodis <kodis@comcast.net>.
15396
15397 2009-02-01  Bruno Haible  <bruno@clisp.org>
15398
15399         Don't assume sizeof (long) >= sizeof (void *).
15400         * lib/memcmp.c: Include stdint.h.
15401         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
15402         srcp2 to 'const byte *'.
15403         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
15404         types to uintptr_t.
15405         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
15406         * modules/memcmp (Depends-on): Add stdint.
15407         Reported by Ozkan Sezer <sezeroz@gmail.com>.
15408
15409 2009-01-30  Eric Blake  <ebb9@byu.net>
15410
15411         fix more require-before-expand issues
15412         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
15413         expand, AC_PROG_AWK.
15414         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
15415
15416 2009-01-28  Eric Blake  <ebb9@byu.net>
15417
15418         version-etc: use consistent URL formatting
15419         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
15420         Improve formatting.  Use fputs for string without %.
15421
15422 2009-01-28  Jim Meyering  <meyering@redhat.com>
15423
15424         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
15425         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
15426         "underquoted definition of NAME" from autoconf-2.59.
15427
15428 2009-01-28  Bruno Haible  <bruno@clisp.org>
15429
15430         * doc/gnulib.texi: Add "Obsolete modules" to index.
15431
15432 2009-01-28  Jim Meyering  <meyering@redhat.com>
15433
15434         useless-if-before-free: recognize more variants
15435         * build-aux/useless-if-before-free: Also recognize e.g.,
15436         if (NULL != p) free (p);
15437
15438 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
15439
15440         test-getaddrinfo: skip (don't fail) this test when there's no network
15441         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
15442         on the presumption that it means you lack network access.
15443
15444 2009-01-26  Jim Meyering  <meyering@redhat.com>
15445
15446         fflush: avoid warnings on modern systems
15447         * lib/fflush.c (rpl_fflush): Move declarations of locals,
15448         pos and result, into scopes where they're used.
15449
15450 2009-01-26  Eric Blake  <ebb9@byu.net>
15451
15452         Silence warning reintroduced by recent extensions patch.
15453         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
15454         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
15455         autoconf.
15456
15457         Backport improved autoconf semantics of AC_DEFUN_ONCE.
15458         * m4/00gnulib.m4: New file.
15459         * gnulib-tool (func_get_filelist): Always use it.
15460         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
15461         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
15462
15463 2009-01-25  Bruno Haible  <bruno@clisp.org>
15464
15465         Make test-quotearg work on MacOS X and AIX.
15466         * tests/test-quotearg.sh: New file.
15467         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
15468         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
15469         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
15470         include <libintl.h>.
15471         (fake_locale): Remove variable.
15472         (gettext, dgettext, dcgettext): Remove functions.
15473         (main): Instead of setting a fake locale, set a real locale. Call
15474         textdomain and bindtextdomain.
15475         * modules/quotearg-tests (Files): Add the new files.
15476         (Depends-on): Add gettext, setenv, unsetenv.
15477         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
15478         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
15479         Augment TESTS_ENVIRONMENT.
15480
15481 2009-01-25  Bruno Haible  <bruno@clisp.org>
15482
15483         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
15484         fr_FR.ISO8859-1 locale on MacOS X.
15485         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
15486         ja_JP.eucJP locale on MacOS X.
15487         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
15488         zh_CN.GB18030 locale on MacOS X.
15489
15490 2009-01-25  Bruno Haible  <bruno@clisp.org>
15491
15492         Avoid link errors on MacOS X 10.3.
15493         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
15494         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
15495
15496 2009-01-25  Bruno Haible  <bruno@clisp.org>
15497
15498         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
15499         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
15500         * modules/pipe (Files): Remove m4/posix_spawn.m4.
15501         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
15502         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
15503         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
15504         posix_spawnattr_init, posix_spawnattr_setsigmask,
15505         posix_spawnattr_setflags, posix_spawnattr_destroy.
15506
15507         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
15508         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
15509         * modules/execute (Files): Remove m4/posix_spawn.m4.
15510         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
15511         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
15512         posix_spawnattr_init, posix_spawnattr_setsigmask,
15513         posix_spawnattr_setflags, posix_spawnattr_destroy.
15514
15515 2009-01-25  Bruno Haible  <bruno@clisp.org>
15516
15517         * lib/glthread/threadlib.c: Include <stdlib.h>.
15518
15519 2009-01-25  Bruno Haible  <bruno@clisp.org>
15520
15521         * lib/glthread/threadlib.c (dummy): New declaration.
15522
15523 2009-01-25  Bruno Haible  <bruno@clisp.org>
15524
15525         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
15526         multibyte characters also for the GB18030 encoding. Don't crash when
15527         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
15528
15529 2009-01-25  Bruno Haible  <bruno@clisp.org>
15530
15531         Avoid redefining 'struct random_data' on OSF/1 5.1.
15532         * lib/stdlib.in.h: Include <random.h> if it exists.
15533         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
15534         HAVE_RANDOM_H. Include <random.h> when testing whether
15535         'struct random_data' exists.
15536         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
15537
15538 2009-01-25  Bruno Haible  <bruno@clisp.org>
15539
15540         Don't install charset.alias on MacOS X >= 10.3.
15541         * lib/localcharset.c (DARWIN7): New macro.
15542         (get_charset_aliases): Hardcode the result for Darwin7.
15543         * modules/localcharset (install-exec-local): Don't install
15544         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
15545
15546 2009-01-25  Bruno Haible  <bruno@clisp.org>
15547
15548         Don't install charset.alias on mingw and Cygwin.
15549         * modules/localcharset (install-exec-local): Don't install
15550         charset.alias on mingw and Cygwin, if the file does not yet exist.
15551         The result for these platforms is hardcoded in localcharset.c.
15552
15553 2009-01-25  Bruno Haible  <bruno@clisp.org>
15554
15555         Make it possible again to use AC_GNU_SOURCE together with gnulib.
15556         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
15557         before requiring AC_USE_SYSTEM_EXTENSIONS.
15558
15559 2009-01-25  Jim Meyering  <meyering@redhat.com>
15560
15561         c-strtod: avoid warnings
15562         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
15563         "assignment discards qualifiers from pointer target type" warnings.
15564
15565 2009-01-24  Bruno Haible  <bruno@clisp.org>
15566
15567         Add support for non-UTF-8 locales on MacOS X.
15568         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
15569         canonical encodings. For Darwin 7 and newer, don't map traditional
15570         encodings to UTF-8.
15571         Reported by Vincent Lefevre <vincent@vinc17.org>
15572         at <http://savannah.gnu.org/bugs/?25235>.
15573
15574 2009-01-24  Bruno Haible  <bruno@clisp.org>
15575
15576         * doc/gnulib.texi (Obsolete modules): New section.
15577         Reported by Mike Frysinger <vapier@gentoo.org>.
15578
15579 2009-01-24  Bruno Haible  <bruno@clisp.org>
15580
15581         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
15582         (%.dvi): New rule.
15583
15584 2009-01-24  Bruno Haible  <bruno@clisp.org>
15585
15586         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
15587         Reported by Eric Blake.
15588
15589 2009-01-24  Bruno Haible  <bruno@clisp.org>
15590
15591         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
15592         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
15593         Reported by Gary V. Vaughan <gary@gnu.org>.
15594
15595 2009-01-24  Bruno Haible  <bruno@clisp.org>
15596
15597         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
15598
15599 2009-01-23  Bruno Haible  <bruno@clisp.org>
15600
15601         Make c-strtod, c-strtold usable in libraries.
15602         * lib/c-strtod.c: Include string.h instead of xalloc.h.
15603         (C_STRTOD): Call strdup instead of xstrdup.
15604         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
15605         * modules/c-strtold (Depends-on): Likewise.
15606         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
15607         * NEWS: Mention the change.
15608         Reported by Michael Gold <mgold@ncf.ca>.
15609
15610 2009-01-23  Jim Meyering  <meyering@redhat.com>
15611
15612         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
15613         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
15614         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
15615
15616 2009-01-23  Simon Josefsson  <simon@josefsson.org>
15617
15618         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
15619         GNU CoreUtils.
15620         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
15621         * modules/version-etc (Description): Update.
15622
15623 2009-01-22  Bruno Haible  <bruno@clisp.org>
15624
15625         Cache the C locale object.
15626         * lib/c-strtod.c (c_locale_cache): New variable.
15627         (c_locale): New function.
15628         (C_STRTOD): Use it, and don't call freelocale.
15629         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
15630         Suggested by Paolo Bonzini.
15631
15632 2009-01-21  Bruno Haible  <bruno@clisp.org>
15633
15634         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
15635         conditions other than overflow.
15636
15637 2009-01-21  Bruno Haible  <bruno@clisp.org>
15638
15639         * lib/c-strtod.c: Include errno.h.
15640         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
15641         value from STRTOD_L and STRTOD.
15642
15643 2009-01-21  Bruno Haible  <bruno@clisp.org>
15644         and Jim Meyering  <meyering@redhat.com>
15645
15646         nanosleep: skip configure test (fail it) for apple universal builds
15647         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
15648         universal builds, assume that nanosleep does not work.
15649         * modules/nanosleep (Depends-on): Add multiarch.
15650
15651         mktime: skip configure test (fail it) for apple universal builds
15652         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
15653         universal builds, assume that mktime does not work.
15654         * modules/mktime (Depends-on): Add multiarch.
15655
15656 2009-01-21  Eric Blake  <ebb9@byu.net>
15657
15658         multiarch: avoid expand-before-require warning
15659         * modules/multiarch (configure.ac): Require, rather than expand,
15660         gl_MULTIARCH.
15661         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
15662         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
15663         enforce that all clients require it.  Partial reversion of
15664         2008-12-29 patch.
15665
15666         error: avoid expand-before-require warning
15667         * modules/errno (configure.ac): Require, rather than expand,
15668         gl_HEADER_ERRNO_H.
15669         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
15670         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
15671         enforce that all clients require it.
15672
15673         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
15674         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
15675         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
15676         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
15677
15678 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
15679
15680         Revert:
15681         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
15682
15683         regex: do not depend on obsolete modules.
15684         * modules/regex: Remove memcmp and memmove.
15685
15686 2009-01-20  Bruno Haible  <bruno@clisp.org>
15687
15688         Make the 'link' module link on Windows NT 4.
15689         * lib/link.c (_WIN32_WINNT): Don't define.
15690         (CreateHardLinkFuncType): New type.
15691         (CreateHardLinkFunc, initialized): New variables.
15692         (initialize): New function.
15693         (link): Invoke CreateHardLink indirectly through the function pointer.
15694
15695 2009-01-20  Bruno Haible  <bruno@clisp.org>
15696
15697         Fix compilation failure on mingw.
15698         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
15699
15700 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
15701
15702         * doc/c-strtod.texi: Mention a couple of restrictions.
15703
15704 2009-01-20  Jim Meyering  <meyering@redhat.com>
15705
15706         gettimeofday: move more declarations out of functions
15707         * lib/gettimeofday.c: Move extern declarations of tzset and
15708         gmtime out of containing functions.  Prompted by Bruno Haible.
15709
15710 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
15711
15712         regex: do not depend on obsolete modules.
15713         * modules/regex: Remove memcmp and memmove.
15714
15715 2009-01-19  Bruno Haible  <bruno@clisp.org>
15716
15717         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
15718         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
15719         gl_BIGENDIAN, not AC_C_BIGENDIAN.
15720         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
15721         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
15722
15723 2009-01-19  Bruno Haible  <bruno@clisp.org>
15724
15725         * tests/test-link.c: Include <errno.h>.
15726         (main): Exit with code 77 when a hard link cannot be created due to
15727         the file system.
15728         * tests/test-link.sh: Skip test when a hard link cannot be created due
15729         to the file system.
15730         Suggested by Eric Blake.
15731
15732 2009-01-19  Martin Lambers  <marlam@marlam.de>
15733
15734         * modules/link-tests: New file.
15735         * tests/test-link.sh: New file.
15736         * tests/test-link.c: New file.
15737
15738 2009-01-19  Eric Blake  <ebb9@byu.net>
15739
15740         doc: mention another function added in cygwin 1.7.0
15741         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
15742         Another new function in cygwin 1.7.
15743
15744 2009-01-19  Bruno Haible  <bruno@clisp.org>
15745
15746         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
15747         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
15748         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
15749         gl_BIGENDIAN, not AC_C_BIGENDIAN.
15750         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
15751         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
15752         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
15753         * m4/md4.m4 (gl_MD4): Likewise.
15754         * m4/md5.m4 (gl_MD5): Likewise.
15755         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
15756         * m4/sha1.m4 (gl_SHA1): Likewise.
15757         * m4/sha256.m4 (gl_SHA256): Likewise.
15758         * m4/sha512.m4 (gl_SHA512): Likewise.
15759
15760 2009-01-19  Bruno Haible  <bruno@clisp.org>
15761
15762         * modules/uniname/uniname-tests (Depends-on): Add progname.
15763         * tests/uniname/test-uninames.c: Include progname.h.
15764         (main): Call set_program_name.
15765
15766         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
15767         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
15768         (main): Call set_program_name.
15769
15770         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
15771         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
15772         (main): Call set_program_name.
15773
15774         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
15775         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
15776         (main): Call set_program_name.
15777
15778         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
15779         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
15780         (main): Call set_program_name.
15781
15782         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
15783         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
15784         (main): Call set_program_name.
15785
15786         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
15787         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
15788         (main): Call set_program_name.
15789
15790         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
15791         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
15792         (main): Call set_program_name.
15793
15794         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
15795         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
15796         (main): Call set_program_name.
15797
15798 2009-01-19  Eric Blake  <ebb9@byu.net>
15799
15800         test-unistd: test previous patch
15801         * tests/test-unistd.c: Test *_FILENO macros.
15802
15803         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
15804         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
15805         Guarantee a definition.
15806         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
15807         * modules/unistd-safer (Depends-on): Add dependency on unistd.
15808         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
15809         * lib/dup-safer.c (STDERR_FILENO): Likewise.
15810         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
15811         Likewise.
15812         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
15813         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
15814         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
15815         Likewise.
15816         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
15817         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
15818         (STDERR_FILENO): Likewise.
15819         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
15820         (STDERR_FILENO): Likewise.
15821         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
15822         (STDERR_FILENO): Likewise.
15823         Reported by Elbert Pol.
15824
15825 2009-01-19  Eric Blake  <ebb9@byu.net>
15826
15827         doc: mention more functions added in cygwin 1.7.0
15828         * doc/posix-functions/abort.texi (abort): Update wording related
15829         to cygwin.
15830         * doc/posix-functions/daylight.texi (daylight): Likewise.
15831         * doc/posix-functions/optarg.texi (optarg): Likewise.
15832         * doc/posix-functions/optarg.texi (opterr): Likewise.
15833         * doc/posix-functions/optarg.texi (optind): Likewise.
15834         * doc/posix-functions/optarg.texi (optopt): Likewise.
15835         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
15836         worked in 1.5.x, and was withdrawn in 1.7.
15837         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
15838         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
15839         cygwin versions.
15840         * doc/posix-functions/perror.texi (perror): Likewise.
15841         * doc/posix-functions/printf.texi (printf): Likewise.
15842         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
15843         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
15844         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
15845         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
15846         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
15847         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
15848         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
15849         Likewise.
15850         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
15851         Likewise.
15852         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
15853         this function.
15854         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
15855         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
15856         Likewise.
15857         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
15858         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
15859         * doc/posix-functions/confstr.texi (confstr): Likewise.
15860         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
15861         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
15862         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
15863         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
15864         * doc/posix-functions/fputws.texi (fputws): Likewise.
15865         * doc/posix-functions/fwide.texi (fwide): Likewise.
15866         * doc/posix-functions/getwc.texi (getwc): Likewise.
15867         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
15868         * doc/posix-functions/putwc.texi (putwc): Likewise.
15869         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
15870         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
15871         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
15872         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
15873         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
15874         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
15875         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
15876         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
15877         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
15878         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
15879         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
15880
15881 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
15882
15883         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
15884         * lib/ioctl.c: Include <sys/ioctl.h>.
15885
15886 2009-01-19  Simon Josefsson  <simon@josefsson.org>
15887
15888         * modules/getdate-tests (Depends-on): Add progname.
15889         * tests/test-getdate.c: Use progname module, to avoid link errors
15890         on non-glibc systems.
15891
15892 2009-01-18  Simon Josefsson  <simon@josefsson.org>
15893
15894         * modules/filenamecat-tests (Depends-on): Add progname.
15895         * modules/fstrcmp-tests (Depends-on): Likewise.
15896
15897         * tests/test-filenamecat.c: Use progname module, to avoid link
15898         errors on non-glibc systems.
15899         * tests/test-fstrcmp.c: Likewise.
15900
15901 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
15902
15903         gettimeofday: avoid warning: nested extern declaration of 'localtime'
15904         * lib/gettimeofday.c: Move extern declaration out of function.
15905
15906 2009-01-18  Bruno Haible  <bruno@clisp.org>
15907
15908         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
15909         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
15910         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
15911
15912 2009-01-18  Bruno Haible  <bruno@clisp.org>
15913
15914         * lib/strftime.c (MEMPCPY): Remove unused macro.
15915         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
15916
15917 2009-01-18  Martin Lambers  <marlam@marlam.de>
15918
15919         New module 'link'.
15920         * lib/unistd.in.h (link): New declaration.
15921         * lib/link.c: New file.
15922         * m4/link.m4: New file.
15923         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
15924         HAVE_LINK.
15925         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
15926         * modules/link: New file.
15927         * doc/posix-functions/link.texi: Mention the new module.
15928
15929 2009-01-18  Bruno Haible  <bruno@clisp.org>
15930
15931         * tests/test-avltree_list.c (main): Call set_program_name.
15932         * tests/test-avltree_oset.c (main): Likewise.
15933         * tests/test-obstack-printf.c: Include progname.h.
15934         (main): Call set_program_name.
15935         * tests/test-quotearg.c: Include progname.h.
15936         (main): Call set_program_name.
15937         * tests/test-xmemdup0.c: Include progname.h.
15938         (main): Call set_program_name.
15939
15940 2009-01-18  Bruno Haible  <bruno@clisp.org>
15941
15942         New module 'alphasort'.
15943         * lib/dirent.in.h (alphasort): New declaration.
15944         * lib/alphasort.c: New file, from glibc with modifications.
15945         * m4/alphasort.m4: New file.
15946         * modules/alphasort: New file.
15947         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
15948         HAVE_ALPHASORT.
15949         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
15950         HAVE_ALPHASORT.
15951         * doc/posix-functions/alphasort.texi: Mention the new module and the
15952         portability problems.
15953
15954 2009-01-18  Bruno Haible  <bruno@clisp.org>
15955
15956         New module 'scandir'.
15957         * lib/dirent.in.h (scandir): New declaration.
15958         * lib/scandir.c: New file, from glibc with modifications.
15959         * m4/scandir.m4: New file.
15960         * modules/scandir: New file.
15961         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
15962         HAVE_SCANDIR.
15963         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
15964         HAVE_SCANDIR.
15965         * doc/posix-functions/scandir.texi: Mention the new module and the
15966         portability problems.
15967
15968 2009-01-17  Bruno Haible  <bruno@clisp.org>
15969
15970         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
15971         Update documentation.
15972         (func_remove_suffix): Escape all dots in the suffix. Update
15973         documentation.
15974         (func_filter_filelist): Update documentation.
15975         Reported by Ralf Wildenhues.
15976
15977 2009-01-17  Bruno Haible  <bruno@clisp.org>
15978
15979         * modules/dprintf-posix-tests: New file.
15980         * tests/test-dprintf-posix.sh: New file.
15981         * tests/test-dprintf-posix.c: New file.
15982
15983         New modules 'dprintf', 'dprintf-posix'.
15984         * lib/stdio.in.h (dprintf): New declaration.
15985         * lib/dprintf.c: New file.
15986         * m4/dprintf.m4: New file.
15987         * m4/dprintf-posix.m4: New file.
15988         * modules/dprintf: New file.
15989         * modules/dprintf-posix: New file.
15990         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
15991         HAVE_DPRINTF, REPLACE_DPRINTF.
15992         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
15993         HAVE_DPRINTF, REPLACE_DPRINTF.
15994         * doc/posix-functions/dprintf.texi: Mention the new modules.
15995
15996 2009-01-17  Bruno Haible  <bruno@clisp.org>
15997
15998         * modules/vdprintf-posix-tests: New file.
15999         * tests/test-vdprintf-posix.sh: New file.
16000         * tests/test-vdprintf-posix.c: New file.
16001
16002         New modules 'vdprintf', 'vdprintf-posix'.
16003         * lib/stdio.in.h (vdprintf): New declaration.
16004         * lib/vdprintf.c: New file.
16005         * m4/vdprintf.m4: New file.
16006         * m4/vdprintf-posix.m4: New file.
16007         * modules/vdprintf: New file.
16008         * modules/vdprintf-posix: New file.
16009         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
16010         HAVE_VDPRINTF, REPLACE_VDPRINTF.
16011         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
16012         HAVE_VDPRINTF, REPLACE_VDPRINTF.
16013         * doc/posix-functions/vdprintf.texi: Mention the new modules.
16014
16015 2009-01-17  Bruno Haible  <bruno@clisp.org>
16016
16017         Fix replacement of fopen on mingw.
16018         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
16019         mingw.
16020
16021 2009-01-17  Bruno Haible  <bruno@clisp.org>
16022
16023         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
16024         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
16025
16026 2009-01-17  Bruno Haible  <bruno@clisp.org>
16027
16028         Avoid test-fflush2.sh failure on mingw.
16029         * tests/test-fflush2.c: Include binary-io.h.
16030         (main): Put standard input into binary mode.
16031         * modules/fflush-tests (Depends-on): Add binary-io.
16032
16033 2009-01-17  Bruno Haible  <bruno@clisp.org>
16034
16035         * lib/wchar.in.h: In another particular situation, include only the
16036         system's <wchar.h> file.
16037         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
16038         Reported by Albert Chin-A-Young <china@thewrittenword.com>
16039         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
16040
16041 2009-01-17  Bruno Haible  <bruno@clisp.org>
16042
16043         Support for stripping executables in --enable-relocatable.
16044         * build-aux/install-reloc: Expect one more argument, or an environment
16045         variable RELOC_STRIP_PROG. If set, strip the destination program and
16046         its wrapper.
16047         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
16048         RELOC_STRIP_PROG.
16049         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
16050         to set RELOCATABLE_STRIP.
16051         * NEWS: Mention the new Makefile requirement.
16052
16053 2009-01-17  Bruno Haible  <bruno@clisp.org>
16054
16055         * build-aux/install-reloc: Remove debugging information left over by
16056         C compiler on MacOS X.
16057
16058 2009-01-17  Bruno Haible  <bruno@clisp.org>
16059
16060         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
16061         * lib/progreloc.c (find_executable): Fix type of pointer passed to
16062         _NSGetExecutablePath.
16063
16064 2009-01-16  Jim Meyering  <meyering@redhat.com>
16065
16066         strerror: avoid warnings about discarding "const"
16067         * lib/strerror.c (rpl_strerror): Instead of returning a const
16068         string from each and every "case", use a variable, and add a single
16069         cast after the switch.
16070
16071 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
16072
16073         * lib/arpa_inet.in.h: Add extern "C" block for C++.
16074
16075 2009-01-16  Bruno Haible  <bruno@clisp.org>
16076
16077         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
16078         array initializer syntax that also works in C++ mode.
16079         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
16080
16081 2009-01-16  Jim Meyering  <meyering@redhat.com>
16082
16083         poll: suppress a warning
16084         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
16085         to ignore "...unsigned expression < 0 is always false" warnings.
16086
16087 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
16088
16089         poll: remove declarations of unused variables
16090         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
16091         sockbuf and optlen.
16092
16093 2009-01-15  Bruno Haible  <bruno@clisp.org>
16094
16095         Make fflush-after-ungetc POSIX compliant on BSD systems.
16096         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
16097         (clear_ungetc_buffer): Implement also for other systems.
16098         (rpl_fflush): On glibc systems, invoke
16099         clear_ungetc_buffer_preserving_position. Otherwise, invoke
16100         clear_ungetc_buffer after fetching the stream's position, not before.
16101
16102 2009-01-15  Bruno Haible  <bruno@clisp.org>
16103
16104         Make fflush-after-ungetc POSIX compliant on glibc systems.
16105         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
16106         after ungetc.
16107         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
16108         (rpl_fflush): On glibc systems, simply call the system's fflush
16109         function after clearing the ungetc buffer.
16110         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
16111         Instead, lseek only to the end of file, then use the system's fseeko
16112         for the rest. On glibc systems, reset the EOF indicator bit.
16113
16114 2009-01-15  Jim Meyering  <meyering@redhat.com>
16115
16116         openmp.m4: revert quote-adding change, for portability to older autoconf
16117         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
16118         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
16119         Simon Josefsson noticed the problem when using autoconf-2.61.
16120
16121 2009-01-15  Bruno Haible  <bruno@clisp.org>
16122
16123         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
16124         * tests/test-fflush2.c (ASSERT): Always fail.
16125         (main): Add two tests for fflush() after ungetc(), taking into account
16126         the Austin Group's clarification.
16127         Suggested by Eric Blake.
16128
16129 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
16130
16131         mktime.m4: remove K&R-style function prototypes
16132         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
16133         for the Sun C++ compiler.
16134
16135 2009-01-14  Bruno Haible  <bruno@clisp.org>
16136
16137         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
16138         while including <wchar.h>.
16139         * lib/wchar.in.h: In two particular situations on HP-UX, include only
16140         the system's <wchar.h> file.
16141         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
16142
16143 2009-01-14  Bruno Haible  <bruno@clisp.org>
16144
16145         * m4/csharp.m4: Don't mention gettext on the serial number line.
16146         * m4/csharpexec.m4: Likewise.
16147         * m4/eaccess.m4: Likewise.
16148         * m4/javaexec.m4: Likewise.
16149         * m4/sig_atomic_t.m4: Likewise.
16150         * m4/tmpdir.m4: Likewise.
16151         * m4/intldir.m4: Bump gettext version.
16152         * m4/lib-ld.m4: Likewise.
16153
16154 2009-01-14  Bruno Haible  <bruno@clisp.org>
16155
16156         * lib/progname.c (set_program_name): Add more comments.
16157         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
16158
16159 2009-01-14  Simon Josefsson  <simon@josefsson.org>
16160
16161         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
16162         were sys/stat.h does not define it.
16163
16164 2009-01-14  Jim Meyering  <meyering@redhat.com>
16165
16166         many *.m4 files: improve m4 quoting
16167         99% of this change was performed by running the following commands:
16168         git ls-files | grep '\.m4$' | xargs perl -pi \
16169           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
16170           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
16171           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
16172           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
16173         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
16174         The remainder were to add Copyright dates, increment serial numbers,
16175         undo some changes in comments, exclude m4/intl.m4, and add quotes
16176         around the "1" in ",1" where the unusual spacing prohibited the
16177         above regexps from doing the job.  For more details, see
16178         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
16179         * m4/acl.m4: Modified.
16180         * m4/afs.m4: Likewise.
16181         * m4/alloca.m4: Likewise.
16182         * m4/argp.m4: Likewise.
16183         * m4/argz.m4: Likewise.
16184         * m4/atexit.m4: Likewise.
16185         * m4/bison-i18n.m4: Likewise.
16186         * m4/bison.m4: Likewise.
16187         * m4/byteswap.m4: Likewise.
16188         * m4/c-stack.m4: Likewise.
16189         * m4/c-strtod.m4: Likewise.
16190         * m4/calloc.m4: Likewise.
16191         * m4/canonicalize-lgpl.m4: Likewise.
16192         * m4/chown.m4: Likewise.
16193         * m4/clock_time.m4: Likewise.
16194         * m4/codeset.m4: Likewise.
16195         * m4/copy-file.m4: Likewise.
16196         * m4/csharp.m4: Likewise.
16197         * m4/csharpcomp.m4: Likewise.
16198         * m4/csharpexec.m4: Likewise.
16199         * m4/d-ino.m4: Likewise.
16200         * m4/d-type.m4: Likewise.
16201         * m4/dirfd.m4: Likewise.
16202         * m4/double-slash-root.m4: Likewise.
16203         * m4/eaccess.m4: Likewise.
16204         * m4/eealloc.m4: Likewise.
16205         * m4/environ.m4: Likewise.
16206         * m4/errno_h.m4: Likewise.
16207         * m4/euidaccess.m4: Likewise.
16208         * m4/execute.m4: Likewise.
16209         * m4/fatal-signal.m4: Likewise.
16210         * m4/fchdir.m4: Likewise.
16211         * m4/fcntl_h.m4: Likewise.
16212         * m4/fileblocks.m4: Likewise.
16213         * m4/filenamecat.m4: Likewise.
16214         * m4/findprog.m4: Likewise.
16215         * m4/flexmember.m4: Likewise.
16216         * m4/fnmatch.m4: Likewise.
16217         * m4/fopen.m4: Likewise.
16218         * m4/fpending.m4: Likewise.
16219         * m4/fprintf-posix.m4: Likewise.
16220         * m4/free.m4: Likewise.
16221         * m4/frexp.m4: Likewise.
16222         * m4/frexpl.m4: Likewise.
16223         * m4/fsusage.m4: Likewise.
16224         * m4/ftruncate.m4: Likewise.
16225         * m4/gc-camellia.m4: Likewise.
16226         * m4/gc-random.m4: Likewise.
16227         * m4/gc.m4: Likewise.
16228         * m4/getaddrinfo.m4: Likewise.
16229         * m4/getcwd-abort-bug.m4: Likewise.
16230         * m4/getcwd-path-max.m4: Likewise.
16231         * m4/getdate.m4: Likewise.
16232         * m4/getdomainname.m4: Likewise.
16233         * m4/getgroups.m4: Likewise.
16234         * m4/gethostname.m4: Likewise.
16235         * m4/gethrxtime.m4: Likewise.
16236         * m4/getline.m4: Likewise.
16237         * m4/getloadavg.m4: Likewise.
16238         * m4/getndelim2.m4: Likewise.
16239         * m4/getpass.m4: Likewise.
16240         * m4/gettext.m4: Likewise.
16241         * m4/gettime.m4: Likewise.
16242         * m4/gettimeofday.m4: Likewise.
16243         * m4/gnulib-common.m4: Likewise.
16244         * m4/group-member.m4: Likewise.
16245         * m4/host-os.m4: Likewise.
16246         * m4/iconv.m4: Likewise.
16247         * m4/iconv_open.m4: Likewise.
16248         * m4/inet_ntop.m4: Likewise.
16249         * m4/inet_pton.m4: Likewise.
16250         * m4/inline.m4: Likewise.
16251         * m4/intldir.m4: Likewise.
16252         * m4/intlmacosx.m4: Likewise.
16253         * m4/intmax.m4: Likewise.
16254         * m4/intmax_t.m4: Likewise.
16255         * m4/inttypes.m4: Likewise.
16256         * m4/inttypes_h.m4: Likewise.
16257         * m4/inttypes-pri.m4: Likewise.
16258         * m4/isapipe.m4: Likewise.
16259         * m4/isnand.m4: Likewise.
16260         * m4/isnanf.m4: Likewise.
16261         * m4/isnanl.m4: Likewise.
16262         * m4/javacomp.m4: Likewise.
16263         * m4/javaexec.m4: Likewise.
16264         * m4/jm-winsz1.m4: Likewise.
16265         * m4/jm-winsz2.m4: Likewise.
16266         * m4/lchown.m4: Likewise.
16267         * m4/lcmessage.m4: Likewise.
16268         * m4/ldexpl.m4: Likewise.
16269         * m4/lib-ld.m4: Likewise.
16270         * m4/lib-link.m4: Likewise.
16271         * m4/libsigsegv.m4: Likewise.
16272         * m4/link-follow.m4: Likewise.
16273         * m4/localcharset.m4: Likewise.
16274         * m4/locale-fr.m4: Likewise.
16275         * m4/locale-ja.m4: Likewise.
16276         * m4/locale-tr.m4: Likewise.
16277         * m4/locale-zh.m4: Likewise.
16278         * m4/lock.m4: Likewise.
16279         * m4/longlong.m4: Likewise.
16280         * m4/ls-mntd-fs.m4: Likewise.
16281         * m4/lstat.m4: Likewise.
16282         * m4/malloc.m4: Likewise.
16283         * m4/mathl.m4: Likewise.
16284         * m4/mbrtowc.m4: Likewise.
16285         * m4/mbstate_t.m4: Likewise.
16286         * m4/mbswidth.m4: Likewise.
16287         * m4/memchr.m4: Likewise.
16288         * m4/memcmp.m4: Likewise.
16289         * m4/memcpy.m4: Likewise.
16290         * m4/memmem.m4: Likewise.
16291         * m4/memmove.m4: Likewise.
16292         * m4/mempcpy.m4: Likewise.
16293         * m4/memrchr.m4: Likewise.
16294         * m4/memset.m4: Likewise.
16295         * m4/minmax.m4: Likewise.
16296         * m4/mkdir-slash.m4: Likewise.
16297         * m4/mkdtemp.m4: Likewise.
16298         * m4/mktime.m4: Likewise.
16299         * m4/mmap-anon.m4: Likewise.
16300         * m4/mountlist.m4: Likewise.
16301         * m4/nanosleep.m4: Likewise.
16302         * m4/nls.m4: Likewise.
16303         * m4/nocrash.m4: Likewise.
16304         * m4/open.m4: Likewise.
16305         * m4/openat.m4: Likewise.
16306         * m4/openmp.m4: Likewise.
16307         * m4/pathmax.m4: Likewise.
16308         * m4/perl.m4: Likewise.
16309         * m4/physmem.m4: Likewise.
16310         * m4/pipe.m4: Likewise.
16311         * m4/po.m4: Likewise.
16312         * m4/poll.m4: Likewise.
16313         * m4/posixtm.m4: Likewise.
16314         * m4/posixver.m4: Likewise.
16315         * m4/printf-frexp.m4: Likewise.
16316         * m4/printf-frexpl.m4: Likewise.
16317         * m4/printf-posix.m4: Likewise.
16318         * m4/printf-posix-rpl.m4: Likewise.
16319         * m4/printf.m4: Likewise.
16320         * m4/progtest.m4: Likewise.
16321         * m4/putenv.m4: Likewise.
16322         * m4/readline.m4: Likewise.
16323         * m4/readlink.m4: Likewise.
16324         * m4/readutmp.m4: Likewise.
16325         * m4/realloc.m4: Likewise.
16326         * m4/regex.m4: Likewise.
16327         * m4/relocatable.m4: Likewise.
16328         * m4/relocatable-lib.m4: Likewise.
16329         * m4/rename-dest-slash.m4: Likewise.
16330         * m4/rename.m4: Likewise.
16331         * m4/rmdir-errno.m4: Likewise.
16332         * m4/rmdir.m4: Likewise.
16333         * m4/roundf.m4: Likewise.
16334         * m4/roundl.m4: Likewise.
16335         * m4/rpmatch.m4: Likewise.
16336         * m4/save-cwd.m4: Likewise.
16337         * m4/selinux-selinux-h.m4: Likewise.
16338         * m4/setenv.m4: Likewise.
16339         * m4/settime.m4: Likewise.
16340         * m4/sig2str.m4: Likewise.
16341         * m4/sig_atomic_t.m4: Likewise.
16342         * m4/signalblocking.m4: Likewise.
16343         * m4/signbit.m4: Likewise.
16344         * m4/sigpipe.m4: Likewise.
16345         * m4/sockets.m4: Likewise.
16346         * m4/sockpfaf.m4: Likewise.
16347         * m4/st_dm_mode.m4: Likewise.
16348         * m4/stat-time.m4: Likewise.
16349         * m4/stdbool.m4: Likewise.
16350         * m4/stdint.m4: Likewise.
16351         * m4/stdint_h.m4: Likewise.
16352         * m4/stpcpy.m4: Likewise.
16353         * m4/stpncpy.m4: Likewise.
16354         * m4/strcase.m4: Likewise.
16355         * m4/strchrnul.m4: Likewise.
16356         * m4/strcspn.m4: Likewise.
16357         * m4/strdup.m4: Likewise.
16358         * m4/strftime.m4: Likewise.
16359         * m4/strndup.m4: Likewise.
16360         * m4/strnlen.m4: Likewise.
16361         * m4/strpbrk.m4: Likewise.
16362         * m4/strptime.m4: Likewise.
16363         * m4/strsep.m4: Likewise.
16364         * m4/strtod.m4: Likewise.
16365         * m4/strtoimax.m4: Likewise.
16366         * m4/strtok_r.m4: Likewise.
16367         * m4/strtol.m4: Likewise.
16368         * m4/strtoll.m4: Likewise.
16369         * m4/strtoul.m4: Likewise.
16370         * m4/strtoull.m4: Likewise.
16371         * m4/strtoumax.m4: Likewise.
16372         * m4/strverscmp.m4: Likewise.
16373         * m4/threadlib.m4: Likewise.
16374         * m4/timegm.m4: Likewise.
16375         * m4/tm_gmtoff.m4: Likewise.
16376         * m4/tmpdir.m4: Likewise.
16377         * m4/tmpfile.m4: Likewise.
16378         * m4/tzset.m4: Likewise.
16379         * m4/uintmax_t.m4: Likewise.
16380         * m4/unlinkdir.m4: Likewise.
16381         * m4/unlocked-io.m4: Likewise.
16382         * m4/uptime.m4: Likewise.
16383         * m4/userspec.m4: Likewise.
16384         * m4/utimbuf.m4: Likewise.
16385         * m4/utime.m4: Likewise.
16386         * m4/utimes-null.m4: Likewise.
16387         * m4/utimes.m4: Likewise.
16388         * m4/vararrays.m4: Likewise.
16389         * m4/vasnprintf.m4: Likewise.
16390         * m4/vfprintf-posix.m4: Likewise.
16391         * m4/vprintf-posix.m4: Likewise.
16392         * m4/wait-process.m4: Likewise.
16393         * m4/wchar_t.m4: Likewise.
16394         * m4/wint_t.m4: Likewise.
16395         * m4/write-any-file.m4: Likewise.
16396         * m4/yield.m4: Likewise.
16397
16398 2009-01-13  Bruno Haible  <bruno@clisp.org>
16399
16400         Avoid test-copy-file.sh failures when ACL support insufficient.
16401         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
16402         TESTS_ENVIRONMENT.
16403         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
16404         Reported by Jim Meyering.
16405
16406 2009-01-13  Bruno Haible  <bruno@clisp.org>
16407
16408         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
16409         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
16410         * modules/unistdio/u8-printf-parse (Files): Likewise.
16411         * modules/unistdio/u32-printf-parse (Files): Likewise.
16412         * modules/unistdio/ulc-printf-parse (Files): Likewise.
16413
16414 2009-01-13  Simon Josefsson  <simon@josefsson.org>
16415
16416         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
16417         and m4/inttypes_h.m4 too.
16418
16419 2009-01-12  Eric Blake  <ebb9@byu.net>
16420
16421         tests: IRIX 6.2 cc can't compile -0.0 into .data
16422         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
16423         rather than at compile-time.
16424         * tests/test-floorl.c (minus_zero): Likewise.
16425         * tests/test-frexpl.c (minus_zero): Likewise.
16426         * tests/test-isnan.c (minus_zerol): Likewise.
16427         * tests/test-isnanl.h (minus_zero): Likewise.
16428         * tests/test-ldexpl.c (minus_zero): Likewise.
16429         * tests/test-roundl.c (minus_zero): Likewise.
16430         * tests/test-signbit.c (minus_zerol): Likewise.
16431         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
16432         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
16433         * tests/test-truncl.c (minus_zero): Likewise.
16434         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
16435         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
16436         Reported by Tom G. Christensen and Nelson H. F. Beebe.
16437
16438 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
16439
16440         regex: fix glibc bug 9697
16441         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
16442         handling.
16443
16444 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
16445
16446         regex: fix glibc bug 697
16447         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
16448         being NULL also if there are no backreferences.
16449
16450 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
16451
16452         regex: merge glibc changes
16453         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
16454         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
16455         re_string_skip_chars, re_string_reconstruct): Likewise.
16456         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
16457
16458 2009-01-07  Jim Meyering  <meyering@redhat.com>
16459
16460         poll: filter through cppi
16461         * lib/poll.c: Indent cpp directives to reflect nesting.
16462
16463 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
16464
16465         poll: don't return uninitialized
16466         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
16467
16468 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
16469
16470         avoid compile failure on AIX 6.1
16471         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
16472         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
16473
16474 2009-01-04  Jim Meyering  <meyering@redhat.com>
16475
16476         remove duplicate inclusion of <stdio.h>
16477         * tests/test-fprintf-posix.c: Likewise.
16478         * tests/test-printf-posix.c: Likewise.
16479         * tests/test-snprintf-posix.c: Likewise.
16480         * tests/test-sprintf-posix.c: Likewise.
16481         * tests/test-vasprintf-posix.c: Likewise.
16482         * tests/test-vfprintf-posix.c: Likewise.
16483         * tests/test-vprintf-posix.c: Likewise.
16484         * tests/test-vsnprintf-posix.c: Likewise.
16485         * tests/test-vsprintf-posix.c: Likewise.
16486
16487 2009-01-03  Jim Meyering  <meyering@redhat.com>
16488
16489         gnulib-tool: fix sed-based filtering
16490         * gnulib-tool (func_filter_filelist): Remove extra backslash
16491         in sed_fff_filter definition.
16492
16493 2009-01-02  Jim Meyering  <meyering@redhat.com>
16494
16495         strftime: avoid compilation failure on Solaris 2.6
16496         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
16497         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
16498         Don't #define mbrlen or mbsinit, since now they're guaranteed to
16499         be available.  Reported by Tom G. Christensen.  Details in
16500         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
16501
16502 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16503             Bruno Haible  <bruno@clisp.org>
16504
16505         Speed up gnulib-tool by doing more string processing through shell
16506         built-ins.
16507         * gnulib-tool (fast_func_append): New variable.
16508         (func_remove_prefix, func_remove_suffix): New functions.
16509         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
16510         (func_filter_filelist): New function.
16511         (func_get_dependencies): Use func_remove_suffix instead of sed.
16512         (func_get_automake_snippet): Use func_filter_filelist instead of a
16513         subshell and sed invocation.
16514
16515 2009-01-01  Bruno Haible  <bruno@clisp.org>
16516
16517         Fix a security bug.
16518         * gnulib-tool (func_import, import, update): Don't allow the characters
16519         '"', '$', '`', '\' in macro arguments that become part of commands that
16520         are evaluated.
16521
16522 2009-01-01  Bruno Haible  <bruno@clisp.org>
16523
16524         * gnulib-tool (func_reset_sigpipe): Add more comments.
16525
16526 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16527
16528         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
16529         func_emit_tests_Makefile_am, func_import): Abort loops early if we
16530         already know the answer.
16531
16532 2009-01-01  Jim Meyering  <meyering@redhat.com>
16533
16534         * lib/version-etc.c (version_etc_va): Update copyright year.
16535
16536 2008-12-30  Bruno Haible  <bruno@clisp.org>
16537
16538         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
16539         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
16540         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
16541
16542 2008-12-29  Eric Blake  <ebb9@byu.net>
16543
16544         multiarch: avoid autoconf AC_REQUIRE bug
16545         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
16546         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
16547         2.63 and older.
16548         Reported by Bruno Haible, and analyzed in
16549         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
16550
16551 2008-12-29  Bruno Haible  <bruno@clisp.org>
16552
16553         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
16554         files in subdirectories correctly.
16555         Reported by Ralf Wildenhues.
16556
16557 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16558
16559         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
16560         rather than 'join FILE -', for Solaris join.
16561
16562 2008-12-29  Bruno Haible  <bruno@clisp.org>
16563
16564         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
16565         quoting.
16566         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
16567         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
16568         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
16569         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
16570         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
16571         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
16572         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
16573         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
16574         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
16575         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
16576         * m4/nls.m4 (AM_NLS): Likewise.
16577         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
16578         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
16579         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
16580         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
16581         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
16582         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
16583         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
16584         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
16585         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
16586         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
16587         * m4/xsize.m4 (gl_XSIZE): Likewise.
16588         Suggested by Jim Meyering.
16589
16590 2008-11-17  Bruce Korb  <bkorb@gnu.org>
16591
16592         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
16593         * lib/parse-duration.c: use a switch instead of cascading if's.
16594
16595 2008-12-29  Eric Blake  <ebb9@byu.net>
16596
16597         wchar.h: supply WEOF on Irix 5.3
16598         * lib/wchar.in.h (wint_t): Also supply WEOF.
16599         * lib/wctype.in.h (wint_t): Likewise.
16600         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
16601         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
16602         Reported by Tom G. Christensen.
16603
16604 2008-12-26  Bruno Haible  <bruno@clisp.org>
16605
16606         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
16607         i486, i586, i686.
16608
16609 2008-12-26  Bruno Haible  <bruno@clisp.org>
16610
16611         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
16612
16613 2008-12-26  Bruno Haible  <bruno@clisp.org>
16614
16615         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
16616         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
16617         not __STDC_CONSTANT_MACROS.
16618         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
16619
16620 2008-12-25  Bruno Haible  <bruno@clisp.org>
16621
16622         Add support for universal builds to vasnprintf.
16623         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
16624         universal builds, guess no.
16625         * modules/vasnprintf-posix (Depends-on): Add multiarch.
16626         * modules/vasprintf-posix (Depends-on): Likewise.
16627         * modules/fprintf-posix (Depends-on): Likewise.
16628         * modules/vfprintf-posix (Depends-on): Likewise.
16629         * modules/snprintf-posix (Depends-on): Likewise.
16630         * modules/vsnprintf-posix (Depends-on): Likewise.
16631         * modules/sprintf-posix (Depends-on): Likewise.
16632         * modules/vsprintf-posix (Depends-on): Likewise.
16633         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
16634         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
16635         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
16636         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
16637         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
16638         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
16639         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
16640
16641         Add support for universal builds to <inttypes.h>.
16642         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
16643         _SCNu64_PREFIX): In Apple
16644         universal builds, define directly, using _LP64.
16645         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
16646         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
16647         * modules/inttypes (Depends-on): Add multiarch.
16648         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
16649
16650         Add support for universal builds to <stdint.h>.
16651         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
16652         universal builds, define directly, using _LP64.
16653         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
16654         Apple universal builds, don't test for the size and suffix of ptrdiff_t
16655         and size_t.
16656         * modules/stdint (Depends-on): Add multiarch.
16657         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
16658
16659         New module 'multiarch'.
16660         * modules/multiarch: New file.
16661         * m4/multiarch.m4: New file.
16662
16663 2008-12-25  Bruno Haible  <bruno@clisp.org>
16664
16665         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
16666
16667 2008-12-25  Bruno Haible  <bruno@clisp.org>
16668
16669         * modules/btowc (License): Relicense under LGPLv2+.
16670         * modules/mbsinit (License): Likewise.
16671         * modules/mbrtowc (License): Likewise.
16672         * modules/wcrtomb (License): Likewise.
16673         * modules/streq (License): Likewise.
16674         Reported by David Lutterkort <lutter@redhat.com>.
16675
16676 2008-12-23  Bruno Haible  <bruno@clisp.org>
16677
16678         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
16679
16680 2008-12-23  Bruno Haible  <bruno@clisp.org>
16681
16682         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
16683         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
16684         GETADDRINFO_LIB, not in LIBS.
16685         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
16686         * modules/canon-host (Link): Likewise.
16687         * NEWS: Mention the change.
16688         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
16689         GETADDRINFO_LIB.
16690
16691 2008-12-22  Bruno Haible  <bruno@clisp.org>
16692
16693         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
16694         * doc/posix-functions/iswalpha_l.texi: Likewise.
16695         * doc/posix-functions/iswblank_l.texi: Likewise.
16696         * doc/posix-functions/iswcntrl_l.texi: Likewise.
16697         * doc/posix-functions/iswctype_l.texi: Likewise.
16698         * doc/posix-functions/iswdigit_l.texi: Likewise.
16699         * doc/posix-functions/iswgraph_l.texi: Likewise.
16700         * doc/posix-functions/iswlower_l.texi: Likewise.
16701         * doc/posix-functions/iswprint_l.texi: Likewise.
16702         * doc/posix-functions/iswpunct_l.texi: Likewise.
16703         * doc/posix-functions/iswspace_l.texi: Likewise.
16704         * doc/posix-functions/iswupper_l.texi: Likewise.
16705         * doc/posix-functions/iswxdigit_l.texi: Likewise.
16706         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
16707         * doc/posix-functions/open_wmemstream.texi: Likewise.
16708         * doc/posix-functions/swscanf.texi: Likewise.
16709         * doc/posix-functions/towctrans_l.texi: Likewise.
16710         * doc/posix-functions/towlower.texi: Likewise.
16711         * doc/posix-functions/towlower_l.texi: Likewise.
16712         * doc/posix-functions/towupper.texi: Likewise.
16713         * doc/posix-functions/towupper_l.texi: Likewise.
16714         * doc/posix-functions/vfwprintf.texi: Likewise.
16715         * doc/posix-functions/vfwscanf.texi: Likewise.
16716         * doc/posix-functions/vswscanf.texi: Likewise.
16717         * doc/posix-functions/vwprintf.texi: Likewise.
16718         * doc/posix-functions/vwscanf.texi: Likewise.
16719         * doc/posix-functions/wcpcpy.texi: Likewise.
16720         * doc/posix-functions/wcpncpy.texi: Likewise.
16721         * doc/posix-functions/wcscasecmp.texi: Likewise.
16722         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
16723         * doc/posix-functions/wcscoll_l.texi: Likewise.
16724         * doc/posix-functions/wcsdup.texi: Likewise.
16725         * doc/posix-functions/wcsncasecmp.texi: Likewise.
16726         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
16727         * doc/posix-functions/wcsnlen.texi: Likewise.
16728         * doc/posix-functions/wcsnrtombs.texi: Likewise.
16729         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
16730         * doc/posix-functions/wctrans_l.texi: Likewise.
16731         * doc/posix-functions/wctype_l.texi: Likewise.
16732         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
16733         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
16734         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
16735         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
16736         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
16737         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
16738         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
16739         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
16740         * doc/glibc-functions/wcschrnul.texi: Likewise.
16741         * doc/glibc-functions/wcsftime_l.texi: Likewise.
16742         * doc/glibc-functions/wcstod_l.texi: Likewise.
16743         * doc/glibc-functions/wcstof_l.texi: Likewise.
16744         * doc/glibc-functions/wcstol_l.texi: Likewise.
16745         * doc/glibc-functions/wcstold_l.texi: Likewise.
16746         * doc/glibc-functions/wcstoll_l.texi: Likewise.
16747         * doc/glibc-functions/wcstoq.texi: Likewise.
16748         * doc/glibc-functions/wcstoul_l.texi: Likewise.
16749         * doc/glibc-functions/wcstoull_l.texi: Likewise.
16750         * doc/glibc-functions/wcstouq.texi: Likewise.
16751         * doc/glibc-functions/wmempcpy.texi: Likewise.
16752
16753 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
16754             Eric Blake  <ebb9@byu.net>
16755             Paolo Bonzini  <bonzini@gnu.org>
16756             Bruno Haible  <bruno@clisp.org>
16757
16758         Make c-stack work on Haiku.
16759         * lib/c-stack.c (SA_ONSTACK): Define fallback.
16760         (c_stack_action): Use SA_ONSTACK flag.
16761
16762 2008-12-22  Bruno Haible  <bruno@clisp.org>
16763
16764         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
16765
16766 2008-12-22  Bruno Haible  <bruno@clisp.org>
16767
16768         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
16769         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
16770         being overridden.
16771         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
16772         New macros.
16773         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
16774         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
16775         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
16776         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
16777
16778 2008-12-22  Bruno Haible  <bruno@clisp.org>
16779
16780         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
16781         from test code.
16782
16783 2008-12-22  Eric Blake  <ebb9@byu.net>
16784
16785         Avoid gcc warnings on cygwin.
16786         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
16787         Avoid unused variable.
16788         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
16789         Likewise.
16790
16791 2008-12-22  Bruno Haible  <bruno@clisp.org>
16792
16793         Remove HAVE_MBRTOWC conditionals.
16794         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
16795         (mbscasecmp): Assume mbrtowc function.
16796         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
16797         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
16798         * lib/mbschr.c: Include mbuiter.h unconditionally.
16799         (mbschr): Assume mbrtowc function.
16800         * lib/mbscspn.c: Include mbuiter.h unconditionally.
16801         (mbscspn): Assume mbrtowc function.
16802         * lib/mbslen.c: Include mbuiter.h unconditionally.
16803         (mbslen): Assume mbrtowc function.
16804         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
16805         (mbsncasecmp): Assume mbrtowc function.
16806         * lib/mbsnlen.c: Include mbiter.h unconditionally.
16807         (mbsnlen): Assume mbrtowc function.
16808         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
16809         (mbspbrk): Assume mbrtowc function.
16810         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
16811         (mbspcasecmp): Assume mbrtowc function.
16812         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
16813         (mbsrchr): Assume mbrtowc function.
16814         * lib/mbssep.c: Include mbuiter.h unconditionally.
16815         (mbssep): Assume mbrtowc function.
16816         * lib/mbsspn.c: Include mbuiter.h unconditionally.
16817         (mbsspn): Assume mbrtowc function.
16818         * lib/mbsstr.c: Include mbuiter.h unconditionally.
16819         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
16820         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
16821         (mbstok_r): Assume mbrtowc function.
16822         * lib/propername.c: Include mbuiter.h unconditionally.
16823         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
16824         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
16825         (trim2): Assume mbrtowc function.
16826         * lib/mbswidth.c (mbsinit): Remove fallback definition.
16827         (mbsnwidth): Assume mbrtowc function.
16828         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
16829         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
16830         fallback definitions.
16831         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
16832
16833 2008-12-22  Bruno Haible  <bruno@clisp.org>
16834
16835         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
16836
16837 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
16838
16839         * modules/regex: Request emulations for the mb*/wc* functions we need.
16840         * m4/regex.m4: Don't look for those functions here.
16841         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
16842
16843 2008-12-22  Bruno Haible  <bruno@clisp.org>
16844
16845         * modules/fnmatch (Depends-on): Remove duplicated dependency.
16846
16847 2008-12-21  Bruno Haible  <bruno@clisp.org>
16848
16849         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
16850         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
16851         (Include): Remove conditionalization.
16852         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
16853         (Include): Remove conditionalization.
16854         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
16855         (Include): Remove conditionalization.
16856         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
16857         * m4/mbfile.m4 (gl_MBFILE): Likewise.
16858         * NEWS: Mention the change.
16859         Reported by Alan Hourihane <alanh@fairlite.co.uk>
16860         via Sergey Poznyakoff <gray@gnu.org.ua>.
16861
16862 2008-12-21  Bruno Haible  <bruno@clisp.org>
16863
16864         * MODULES.html.sh (Extended multibyte and wide character utilities
16865         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
16866         wcrtomb, wcsrtombs.
16867         (Support for systems lacking POSIX:2008): Add accept, bind, close,
16868         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
16869         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
16870         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
16871
16872 2008-12-21  Bruno Haible  <bruno@clisp.org>
16873
16874         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
16875
16876 2008-12-21  Bruno Haible  <bruno@clisp.org>
16877
16878         * modules/wcsnrtombs-tests: New file.
16879         * tests/test-wcsnrtombs1.sh: New file.
16880         * tests/test-wcsnrtombs2.sh: New file.
16881         * tests/test-wcsnrtombs3.sh: New file.
16882         * tests/test-wcsnrtombs4.sh: New file.
16883         * tests/test-wcsnrtombs.c: New file.
16884
16885         New module 'wcsnrtombs'.
16886         * lib/wchar.in.h (wcsnrtombs): New declaration.
16887         * lib/wcsnrtombs.c: New file.
16888         * lib/wcsrtombs-state.c: New file.
16889         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
16890         (internal_state): Remove variable.
16891         * m4/wcsnrtombs.m4: New file.
16892         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
16893         compilation units.
16894         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
16895         HAVE_WCSNRTOMBS.
16896         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
16897         HAVE_WCSNRTOMBS.
16898         * modules/wcsnrtombs: New file.
16899         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
16900         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
16901
16902 2008-12-21  Bruno Haible  <bruno@clisp.org>
16903
16904         * modules/wcsrtombs-tests: New file.
16905         * tests/test-wcsrtombs1.sh: New file.
16906         * tests/test-wcsrtombs2.sh: New file.
16907         * tests/test-wcsrtombs3.sh: New file.
16908         * tests/test-wcsrtombs4.sh: New file.
16909         * tests/test-wcsrtombs.c: New file.
16910
16911         New module 'wcsrtombs'.
16912         * lib/wchar.in.h (wcsrtombs): New declaration.
16913         * lib/wcsrtombs.c: New file.
16914         * m4/wcsrtombs.m4: New file.
16915         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
16916         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
16917         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
16918         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
16919         * modules/wcsrtombs: New file.
16920         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
16921         bugs.
16922
16923 2008-12-21  Bruno Haible  <bruno@clisp.org>
16924
16925         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
16926         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
16927         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
16928         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
16929         if not correct.
16930         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
16931         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
16932         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
16933         m4/locale-zh.m4, m4/codeset.m4.
16934         * doc/posix-functions/wcrtomb.texi: Document the bug.
16935
16936 2008-12-21  Bruno Haible  <bruno@clisp.org>
16937
16938         Work around a btowc() bug on IRIX 6.5.
16939         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
16940         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
16941         REPLACE_WTOBC if not.
16942         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
16943         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
16944         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
16945
16946 2008-12-21  Bruno Haible  <bruno@clisp.org>
16947
16948         * modules/wcrtomb-tests: New file.
16949         * tests/test-wcrtomb.sh: New file.
16950         * tests/test-wcrtomb.c: New file.
16951
16952         New module 'wcrtomb'.
16953         * lib/wchar.in.h (wcrtomb): New declaration.
16954         * lib/wcrtomb.c: New file.
16955         * m4/wcrtomb.m4: New file.
16956         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
16957         HAVE_WCRTOMB.
16958         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
16959         HAVE_WCRTOMB.
16960         * modules/wcrtomb: New file.
16961         * doc/posix-functions/wcrtomb.texi: Mention the new module.
16962
16963 2008-12-21  Bruno Haible  <bruno@clisp.org>
16964
16965         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
16966         * modules/mbsrtowcs (Files): Likewise.
16967         * modules/wctob (Files): Likewise.
16968         * modules/c-strcase-tests (Files): Likewise.
16969         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
16970         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
16971         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
16972         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
16973         * modules/vasnprintf-posix-tests (Files): Likewise.
16974
16975 2008-12-21  William Pursell  <bill.pursell@gmail.com>
16976
16977         gitlog-to-changelog: pass all command-line arguments to git-log
16978         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
16979         it is sometimes convenient to filter the commits in various ways.
16980         gitlog-to-changelog only allows --since to specify a start date,
16981         but git-log itself supports many other filtering mechanisms.
16982         At the moment, I want to filter by branch name.  Rather than
16983         adding a --branch option to gitlog-to-changelog, it seems more
16984         flexible to simply pass all options directly to git-log and let
16985         git do the work.  Notice that this effectively makes --since a
16986         redundant option for gitlog-to-changelog, but removing it would
16987         require current usage to change since calls would then require
16988         an additional '--'.
16989
16990 2008-12-21  Bruno Haible  <bruno@clisp.org>
16991
16992         * modules/mbsnrtowcs-tests: New file.
16993         * tests/test-mbsnrtowcs1.sh: New file.
16994         * tests/test-mbsnrtowcs2.sh: New file.
16995         * tests/test-mbsnrtowcs3.sh: New file.
16996         * tests/test-mbsnrtowcs4.sh: New file.
16997         * tests/test-mbsnrtowcs.c: New file.
16998
16999         New module 'mbsnrtowcs'.
17000         * lib/wchar.in.h (mbsnrtowcs): New declaration.
17001         * lib/mbsnrtowcs.c: New file.
17002         * lib/mbsrtowcs-state.c: New file.
17003         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
17004         (internal_state): Remove variable.
17005         * m4/mbsnrtowcs.m4: New file.
17006         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
17007         compilation units.
17008         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
17009         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
17010         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
17011         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
17012         * modules/mbsnrtowcs: New file.
17013         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
17014         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
17015         portability problem.
17016
17017 2008-12-21  Bruno Haible  <bruno@clisp.org>
17018
17019         Work around mbsrtowcs bug.
17020         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
17021         (gl_FUNC_MBSRTOWCS): Invoke it.
17022         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
17023         m4/locale-zh.m4.
17024         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
17025
17026 2008-12-21  Bruno Haible  <bruno@clisp.org>
17027
17028         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
17029
17030 2008-12-21  Bruno Haible  <bruno@clisp.org>
17031
17032         Update doc for AIX.
17033         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
17034         16-bit wchar_t type.
17035         * doc/posix-functions/btowc.texi: Likewise.
17036         * doc/posix-functions/fgetwc.texi: Likewise.
17037         * doc/posix-functions/fgetws.texi: Likewise.
17038         * doc/posix-functions/fputwc.texi: Likewise.
17039         * doc/posix-functions/fputws.texi: Likewise.
17040         * doc/posix-functions/fwide.texi: Likewise.
17041         * doc/posix-functions/fwprintf.texi: Likewise.
17042         * doc/posix-functions/fwscanf.texi: Likewise.
17043         * doc/posix-functions/getwchar.texi: Likewise.
17044         * doc/posix-functions/getwc.texi: Likewise.
17045         * doc/posix-functions/iswalnum.texi: Likewise.
17046         * doc/posix-functions/iswalpha.texi: Likewise.
17047         * doc/posix-functions/iswblank.texi: Likewise.
17048         * doc/posix-functions/iswcntrl.texi: Likewise.
17049         * doc/posix-functions/iswctype.texi: Likewise.
17050         * doc/posix-functions/iswdigit.texi: Likewise.
17051         * doc/posix-functions/iswgraph.texi: Likewise.
17052         * doc/posix-functions/iswlower.texi: Likewise.
17053         * doc/posix-functions/iswprint.texi: Likewise.
17054         * doc/posix-functions/iswpunct.texi: Likewise.
17055         * doc/posix-functions/iswspace.texi: Likewise.
17056         * doc/posix-functions/iswupper.texi: Likewise.
17057         * doc/posix-functions/iswxdigit.texi: Likewise.
17058         * doc/posix-functions/mbrtowc.texi: Likewise.
17059         * doc/posix-functions/mbsrtowcs.texi: Likewise.
17060         * doc/posix-functions/mbstowcs.texi: Likewise.
17061         * doc/posix-functions/mbtowc.texi: Likewise.
17062         * doc/posix-functions/putwchar.texi: Likewise.
17063         * doc/posix-functions/putwc.texi: Likewise.
17064         * doc/posix-functions/swprintf.texi: Likewise.
17065         * doc/posix-functions/tolower.texi: Likewise.
17066         * doc/posix-functions/toupper.texi: Likewise.
17067         * doc/posix-functions/towctrans.texi: Likewise.
17068         * doc/posix-functions/ungetwc.texi: Likewise.
17069         * doc/posix-functions/vswprintf.texi: Likewise.
17070         * doc/posix-functions/wcrtomb.texi: Likewise.
17071         * doc/posix-functions/wcscat.texi: Likewise.
17072         * doc/posix-functions/wcschr.texi: Likewise.
17073         * doc/posix-functions/wcscmp.texi: Likewise.
17074         * doc/posix-functions/wcscoll.texi: Likewise.
17075         * doc/posix-functions/wcscpy.texi: Likewise.
17076         * doc/posix-functions/wcscspn.texi: Likewise.
17077         * doc/posix-functions/wcsftime.texi: Likewise.
17078         * doc/posix-functions/wcslen.texi: Likewise.
17079         * doc/posix-functions/wcsncat.texi: Likewise.
17080         * doc/posix-functions/wcsncmp.texi: Likewise.
17081         * doc/posix-functions/wcsncpy.texi: Likewise.
17082         * doc/posix-functions/wcspbrk.texi: Likewise.
17083         * doc/posix-functions/wcsrchr.texi: Likewise.
17084         * doc/posix-functions/wcsrtombs.texi: Likewise.
17085         * doc/posix-functions/wcsspn.texi: Likewise.
17086         * doc/posix-functions/wcsstr.texi: Likewise.
17087         * doc/posix-functions/wcstod.texi: Likewise.
17088         * doc/posix-functions/wcstof.texi: Likewise.
17089         * doc/posix-functions/wcstoimax.texi: Likewise.
17090         * doc/posix-functions/wcstok.texi: Likewise.
17091         * doc/posix-functions/wcstold.texi: Likewise.
17092         * doc/posix-functions/wcstoll.texi: Likewise.
17093         * doc/posix-functions/wcstol.texi: Likewise.
17094         * doc/posix-functions/wcstombs.texi: Likewise.
17095         * doc/posix-functions/wcstoull.texi: Likewise.
17096         * doc/posix-functions/wcstoul.texi: Likewise.
17097         * doc/posix-functions/wcstoumax.texi: Likewise.
17098         * doc/posix-functions/wcswidth.texi: Likewise.
17099         * doc/posix-functions/wcsxfrm.texi: Likewise.
17100         * doc/posix-functions/wctob.texi: Likewise.
17101         * doc/posix-functions/wctomb.texi: Likewise.
17102         * doc/posix-functions/wctrans.texi: Likewise.
17103         * doc/posix-functions/wctype.texi: Likewise.
17104         * doc/posix-functions/wcwidth.texi: Likewise.
17105         * doc/posix-functions/wmemchr.texi: Likewise.
17106         * doc/posix-functions/wmemcmp.texi: Likewise.
17107         * doc/posix-functions/wmemcpy.texi: Likewise.
17108         * doc/posix-functions/wmemmove.texi: Likewise.
17109         * doc/posix-functions/wmemset.texi: Likewise.
17110         * doc/posix-functions/wprintf.texi: Likewise.
17111         * doc/posix-functions/wscanf.texi: Likewise.
17112
17113 2008-12-21  Bruno Haible  <bruno@clisp.org>
17114
17115         Update doc for HP-UX 11.11.
17116         * doc/posix-functions/btowc.texi: Clarify that the function is missing
17117         in HP-UX version 11.00, not in all versions of HP-UX 11.
17118         * doc/posix-functions/fwide.texi: Likewise.
17119         * doc/posix-functions/fwprintf.texi: Likewise.
17120         * doc/posix-functions/fwscanf.texi: Likewise.
17121         * doc/posix-functions/inet_ntop.texi: Likewise.
17122         * doc/posix-functions/inet_pton.texi: Likewise.
17123         * doc/posix-functions/mbrlen.texi: Likewise.
17124         * doc/posix-functions/mbrtowc.texi: Likewise.
17125         * doc/posix-functions/mbsinit.texi: Likewise.
17126         * doc/posix-functions/mbsrtowcs.texi: Likewise.
17127         * doc/posix-functions/swprintf.texi: Likewise.
17128         * doc/posix-functions/swscanf.texi: Likewise.
17129         * doc/posix-functions/towctrans.texi: Likewise.
17130         * doc/posix-functions/vfwprintf.texi: Likewise.
17131         * doc/posix-functions/vswprintf.texi: Likewise.
17132         * doc/posix-functions/vwprintf.texi: Likewise.
17133         * doc/posix-functions/wcrtomb.texi: Likewise.
17134         * doc/posix-functions/wcsrtombs.texi: Likewise.
17135         * doc/posix-functions/wcsstr.texi: Likewise.
17136         * doc/posix-functions/wctob.texi: Likewise.
17137         * doc/posix-functions/wctrans.texi: Likewise.
17138         * doc/posix-functions/wmemchr.texi: Likewise.
17139         * doc/posix-functions/wmemcmp.texi: Likewise.
17140         * doc/posix-functions/wmemcpy.texi: Likewise.
17141         * doc/posix-functions/wmemmove.texi: Likewise.
17142         * doc/posix-functions/wmemset.texi: Likewise.
17143         * doc/posix-functions/wprintf.texi: Likewise.
17144         * doc/posix-functions/wscanf.texi: Likewise.
17145
17146 2008-12-21  Bruno Haible  <bruno@clisp.org>
17147
17148         Work around a portability problem.
17149         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
17150         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
17151
17152 2008-12-20  Bruno Haible  <bruno@clisp.org>
17153
17154         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
17155         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
17156         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
17157         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
17158         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
17159
17160         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
17161         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
17162         set.
17163         (GNULIB_defined_mbstate_t): New macro.
17164         (mbsinit): Redefine if REPLACE_MBSINIT is set.
17165         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
17166         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
17167         reuses the system's mbrtowc function but works around the bugs.
17168         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
17169         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
17170         macros.
17171         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
17172         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
17173         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
17174         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
17175         REPLACE_MBSINIT if mbsinit needs to be overridden.
17176         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
17177         REPLACE_MBSINIT, REPLACE_MBRTOWC.
17178         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
17179         REPLACE_MBSINIT, REPLACE_MBRTOWC.
17180         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
17181         m4/locale-zh.m4.
17182         (Depends): Add mbsinit.
17183         * modules/mbsinit (Depends): Add mbrtowc.
17184         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
17185
17186 2008-12-20  Bruno Haible  <bruno@clisp.org>
17187
17188         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
17189         so that there are no conversion errors on AIX.
17190         * tests/test-mbsrtowcs.c (main): LIkewise.
17191
17192 2008-12-20  Bruno Haible  <bruno@clisp.org>
17193
17194         Work around wctob bug on Solaris <= 9.
17195         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
17196         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
17197         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
17198         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
17199         * modules/wctob (Files): Add m4/locale-fr.m4.
17200         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
17201
17202 2008-12-20  Bruno Haible  <bruno@clisp.org>
17203
17204         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
17205         /dev/null.
17206         * tests/test-select-in.sh: Likewise.
17207         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17208
17209 2008-12-20  Bruno Haible  <bruno@clisp.org>
17210
17211         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
17212         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
17213         Cygwin 1.5.x.
17214
17215 2008-12-20  Bruno Haible  <bruno@clisp.org>
17216
17217         Ensure mbstate_t is defined on HP-UX 11.11.
17218         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
17219         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
17220         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
17221         AC_USE_SYSTEM_EXTENSIONS.
17222         * modules/fnmatch (Depends-on): Add extensions.
17223         * modules/mbrlen (Depends-on): Likewise.
17224         * modules/mbrtowc (Depends-on): Likewise.
17225         * modules/mbsinit (Depends-on): Likewise.
17226         * modules/mbsrtowcs (Depends-on): Likewise.
17227         * modules/mbswidth (Depends-on): Likewise.
17228         * modules/quotearg (Depends-on): Likewise.
17229         * modules/strftime (Depends-on): Likewise.
17230
17231 2008-12-20  Bruno Haible  <bruno@clisp.org>
17232
17233         Ensure wctob is declared on IRIX 6.5.
17234         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
17235         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
17236         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
17237         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
17238         of HAVE_WCTOB.
17239         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
17240         HAVE_WCTOB.
17241         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
17242
17243 2008-12-19  Bruno Haible  <bruno@clisp.org>
17244
17245         * modules/mbsrtowcs-tests: New file.
17246         * tests/test-mbsrtowcs1.sh: New file.
17247         * tests/test-mbsrtowcs2.sh: New file.
17248         * tests/test-mbsrtowcs3.sh: New file.
17249         * tests/test-mbsrtowcs4.sh: New file.
17250         * tests/test-mbsrtowcs.c: New file.
17251
17252         New module 'mbsrtowcs'.
17253         * lib/wchar.in.h (mbsrtowcs): New declaration.
17254         * lib/mbsrtowcs.c: New file.
17255         * m4/mbsrtowcs.m4: New file.
17256         * modules/mbsrtowcs: New file.
17257         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
17258         HAVE_MBSRTOWCS.
17259         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
17260         HAVE_MBSRTOWCS.
17261         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
17262
17263 2008-12-19  Bruno Haible  <bruno@clisp.org>
17264
17265         New module 'mbrlen'.
17266         * lib/wchar.in.h (mbrlen): New declaration.
17267         * lib/mbrlen.c: New file.
17268         * m4/mbrlen.m4: New file.
17269         * modules/mbrlen: New file.
17270         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
17271         HAVE_MBRLEN.
17272         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
17273         HAVE_MBRLEN.
17274         * doc/posix-functions/mbrlen.texi: Document the new module.
17275
17276 2008-12-19  Bruno Haible  <bruno@clisp.org>
17277
17278         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
17279         * modules/mbrtowc (Depends-on): Add verify.
17280         Suggested by Paul Eggert.
17281
17282 2008-12-18  Bruno Haible  <bruno@clisp.org>
17283
17284         * modules/mbsinit-tests: New file.
17285         * tests/test-mbsinit.sh: New file.
17286         * tests/test-mbsinit.c: New file.
17287
17288 2008-12-18  Bruno Haible  <bruno@clisp.org>
17289
17290         * modules/mbrtowc-tests: New file.
17291         * tests/test-mbrtowc1.sh: New file.
17292         * tests/test-mbrtowc2.sh: New file.
17293         * tests/test-mbrtowc3.sh: New file.
17294         * tests/test-mbrtowc4.sh: New file.
17295         * tests/test-mbrtowc.c: New file.
17296
17297         New module 'mbrtowc'.
17298         * lib/wchar.in.h (mbstate_t): Override when the system does not have
17299         mbsinit and mbrtowc.
17300         (mbrtowc): New declaration.
17301         * lib/mbrtowc.c: New file.
17302         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
17303         * modules/mbrtowc: New file.
17304         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
17305         HAVE_MBRTOWC.
17306         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
17307         HAVE_MBRTOWC.
17308         * doc/posix-functions/mbrtowc.texi: Document the new module.
17309
17310 2008-12-18  Bruno Haible  <bruno@clisp.org>
17311
17312         New module 'wctob'.
17313         * lib/wchar.in.h (wctob): New declaration.
17314         * lib/wctob.c: New file.
17315         * m4/wctob.m4: New file.
17316         * modules/wctob: New file.
17317         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
17318         HAVE_WCTOB.
17319         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
17320         * doc/posix-functions/wctob.texi: Document the new module.
17321
17322 2008-12-18  Bruno Haible  <bruno@clisp.org>
17323
17324         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
17325         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
17326
17327 2008-12-18  Simon Josefsson  <simon@josefsson.org>
17328
17329         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
17330         G. Christensen" <tgc@jupiterrise.com>.
17331
17332         * lib/flock.c: Need to include errno.h.  Reported by "Tom
17333         G. Christensen" <tgc@jupiterrise.com>.
17334
17335         * lib/flock.c: Need to include string.h.  Reported by "Tom
17336         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
17337         <ebb9@byu.net>.
17338
17339 2008-12-18  Bruno Haible  <bruno@clisp.org>
17340
17341         * m4/locale-ja.m4: New file, from GNU gettext.
17342
17343 2008-12-17  Bruno Haible  <bruno@clisp.org>
17344
17345         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
17346         Suggested by Eric Blake.
17347
17348 2008-12-17  Bruno Haible  <bruno@clisp.org>
17349
17350         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
17351
17352 2008-12-17  Bruno Haible  <bruno@clisp.org>
17353
17354         * lib/mbsinit.c: Include verify.h. Verify an assumption.
17355         * modules/mbsinit (Depends-on): Add verify.
17356         Suggested by Paul Eggert.
17357
17358 2008-12-17  Bruno Haible  <bruno@clisp.org>
17359
17360         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
17361         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
17362         gl_FUNC_MBRTOWC.
17363         * m4/mbiter.m4 (gl_MBITER): LIkewise.
17364         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
17365         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
17366         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
17367         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
17368         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
17369         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
17370         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
17371         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
17372         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
17373         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
17374         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
17375         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
17376         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
17377         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
17378         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
17379         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
17380         * modules/trim (configure.ac): Likewise.
17381
17382 2008-12-17  Bruno Haible  <bruno@clisp.org>
17383
17384         * modules/btowc-tests: New file.
17385         * tests/test-btowc1.sh: New file.
17386         * tests/test-btowc2.sh: New file.
17387         * tests/test-btowc.c: New file.
17388
17389         New module 'btowc'.
17390         * lib/wchar.in.h (btowc): New declaration.
17391         * lib/btowc.c: New file.
17392         * m4/btowc.m4: New file.
17393         * modules/btowc: New file.
17394         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
17395         HAVE_BTOWC.
17396         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
17397         * doc/posix-functions/btowc.texi: Document the new module.
17398
17399 2008-12-17  Bruno Haible  <bruno@clisp.org>
17400
17401         New module 'mbsinit'.
17402         * lib/wchar.in.h (mbsinit): New declaration.
17403         * lib/mbsinit.c: New file.
17404         * m4/mbsinit.m4: New file.
17405         * modules/mbsinit: New file.
17406         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
17407         HAVE_MBSINIT.
17408         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
17409         HAVE_MBSINIT.
17410         * doc/posix-functions/mbsinit.texi: Document the new module.
17411
17412 2008-12-16  Bruno Haible  <bruno@clisp.org>
17413
17414         * lib/unistd.in.h: Add comment.
17415         * tests/test-environ.c: Don't include <stdlib.h>.
17416
17417 2008-12-16  Bruno Haible  <bruno@clisp.org>
17418
17419         * lib/parse-duration.h (parse_duration): Document return value
17420         convention.
17421         * lib/parse-duration.c: Include specification header first. Add
17422         comments.
17423         (_): Remove macro.
17424         (parse_year_month_day, parse_hour_minute_second): Move side effects
17425         outside of strchr call.
17426         (parse_non_iso8601): Move side effects outside of isspace call.
17427         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
17428         call.
17429
17430 2008-12-16  Bruno Haible  <bruno@clisp.org>
17431
17432         * tests/test-parse-duration.sh: Produce no output when the test
17433         succeeds.
17434
17435 2008-12-16  Bruno Haible  <bruno@clisp.org>
17436
17437         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
17438         expressions.
17439
17440 2008-12-15  Bruno Haible  <bruno@clisp.org>
17441
17442         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
17443         * doc/glibc-functions/flistxattr.texi: Likewise.
17444         * doc/glibc-functions/fopencookie.texi: Likewise.
17445         * doc/glibc-functions/fremovexattr.texi: Likewise.
17446         * doc/glibc-functions/fsetxattr.texi: Likewise.
17447         * doc/glibc-functions/getxattr.texi: Likewise.
17448         * doc/glibc-functions/lgetxattr.texi: Likewise.
17449         * doc/glibc-functions/listxattr.texi: Likewise.
17450         * doc/glibc-functions/llistxattr.texi: Likewise.
17451         * doc/glibc-functions/lremovexattr.texi: Likewise.
17452         * doc/glibc-functions/lsetxattr.texi: Likewise.
17453         * doc/glibc-functions/removexattr.texi: Likewise.
17454         * doc/glibc-functions/setxattr.texi: Likewise.
17455         * doc/posix-functions/open_memstream.texi: Likewise.
17456
17457 2008-12-15  Eric Blake  <ebb9@byu.net>
17458
17459         Update doc for cygwin 1.7.
17460         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
17461         functions.
17462         * doc/posix-functions/fchmodat.texi: Likewise.
17463         * doc/posix-functions/fchownat.texi: Likewise.
17464         * doc/posix-functions/fdopendir.texi: Likewise.
17465         * doc/posix-functions/fmemopen.texi: Likewise.
17466         * doc/posix-functions/freeaddrinfo.texi: Likewise.
17467         * doc/posix-functions/fstatat.texi: Likewise.
17468         * doc/posix-functions/futimens.texi: Likewise.
17469         * doc/posix-functions/gai_strerror.texi: Likewise.
17470         * doc/posix-functions/getaddrinfo.texi: Likewise.
17471         * doc/posix-functions/getnameinfo.texi: Likewise.
17472         * doc/posix-functions/if_freenameindex.texi: Likewise.
17473         * doc/posix-functions/if_indextoname.texi: Likewise.
17474         * doc/posix-functions/if_nameindex.texi: Likewise.
17475         * doc/posix-functions/if_nametoindex.texi: Likewise.
17476         * doc/posix-functions/insque.texi: Likewise.
17477         * doc/posix-functions/linkat.texi: Likewise.
17478         * doc/posix-functions/llrint.texi: Likewise.
17479         * doc/posix-functions/llrintf.texi: Likewise.
17480         * doc/posix-functions/llrintl.texi: Likewise.
17481         * doc/posix-functions/lockf.texi: Likewise.
17482         * doc/posix-functions/lrintl.texi: Likewise.
17483         * doc/posix-functions/mkdirat.texi: Likewise.
17484         * doc/posix-functions/mkfifoat.texi: Likewise.
17485         * doc/posix-functions/mknodat.texi: Likewise.
17486         * doc/posix-functions/mq_close.texi: Likewise.
17487         * doc/posix-functions/mq_getattr.texi: Likewise.
17488         * doc/posix-functions/mq_notify.texi: Likewise.
17489         * doc/posix-functions/mq_open.texi: Likewise.
17490         * doc/posix-functions/mq_receive.texi: Likewise.
17491         * doc/posix-functions/mq_send.texi: Likewise.
17492         * doc/posix-functions/mq_setattr.texi: Likewise.
17493         * doc/posix-functions/mq_timedreceive.texi: Likewise.
17494         * doc/posix-functions/mq_timedsend.texi: Likewise.
17495         * doc/posix-functions/mq_unlink.texi: Likewise.
17496         * doc/posix-functions/open_memstream.texi: Likewise.
17497         * doc/posix-functions/openat.texi: Likewise.
17498         * doc/posix-functions/posix_fadvise.texi: Likewise.
17499         * doc/posix-functions/posix_fallocate.texi: Likewise.
17500         * doc/posix-functions/posix_madvise.texi: Likewise.
17501         * doc/posix-functions/posix_memalign.texi: Likewise.
17502         * doc/posix-functions/posix_openpt.texi: Likewise.
17503         * doc/posix-functions/readlinkat.texi: Likewise.
17504         * doc/posix-functions/remque.texi: Likewise.
17505         * doc/posix-functions/renameat.texi: Likewise.
17506         * doc/posix-functions/rintl.texi: Likewise.
17507         * doc/posix-functions/sem_unlink.texi: Likewise.
17508         * doc/posix-functions/shm_open.texi: Likewise.
17509         * doc/posix-functions/shm_unlink.texi: Likewise.
17510         * doc/posix-functions/signgam.texi: Likewise.
17511         * doc/posix-functions/sigset.texi: Likewise.
17512         * doc/posix-functions/stpcpy.texi: Likewise.
17513         * doc/posix-functions/stpncpy.texi: Likewise.
17514         * doc/posix-functions/strerror.texi: Likewise.
17515         * doc/posix-functions/strtod.texi: Likewise.
17516         * doc/posix-functions/symlinkat.texi: Likewise.
17517         * doc/posix-functions/unlinkat.texi: Likewise.
17518         * doc/posix-functions/utimensat.texi: Likewise.
17519         * doc/glibc-functions/bindresvport.texi: Likewise.
17520         * doc/glibc-functions/dn_expand.texi: Likewise.
17521         * doc/glibc-functions/exp10.texi: Likewise.
17522         * doc/glibc-functions/exp10f.texi: Likewise.
17523         * doc/glibc-functions/fgetxattr.texi: Likewise.
17524         * doc/glibc-functions/flistxattr.texi: Likewise.
17525         * doc/glibc-functions/fopencookie.texi: Likewise.
17526         * doc/glibc-functions/freeifaddrs.texi: Likewise.
17527         * doc/glibc-functions/fremovexattr.texi: Likewise.
17528         * doc/glibc-functions/fsetxattr.texi: Likewise.
17529         * doc/glibc-functions/getifaddrs.texi: Likewise.
17530         * doc/glibc-functions/getxattr.texi: Likewise.
17531         * doc/glibc-functions/lgetxattr.texi: Likewise.
17532         * doc/glibc-functions/listxattr.texi: Likewise.
17533         * doc/glibc-functions/llistxattr.texi: Likewise.
17534         * doc/glibc-functions/lremovexattr.texi: Likewise.
17535         * doc/glibc-functions/lsetxattr.texi: Likewise.
17536         * doc/glibc-functions/pow10.texi: Likewise.
17537         * doc/glibc-functions/pow10f.texi: Likewise.
17538         * doc/glibc-functions/rcmd_af.texi: Likewise.
17539         * doc/glibc-functions/removexattr.texi: Likewise.
17540         * doc/glibc-functions/res_init.texi: Likewise.
17541         * doc/glibc-functions/res_mkquery.texi: Likewise.
17542         * doc/glibc-functions/res_query.texi: Likewise.
17543         * doc/glibc-functions/res_querydomain.texi: Likewise.
17544         * doc/glibc-functions/res_send.texi: Likewise.
17545         * doc/glibc-functions/rresvport_af.texi: Likewise.
17546         * doc/glibc-functions/setxattr.texi: Likewise.
17547         * doc/glibc-functions/strcasestr.texi: Likewise.
17548
17549 2008-12-15  Bruno Haible  <bruno@clisp.org>
17550
17551         Fix compilation error on OSF/1 4.0.
17552         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
17553         <sys/time.h>, simply delegate to the system header.
17554         Reported by Daniel Richard G. <oss@teragram.com>.
17555
17556 2008-12-15  Bruno Haible  <bruno@clisp.org>
17557
17558         * doc/posix-functions/openat.texi: Mention the 'openat' module.
17559         * doc/posix-functions/fchmodat.texi: Likewise.
17560         * doc/posix-functions/fchownat.texi: Likewise.
17561         * doc/posix-functions/fdopendir.texi: Likewise.
17562         * doc/posix-functions/fstatat.texi: Likewise.
17563         * doc/posix-functions/mkdirat.texi: Likewise.
17564         * doc/posix-functions/unlinkat.texi: Likewise.
17565
17566 2008-12-14  Bruno Haible  <bruno@clisp.org>
17567
17568         Update doc for POSIX:2008.
17569         * doc/posix-functions/faccessat.texi: New file.
17570         * doc/posix-functions/fchmodat.texi: New file.
17571         * doc/posix-functions/fchownat.texi: New file.
17572         * doc/posix-functions/fdopendir.texi: New file.
17573         * doc/posix-functions/fstatat.texi: New file.
17574         * doc/posix-functions/futimens.texi: New file.
17575         * doc/posix-functions/linkat.texi: New file.
17576         * doc/posix-functions/mkdirat.texi: New file.
17577         * doc/posix-functions/mkfifoat.texi: New file.
17578         * doc/posix-functions/mknodat.texi: New file.
17579         * doc/posix-functions/open_wmemstream.texi: New file.
17580         * doc/posix-functions/openat.texi: New file.
17581         * doc/posix-functions/psiginfo.texi: New file.
17582         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
17583         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
17584         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
17585         * doc/posix-functions/readlinkat.texi: New file.
17586         * doc/posix-functions/renameat.texi: New file.
17587         * doc/posix-functions/strerror_l.texi: New file.
17588         * doc/posix-functions/symlinkat.texi: New file.
17589         * doc/posix-functions/unlinkat.texi: New file.
17590         * doc/posix-functions/utimensat.texi: New file.
17591         * doc/gnulib.texi (Function Substitutes): Add these subsections.
17592
17593 2008-12-14  Bruno Haible  <bruno@clisp.org>
17594
17595         Update doc for POSIX:2008.
17596         * doc/posix-functions/alphasort.texi: Renamed from
17597         doc/glibc-functions/alphasort.texi.
17598         * doc/posix-functions/dirfd.texi: Renamed from
17599         doc/glibc-functions/dirfd.texi.
17600         * doc/posix-functions/dprintf.texi: Renamed from
17601         doc/glibc-functions/dprintf.texi.
17602         * doc/posix-functions/duplocale.texi: Renamed from
17603         doc/glibc-functions/duplocale.texi.
17604         * doc/posix-functions/fexecve.texi: Renamed from
17605         doc/glibc-functions/fexecve.texi.
17606         * doc/posix-functions/fmemopen.texi: Renamed from
17607         doc/glibc-functions/fmemopen.texi.
17608         * doc/posix-functions/freelocale.texi: Renamed from
17609         doc/glibc-functions/freelocale.texi.
17610         * doc/posix-functions/getdate_err.texi: Renamed from
17611         doc/glibc-functions/getdate_err.texi.
17612         * doc/posix-functions/isalnum_l.texi: Renamed from
17613         doc/glibc-functions/isalnum_l.texi.
17614         * doc/posix-functions/isalpha_l.texi: Renamed from
17615         doc/glibc-functions/isalpha_l.texi.
17616         * doc/posix-functions/isblank_l.texi: Renamed from
17617         doc/glibc-functions/isblank_l.texi.
17618         * doc/posix-functions/iscntrl_l.texi: Renamed from
17619         doc/glibc-functions/iscntrl_l.texi.
17620         * doc/posix-functions/isdigit_l.texi: Renamed from
17621         doc/glibc-functions/isdigit_l.texi.
17622         * doc/posix-functions/isgraph_l.texi: Renamed from
17623         doc/glibc-functions/isgraph_l.texi.
17624         * doc/posix-functions/islower_l.texi: Renamed from
17625         doc/glibc-functions/islower_l.texi.
17626         * doc/posix-functions/isprint_l.texi: Renamed from
17627         doc/glibc-functions/isprint_l.texi.
17628         * doc/posix-functions/ispunct_l.texi: Renamed from
17629         doc/glibc-functions/ispunct_l.texi.
17630         * doc/posix-functions/isspace_l.texi: Renamed from
17631         doc/glibc-functions/isspace_l.texi.
17632         * doc/posix-functions/isupper_l.texi: Renamed from
17633         doc/glibc-functions/isupper_l.texi.
17634         * doc/posix-functions/iswalnum_l.texi: Renamed from
17635         doc/glibc-functions/iswalnum_l.texi.
17636         * doc/posix-functions/iswalpha_l.texi: Renamed from
17637         doc/glibc-functions/iswalpha_l.texi.
17638         * doc/posix-functions/iswblank_l.texi: Renamed from
17639         doc/glibc-functions/iswblank_l.texi.
17640         * doc/posix-functions/iswcntrl_l.texi: Renamed from
17641         doc/glibc-functions/iswcntrl_l.texi.
17642         * doc/posix-functions/iswctype_l.texi: Renamed from
17643         doc/glibc-functions/iswctype_l.texi.
17644         * doc/posix-functions/iswdigit_l.texi: Renamed from
17645         doc/glibc-functions/iswdigit_l.texi.
17646         * doc/posix-functions/iswgraph_l.texi: Renamed from
17647         doc/glibc-functions/iswgraph_l.texi.
17648         * doc/posix-functions/iswlower_l.texi: Renamed from
17649         doc/glibc-functions/iswlower_l.texi.
17650         * doc/posix-functions/iswprint_l.texi: Renamed from
17651         doc/glibc-functions/iswprint_l.texi.
17652         * doc/posix-functions/iswpunct_l.texi: Renamed from
17653         doc/glibc-functions/iswpunct_l.texi.
17654         * doc/posix-functions/iswspace_l.texi: Renamed from
17655         doc/glibc-functions/iswspace_l.texi.
17656         * doc/posix-functions/iswupper_l.texi: Renamed from
17657         doc/glibc-functions/iswupper_l.texi.
17658         * doc/posix-functions/iswxdigit_l.texi: Renamed from
17659         doc/glibc-functions/iswxdigit_l.texi.
17660         * doc/posix-functions/isxdigit_l.texi: Renamed from
17661         doc/glibc-functions/isxdigit_l.texi.
17662         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
17663         doc/glibc-functions/mbsnrtowcs.texi.
17664         * doc/posix-functions/mkdtemp.texi: Renamed from
17665         doc/glibc-functions/mkdtemp.texi.
17666         * doc/posix-functions/newlocale.texi: Renamed from
17667         doc/glibc-functions/newlocale.texi.
17668         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
17669         doc/glibc-functions/nl_langinfo_l.texi.
17670         * doc/posix-functions/open_memstream.texi: Renamed from
17671         doc/glibc-functions/open_memstream.texi.
17672         * doc/posix-functions/opterr.texi: Renamed from
17673         doc/glibc-functions/opterr.texi.
17674         * doc/posix-functions/optind.texi: Renamed from
17675         doc/glibc-functions/optind.texi.
17676         * doc/posix-functions/optopt.texi: Renamed from
17677         doc/glibc-functions/optopt.texi.
17678         * doc/posix-functions/psignal.texi: Renamed from
17679         doc/glibc-functions/psignal.texi.
17680         * doc/posix-functions/scandir.texi: Renamed from
17681         doc/glibc-functions/scandir.texi.
17682         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
17683         doc/glibc-functions/sched_get_priority_min.texi.
17684         * doc/posix-functions/signgam.texi: Renamed from
17685         doc/glibc-functions/signgam.texi.
17686         * doc/posix-functions/stpcpy.texi: Renamed from
17687         doc/glibc-functions/stpcpy.texi.
17688         * doc/posix-functions/stpncpy.texi: Renamed from
17689         doc/glibc-functions/stpncpy.texi.
17690         * doc/posix-functions/strcasecmp_l.texi: Renamed from
17691         doc/glibc-functions/strcasecmp_l.texi.
17692         * doc/posix-functions/strcoll_l.texi: Renamed from
17693         doc/glibc-functions/strcoll_l.texi.
17694         * doc/posix-functions/strfmon_l.texi: Renamed from
17695         doc/glibc-functions/strfmon_l.texi.
17696         * doc/posix-functions/strftime_l.texi: Renamed from
17697         doc/glibc-functions/strftime_l.texi.
17698         * doc/posix-functions/strncasecmp_l.texi: Renamed from
17699         doc/glibc-functions/strncasecmp_l.texi.
17700         * doc/posix-functions/strndup.texi: Renamed from
17701         doc/glibc-functions/strndup.texi.
17702         * doc/posix-functions/strnlen.texi: Renamed from
17703         doc/glibc-functions/strnlen.texi.
17704         * doc/posix-functions/strsignal.texi: Renamed from
17705         doc/glibc-functions/strsignal.texi.
17706         * doc/posix-functions/strxfrm_l.texi: Renamed from
17707         doc/glibc-functions/strxfrm_l.texi.
17708         * doc/posix-functions/timer_gettime.texi: Renamed from
17709         doc/glibc-functions/timer_gettime.texi.
17710         * doc/posix-functions/tolower_l.texi: Renamed from
17711         doc/glibc-functions/tolower_l.texi.
17712         * doc/posix-functions/toupper_l.texi: Renamed from
17713         doc/glibc-functions/toupper_l.texi.
17714         * doc/posix-functions/towctrans_l.texi: Renamed from
17715         doc/glibc-functions/towctrans_l.texi.
17716         * doc/posix-functions/towlower_l.texi: Renamed from
17717         doc/glibc-functions/towlower_l.texi.
17718         * doc/posix-functions/towupper_l.texi: Renamed from
17719         doc/glibc-functions/towupper_l.texi.
17720         * doc/posix-functions/uselocale.texi: Renamed from
17721         doc/glibc-functions/uselocale.texi.
17722         * doc/posix-functions/vdprintf.texi: Renamed from
17723         doc/glibc-functions/vdprintf.texi.
17724         * doc/posix-functions/wcpcpy.texi:
17725         Renamed from doc/glibc-functions/wcpcpy.texi.
17726         * doc/posix-functions/wcpncpy.texi: Renamed from
17727         doc/glibc-functions/wcpncpy.texi.
17728         * doc/posix-functions/wcscasecmp.texi: Renamed from
17729         doc/glibc-functions/wcscasecmp.texi.
17730         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
17731         doc/glibc-functions/wcscasecmp_l.texi.
17732         * doc/posix-functions/wcscoll_l.texi: Renamed from
17733         doc/glibc-functions/wcscoll_l.texi.
17734         * doc/posix-functions/wcsdup.texi: Renamed from
17735         doc/glibc-functions/wcsdup.texi.
17736         * doc/posix-functions/wcsncasecmp.texi: Renamed from
17737         doc/glibc-functions/wcsncasecmp.texi.
17738         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
17739         doc/glibc-functions/wcsncasecmp_l.texi.
17740         * doc/posix-functions/wcsnlen.texi: Renamed from
17741         doc/glibc-functions/wcsnlen.texi.
17742         * doc/posix-functions/wcsnrtombs.texi: Renamed from
17743         doc/glibc-functions/wcsnrtombs.texi.
17744         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
17745         doc/glibc-functions/wcsxfrm_l.texi.
17746         * doc/posix-functions/wctrans_l.texi: Renamed from
17747         doc/glibc-functions/wctrans_l.texi.
17748         * doc/posix-functions/wctype_l.texi: Renamed from
17749         doc/glibc-functions/wctype_l.texi.
17750         * doc/gnulib.texi (Function Substitutes): Add these subsections.
17751         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
17752         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
17753         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
17754         these subsections.
17755         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
17756         Remove sections.
17757
17758 2008-12-14  Bruno Haible  <bruno@clisp.org>
17759
17760         Update doc for POSIX:2008.
17761         * doc/posix-functions/*.texi: Update URL of POSIX specification.
17762
17763 2008-12-14  Bruno Haible  <bruno@clisp.org>
17764
17765         Update doc for POSIX:2008.
17766         * doc/pastposix-functions/bcmp.texi: Renamed from
17767         doc/posix-functions/bcmp.texi.
17768         * doc/pastposix-functions/bcopy.texi: Renamed from
17769         doc/posix-functions/bcopy.texi.
17770         * doc/pastposix-functions/bsd_signal.texi: Renamed from
17771         doc/posix-functions/bsd_signal.texi.
17772         * doc/pastposix-functions/bzero.texi: Renamed from
17773         doc/posix-functions/bzero.texi.
17774         * doc/pastposix-functions/ecvt.texi: Renamed from
17775         doc/posix-functions/ecvt.texi.
17776         * doc/pastposix-functions/fcvt.texi: Renamed from
17777         doc/posix-functions/fcvt.texi.
17778         * doc/pastposix-functions/ftime.texi: Renamed from
17779         doc/posix-functions/ftime.texi.
17780         * doc/pastposix-functions/gcvt.texi: Renamed from
17781         doc/posix-functions/gcvt.texi.
17782         * doc/pastposix-functions/getcontext.texi: Renamed from
17783         doc/posix-functions/getcontext.texi.
17784         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
17785         doc/posix-functions/gethostbyaddr.texi.
17786         * doc/pastposix-functions/gethostbyname.texi: Renamed from
17787         doc/posix-functions/gethostbyname.texi.
17788         * doc/pastposix-functions/getwd.texi: Renamed from
17789         doc/posix-functions/getwd.texi.
17790         * doc/pastposix-functions/h_errno.texi: Renamed from
17791         doc/posix-functions/h_errno.texi.
17792         * doc/pastposix-functions/index.texi: Renamed from
17793         doc/posix-functions/index.texi.
17794         * doc/pastposix-functions/makecontext.texi: Renamed from
17795         doc/posix-functions/makecontext.texi.
17796         * doc/pastposix-functions/mktemp.texi: Renamed from
17797         doc/posix-functions/mktemp.texi.
17798         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
17799         doc/posix-functions/pthread_attr_getstackaddr.texi.
17800         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
17801         doc/posix-functions/pthread_attr_setstackaddr.texi.
17802         * doc/pastposix-functions/rindex.texi: Renamed from
17803         doc/posix-functions/rindex.texi.
17804         * doc/pastposix-functions/scalb.texi: Renamed from
17805         doc/posix-functions/scalb.texi.
17806         * doc/pastposix-functions/setcontext.texi: Renamed from
17807         doc/posix-functions/setcontext.texi.
17808         * doc/pastposix-functions/swapcontext.texi: Renamed from
17809         doc/posix-functions/swapcontext.texi.
17810         * doc/pastposix-functions/ualarm.texi: Renamed from
17811         doc/posix-functions/ualarm.texi.
17812         * doc/pastposix-functions/usleep.texi: Renamed from
17813         doc/posix-functions/usleep.texi.
17814         * doc/pastposix-functions/vfork.texi: Renamed from
17815         doc/posix-functions/vfork.texi.
17816         * doc/pastposix-functions/wcswcs.texi: Renamed from
17817         doc/posix-functions/wcswcs.texi.
17818         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
17819         (Function Substitutes): Update.
17820
17821 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17822
17823         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
17824         m4/strerror.m4.
17825
17826 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17827             Bruno Haible  <bruno@clisp.org>
17828
17829         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
17830
17831 2008-12-13  Bruno Haible  <bruno@clisp.org>
17832
17833         * modules/strtoull (Depends-on): Remove unistd.
17834
17835 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17836
17837         * modules/strtoull (Depends-on): Add stdlib.
17838
17839 2008-12-11  Simon Josefsson  <simon@josefsson.org>
17840
17841         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
17842
17843 2008-12-10  Jim Meyering  <meyering@redhat.com>
17844
17845         gl_ASSERT: don't say assertions are disabled when they're not
17846         * m4/assert.m4 (gl_ASSERT): Do not make configure report
17847         "checking whether to enable assertions... no", when they are in
17848         fact enabled.  This is solely a bug in the output of configure.
17849         In spite of saying "no", NDEBUG was not defined in that case.
17850         Also, as noted by Eric Blake, leave assertions enabled upon
17851         --enable-assert=INVALID.
17852
17853 2008-12-10  Bruno Haible  <bruno@clisp.org>
17854
17855         Change MODULES.html to refer to POSIX:2008 where possible.
17856         * MODULES.html.sh (POSIX2008_URL): New variable.
17857         (posix_headers): Remove sys/timeb, ucontext.
17858         (posix2001_headers): New variable.
17859         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
17860         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
17861         index, makecontext, mktemp, pthread_attr_getstackaddr,
17862         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
17863         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
17864         (posix2001_functions): New variable.
17865         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
17866         otherwise.
17867
17868 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17869
17870         add missing include to parse-duration.c
17871         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
17872         * modules/parse-duration (Depends-on): Add xalloc.
17873
17874         fix sed script reading maint.mk
17875         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
17876         (syntax-check-rules): Use it.
17877
17878 2008-12-09  Bruno Haible  <bruno@clisp.org>
17879
17880         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
17881         MacOS X 10.4/PowerPC.
17882         Reported by Simon Josefsson.
17883
17884 2008-12-08  Jim Meyering  <meyering@redhat.com>
17885
17886         work around mingw's lack of some S_IF definitions
17887         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
17888         Reported by Simon Josefsson.
17889
17890 2008-12-08  Bruno Haible  <bruno@clisp.org>
17891
17892         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
17893         applied to variables. Needed on MacOS X 10.4/PowerPC.
17894         Reported by Simon Josefsson.
17895
17896 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
17897         and Eric Blake  <ebb9@byu.net>
17898
17899         assert: honor --enable-assert
17900         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
17901         order to honor --enable-assert, rather than treating it as a
17902         synonym for --disable-assert.
17903
17904 2008-12-08  Jim Meyering  <meyering@redhat.com>
17905
17906         * lib/posixtm.c: Remove now-useless declaration of mktime.
17907
17908         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
17909
17910 2008-12-07  Bruno Haible  <bruno@clisp.org>
17911
17912         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
17913         test_once): Mark functions as static.
17914         * tests/test-tls.c (test_tls): Likewise.
17915
17916 2008-12-07  Bruno Haible  <bruno@clisp.org>
17917
17918         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
17919         iconv_register_autodetect.
17920
17921 2008-12-07  Jim Meyering  <meyering@redhat.com>
17922
17923         posixtm.c: avoid a warning
17924         * lib/posixtm.c (posixtime): Don't initialize tm0.
17925         It's no longer needed to placate gcc4's -Wuninitialized,
17926         and the attempt to placate would elicit a new warning.
17927
17928         unicodeio.c: mark unused parameters
17929         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
17930         (fallback_failure_callback): Likewise.
17931
17932 2008-12-07  Bruno Haible  <bruno@clisp.org>
17933
17934         * gnulib-tool (func_create_testdir): When building the tests
17935         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
17936         Reported by Simon Josefsson.
17937
17938 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17939
17940         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
17941
17942 2008-12-06  Bruno Haible  <bruno@clisp.org>
17943
17944         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
17945         Suggested by Eric Blake.
17946
17947 2008-12-06  Bruno Haible  <bruno@clisp.org>
17948
17949         Fix a c-stack test failure on MacOS X.
17950         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
17951         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
17952         handler for SIGBUS as well.
17953         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
17954         install a signal handler for SIGBUS as well.
17955         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
17956
17957 2008-12-06  Bruno Haible  <bruno@clisp.org>
17958
17959         Advocacy documentation.
17960         * doc/gnulib-intro.texi (Benefits): New section.
17961         * doc/gnulib.texi: Update.
17962
17963 2008-12-06  Bruno Haible  <bruno@clisp.org>
17964
17965         Document the 'manywarnings' module.
17966         * doc/manywarnings.texi: New file.
17967         * doc/gnulib.texi: Include it.
17968
17969 2008-12-05  Eric Blake  <ebb9@byu.net>
17970
17971         tests: silence some gcc warnings
17972         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
17973         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
17974         type mismatches.
17975
17976 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17977             Bruno Haible  <bruno@clisp.org>
17978
17979         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
17980
17981 2008-11-29  Jim Meyering  <meyering@redhat.com>
17982
17983         unicodeio.c: mark unused parameters
17984         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
17985         (fallback_failure_callback): Likewise.
17986
17987         fts: fix a thinko
17988         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
17989         (set_stat_type): Return S_IF*-valued "type" directly.
17990         Prompted by James Youngman's spotting a related bug.
17991         Confirmed by further testing through find.
17992
17993         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
17994         * lib/fts.c (D_TYPE): Define.
17995         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
17996         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
17997         (s_ifmt_shift_bits): New function.
17998         (set_stat_type): New function.
17999         (fts_build): When not calling fts_stat, call set_stat_type
18000         to propagate dirent.d_type info to fts_read caller.
18001         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
18002         fts_statp->st_mode type information may be valid.
18003
18004 2008-11-28  Simon Josefsson  <simon@josefsson.org>
18005
18006         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
18007         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
18008         <sds@gnu.org>.
18009
18010 2008-11-20  Bruno Haible  <bruno@clisp.org>
18011
18012         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
18013         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
18014         INCLUDE_NEXT.
18015         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
18016         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
18017         * modules/math (Makefile.am): Substitute
18018         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
18019         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
18020
18021 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
18022             Bruno Haible  <bruno@clisp.org>
18023
18024         * lib/stdint.in.h: Define all type macros so that their expansion is
18025         a single typedef'ed token. Fixes a compilation failure in Boost which
18026         does "using ::int8_t;".
18027
18028 2008-11-18  Simon Josefsson  <simon@josefsson.org>
18029
18030         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
18031         gl_MANYWARN_ALL_GCC.
18032         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
18033         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
18034         * modules/manywarnings: New file.
18035         * MODULES.html.sh: Mention manywarnings module.
18036
18037 2008-11-18  Bruno Haible  <bruno@clisp.org>
18038
18039         * doc/gnulib-tool.texi (Unit tests): New section.
18040
18041 2008-11-18  Simon Josefsson  <simon@josefsson.org>
18042
18043         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
18044         paths like 'lib/po/foo.po'.
18045
18046 2008-11-17  Simon Josefsson  <simon@josefsson.org>
18047
18048         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
18049         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
18050
18051 2008-11-17  Simon Josefsson  <simon@josefsson.org>
18052
18053         * m4/warnings.m4: Use CPPFLAGS to really check whether the
18054         parameter works.
18055
18056 2008-11-17  Simon Josefsson  <simon@josefsson.org>
18057
18058         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
18059
18060 2008-11-17  Bruce Korb  <bkorb@gnu.org>
18061
18062         * modules/parse-duration-tests: New file.
18063         * tests/test-parse-duration.sh: New file.
18064         * tests/test-parse-duration.c: New file.
18065
18066         New module 'parse-duration'.
18067         * lib/parse-duration.h: New file.
18068         * lib/parse-duration.c: New file.
18069         * modules/parse-duration: New file.
18070
18071 2008-11-17  Bruno Haible  <bruno@clisp.org>
18072
18073         * tests/test-select-out.sh: Comment out the first pipe test.
18074         Reported by Simon Josefsson.
18075
18076 2008-11-17  Bruno Haible  <bruno@clisp.org>
18077
18078         * modules/getaddrinfo (Depends-on): Add servent, hostent.
18079         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
18080         gl_HOSTENT.
18081
18082 2008-11-17  Bruno Haible  <bruno@clisp.org>
18083
18084         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
18085         -lnetwork and -lnet. Needed for Haiku and BeOS.
18086
18087 2008-11-16  Bruno Haible  <bruno@clisp.org>
18088
18089         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
18090
18091 2008-11-16  Bruno Haible  <bruno@clisp.org>
18092
18093         Avoid test failure on Haiku.
18094         * tests/test-fsync.c: Include <errno.h>.
18095         (main): Don't require that fsync (0) fails.
18096
18097 2008-11-15  Bruno Haible  <bruno@clisp.org>
18098
18099         New module 'hostent'.
18100         * modules/hostent: New file.
18101         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
18102
18103 2008-11-15  Bruno Haible  <bruno@clisp.org>
18104
18105         New module 'servent'.
18106         * modules/servent: New file.
18107         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
18108
18109 2008-11-15  Bruno Haible  <bruno@clisp.org>
18110
18111         Avoid generating same test program with two different rules.
18112         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
18113         test-frexp to test-frexp-nolibm.
18114         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
18115         test-frexpl to test-frexpl-nolibm.
18116
18117 2008-11-15  Bruno Haible  <bruno@clisp.org>
18118
18119         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
18120         $(FREXPL_LIBM).
18121
18122 2008-11-15  Bruno Haible  <bruno@clisp.org>
18123
18124         * lib/netdb.in.h: Activate the definitions also when the system's
18125         <netdb.h> has 'struct addrinfo'.
18126         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
18127         EAI_OVERFLOW or AI_NUMERICSERV.
18128         * doc/posix-headers/netdb.texi: Document the problem.
18129
18130 2008-11-15  Bruno Haible  <bruno@clisp.org>
18131
18132         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
18133
18134         Make the 'sched' module work on platforms where <sched.h> exists but
18135         is incomplete (such as Haiku).
18136         * lib/sched.in.h; Include the system's <sched.h> if it exists.
18137         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
18138         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
18139         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
18140         HAVE_STRUCT_SCHED_PARAM.
18141         * modules/sched (Depends-on): Add include_next.
18142         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
18143         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
18144         * doc/posix-headers/sched.texi: Document the issue.
18145
18146 2008-11-13  Jim Meyering  <meyering@redhat.com>
18147
18148         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
18149         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
18150         test would fail due to the difference in the Report bugs to ...
18151         line.  The expected address is empty, "<>", while the actual
18152         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
18153
18154 2008-11-12  Bruno Haible  <bruno@clisp.org>
18155
18156         lstat: don't compile lstat.c on systems lacking lstat
18157         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
18158         which don't have lstat; this is handled by lib/sys_stat.in.h already.
18159         Reported by Daniel P. Berrange via Jim Meyering.
18160
18161 2008-11-12  Jim Meyering  <meyering@redhat.com>
18162
18163         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
18164
18165 2008-11-12  Simon Josefsson  <simon@josefsson.org>
18166
18167         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
18168         instead.
18169
18170 2008-11-12  Bruno Haible  <bruno@clisp.org>
18171
18172         * lib/unicodeio.c: Include unistr.h.
18173         (utf8_wctomb): Remove function.
18174         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
18175
18176 2008-11-12  Simon Josefsson  <simon@josefsson.org>
18177
18178         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
18179         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
18180         <bruno@clisp.org>.
18181         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
18182
18183 2008-11-12  Simon Josefsson  <simon@josefsson.org>
18184
18185         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
18186         * doc/gnulib.texi: Add section for warnings.
18187
18188 2008-11-11  Bruno Haible  <bruno@clisp.org>
18189
18190         * lib/sockets.h: Add a comment.
18191
18192 2008-11-11  Karl Berry  <karl@gnu.org>
18193
18194         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
18195
18196 2008-11-11  Eric Blake  <ebb9@byu.net>
18197
18198         fdl.texi: avoid git symlinks
18199         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
18200
18201 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
18202
18203         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
18204
18205 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
18206
18207         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
18208         (gl_WARN_ADD): Substitute $2 if literal.
18209
18210 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
18211
18212         * m4/warning.m4: Remove.
18213
18214 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
18215
18216         * m4/warnings.m4: Almost complete rewrite. :-)
18217
18218 2008-11-10  Simon Josefsson  <simon@josefsson.org>
18219
18220         * modules/warnings: New module.
18221         * m4/warnings.m4: New file.
18222         * MODULES.html.sh: Mention warnings module.
18223         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
18224         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18225
18226 2008-11-10  Eric Blake  <ebb9@byu.net>
18227
18228         fdl.texi: make a symlink to the latest version
18229         * doc/standards.texi: Revert today's earlier change.
18230         * doc/fdl-1.2.texi: Rename from old fdl.texi...
18231         * doc/fdl.texi: ...and replace this with a symlink to the newer
18232         fdl-1.3.texi.
18233
18234 2008-11-10  Bruno Haible  <bruno@clisp.org>
18235
18236         * tests/test-select-fd.c (main): Accept the result file name as fourth
18237         argument.
18238         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
18239         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
18240
18241 2008-11-10  Bruno Haible  <bruno@clisp.org>
18242
18243         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
18244         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
18245         as autoconf-substituted macros.
18246         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
18247         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
18248         gl_NETDB_H_DEFAULTS. Set these variables.
18249         * modules/netdb (Makefile.am): Substitute these variables.
18250
18251 2008-11-10  Eric Blake  <ebb9@byu.net>
18252
18253         standards.texi: include correct file for FDL 1.3
18254         * doc/standards.texi (GNU Free Documentation License): Change
18255         include file to pull in FDL 1.3, not 1.2.
18256
18257         fdl.texi: revert accidental change to license
18258         * doc/fdl.texi: This is FDL 1.2, not 1.3.
18259
18260 2008-11-10  Bruno Haible  <bruno@clisp.org>
18261
18262         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
18263         cross-compiling guesses also when the native compile gives no result.
18264
18265 2008-11-10  Bruno Haible  <bruno@clisp.org>
18266
18267         * lib/spawni.c (__spawni): Force variable into the stack.
18268
18269 2008-11-10  Bruno Haible  <bruno@clisp.org>
18270
18271         Add support for Haiku.
18272         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
18273         glibc and BeOS, but also on Haiku.
18274         * lib/fpurge.c (fpurge): Likewise.
18275         * lib/freadable.c (freadable): Likewise.
18276         * lib/freadahead.c (freadahead): Likewise.
18277         * lib/freading.c (freading): Likewise.
18278         * lib/freadptr.c (freadptr): Likewise.
18279         * lib/freadseek.c (freadptrinc): Likewise.
18280         * lib/fseeko.c (rpl_fseeko): Likewise.
18281         * lib/fseterr.c (fseterr): Likewise.
18282         * lib/fwritable.c (fwritable): Likewise.
18283         * lib/fwriting.c (fwriting): Likewise.
18284         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
18285
18286 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
18287
18288         * lib/config.charset: Treat Haiku like BeOS.
18289
18290 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
18291
18292         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
18293         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
18294
18295 2008-11-08  Bruno Haible  <bruno@clisp.org>
18296
18297         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
18298         AC_CACHE_CHECK.
18299
18300 2008-11-08  Bruno Haible  <bruno@clisp.org>
18301
18302         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
18303
18304 2008-11-08  Bruno Haible  <bruno@clisp.org>
18305
18306         * tests/test-select-fd.c: New file.
18307         * tests/test-select-in.sh: New file.
18308         * tests/test-select-out.sh: New file.
18309         * tests/test-select-stdin.c: New file.
18310         * modules/select-tests (Files): Add the new files.
18311         (Depends-on): Add gettimeofday.
18312         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
18313         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
18314         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
18315
18316 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
18317             Bruno Haible  <bruno@clisp.org>
18318
18319         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
18320
18321 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
18322
18323         * build-aux/pmccabe2html: Added support for C++ source files.
18324
18325 2008-11-05  Ben Pfaff  <blp@gnu.org>
18326
18327         Fix lib/close.c build on Windows.
18328         * modules/close (Files): Add lib/w32sock.h.
18329
18330 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
18331
18332         Accept Bison's NEWS format.
18333         * build-aux/announce-gen (print_news_deltas): Tweak
18334         $re_prefix.
18335
18336 2008-11-04  Bruno Haible  <bruno@clisp.org>
18337
18338         * modules/random_r (Maintainer): Add glibc.
18339
18340 2008-11-04  Simon Josefsson  <simon@josefsson.org>
18341
18342         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
18343         by karl@freefriends.org (Karl Berry).
18344         * doc/alloca.texi: Likewise.
18345         * doc/c-ctype.texi: Likewise.
18346         * doc/c-strcase.texi: Likewise.
18347         * doc/c-strcaseeq.texi: Likewise.
18348         * doc/c-strcasestr.texi: Likewise.
18349         * doc/c-strstr.texi: Likewise.
18350         * doc/c-strtod.texi: Likewise.
18351         * doc/c-strtold.texi: Likewise.
18352         * doc/ctime.texi: Likewise.
18353         * doc/error.texi: Likewise.
18354         * doc/fdl.texi: Likewise.
18355         * doc/gcd.texi: Likewise.
18356         * doc/getdate.texi: Likewise.
18357         * doc/gnulib-intro.texi: Likewise.
18358         * doc/gnulib-tool.texi: Likewise.
18359         * doc/gnulib.texi: Likewise.
18360         * doc/inet_ntoa.texi: Likewise.
18361         * doc/maintain.texi: Likewise.
18362         * doc/make-stds.texi: Likewise.
18363         * doc/quote.texi: Likewise.
18364         * doc/regexprops-generic.texi: Likewise.
18365         * doc/standards.texi: Likewise.
18366         * doc/verify.texi: Likewise.
18367         * doc/visibility.texi: Likewise.
18368         * doc/gnulib.texi (GNU Free Documentation License): Include
18369         fdl-1.3.texi instead of fdl.texi.
18370
18371 2008-11-04  Simon Josefsson  <simon@josefsson.org>
18372
18373         * doc/fdl-1.3.texi: New file, from
18374         <http://www.gnu.org/licenses/fdl-1.3.texi>.
18375         * modules/fdl-1.3: Add.
18376         * MODULES.html.sh: Add fdl-1.3.
18377
18378 2008-11-03  Bruno Haible  <bruno@clisp.org>
18379
18380         Make determination of absolute name of header file work with AIX xlc.
18381         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
18382         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
18383         preprocessing.
18384         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
18385         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
18386
18387 2008-11-03  Simon Josefsson  <simon@josefsson.org>
18388
18389         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
18390         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
18391         <ludo@gnu.org>.
18392
18393 2008-11-02  Bruno Haible  <bruno@clisp.org>
18394
18395         Mark 'strpbrk' obsolete.
18396         * modules/strpbrk (Status, Notice): New sections.
18397         * modules/strtok_r (Depends-on): Add strpbrk.
18398
18399 2008-11-02  Bruno Haible  <bruno@clisp.org>
18400
18401         Mark 'strdup' obsolete.
18402         * modules/strdup (Status, Notice): New sections.
18403         * modules/findprog (Depends-on): Add strdup.
18404         * modules/getaddrinfo (Depends-on): Likewise.
18405         * modules/localename (Depends-on): Likewise.
18406         * modules/relocatable-lib (Depends-on): Likewise.
18407         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
18408         * modules/relocatable-prog (Depends-on): Likewise.
18409         * modules/trim (Depends-on): Likewise.
18410         * modules/unictype/gen-ctype (Depends-on): Likewise.
18411         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
18412
18413 2008-11-02  Bruno Haible  <bruno@clisp.org>
18414
18415         Mark 'strcspn' obsolete.
18416         * modules/strcspn (Status, Notice): New sections.
18417
18418 2008-11-02  Bruno Haible  <bruno@clisp.org>
18419
18420         Mark 'rmdir' obsolete.
18421         * modules/rmdir (Status, Notice): New sections.
18422         * modules/clean-temp (Depends-on): Add rmdir.
18423         * modules/openat (Depends-on): Likewise.
18424
18425 2008-11-02  Bruno Haible  <bruno@clisp.org>
18426
18427         Mark 'raise' obsolete.
18428         * modules/raise (Status, Notice): New sections.
18429         (Include): Specify <signal.h>.
18430         * modules/stdio (Depends-on): Add raise.
18431         * modules/write (Depends-on): Likewise.
18432
18433 2008-11-02  Bruno Haible  <bruno@clisp.org>
18434
18435         Mark 'memset' obsolete.
18436         * modules/memset (Status, Notice): New sections.
18437
18438 2008-11-02  Bruno Haible  <bruno@clisp.org>
18439
18440         Mark 'memmove' obsolete.
18441         * modules/memmove (Status, Notice): New sections.
18442         * modules/argp (Depends-on): Add memmove.
18443         * modules/argz (Depends-on): Likewise.
18444         * modules/canonicalize (Depends-on): Likewise.
18445         * modules/canonicalize-lgpl (Depends-on): Likewise.
18446         * modules/fts (Depends-on): Likewise.
18447         * modules/getcwd (Depends-on): Likewise.
18448         * modules/human (Depends-on): Likewise.
18449         * modules/regex (Depends-on): Likewise.
18450         * modules/striconveh (Depends-on): Likewise.
18451         * modules/trim (Depends-on): Likewise.
18452         * modules/unistr/u8-move (Depends-on): Likewise.
18453         * modules/unistr/u16-move (Depends-on): Likewise.
18454         * modules/unistr/u32-move (Depends-on): Likewise.
18455
18456 2008-11-02  Bruno Haible  <bruno@clisp.org>
18457
18458         Mark 'memcpy' obsolete.
18459         * modules/memcpy (Status, Notice): New sections.
18460
18461 2008-11-02  Bruno Haible  <bruno@clisp.org>
18462
18463         Mark 'memcmp' obsolete.
18464         * modules/memcmp (Status, Notice): New sections.
18465         * modules/argmatch (Depends-on): Add memchr.
18466         * modules/backupfile (Depends-on): Likewise.
18467         * modules/c-strcasestr (Depends-on): Likewise.
18468         * modules/crypto/des (Depends-on): Likewise.
18469         * modules/csharpcomp (Depends-on): Likewise.
18470         * modules/fnmatch (Depends-on): Likewise.
18471         * modules/git-merge-changelog (Depends-on): Likewise.
18472         * modules/isnand (Depends-on): Likewise.
18473         * modules/isnand-nolibm (Depends-on): Likewise.
18474         * modules/isnanf (Depends-on): Likewise.
18475         * modules/isnanf-nolibm (Depends-on): Likewise.
18476         * modules/isnanl (Depends-on): Likewise.
18477         * modules/isnanl-nolibm (Depends-on): Likewise.
18478         * modules/mbchar (Depends-on): Likewise.
18479         * modules/memcoll (Depends-on): Likewise.
18480         * modules/quotearg (Depends-on): Likewise.
18481         * modules/regex (Depends-on): Likewise.
18482         * modules/relocatable-prog (Depends-on): Likewise.
18483         * modules/same (Depends-on): Likewise.
18484         * modules/signbit (Depends-on): Likewise.
18485         * modules/strcasestr-simple (Depends-on): Likewise.
18486         * modules/unictype/gen-ctype (Depends-on): Likewise.
18487         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
18488         * modules/uniname/uniname (Depends-on): Likewise.
18489         * modules/unistr/u8-cmp (Depends-on): Likewise.
18490
18491 2008-11-02  Bruno Haible  <bruno@clisp.org>
18492
18493         Mark 'memchr' obsolete.
18494         * modules/memchr (Status, Notice): New sections.
18495         * modules/argp (Depends-on): Add memchr.
18496         * modules/base64 (Depends-on): Likewise.
18497         * modules/c-strcasestr (Depends-on): Likewise.
18498         * modules/chdir-long (Depends-on): Likewise.
18499         * modules/fnmatch (Depends-on): Likewise.
18500         * modules/getsubopt (Depends-on): Likewise.
18501         * modules/git-merge-changelog (Depends-on): Likewise.
18502         * modules/glob (Depends-on): Likewise.
18503         * modules/strcasestr-simple (Depends-on): Likewise.
18504         * modules/strnlen (Depends-on): Likewise.
18505
18506 2008-11-02  Bruno Haible  <bruno@clisp.org>
18507
18508         Mark 'atexit' obsolete.
18509         * modules/atexit (Status, Notice): New sections.
18510         * modules/chdir-long (Depends-on): Add atexit.
18511         * modules/wait-process (Depends-on): Likewise.
18512
18513 2008-11-02  Bruno Haible  <bruno@clisp.org>
18514
18515         * gnulib-tool: New option --with-obsolete.
18516         (func_usage): Document it.
18517         (func_modules_transitive_closure): Drop obsolete dependencies if
18518         incobsolete is not true.
18519         (func_import): Read and save the incobsolete variable to the cache.
18520
18521 2008-11-02  Bruno Haible  <bruno@clisp.org>
18522
18523         * modules/TEMPLATE-EXTENDED: New field 'Status'.
18524         * gnulib-tool: New option --extract-status.
18525         (func_usage): Document it.
18526         (sed_extract_prog): Recognize it.
18527         (func_get_status): New function.
18528
18529 2008-10-30  Simon Josefsson  <simon@josefsson.org>
18530
18531         * modules/sockets (License): Change from LGPL to LGPLv2+.
18532
18533 2008-10-28  Simon Josefsson  <simon@josefsson.org>
18534
18535         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
18536
18537 2008-10-28  Simon Josefsson  <simon@josefsson.org>
18538
18539         * MODULES.html.sh (Support for systems lacking POSIX:2001):
18540         Mention times and sys_times.
18541         * modules/sys_times, modules/sys_times-tests: New modules.
18542         * modules/times, modules/times-tests: Likewise
18543         * m4/sys_times_h.m4: New file.
18544         * lib/sys_times.in.h: Likewise
18545         * lib/times.c: Likewise.
18546         * tests/test-sys_times.c: Likewise.
18547         * tests/test-times.c: Likewise.
18548         * doc/posix-headers/sys_times.texi: Update.
18549         * doc/posix-functions/times.texi: Update.
18550
18551 2008-10-28  Jim Meyering  <meyering@redhat.com>
18552
18553         * modules/tempname (Depends-on): Add lstat.
18554
18555         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
18556
18557 2008-10-28  Simon Josefsson  <simon@josefsson.org>
18558
18559         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
18560         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
18561         using idiom used elsewhere in gnulib.
18562
18563 2008-10-27  Jim Meyering  <meyering@redhat.com>
18564
18565         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
18566
18567 2008-10-27  Simon Josefsson  <simon@josefsson.org>
18568
18569         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
18570         TESTS_ENVIRONMENT, for shell scripts that needs to call built
18571         programs.
18572         * tests/test-argp-2.sh: Use $EXEEXT when needed.
18573
18574 2008-10-27  Simon Josefsson  <simon@josefsson.org>
18575
18576         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
18577
18578 2008-10-27  Bruno Haible  <bruno@clisp.org>
18579
18580         * tests/test-lstat.c: Include <stdio.h>.
18581
18582 2008-10-27  Simon Josefsson  <simon@josefsson.org>
18583
18584         * modules/lstat-tests: New module.
18585         * tests/test-lstat.c: New file.
18586
18587 2008-10-26  Jim Meyering  <meyering@redhat.com>
18588
18589         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
18590
18591 2008-10-26  Simon Josefsson  <simon@josefsson.org>
18592             Bruno Haible  <bruno@clisp.org>
18593
18594         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
18595         * modules/configmake (Include): Add a note that the include must come
18596         after all system headers.
18597         * lib/javaversion.c: Include configmake.h after all other includes.
18598
18599 2008-10-26  Bruno Haible  <bruno@clisp.org>
18600
18601         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
18602         HAVE_STRUCT_RANDOM_DATA to 1.
18603         (gl_STDLIB_H): Simplify.
18604
18605 2008-10-26  Simon Josefsson  <simon@josefsson.org>
18606
18607         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
18608         substitute HAVE_STRUCT_RANDOM_DATA.
18609         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
18610         random_data.
18611         * modules/stdlib (Makefile.am): Substitute
18612         HAVE_STRUCT_RANDOM_DATA.
18613
18614 2008-10-26  Simon Josefsson  <simon@josefsson.org>
18615
18616         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
18617         * doc/gnulib-intro.texi (Copyright): Likewise.
18618
18619 2008-10-26  Simon Josefsson  <simon@josefsson.org>
18620
18621         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
18622         findings.
18623
18624 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
18625             Bruno Haible  <bruno@clisp.org>
18626
18627         * lib/unistd.in.h: Include <winsock2.h>.
18628         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
18629         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
18630         Provide dummy declarations.
18631         (gethostname): Override.
18632         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
18633         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
18634         gl_PREREQ_SYS_H_WINSOCK2.
18635         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
18636         * doc/posix-functions/gethostname.texi: More details.
18637
18638 2008-10-25  Bruno Haible  <bruno@clisp.org>
18639
18640         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
18641         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
18642         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
18643
18644         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
18645         here ...
18646         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
18647         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
18648         gl_UNISTD_H_DEFAULTS.
18649
18650 2008-10-25  Eric Blake  <ebb9@byu.net>
18651
18652         signbit: avoid spurious compiler failure
18653         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
18654         declarations inside function.
18655
18656 2008-10-24  Simon Josefsson  <simon@josefsson.org>
18657             Bruno Haible  <bruno@clisp.org>
18658
18659         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
18660         * modules/random_r (Depends-on): Add stdint.
18661
18662 2008-10-24  Bruno Haible  <bruno@clisp.org>
18663
18664         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
18665         Eggert.
18666         * modules/strerror (License): Likewise.
18667
18668 2008-10-24  Jim Meyering  <meyering@redhat.com>
18669
18670         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
18671         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
18672
18673 2008-10-24  Eric Blake  <ebb9@byu.net>
18674
18675         getgroups: fix compilation when getgroups is available
18676         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
18677         but with <config.h> override of getgroups disabled.
18678
18679 2008-10-24  Simon Josefsson  <simon@josefsson.org>
18680
18681         * doc/gnulib.texi (Header files): Add note about C++ problems.
18682         Explained by Bruno Haible <bruno@clisp.org>.
18683
18684 2008-10-23  Bruno Haible  <bruno@clisp.org>
18685
18686         Define a dummy SA_NODEFER macro on Interix.
18687         * lib/signal.in.h (SA_NODEFER): Define fallback.
18688         Reported by Aleksey Cheusov <cheusov@tut.by> via
18689         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
18690
18691 2008-10-23  Bruno Haible  <bruno@clisp.org>
18692
18693         * modules/freadahead (License): Change to LGPLv2+.
18694         Suggested by Simon Josefsson.
18695
18696 2008-10-23  Jim Meyering  <meyering@redhat.com>
18697
18698         random_r: new module
18699         * modules/random_r: New file.
18700         * m4/random_r.m4: New file.
18701         * lib/random_r.c: New file, from glibc.
18702         * modules/random_r-tests: New file.
18703         * tests/test-random_r.c: New file.
18704         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
18705          Declare.
18706         (RAND_MAX): Define.
18707         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
18708         * modules/stdlib: Substitute them, too.
18709         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
18710         * doc/glibc-functions/initstate_r.texi: Mention the new module.
18711         * doc/glibc-functions/random_r.texi: Likewise.
18712         * doc/glibc-functions/setstate_r.texi: Likewise.
18713         * doc/glibc-functions/srandom_r.texi: Likewise.
18714         * config/srclist.txt: Mention it.
18715
18716 2008-10-23  David Lutterkort  <lutter@redhat.com>
18717
18718         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
18719         link requirement
18720
18721 2008-10-23  Jim Meyering  <meyering@redhat.com>
18722
18723         selinux-h: mark parameters of stub functions as intentionally unused
18724         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
18725         * lib/se-context.in.h: Likewise.
18726
18727 2008-10-22  Simon Josefsson  <simon@josefsson.org>
18728
18729         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
18730
18731 2008-10-22  Simon Josefsson  <simon@josefsson.org>
18732
18733         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
18734
18735 2008-10-22  Eric Blake  <ebb9@byu.net>
18736
18737         glthread/thread: avoid compiler warning
18738         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
18739         Add unreachable abort to silence compiler.
18740
18741 2008-10-22  Eric Blake  <ebb9@byu.net>
18742
18743         netdb: also supply struct addrinfo for cygwin 1.5.x
18744         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
18745         older cygwin.
18746         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
18747         cygwin.
18748         * doc/posix-headers/netdb.texi (netdb.h): Document this.
18749
18750 2008-10-22  Bruno Haible  <bruno@clisp.org>
18751
18752         * users.txt: Update entry about pspp.
18753
18754 2008-10-21  Bruno Haible  <bruno@clisp.org>
18755
18756         Simplification.
18757         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
18758         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
18759
18760         Simplification.
18761         * lib/ioctl.c (ioctl): Don't undefine.
18762         * lib/socket.c (socket): Don't undefine.
18763
18764         Remove unused module indicator macros.
18765         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
18766         GNULIB_$1 as a C macro.
18767
18768         * doc/posix-functions/close.texi: Undo last change.
18769         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
18770         Windows platforms.
18771
18772 2008-10-21  Bruno Haible  <bruno@clisp.org>
18773
18774         Add gethostname() declaration to <unistd.h>.
18775         * lib/unistd.in.h (gethostname): New declaration.
18776         * lib/gethostname.c: Include <unistd.h>.
18777         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
18778         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
18779         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
18780         and HAVE_GETHOSTNAME.
18781         * modules/gethostname (Depends-on): Add unistd.
18782         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
18783         (Include): Specify <unistd.h>.
18784         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
18785         HAVE_GETHOSTNAME.
18786         * tests/test-gethostname.c: Include <unistd.h> first.
18787
18788 2008-10-21  Bruno Haible  <bruno@clisp.org>
18789
18790         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
18791         * modules/select-tests (Depends-on): Likewise.
18792         Reported by Simon Josefsson.
18793
18794 2008-10-21  Simon Josefsson  <simon@josefsson.org>
18795
18796         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
18797         * lib/accept.c: New file, based on winsock.c.
18798         * lib/bind.c: New file, based on winsock.c.
18799         * lib/connect.c: New file, based on winsock.c.
18800         * lib/getpeername.c: New file, based on winsock.c.
18801         * lib/getsockname.c: New file, based on winsock.c.
18802         * lib/getsockopt.c: New file, based on winsock.c.
18803         * lib/ioctl.c: New file, based on winsock.c.
18804         * lib/listen.c: New file, based on winsock.c.
18805         * lib/recv.c: New file, based on winsock.c.
18806         * lib/recvfrom.c: New file, based on winsock.c.
18807         * lib/send.c: New file, based on winsock.c.
18808         * lib/sendto.c: New file, based on winsock.c.
18809         * lib/setsockopt.c: New file, based on winsock.c.
18810         * lib/shutdown.c: New file, based on winsock.c.
18811         * lib/socket.c: New file, based on winsock.c.
18812         * lib/w32sock.h: New file, based on winsock.c.
18813         * lib/winsock.c: Remove file.
18814         * modules/accept: Likewise.
18815         * modules/bind: Likewise.
18816         * modules/connect: Likewise.
18817         * modules/getpeername: Likewise.
18818         * modules/getsockname: Likewise.
18819         * modules/getsockopt: Likewise.
18820         * modules/ioctl: Likewise.
18821         * modules/listen: Likewise.
18822         * modules/recv: Likewise.
18823         * modules/recvfrom: Likewise.
18824         * modules/send: Likewise.
18825         * modules/sendto: Likewise.
18826         * modules/setsockopt: Likewise.
18827         * modules/shutdown: Likewise.
18828         * modules/socket: Use socket.c instead of winsock.c.
18829         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
18830         * doc/posix-functions/accept.texi: Doc fix.
18831         * doc/posix-functions/bind.texi: Doc fix.
18832         * doc/posix-functions/close.texi: Doc fix.
18833         * doc/posix-functions/connect.texi: Doc fix.
18834         * doc/posix-functions/getpeername.texi: Doc fix.
18835         * doc/posix-functions/getsockname.texi: Doc fix.
18836         * doc/posix-functions/getsockopt.texi: Doc fix.
18837         * doc/posix-functions/ioctl.texi: Doc fix.
18838         * doc/posix-functions/listen.texi: Doc fix.
18839         * doc/posix-functions/recv.texi: Doc fix.
18840         * doc/posix-functions/recvfrom.texi: Doc fix.
18841         * doc/posix-functions/send.texi: Doc fix.
18842         * doc/posix-functions/sendto.texi: Doc fix.
18843         * doc/posix-functions/setsockopt.texi: Doc fix.
18844         * doc/posix-functions/shutdown.texi: Doc fix.
18845         * doc/posix-functions/socket.texi: Doc fix.
18846
18847 2008-10-20  Bruno Haible  <bruno@clisp.org>
18848
18849         Take into account the role of SIGABRT_COMPAT on Windows 2008.
18850         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
18851         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
18852         as an alias for SIGABRT.
18853         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
18854         (sigaction): Map it to SIGABRT.
18855         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
18856
18857 2008-10-20  Bruno Haible  <bruno@clisp.org>
18858
18859         * lib/fts.c: Don't include lstat.h.
18860         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
18861
18862         Move the lstat() declaration to <sys/stat.h>.
18863         * lib/lstat.h: Remove file.
18864         * lib/sys_stat.in.h: Add special invocation convention.
18865         (lstat): New declaration.
18866         * lib/lstat.c (orig_lstat): New function.
18867         (rpl_lstat): Use orig_lstat instead of lstat.
18868         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
18869         AC_C_INLINE. Set REPLACE_LSTAT.
18870         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
18871         and REPLACE_LSTAT.
18872         * modules/lstat (Files): Remove lib/lstat.h.
18873         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
18874         (Include): Specify <sys/stat.h> instead of lstat.h.
18875         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
18876         REPLACE_LSTAT.
18877         * NEWS: Mention the change.
18878
18879 2008-10-20  Bruno Haible  <bruno@clisp.org>
18880
18881         * modules/posix_spawn-tests: New file.
18882         * tests/test-posix_spawn3.c: New file.
18883
18884 2008-10-20  Bruno Haible  <bruno@clisp.org>
18885
18886         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
18887         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
18888         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
18889         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
18890         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
18891
18892 2008-10-20  Bruno Haible  <bruno@clisp.org>
18893
18894         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
18895         of posix_spawn on AIX 5.3.
18896
18897 2008-10-20  Bruno Haible  <bruno@clisp.org>
18898
18899         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
18900
18901 2008-10-20  Bruno Haible  <bruno@clisp.org>
18902
18903         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
18904         of AC_LANG_PROGRAM.
18905
18906 2008-10-20  Simon Josefsson  <simon@josefsson.org>
18907
18908         * lib/netdb.in.h: Don't define GNU specific constants until they
18909         are supported or needed.  Reported by Bruno Haible
18910         <bruno@clisp.org>.
18911
18912 2008-10-20  Simon Josefsson  <simon@josefsson.org>
18913
18914         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
18915
18916 2008-10-20  Simon Josefsson  <simon@josefsson.org>
18917
18918         * lib/getaddrinfo.h: Remove file.
18919         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
18920         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
18921         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
18922         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
18923         * modules/netdb: Substitute GNULIB_GETADDRINFO.
18924         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
18925         * tests/test-getaddrinfo.c: Likewise.
18926         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
18927         * NEWS: Mention change.
18928
18929 2008-10-19  Bruno Haible  <bruno@clisp.org>
18930
18931         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
18932
18933 2008-10-19  Bruno Haible  <bruno@clisp.org>
18934
18935         * lib/wait-process.c: Include simply <sys/wait.h>.
18936         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
18937         WIFSTOPPED): Remove fallback definitions.
18938         * modules/wait-process (Depends-on): Add sys_wait.
18939
18940         New module 'sys_wait'.
18941         * modules/sys_wait: New file.
18942         * lib/sys_wait.in.h: New file, partially copied from
18943         lib/wait-process.c.
18944         * m4/sys_wait_h.m4: New file.
18945         * doc/posix-headers/sys_wait.texi: Mention the new module.
18946
18947 2008-10-19  Bruno Haible  <bruno@clisp.org>
18948
18949         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
18950
18951 2008-10-19  Bruno Haible  <bruno@clisp.org>
18952
18953         Assume that waitpid() fills an 'int' status, not a 'union wait'.
18954         * lib/wait-process.c (WAIT_T): Remove type.
18955         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
18956         (wait_subprocess): Update.
18957
18958 2008-10-19  Bruno Haible  <bruno@clisp.org>
18959
18960         New module 'atoll'.
18961         * modules/atoll: New file.
18962         * lib/stdlib.in.h (atoll): New declaration.
18963         * lib/atoll.c: New file, from glibc with modifications.
18964         * m4/atoll.m4: New file.
18965         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
18966         HAVE_ATOLL.
18967         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
18968         * doc/posix-functions/atoll.texi: Mention the new module.
18969
18970 2008-10-19  Bruno Haible  <bruno@clisp.org>
18971
18972         Add strtoull() declaration to <stdlib.h>.
18973         * lib/stdlib.in.h (strtoull): New declaration.
18974         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
18975         Set HAVE_STRTOULL.
18976         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
18977         HAVE_STRTOULL.
18978         * modules/strtoull (Depends-on): Add stdlib.
18979         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
18980         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
18981         HAVE_STRTOULL.
18982
18983 2008-10-19  Bruno Haible  <bruno@clisp.org>
18984
18985         Add strtoll() declaration to <stdlib.h>.
18986         * lib/stdlib.in.h (strtoll): New declaration.
18987         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
18988         Set HAVE_STRTOLL.
18989         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
18990         HAVE_STRTOLL.
18991         * modules/strtoll (Depends-on): Add stdlib.
18992         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
18993         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
18994
18995 2008-10-19  Bruno Haible  <bruno@clisp.org>
18996
18997         * modules/bcopy (Depends-on): Add strings.
18998         (Include): Specify <strings.h>.
18999
19000 2008-10-19  Bruno Haible  <bruno@clisp.org>
19001
19002         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
19003
19004 2008-10-19  Bruno Haible  <bruno@clisp.org>
19005
19006         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
19007         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
19008         mingw.
19009
19010 2008-10-19  Bruno Haible  <bruno@clisp.org>
19011
19012         * lib/atanl.c: Don't include isnanl.h.
19013         * lib/cosl.c: Likewise.
19014         * lib/ldexpl.c: Likewise.
19015         * lib/logl.c: Likewise.
19016         * lib/sinl.c: Likewise.
19017         * lib/sqrtl.c: Likewise.
19018         * lib/tanl.c: Likewise.
19019
19020         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
19021         * lib/isnanf.h: Remove file.
19022         * lib/isnand.h: Remove file.
19023         * lib/isnanl.h: Remove file.
19024         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
19025         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
19026         macros.
19027         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
19028         HAVE_ISNANF, don't define it as a C macro.
19029         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
19030         HAVE_ISNAND, don't define it as a C macro.
19031         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
19032         HAVE_ISNANL, don't define it as a C macro.
19033         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
19034         HAVE_ISNAN[FDL].
19035         * modules/isnanf (Files): Remove lib/isnanf.h.
19036         (Depends-on): Add math.
19037         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
19038         (Include): Specify <math.h> instead of isnanf.h.
19039         * modules/isnand (Files): Remove lib/isnand.h.
19040         (Depends-on): Add math.
19041         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
19042         (Include): Specify <math.h> instead of isnand.h.
19043         * modules/isnanl (Files): Remove lib/isnanl.h.
19044         (Depends-on): Add math.
19045         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
19046         (Include): Specify <math.h> instead of isnanl.h.
19047         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
19048         HAVE_ISNAN[FDL].
19049         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
19050         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
19051         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
19052         * NEWS: Mention the change.
19053
19054 2008-10-18  Bruno Haible  <bruno@clisp.org>
19055
19056         Add getusershell(), setusershell(), endusershell() declarations to
19057         <unistd.h>.
19058         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
19059         declarations.
19060         * lib/getusershell.c: Include unistd.h.
19061         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
19062         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
19063         HAVE_GETUSERSHELL.
19064         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
19065         and HAVE_GETUSERSHELL.
19066         * modules/getusershell (Depends-on): Add unistd, extensions.
19067         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
19068         (Include): Specify <unistd.h>.
19069         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
19070         HAVE_GETUSERSHELL.
19071
19072 2008-10-18  Bruno Haible  <bruno@clisp.org>
19073
19074         Add a getloadavg() declaration to <stdlib.h>.
19075         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
19076         getloadavg declaration.
19077         (getloadavg): New declaration.
19078         * lib/getloadavg.c: Include <stdlib.h> first.
19079         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
19080         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
19081         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
19082         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
19083         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
19084         * modules/getloadavg (Depends-on): Add stdlib, extensions.
19085         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
19086         (Include): Specify <stdlib.h>.
19087         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
19088         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
19089
19090 2008-10-18  Bruno Haible  <bruno@clisp.org>
19091
19092         * lib/dirchownmod.c: Don't include lchmod.h.
19093
19094         Move the lchmod() declaration to <sys/stat.h>.
19095         * lib/lchmod.h: Remove file.
19096         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
19097         (lchmod): New declaration, moved here from lib/lchown.h.
19098         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
19099         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
19100         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
19101         and HAVE_LCHMOD.
19102         * modules/lchmod (Files): Remove lib/lchmod.h.
19103         (Depends-on): Add sys_stat, extensions.
19104         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
19105         (Include): Specify <sys/stat.h> instead of lchmod.h.
19106         * modules/sys_stat (Depends-on): Add link-warning.
19107         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
19108         definition of GL_LINK_WARNING.
19109         * NEWS: Mention the change.
19110
19111 2008-10-18  Bruno Haible  <bruno@clisp.org>
19112
19113         * lib/fchdir.c: Don't include dirfd.h.
19114         * lib/fts.c: Likewise.
19115         * lib/getcwd.c: Likewise.
19116         * lib/glob.c: Likewise.
19117
19118         Move the dirfd() declaration to <dirent.h>.
19119         * lib/dirfd.h: Remove file.
19120         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
19121         (dirfd): New declaration.
19122         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
19123         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
19124         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
19125         HAVE_DECL_DIRFD.
19126         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
19127         HAVE_DECL_DIRFD.
19128         * modules/dirfd (Files): Remove lib/dirfd.h.
19129         (Depends-on): Add dirent, extensions.
19130         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
19131         (Include): Specify <dirent.h> instead of dirfd.h.
19132         * modules/dirent (Depends-on): Add link-warning.
19133         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
19134         definition of GL_LINK_WARNING.
19135         * NEWS: Mention the change.
19136
19137 2008-10-18  Bruno Haible  <bruno@clisp.org>
19138
19139         Move the euidaccess() declaration to <unistd.h>.
19140         * lib/euidaccess.h: Remove file.
19141         * lib/unistd.in.h (euidaccess): New declaration.
19142         * lib/euidaccess.c: Don't include euidaccess.h.
19143         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
19144         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
19145         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
19146         and HAVE_EUIDACCESS.
19147         * modules/euidaccess (Files): Remove lib/euidaccess.h.
19148         (Depends-on): Add unistd.
19149         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
19150         (Include): Specify <unistd.h> instead of euidaccess.h.
19151         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
19152         HAVE_EUIDACCESS.
19153         * NEWS: Mention the change.
19154
19155 2008-10-18  Bruno Haible  <bruno@clisp.org>
19156
19157         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
19158
19159         Move the getdomainname() declaration to <unistd.h>.
19160         * lib/getdomainname.h: Remove file.
19161         * lib/unistd.in.h (getdomainname): New declaration.
19162         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
19163         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
19164         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
19165         HAVE_GETDOMAINNAME.
19166         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19167         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
19168         * modules/getdomainname (Files): Remove lib/getdomainname.h.
19169         (Depends-on): Add unistd, extensions.
19170         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
19171         (Includes): Specify <unistd.h> instead of getdomainname.h.
19172         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
19173         HAVE_GETDOMAINNAME.
19174         * NEWS: Mention the change.
19175
19176 2008-10-18  Bruno Haible  <bruno@clisp.org>
19177
19178         * modules/dirent: New file.
19179         * m4/dirent_h.m4: New file.
19180         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
19181         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
19182         * modules/fchdir (Files): Remove lib/dirent.in.h.
19183         (Depends-on): Add dirent.
19184         (Makefile.am): Move rules to modules/dirent.
19185         * doc/posix-headers/dirent.texi: Mention the new module.
19186
19187 2008-10-18  Bruno Haible  <bruno@clisp.org>
19188
19189         Avoid -Wunused-parameter warnings in public gnulib header files.
19190         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
19191         macro.
19192         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
19193
19194 2008-10-18  Bruno Haible  <bruno@clisp.org>
19195
19196         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
19197         * doc/glibc-functions/error.texi: Mention the module 'error'.
19198         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
19199         * doc/glibc-functions/getdomainname.texi: Mention the module
19200         'getdomainname'.
19201         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
19202         * doc/glibc-functions/getpagesize.texi: Mention the module
19203         'getpagesize'.
19204         * doc/glibc-functions/getusershell.texi: Mention the module
19205         'getusershell'.
19206         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
19207         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
19208         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
19209         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
19210         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
19211         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
19212         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
19213         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
19214         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
19215         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
19216         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
19217         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
19218         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
19219         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
19220
19221 2008-10-17  Bruno Haible  <bruno@clisp.org>
19222
19223         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
19224         HP-UX and IRIX, use -0.0L.
19225         * tests/test-ceill.c (minus_zero): Likewise.
19226         * tests/test-floorl.c (minus_zero): Likewise.
19227         * tests/test-frexpl.c (minus_zero): Likewise.
19228         * tests/test-isnan.c (minus_zerol): Likewise.
19229         * tests/test-isnanl.h (minus_zero): Likewise.
19230         * tests/test-ldexpl.c (minus_zero): Likewise.
19231         * tests/test-roundl.c (minus_zero): Likewise.
19232         * tests/test-signbit.c (minus_zerol): Likewise.
19233         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
19234         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
19235         * tests/test-truncl.c (minus_zero): Likewise.
19236         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
19237         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
19238         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
19239         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
19240
19241 2008-10-17  Bruno Haible  <bruno@clisp.org>
19242
19243         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
19244         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
19245         that it gets activated only for gcc >= 3.0.
19246         * lib/dirent.in.h: Likewise.
19247         * lib/errno.in.h: Likewise.
19248         * lib/fcntl.in.h: Likewise.
19249         * lib/float.in.h: Likewise.
19250         * lib/iconv.in.h: Likewise.
19251         * lib/inttypes.in.h: Likewise.
19252         * lib/locale.in.h: Likewise.
19253         * lib/math.in.h: Likewise.
19254         * lib/netdb.in.h: Likewise.
19255         * lib/netinet_in.in.h: Likewise.
19256         * lib/search.in.h: Likewise.
19257         * lib/signal.in.h: Likewise.
19258         * lib/spawn.in.h: Likewise.
19259         * lib/stdarg.in.h: Likewise.
19260         * lib/stdint.in.h: Likewise.
19261         * lib/stdio.in.h: Likewise.
19262         * lib/stdlib.in.h: Likewise.
19263         * lib/string.in.h: Likewise.
19264         * lib/strings.in.h: Likewise.
19265         * lib/sys_file.in.h: Likewise.
19266         * lib/sys_ioctl.in.h: Likewise.
19267         * lib/sys_select.in.h: Likewise.
19268         * lib/sys_socket.in.h: Likewise.
19269         * lib/sys_stat.in.h: Likewise.
19270         * lib/sys_time.in.h: Likewise.
19271         * lib/sysexits.in.h: Likewise.
19272         * lib/time.in.h: Likewise.
19273         * lib/unistd.in.h: Likewise.
19274         * lib/wchar.in.h: Likewise.
19275         * lib/wctype.in.h: Likewise.
19276         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
19277
19278 2008-10-17  Jim Meyering  <meyering@redhat.com>
19279
19280         ignore-value: don't depend on inline module
19281         * modules/ignore-value (Depends-on): Remove 'inline'.
19282         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
19283         Suggestion from Bruno Haible.
19284
19285 2008-10-17  Bruno Haible  <bruno@clisp.org>
19286
19287         New implementation of condition variables for Win32.
19288         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
19289         (gl_linked_waitqueue_t): New type.
19290         (gl_cond_t): Use it.
19291         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
19292         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
19293         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
19294         (glthread_cond_init_func, glthread_cond_wait_func,
19295         glthread_cond_timedwait_func, glthread_cond_signal_func,
19296         glthread_cond_broadcast_func, glthread_cond_destroy_func):
19297         Reimplemented on the basis of gl_linked_waitqueue_t.
19298         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
19299         gl_waitqueue_t.
19300         (gl_rwlock_t): Update.
19301         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
19302
19303 2008-10-17  Simon Josefsson  <simon@josefsson.org>
19304
19305         * modules/recvfrom (Depends-on): Add dependency on getpeername.
19306         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
19307
19308 2008-10-17  Jim Meyering  <meyering@redhat.com>
19309
19310         ignore-value: new module
19311         * modules/ignore-value: New file.
19312         * lib/ignore-value.h: New file.
19313         * MODULES.html.sh (Compiler warning management): New section,
19314         just for this module.  More to come.
19315
19316 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
19317
19318         open-safer.c: avoid 'signed and unsigned in conditional...' warning
19319         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
19320         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
19321
19322 2008-10-16  Jim Meyering  <meyering@redhat.com>
19323
19324         openat-die.c: avoid 'no previous prototype' warning
19325         * lib/openat-die.c: Include "openat.h".
19326         Reported by Reuben Thomas <rrt@sc3d.org>.
19327
19328 2008-10-16  Simon Josefsson  <simon@josefsson.org>
19329
19330         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
19331         * lib/netdb.in.h: Fix typo.
19332         Reported by Bruno Haible  <bruno@clisp.org>
19333
19334         * lib/netdb.in.h: Include sys/socket.h for platforms without
19335         netdb.h, to get structures like hostent on MinGW.
19336         * modules/netdb (Depends-on): Add sys_socket.
19337
19338 2008-10-15  Simon Josefsson  <simon@josefsson.org>
19339
19340         * modules/netdb, modules/netdb-tests: New file.
19341         * m4/netdb_h.m4: New file.
19342         * lib/netdb.in.h: Add, currently just an empty file pending
19343         definitions.
19344         * tests/test-netdb.c: New file.
19345         * doc/posix-headers/netdb.texi: Mention that we replace it if
19346         needed.
19347         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
19348         netdb.
19349
19350 2008-10-15  Simon Josefsson  <simon@josefsson.org>
19351
19352         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
19353         with code.
19354
19355 2008-10-13  Bruno Haible  <bruno@clisp.org>
19356
19357         * lib/glthread/cond.c (glthread_cond_wait_func,
19358         glthread_cond_timedwait_func): Add a comment.
19359
19360 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
19361
19362         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
19363         * tests/test-select.c: Likewise,
19364
19365 2008-10-13  Bruno Haible  <bruno@clisp.org>
19366
19367         * lib/glthread/cond.c (glthread_cond_wait_func,
19368         glthread_cond_timedwait_func): Fix variable name.
19369         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
19370
19371 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
19372
19373         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
19374         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
19375         struct sockaddr.sa_len.
19376         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
19377
19378 2008-10-13  Simon Josefsson  <simon@josefsson.org>
19379
19380         * build-aux/pmccabe2html: Add css and css_url parameters.
19381
19382 2008-10-12  Bruno Haible  <bruno@clisp.org>
19383
19384         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
19385         calling aclx_get.
19386         Reported by Rainer Tammer <tammer@tammer.net>.
19387
19388 2008-10-12  Bruno Haible  <bruno@clisp.org>
19389
19390         Use msvcrt aware primitives for creation/termination of Win32 threads.
19391         * lib/glthread/thread.c: Include <process.h>.
19392         (glthread_create_func): Use _beginthreadex instead of CreateThread.
19393         (wrapper_func): Update signature.
19394         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
19395
19396 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
19397             Bruno Haible  <bruno@clisp.org>
19398
19399         Provide a Win32 implementation of the 'cond' module.
19400         * lib/glthread/cond.h [USE_WIN32]: New implementation.
19401         * lib/glthread/cond.c (glthread_cond_init_func,
19402         glthread_cond_wait_func, glthread_cond_timedwait_func,
19403         glthread_cond_signal_func, glthread_cond_broadcast_func,
19404         glthread_cond_destroy_func) [USE_WIN32]: New functions.
19405         * modules/cond (Dependencies): Add gettimeofday.
19406
19407 2008-10-11  Bruno Haible  <bruno@clisp.org>
19408
19409         Make sleep work on older versions of mingw.
19410         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
19411         only whether it exists.
19412         * doc/posix-functions/sleep.texi: Mention the problem with older
19413         versions of mingw.
19414
19415 2008-10-11  Bruno Haible  <bruno@clisp.org>
19416
19417         New module 'shutdown'.
19418         * modules/shutdown: New file.
19419         * lib/sys_socket.in.h (shutdown): New declaration.
19420         * lib/winsock.c (shutdown): New function.
19421         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
19422         GNULIB_SHUTDOWN.
19423         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
19424         * doc/posix-functions/shutdown.texi: Document the new module.
19425
19426 2008-10-11  Jim Meyering  <meyering@redhat.com>
19427
19428         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
19429
19430 2008-10-11  Bruno Haible  <bruno@clisp.org>
19431
19432         New module 'fclose'.
19433         * modules/fclose: New file.
19434         * lib/stdio.in.h (fclose): New declaration.
19435         * lib/fclose.c: New file.
19436         * m4/fclose.m4: New file.
19437         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
19438         REPLACE_FCLOSE.
19439         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
19440         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
19441         REPLACE_FCLOSE.
19442         * modules/close (Depends-on): fclose.
19443         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
19444
19445 2008-10-11  Bruno Haible  <bruno@clisp.org>
19446
19447         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
19448         set errno and don't call _close.
19449
19450 2008-10-10  Bruno Haible  <bruno@clisp.org>
19451
19452         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
19453         ACL, not afterwards. Fixes test failure on Cygwin.
19454
19455 2008-10-09  Ben Pfaff  <blp@gnu.org>
19456
19457         * build-aux/announce-gen: Fix gnulib version related part of usage
19458         message.  Die with a useful error message if no tarballs are
19459         found.
19460
19461 2008-10-10  Jim Meyering  <meyering@redhat.com>
19462
19463         bootstrap: use git's --depth=N option only if it's supported
19464         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
19465         recognize the --depth option.  Reported by Pádraig Brady.
19466
19467 2008-10-09  Bruno Haible  <bruno@clisp.org>
19468
19469         New module 'ioctl'.
19470         * modules/ioctl: New file.
19471         * lib/sys_socket.in.h (ioctl): Remove declaration.
19472         * lib/winsock.c: Include <sys/ioctl.h>.
19473         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
19474         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
19475         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
19476         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
19477         * doc/posix-functions/ioctl.texi: Mention the new module.
19478
19479 2008-10-09  Bruno Haible  <bruno@clisp.org>
19480
19481         New module 'sys_ioctl'.
19482         * lib/sys_ioctl.in.h: New file.
19483         * m4/sys_ioctl_h.m4: New file.
19484         * modules/sys_ioctl: New file.
19485         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
19486
19487 2008-10-09  Bruno Haible  <bruno@clisp.org>
19488
19489         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
19490         * lib/winsock.c: Include <stdarg.h>.
19491         (rpl_ioctl): Change to second argument 'int' and then varargs.
19492
19493 2008-10-09  Bruno Haible  <bruno@clisp.org>
19494
19495         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
19496         when the sys_socket module is present and the system has <winsock2.h>.
19497
19498 2008-10-09  Bruno Haible  <bruno@clisp.org>
19499
19500         * doc/posix-functions/close.texi: Mention module 'close' instead of
19501         module 'sys_socket'.
19502
19503 2008-10-09  Bruno Haible  <bruno@clisp.org>
19504
19505         * doc/glibc-headers/sys_ioctl.texi: New file.
19506         * doc/gnulib.texi: Include it.
19507
19508 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
19509             Bruno Haible  <bruno@clisp.org>
19510
19511         Combine the two replacements of 'close'.
19512         * lib/sys_socket.in.h (close): Define to a reminder to include
19513         <unistd.h>.
19514         (_gl_close_fd_maybe_socket): New declaration.
19515         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
19516         * lib/winsock.c (close): Remove undefinition.
19517         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
19518         needed for the gnulib module 'close'.
19519         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
19520         define to an error symbol or to a warning, if suitable.
19521         * lib/close.c: Include <sys/socket.h>.
19522         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
19523         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
19524         UNISTD_H_HAVE_WINSOCK2_H.
19525         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
19526         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19527         UNISTD_H_HAVE_WINSOCK2_H.
19528         * modules/sys_socket (Files): Add m4/unistd_h.m4.
19529         (configure.ac): Set a module indicator.
19530         (Makefile.am): Substitute GNULIB_CLOSE.
19531         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
19532         * modules/poll-tests (Depends-on): Add close.
19533         * modules/select-tests (Depends-on): Likewise.
19534
19535 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
19536             Bruno Haible  <bruno@clisp.org>
19537
19538         New module 'close'.
19539         * modules/close: New file.
19540         * lib/unistd.in.h (close): Move declaration out of the
19541         FCHDIR_REPLACEMENT scope.
19542         (_gl_unregister_fd): New declaration.
19543         * lib/close.c: New file.
19544         * lib/fchdir.c (rpl_close): Remove function.
19545         * m4/close.m4: New file.
19546         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
19547         close.
19548         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
19549         REPLACE_CLOSE.
19550         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
19551         REPLACE_CLOSE.
19552         * modules/fchdir (Depends-on): Add close.
19553
19554 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
19555             Bruno Haible  <bruno@clisp.org>
19556
19557         * lib/fcntl.in.h (open): Simplify conditionals.
19558         (_gl_register_fd): New declaration.
19559         * lib/fchdir.c (rpl_open): Remove function.
19560         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
19561         also.
19562         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
19563         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
19564         open.
19565
19566 2008-10-09  Jim Meyering  <meyering@redhat.com>
19567
19568         GNUmakefile: use the more name-space-friendly "_version"
19569         * top/GNUmakefile (_dummy): Update.
19570         (_version): Rename from "version".
19571
19572 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
19573             Bruno Haible  <bruno@clisp.org>
19574
19575         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
19576         rpl_close.
19577         (_gl_register_fd): New function, extracted from rpl_open.
19578         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
19579         (rpl_open, rpl_opendir): Use _gl_register_fd.
19580
19581 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
19582
19583         Fix organization of 'open' replacement.
19584         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
19585         (gl_FUNC_OPEN): Use it.
19586         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
19587
19588 2008-10-08  Bruno Haible  <bruno@clisp.org>
19589
19590         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
19591
19592 2008-10-08  Simon Josefsson  <simon@josefsson.org>
19593
19594         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
19595         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
19596         listen).
19597
19598 2008-10-08  Eric Blake  <ebb9@byu.net>
19599
19600         GNUmakefile: add 'make version' target
19601         * top/GNUmakefile (_curr-ver): Split version update rules...
19602         (version): ...into a target.
19603
19604 2008-10-07  Bruno Haible  <bruno@clisp.org>
19605
19606         Use a more portable replacement expression for -0.0L.
19607         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
19608         instead of -0.0L. Fix m4 quotation.
19609
19610         * tests/test-signbit.c: Include <float.h>.
19611         (minus_zero): New variable.
19612         (test_signbitl): Use minus_zero instead of -zero.
19613         * modules/signbit-tests (Depends-on): Add float.
19614
19615         * tests/test-ceill.c: Include <float.h>.
19616         (zero): Remove variable.
19617         (minus_zero): New variable.
19618         (main): Use minus_zero instead of -zero.
19619         * modules/ceill-tests (Depends-on): Add float.
19620
19621         * tests/test-floorl.c: Include <float.h>.
19622         (zero): Remove variable.
19623         (minus_zero): New variable.
19624         (main): Use minus_zero instead of -zero.
19625         * modules/floorl-tests (Depends-on): Add float.
19626
19627         * tests/test-roundl.c: Include <float.h>.
19628         (zero): Remove variable.
19629         (minus_zero): New variable.
19630         (main): Use minus_zero instead of -zero.
19631         * modules/roundl-tests (Depends-on): Add float.
19632
19633         * tests/test-truncl.c: Include <float.h>.
19634         (zero): Remove variable.
19635         (minus_zero): New variable.
19636         (main): Use minus_zero instead of -zero.
19637         * modules/truncl-tests (Depends-on): Add float.
19638
19639         * tests/test-frexpl.c (zero): Remove variable.
19640         (minus_zero): New variable.
19641         (main): Use minus_zero instead of -zero.
19642         * modules/frexpl-tests (Depends-on): Add float.
19643
19644         * tests/test-isnan.c (zerol): Remove variable.
19645         (minus_zerol): New variable.
19646         (test_long_double): Use minus_zerol instead of -zerol.
19647         * modules/isnan-tests (Depends-on): Add float.
19648
19649         * tests/test-isnanl.h (zero): Remove variable.
19650         (minus_zero): New variable.
19651         (main): Use minus_zero instead of -zero.
19652         * modules/isnanl-nolibm-tests (Depends-on): Add float.
19653         * modules/isnanl-tests (Depends-on): Add float.
19654
19655         * tests/test-ldexpl.c (zero): Remove variable.
19656         (minus_zero): New variable.
19657         (main): Use minus_zero instead of -zero.
19658         * modules/ldexpl-tests (Depends-on): Add float.
19659
19660         * tests/test-snprintf-posix.h (zerol): Remove variable.
19661         (minus_zerol): New variable.
19662         (test_function): Use minus_zerol instead of -zerol.
19663         * modules/snprintf-posix-tests (Depends-on): Add float.
19664         * modules/vsnprintf-posix-tests (Depends-on): Add float.
19665
19666         * tests/test-sprintf-posix.h (zerol): Remove variable.
19667         (minus_zerol): New variable.
19668         (test_function): Use minus_zerol instead of -zerol.
19669         * modules/sprintf-posix-tests (Depends-on): Add float.
19670         * modules/vsprintf-posix-tests (Depends-on): Add float.
19671
19672         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
19673         (minus_zerol): New variable.
19674         (test_function): Use minus_zerol instead of -zerol.
19675         * modules/vasnprintf-posix-tests (Depends-on): Add float.
19676
19677         * tests/test-vasprintf-posix.c (zerol): Remove variable.
19678         (minus_zerol): New variable.
19679         (test_function): Use minus_zerol instead of -zerol.
19680         * modules/vasprintf-posix-tests (Depends-on): Add float.
19681
19682 2008-10-07  Simon Josefsson  <simon@josefsson.org>
19683
19684         * MODULES.html.sh (Support for building documentation): Mention
19685         pmccabe2html.  Sort entries.
19686
19687         Add pmccabe2html module, from gnupdf.
19688         * build-aux/pmccabe.css: New file.
19689         * build-aux/pmccabe2html: New file.
19690         * m4/pmccabe2html.m4: New file.
19691         * modules/pmccabe2html: New file.
19692
19693 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
19694
19695         flock: new module
19696         * MODULES.html.sh: Add to list of modules.
19697         * lib/flock.c: flock implementation for Windows and Unix systems
19698         which have fcntl.
19699         * doc/glibc-functions/flock.texi: Update documentation.
19700         * lib/sys_file.in.h: <sys/file.h> header file.
19701         * m4/flock.m4: M4 macros.
19702         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
19703         * modules/flock: flock module.
19704         * modules/flock-tests: flock tests module.
19705         * modules/sys_file: sys/file.h module.
19706         * tests/test-flock.c: test suite for flock.
19707
19708 2008-10-06  Jim Meyering  <meyering@redhat.com>
19709
19710         bootstrap: check for LT_INIT more portably still ;-)
19711         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
19712         Spotted by Bruno Haible.
19713
19714 2008-10-06  Eric Blake  <ebb9@byu.net>
19715
19716         test-signbit: avoid tripping Irix cc bug on -0.0L
19717         * tests/test-signbit.c (minus_zerol): Delete, and replace with
19718         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
19719         entire testsuite consistent and avoids an Irix 6.2 bug.
19720
19721 2008-10-05  Bruno Haible  <bruno@clisp.org>
19722             Jim Meyering  <jim@meyering.net>
19723
19724         Add an option for ignoring EPIPE during close_stdout.
19725         * lib/closeout.h: Include <stdbool.h>.
19726         (close_stdout_set_ignore_EPIPE): New declaration.
19727         * lib/closeout.c: Include <stdbool.h>.
19728         (ignore_EPIPE): New variable.
19729         (close_stdout_set_ignore_EPIPE): New function.
19730         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
19731         * lib/close-stream.c (close_stream): Mention the possible EPIPE
19732         failure.
19733         * modules/closeout (Depends-on): Add stdbool.
19734
19735 2008-10-05  Bruno Haible  <bruno@clisp.org>
19736
19737         * modules/accept: New file.
19738         * modules/bind: New file.
19739         * modules/connect: New file.
19740         * modules/getpeername: New file.
19741         * modules/getsockname: New file.
19742         * modules/getsockopt: New file.
19743         * modules/listen: New file.
19744         * modules/recv: New file.
19745         * modules/recvfrom: New file.
19746         * modules/send: New file.
19747         * modules/sendto: New file.
19748         * modules/setsockopt: New file.
19749         * modules/socket: New file.
19750         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
19751         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
19752         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
19753         the particular module is requested. Add a link warning when the
19754         particular module is not requested.
19755         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
19756         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
19757         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
19758         the particular module is requested.
19759         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
19760         gl_SYS_SOCKET_H_DEFAULTS): New macros.
19761         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
19762         * modules/sys_socket (Depends-on): Add link-warning.
19763         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
19764         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
19765         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
19766         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
19767         GL_LINK_WARNING.
19768         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
19769         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
19770         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
19771         * doc/posix-functions/getpeername.texi: Mention the new module
19772         'getpeername'.
19773         * doc/posix-functions/getsockname.texi: Mention the new module
19774         'getsockname'.
19775         * doc/posix-functions/getsockopt.texi: Mention the new module
19776         'getsockopt'.
19777         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
19778         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
19779         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
19780         * doc/posix-functions/send.texi: Mention the new module 'send'.
19781         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
19782         * doc/posix-functions/setsockopt.texi: Mention the new module
19783         'setsockopt'.
19784         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
19785         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
19786         listen, connect, accept.
19787         * modules/select-tests (Depends-on): Likewise.
19788
19789 2008-10-05  Bruno Haible  <bruno@clisp.org>
19790
19791         * lib/winsock.c (strerror): Remove unused #undef.
19792         (rpl_close): Remove unused local variable.
19793
19794         * modules/sys_socket (Depends-on); Add errno.
19795
19796 2008-10-05  Bruno Haible  <bruno@clisp.org>
19797
19798         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
19799         (select): Add a link warning when the 'select' module is not used.
19800         * modules/sys_select (Depends-on): Add link-warning.
19801         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
19802         Suggested by Paolo Bonzini.
19803
19804 2008-10-05  Jim Meyering  <meyering@redhat.com>
19805
19806         bootstrap: check for LT_INIT more portably
19807         * build-aux/bootstrap: Avoid using grep -E, since it's not
19808         portable enough.  Suggestion from Bruno Haible.
19809
19810 2008-10-05  Bruno Haible  <bruno@clisp.org>
19811
19812         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
19813         as being fixed by gnulib.
19814
19815 2008-10-05  Bruno Haible  <bruno@clisp.org>
19816
19817         * modules/select-tests: New file, mostly copied from
19818         modules/sys_select-tests.
19819         * tests/test-select.c: New file, mostly copied from
19820         tests/test-sys_select.c.
19821         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
19822         * modules/sys_select-tests (Depends-on): Remove all dependencies.
19823         (Makefile.am): Remove test_sys_select_LDADD.
19824
19825         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
19826         to an undefined symbol, for an error message.
19827         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
19828         (gl_SYS_SELECT_H_DEFAULTS): New macro.
19829         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
19830         winsock-select.c here.
19831         * modules/sys_select (Files): Remove lib/winsock-select.c.
19832         (Depends-on): Remove alloca.
19833         (Makefile.am): Substitute GNULIB_SELECT.
19834         * modules/select: New file.
19835         * doc/posix-functions/select.texi: Update.
19836
19837 2008-10-05  Bruno Haible  <bruno@clisp.org>
19838
19839         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
19840         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
19841         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
19842         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
19843         getdtablesize.
19844         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
19845         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
19846
19847 2008-10-05  Bruno Haible  <bruno@clisp.org>
19848
19849         * modules/getdtablesize-tests: New file.
19850         * tests/test-getdtablesize.c: New file.
19851
19852         New module 'getdtablesize'.
19853         * lib/unistd.in.h (getdtablesize): New declaration.
19854         * lib/getdtablesize.c: New file.
19855         * m4/getdtablesize.m4: New file.
19856         * modules/getdtablesize: New file.
19857         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19858         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
19859         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
19860         HAVE_GETDTABLESIZE.
19861         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
19862
19863 2008-10-05  Bruno Haible  <bruno@clisp.org>
19864
19865         * modules/sched (Makefile.am): Fix typo.
19866         Reported by Simon Josefsson.
19867
19868 2008-10-05  Jim Meyering  <meyering@redhat.com>
19869
19870         bootstrap: check for LT_INIT, too
19871         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
19872         are deprecated.  Suggestion from Ralf Wildenhues.
19873
19874 2008-10-05  Bruno Haible  <bruno@clisp.org>
19875
19876         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
19877         overriding them by ours.
19878         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
19879
19880 2008-10-05  Jim Meyering  <meyering@redhat.com>
19881
19882         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
19883         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
19884         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
19885
19886 2008-10-04  Bruno Haible  <bruno@clisp.org>
19887
19888         * modules/dup2 (License): Change to LGPLv2+.
19889         * modules/sleep (License): Likewise.
19890         * modules/perror (License): Likewise.
19891         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
19892         Blake.
19893         * modules/signal (License): Likewise.
19894         * modules/sigprocmask (License): Likewise.
19895         * modules/raise (License): Change to LGPLv2+, with approval by Jim
19896         Meyering.
19897
19898 2008-10-04  Bruno Haible  <bruno@clisp.org>
19899
19900         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
19901         Reported by Rainer Tammer <tammer@tammer.net>.
19902
19903 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
19904             Bruno Haible  <bruno@clisp.org>
19905
19906         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
19907         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
19908         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
19909
19910 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
19911
19912         filevercmp: new module
19913         * lib/filevercmp.h: New function filevercmp comparing version strings.
19914         * lib/filevercmp.c: Implementation of filevercmp function.
19915         * modules/filevercmp: Module metadata.
19916         * tests/test-filevercmp.c: Unit test for new module.
19917         * modules/filevercmp-tests: Unit test metadata.
19918         * MODULES.html.sh: Add filevercmp module.
19919
19920 2008-10-03  Bruno Haible  <bruno@clisp.org>
19921
19922         * lib/c-ctype.h: Add comment.
19923         Reported by Jim Meyering.
19924
19925 2008-10-02  Bruno Haible  <bruno@clisp.org>
19926
19927         * modules/posix_spawn-internal (Depends-on): Add 'open'.
19928
19929 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
19930
19931         * build-aux/bootstrap: Allow renaming bootstrap, and change the
19932         name of bootstrap.conf accordingly.
19933
19934 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
19935
19936         * build-aux/bootstrap: Install git-merge-changelog configuration
19937         items into .gitconfig if needed.
19938
19939 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
19940
19941         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
19942         git repository, and initialize/update it accordingly.
19943
19944 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
19945
19946         * modules/fsync-tests: New file.
19947         * tests/test-fsync.c: New file.
19948
19949         New module 'fsync'.
19950         * lib/fsync.c: New file.
19951         * m4/fsync.m4: New file.
19952         * modules/fsync: New file.
19953         * lib/unistd.in.h (fsync): New declaration.
19954         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
19955         GNULIB_FSYNC and HAVE_FSYNC.
19956         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
19957         * MODULES.html.sh (posix_functions): Add fsync.
19958         * doc/posix-functions/fsync.texi: Mention the new module.
19959
19960 2008-10-02  Jim Meyering  <meyering@redhat.com>
19961
19962         fts.c: sync with similar code from coreutils' remove.c
19963         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
19964         Guard also with "#if defined __linux__", since for now at least,
19965         this code is Linux-kernel-specific.
19966
19967 2008-10-02  Jim Meyering  <meyering@redhat.com>
19968
19969         fts: bug fixes
19970         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
19971         Include <sys/vfs.h>, not <sys/statfs.h>.
19972
19973         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
19974         Include <sys/vfs.h>, not <sys/statfs.h>.
19975
19976 2008-10-01  Bruno Haible  <bruno@clisp.org>
19977
19978         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
19979         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
19980         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
19981         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
19982         * doc/posix-functions/posix_spawnp.texi: Likewise.
19983         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
19984         whether posix_spawn actually works.
19985         * m4/pipe.m4 (gl_PIPE): Likewise.
19986         * modules/execute (Files): Add m4/posix_spawn.m4.
19987         * modules/pipe (Files): Add m4/posix_spawn.m4.
19988         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
19989
19990 2008-10-01  Jim Meyering  <meyering@redhat.com>
19991
19992         remove trailing spaces
19993         * NEWS: Likewise.
19994         * lib/poll.c (poll): Likewise.
19995         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
19996         * lib/winsock.c (rpl_close): Likewise.
19997         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
19998         * modules/yield: Likewise.
19999         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
20000         * tests/test-sys_select.c (connect_to_socket): Likewise.
20001
20002         fts.c: adjust a new interface to be more generally useful
20003         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
20004         (fts_build): Adjust caller.
20005
20006 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20007
20008         * modules/cond-tests: New file.
20009         * tests/test-cond.c: New file.
20010
20011 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20012             Bruno Haible  <bruno@clisp.org>
20013
20014         * modules/cond (Dependencies): Add errno, time.
20015         * lib/glthread/cond.h: Include <time.h>.
20016         (gl_cond_define, gl_cond_define_initialized): Use the same definition
20017         across platforms.
20018
20019 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20020             Bruno Haible  <bruno@clisp.org>
20021
20022         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
20023
20024 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20025             Bruno Haible  <bruno@clisp.org>
20026
20027         * modules/tls-tests (Depends-on): Add thread, yield.
20028         (configure.ac): Remove all checks.
20029         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
20030         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
20031         gl_thread_self): Remove definitions. Include glthread/thread.h and
20032         glthread/yield.h instead.
20033         (test_tls): Pass an additional NULL argument to gl_thread_join.
20034
20035 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20036             Bruno Haible  <bruno@clisp.org>
20037
20038         * modules/lock-tests (Depends-on): Add thread, yield.
20039         (configure.ac): Remove all checks.
20040         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
20041         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
20042         gl_thread_self): Remove definitions. Include glthread/thread.h and
20043         glthread/yield.h instead.
20044         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
20045         additional NULL argument to gl_thread_join.
20046
20047 2008-09-30  Bruno Haible  <bruno@clisp.org>
20048
20049         Fix the Win32 implementation of the 'thread' module.
20050         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
20051         pointer type.
20052         (gl_thread_self): Invoke gl_thread_self_func.
20053         (gl_thread_self_func): New declaration.
20054         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
20055         (do_init_self_key, init_self_key): New functions.
20056         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
20057         Remove some fields.
20058         (running_threads, running_lock): Remove variables.
20059         (get_current_thread_handle): New function.
20060         (gl_thread_self_func, wrapper_func, glthread_create_func,
20061         glthread_join_func, gl_thread_exit_func): Largely rewritten and
20062         simplified.
20063
20064 2008-09-30  Bruno Haible  <bruno@clisp.org>
20065
20066         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
20067         files.
20068
20069 2008-09-30  Jim Meyering  <meyering@redhat.com>
20070
20071         fts.m4: correct the test for statfs.f_type
20072         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
20073         when checking for statfs.f_type.
20074
20075 2008-09-15  Simon Josefsson  <simon@josefsson.org>
20076
20077         tests: avoid some compiler warnings
20078         * tests/test-memchr.c (main): Pass NULL indirectly.
20079         * tests/test-getdate.c (main): Remove unused variable 'ret'.
20080
20081 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
20082
20083         getdate.y: disallow countable dayshifts like "4 yesterday ago"
20084         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
20085         exactly specified dayshifts.
20086         (dayshift): New rule.
20087         (rel): Add dayshift.
20088         (relative_time_table) [tomorrow, yesterday, today, now]:
20089         Use tDAY_SHIFT in place of tDAY_UNIT.
20090         * tests/test-getdate.c: Add tests for now-disallowed countable
20091         dayshifts, e.g., "4 yesterday ago".
20092
20093 2008-09-29  Bruno Haible  <bruno@clisp.org>
20094
20095         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
20096         * tests/test-posix_spawn1.in.sh: Renamed from
20097         tests/test-posix_spawn.in.sh.
20098         * tests/test-posix_spawn2.c: New file.
20099         * tests/test-posix_spawn2.in.sh: New file.
20100         * modules/posix_spawnp-tests (Files): Update.
20101         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
20102
20103 2008-09-29  Bruno Haible  <bruno@clisp.org>
20104
20105         Propagate effects of putenv/setenv/unsetenv to child processes.
20106         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
20107         * lib/pipe.c (create_pipe): Likewise.
20108
20109 2008-09-29  Bruno Haible  <bruno@clisp.org>
20110
20111         Enable use of shell scripts as executables in mingw.
20112         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
20113         run the program as a shell script.
20114         * lib/pipe.c (create_pipe): Likewise.
20115         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
20116         resulting array.
20117
20118 2008-09-29  Eric Blake  <ebb9@byu.net>
20119
20120         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
20121
20122 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
20123
20124         * doc/posix-functions/accept.texi: Update mingw problems.
20125         * doc/posix-functions/bind.texi: Update mingw problems.
20126         * doc/posix-functions/close.texi: Update mingw problems.
20127         * doc/posix-functions/connect.texi: Update mingw problems.
20128         * doc/posix-functions/getpeername.texi: Update mingw problems.
20129         * doc/posix-functions/getsockname.texi: Update mingw problems.
20130         * doc/posix-functions/getsockopt.texi: Update mingw problems.
20131         * doc/posix-functions/ioctl.texi: Update mingw problems.
20132         * doc/posix-functions/listen.texi: Update mingw problems.
20133         * doc/posix-functions/recv.texi: Update mingw problems.
20134         * doc/posix-functions/recvfrom.texi: Update mingw problems.
20135         * doc/posix-functions/select.texi: Update mingw problems.
20136         * doc/posix-functions/send.texi: Update mingw problems.
20137         * doc/posix-functions/sendto.texi: Update mingw problems.
20138         * doc/posix-functions/setsockopt.texi: Update mingw problems.
20139         * doc/posix-functions/socket.texi: Update mingw problems.
20140
20141 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
20142             Bruno Haible  <bruno@clisp.org>
20143
20144         * lib/sys_select.in.h: Include sys/time.h.
20145         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
20146         * modules/sys_select: Depend on sys_time.
20147         * tests/test-sys_select.c: Test that sys/select.h defines struct
20148         timeval fully.
20149
20150 2008-09-29  Bruno Haible  <bruno@clisp.org>
20151
20152         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
20153         * lib/sys_select.in.h: Likewise.
20154
20155 2008-09-29  Bruno Haible  <bruno@clisp.org>
20156
20157         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
20158
20159 2008-09-29  Bruno Haible  <bruno@clisp.org>
20160
20161         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
20162         Set LIBSOCKET instead of augmenting LIBS.
20163         * modules/sockets (Link): New section.
20164         * modules/sockets-tests (test_sockets_LDADD): New variable.
20165         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
20166         * modules/poll-tests (test_poll_LDADD): New variable.
20167         * NEWS: Document the change.
20168
20169 2008-09-29  Bruno Haible  <bruno@clisp.org>
20170
20171         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
20172         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
20173         ARPA_INET_H directly.
20174         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
20175
20176 2008-09-28  Bruno Haible  <bruno@clisp.org>
20177
20178         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
20179         from gl_HEADER_SYS_SOCKET.
20180         (gl_HEADER_SYS_SOCKET): Invoke it.
20181         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
20182
20183 2008-09-28  Bruno Haible  <bruno@clisp.org>
20184
20185         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
20186         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
20187         Needed on OSF/1 4.0.
20188
20189 2008-09-28  Bruno Haible  <bruno@clisp.org>
20190
20191         Override open more carefully.
20192         * lib/open.c (orig_open): New function.
20193         (rpl_open): Use orig_open instead of open.
20194         * lib/fcntl.in.h: Add special invocation convention.
20195         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
20196         (gl_FUNC_OPEN): Invoke it.
20197
20198         Override freopen more carefully.
20199         * lib/freopen.c (orig_freopen): New function.
20200         (rpl_freopen): Use orig_freopen instead of freopen.
20201         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
20202         (gl_FUNC_FREOPEN): Invoke it.
20203
20204         Override fopen more carefully.
20205         * lib/fopen.c (orig_fopen): New function.
20206         (rpl_fopen): Use orig_fopen instead of fopen.
20207         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
20208         (gl_FUNC_FOPEN): Invoke it.
20209         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
20210
20211 2008-09-28  Bruno Haible  <bruno@clisp.org>
20212
20213         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
20214         SIGPIPE.
20215
20216 2008-09-28  Bruno Haible  <bruno@clisp.org>
20217
20218         * tests/test-sigaction.c (handler, main): Disable the check whether
20219         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
20220         glibc systems with LinuxThreads.
20221
20222 2008-09-28  Bruno Haible  <bruno@clisp.org>
20223
20224         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
20225
20226         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
20227         with AIX xlc.
20228         * lib/fcntl.in.h (open): Likewise.
20229         Reported by Rainer Tammer <tammer@tammer.net>.
20230
20231 2008-09-28  Bruno Haible  <bruno@clisp.org>
20232
20233         * modules/posix_spawnp-tests: New file.
20234         * tests/test-posix_spawn.c: New file.
20235         * tests/test-posix_spawn.in.sh: New file.
20236
20237         New module 'posix_spawnp'.
20238         * modules/posix_spawnp: New file.
20239         * lib/spawnp.c: New file, from GNU libc with modifications.
20240         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
20241
20242         New module 'posix_spawn'.
20243         * modules/posix_spawn: New file.
20244         * lib/spawn.c: New file, from GNU libc with modifications.
20245         * doc/posix-functions/posix_spawn.texi: Mention the new module.
20246
20247         New module 'posix_spawnattr_destroy'.
20248         * modules/posix_spawnattr_destroy: New file.
20249         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
20250         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
20251         module.
20252
20253         New module 'posix_spawnattr_setsigmask'.
20254         * modules/posix_spawnattr_setsigmask: New file.
20255         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
20256         modifications.
20257         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
20258         new module.
20259
20260         New module 'posix_spawnattr_getsigmask'.
20261         * modules/posix_spawnattr_getsigmask: New file.
20262         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
20263         modifications.
20264         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
20265         new module.
20266
20267         New module 'posix_spawnattr_setsigdefault'.
20268         * modules/posix_spawnattr_setsigdefault: New file.
20269         * lib/spawnattr_setdefault.c: New file, from GNU libc with
20270         modifications.
20271         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
20272         new module.
20273
20274         New module 'posix_spawnattr_getsigdefault'.
20275         * modules/posix_spawnattr_getsigdefault: New file.
20276         * lib/spawnattr_getdefault.c: New file, from GNU libc with
20277         modifications.
20278         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
20279         new module.
20280
20281         New module 'posix_spawnattr_setschedpolicy'.
20282         * modules/posix_spawnattr_setschedpolicy: New file.
20283         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
20284         modifications.
20285         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
20286         new module.
20287
20288         New module 'posix_spawnattr_getschedpolicy'.
20289         * modules/posix_spawnattr_getschedpolicy: New file.
20290         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
20291         modifications.
20292         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
20293         new module.
20294
20295         New module 'posix_spawnattr_setschedparam'.
20296         * modules/posix_spawnattr_setschedparam: New file.
20297         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
20298         modifications.
20299         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
20300         new module.
20301
20302         New module 'posix_spawnattr_getschedparam'.
20303         * modules/posix_spawnattr_getschedparam: New file.
20304         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
20305         modifications.
20306         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
20307         new module.
20308
20309         New module 'posix_spawnattr_setpgroup'.
20310         * modules/posix_spawnattr_setpgroup: New file.
20311         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
20312         modifications.
20313         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
20314         module.
20315
20316         New module 'posix_spawnattr_getpgroup'.
20317         * modules/posix_spawnattr_getpgroup: New file.
20318         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
20319         modifications.
20320         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
20321         module.
20322
20323         New module 'posix_spawnattr_setflags'.
20324         * modules/posix_spawnattr_setflags: New file.
20325         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
20326         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
20327         module.
20328
20329         New module 'posix_spawnattr_getflags'.
20330         * modules/posix_spawnattr_getflags: New file.
20331         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
20332         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
20333         module.
20334
20335         New module 'posix_spawnattr_init'.
20336         * modules/posix_spawnattr_init: New file.
20337         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
20338         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
20339         module.
20340
20341         New module 'posix_spawn_file_actions_destroy'.
20342         * modules/posix_spawn_file_actions_destroy: New file.
20343         * lib/spawn_faction_destroy.c: New file, from GNU libc with
20344         modifications.
20345         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
20346         the new module.
20347
20348         New module 'posix_spawn_file_actions_addopen'.
20349         * modules/posix_spawn_file_actions_addopen: New file.
20350         * lib/spawn_faction_addopen.c: New file, from GNU libc with
20351         modifications.
20352         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
20353         the new module.
20354
20355         New module 'posix_spawn_file_actions_adddup2'.
20356         * modules/posix_spawn_file_actions_adddup2: New file.
20357         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
20358         modifications.
20359         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
20360         the new module.
20361
20362         New module 'posix_spawn_file_actions_addclose'.
20363         * modules/posix_spawn_file_actions_addclose: New file.
20364         * lib/spawn_faction_addclose.c: New file, from GNU libc with
20365         modifications.
20366         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
20367         the new module.
20368
20369         New module 'posix_spawn_file_actions_init'.
20370         * modules/posix_spawn_file_actions_init: New file.
20371         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
20372         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
20373         new module.
20374
20375         New module 'posix_spawn-internal'.
20376         * modules/posix_spawn-internal: New file.
20377         * lib/spawn_int.h: New file, from GNU libc with modifications.
20378         * lib/spawni.c: New file, from GNU libc with modifications.
20379         * m4/posix_spawn.m4: New file.
20380
20381         New module 'spawn'.
20382         * modules/spawn: New file.
20383         * lib/spawn.in.h: New file, from GNU libc with modifications.
20384         * m4/spawn_h.m4: New file.
20385         * doc/posix-headers/spawn.texi: Mention the new module.
20386
20387 2008-09-28  Bruno Haible  <bruno@clisp.org>
20388
20389         * modules/sched-tests: New file.
20390         * tests/test-sched.c: New file.
20391
20392         New module 'sched'.
20393         * modules/sched: New file.
20394         * lib/sched.in.h: New file.
20395         * m4/sched_h.m4: New file.
20396         * doc/posix-headers/sched.texi: Mention the new module.
20397
20398 2008-09-27  Eric Blake  <ebb9@byu.net>
20399
20400         Fix previous patch, and tweak references to $0.
20401         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
20402         (func_version, func_gnulib_dir): Don't call this program
20403         gnulib-tool.
20404         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
20405         with using $0 in function.
20406         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
20407         (func_fatal_error): Reuse the name the user invoked us with.
20408
20409 2008-09-27  Bruno Haible  <bruno@clisp.org>
20410
20411         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
20412         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
20413         (gl_ICONV_H): Not here.
20414         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
20415         instead of assigning ICONV_H directly.
20416
20417         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
20418         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
20419         WCHAR_H directly.
20420
20421 2008-09-27  Bruno Haible  <bruno@clisp.org>
20422
20423         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
20424         * modules/arpa_inet (Depends-on): Add link-warning.
20425         (Makefile.am): Insert the definition of GL_LINK-WARNING.
20426         * modules/unistd (Makefile.am): Likewise.
20427
20428 2008-09-26  Bruno Haible  <bruno@clisp.org>
20429
20430         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
20431         variables.
20432         (func_version): Essentially copied from gnulib-tool.
20433         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
20434         func_readlink): Copied from gnulib-tool.
20435
20436 2008-09-26  Bruno Haible  <bruno@clisp.org>
20437
20438         * gnulib-tool (func_version): Change directory to $gnulib_dir before
20439         invoking git-version-gen.
20440
20441 2008-09-26  Bruno Haible  <bruno@clisp.org>
20442
20443         * posix-modules: Update to directory names changed on 2008-01-19.
20444         Remove commas in output before splitting into words. No more need to
20445         avoid 'ftruncate' since 2007-02-19.
20446
20447 2008-09-26  Bruno Haible  <bruno@clisp.org>
20448
20449         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
20450
20451 2008-09-26  Bruno Haible  <bruno@clisp.org>
20452
20453         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
20454         * modules/fwriteerror (Depends-on): Add errno.
20455
20456 2008-09-26  Bruno Haible  <bruno@clisp.org>
20457
20458         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
20459         * tests/test-vc-list-files-cvs.sh: Likewise.
20460
20461 2008-09-26  Bruno Haible  <bruno@clisp.org>
20462
20463         * doc/posix-headers/sys_resource.texi: Reorder items.
20464
20465 2008-09-26  Jim Meyering  <meyering@redhat.com>
20466
20467         fts: tweak inode comparison function
20468         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
20469         inode numbers, as documented.
20470
20471         fts: sort dirent entries on inode number before traversing
20472         This avoids a quadratic, seek-related performance penalty when
20473         operating on a directory containing many entries (measurable at 10k;
20474         3.5 hours at 2 million entries with a cold cache) on certain types
20475         of file systems, including ext3 and ext4, but not tmpfs.
20476         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
20477         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
20478         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
20479         (fs_handles_readdir_ordered_dirents_efficiently): New function.
20480         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
20481         (fts_build): Set the stat.st_ino member from D_INO.
20482         If it is likely to be useful, sort dirent entries on inode number.
20483
20484         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
20485         and the struct statfs.f_type member.
20486         * modules/fts (Depends-on): Add d-ino.
20487
20488 2008-09-26  Bruno Haible  <bruno@clisp.org>
20489
20490         * modules/sigpipe-die (Depends-on): Add sigpipe.
20491
20492         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
20493         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
20494         and GNULIB_STDIO_H_SIGPIPE are set.
20495         * lib/stdio-write.c: New file.
20496         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
20497         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
20498         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
20499         REPLACE_STDIO_WRITE_FUNCS.
20500         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
20501         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
20502         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
20503         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
20504         * modules/stdio (Files): Add lib/stdio-write.c.
20505         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
20506         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
20507         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
20508         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
20509         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
20510         REPLACE_FPRINTF_POSIX.
20511         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
20512         REPLACE_PRINTF_POSIX.
20513         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
20514         REPLACE_VFPRINTF_POSIX.
20515         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
20516         REPLACE_VPRINTF_POSIX.
20517         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
20518         SIGPIPE issue.
20519         * doc/posix-functions/fputc.texi: Likewise.
20520         * doc/posix-functions/fputs.texi: Likewise.
20521         * doc/posix-functions/fwrite.texi: Likewise.
20522         * doc/posix-functions/printf.texi: Likewise.
20523         * doc/posix-functions/putc.texi: Likewise.
20524         * doc/posix-functions/putchar.texi: Likewise.
20525         * doc/posix-functions/puts.texi: Likewise.
20526         * doc/posix-functions/vfprintf.texi: Likewise.
20527         * doc/posix-functions/vprintf.texi: Likewise.
20528
20529         * modules/safe-write (Depends-on): Add write.
20530
20531         * modules/sigpipe-tests: New file.
20532         * tests/test-sigpipe.c: New file.
20533         * tests/test-sigpipe.sh: New file.
20534
20535         * modules/write: New file.
20536         * lib/unistd.in.h: Include <sys/types.h>.
20537         (write): New declaration.
20538         * lib/write.c: New file.
20539         * m4/write.m4: New file.
20540         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20541         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
20542         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
20543         GNULIB_WRITE, REPLACE_WRITE.
20544         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
20545         and the SIGPIPE issue.
20546
20547         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
20548         (raise): New declaration.
20549         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
20550         (ext_signal): New function.
20551         (rpl_raise): New function.
20552         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
20553         GNULIB_SIGNAL_H_SIGPIPE.
20554         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
20555         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
20556
20557         * modules/sigpipe: New file.
20558         * m4/sigpipe.m4: New file.
20559
20560 2008-09-25  Derek Price  <derek@ximbiot.com>
20561             Bruno Haible  <bruno@clisp.org>
20562
20563         * gnulib-tool (func_import): Report all license incompatibilities, not
20564         just the first one.
20565
20566 2008-09-25  Bruno Haible  <bruno@clisp.org>
20567
20568         * gnulib-tool (func_import): When computing the edits, consider not
20569         only the Makefile.ams that exist but also those that will be generated.
20570
20571 2008-09-25  Simon Josefsson  <simon@josefsson.org>
20572
20573         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
20574         fixes gnulib-tool --test warning about duplicate dependency.
20575
20576 2008-09-25  Bruno Haible  <bruno@clisp.org>
20577
20578         * gnulib-tool: Don't ask the user to perform edits in the generated
20579         Makefile.ams.
20580         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
20581         apply to the Makefile.am being generated.
20582         (func_emit_tests_Makefile_am): Execute edits that apply to the
20583         Makefile.am being generated.
20584         (func_import): Setup list of Makefile.am edits before emitting the
20585         Makefile.ams, not at the end.
20586         (func_create_testdir): Update.
20587         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
20588
20589 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20590
20591         * gnulib-tool (func_import): Store the --tests-base option in the
20592         comment in gnulib-cache.m4.
20593
20594 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
20595
20596         * NEWS: Document increased portability that sys_select now provides.
20597
20598         * lib/sys_select.in.h: Install select wrapper.
20599         * lib/sys_socket.in.h: Use more descriptive name when there is no
20600         select wrapper.
20601         * lib/winsock-select.c: New.
20602         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
20603         Require gl_HEADER_SYS_SOCKET.
20604         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
20605         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
20606         * tests/test-sys_select.c: Add functional tests.
20607
20608 2008-09-24  Eric Blake  <ebb9@byu.net>
20609
20610         open, fopen: close fd leak in last patch
20611         * lib/open.c (rpl_open): Close fd before returning error.
20612         * lib/fopen.c (rpl_fopen): Close fd before returning error.
20613         * doc/posix-functions/open.texi (open): Document that Irix also
20614         has the bug.
20615         * doc/posix-functions/fopen.texi (fopen): Likewise.
20616         Reported by Paolo Bonzini.
20617
20618 2008-09-24  Bruno Haible  <bruno@clisp.org>
20619
20620         Ensure that a filename ending in a slash cannot be used to access a
20621         non-directory.
20622         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
20623         to check whether it's really a directory.
20624         * lib/fopen.c: Include fcntl.h, unistd.h.
20625         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
20626         and fdopen().
20627         * modules/fopen (Depends-on): Add unistd.
20628         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
20629         * tests/test-fopen.c (main): Likewise.
20630         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
20631         * doc/posix-functions/fopen.texi: Likewise.
20632         Reported by Eric Blake.
20633
20634 2008-09-23  Eric Blake  <ebb9@byu.net>
20635
20636         c-stack: avoid compiler optimizations when provoking overflow
20637         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
20638         recursion harder to optimize, to ensure a stack overflow occurs.
20639         * tests/test-c-stack.c (recurse): Likewise.
20640         Borrowed from libsigsegv.
20641
20642         c-stack: work around Irix sigaltstack bug
20643         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
20644         whether sigaltstack uses wrong end of stack_t (copied in part from
20645         libsigsegv).
20646         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
20647         Irix bug, without requiring an over-allocation.
20648         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
20649         bug.
20650
20651         fopen: document mingw bug on directories
20652         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
20653         not allowing a stream visiting a directory, even though reading
20654         from such a stream is not portable.
20655
20656 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
20657
20658         * lib/poll.c: Rewrite.
20659         * modules/poll: Depend on alloca.
20660
20661 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
20662
20663         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
20664         instead define prototypes for a full set of wrappers.  Ensure
20665         that Cygwin does not use the compatibility code, which is only
20666         for MinGW.
20667         * lib/winsock.c: New.
20668         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
20669         * modules/sys_socket: Add lib/winsock.c.
20670
20671         * modules/poll-tests: Add errno and perror.
20672         * tests/test-poll.c: Use ioctl, not ioctlsocket.
20673
20674 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
20675
20676         * tests/test-poll.c: Downgrade minimum needed Winsock version.
20677
20678 2008-09-23  Bruno Haible  <bruno@clisp.org>
20679
20680         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
20681         * doc/glibc-functions/*: Likewise.
20682
20683 2008-09-23  Simon Josefsson  <simon@josefsson.org>
20684
20685         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
20686         success.
20687
20688 2008-09-22  Eric Blake  <ebb9@byu.net>
20689             Bruno Haible  <bruno@clisp.org>
20690
20691         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
20692         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
20693         supply %A but mishandle pseudo-NaN.
20694         Reported by Simon Josefsson.
20695
20696 2008-09-21  Bruno Haible  <bruno@clisp.org>
20697
20698         * tests/test-lock.c (main): Tweak skip message.
20699         * tests/test-tls.c (main): Likewise.
20700
20701 2008-09-21  Bruno Haible  <bruno@clisp.org>
20702
20703         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
20704         whether 'struct sigaction' has sa_sigaction here...
20705         (gl_PREREQ_SIG_HANDLER_H): ... not here.
20706         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
20707
20708 2008-09-21  Bruno Haible  <bruno@clisp.org>
20709
20710         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
20711         section.
20712         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
20713         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
20714         the new section.
20715         (Support for obsolete systems lacking POSIX:2001): New section.
20716         (String handling <string.h>): Move strdup to the new section.
20717         Suggested by Simon Josefsson and Paolo Bonzini.
20718
20719 2008-09-21  Bruno Haible  <bruno@clisp.org>
20720
20721         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
20722         exponents in %e and %g results on 'long double'. Needed for mingw's
20723         improved *printf functions.
20724         * tests/test-vasprintf-posix.c (test_function): Likewise.
20725         * tests/test-snprintf-posix.h (test_function): Likewise.
20726         * tests/test-sprintf-posix.h (test_function): Likewise.
20727         Reported by Eric Blake.
20728
20729 2008-09-21  Bruno Haible  <bruno@clisp.org>
20730
20731         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
20732         * tests/test-sprintf-posix.h (test_function): Likewise.
20733
20734 2008-09-21  Bruno Haible  <bruno@clisp.org>
20735
20736         * modules/getpass (Depends-on): Add strdup-posix.
20737
20738         New module 'strdup-posix'.
20739         * modules/strdup-posix: New file.
20740         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
20741         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
20742         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
20743         REPLACE_STRDUP.
20744         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
20745         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
20746         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
20747         strdup-posix.
20748
20749         * modules/strdup (Depends-on): Remove malloc-posix.
20750
20751 2008-09-20  Bruno Haible  <bruno@clisp.org>
20752
20753         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
20754         Wildenhues.
20755
20756 2008-09-20  Bruno Haible  <bruno@clisp.org>
20757
20758         Ensure that wint_t gets defined on IRIX 5.3.
20759         * lib/wchar.in.h (wint_t): Define if not defined by the system.
20760         * lib/wctype.in.h (wint_t): Likewise.
20761         (__wctype_wint_t): Remove type.
20762         (isw*): Use wint_t instead of __wctype_wint_t.
20763         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
20764         * modules/wchar (Files): Add m4/wint_t.m4.
20765         (Makefile.am): Substitute HAVE_WINT_T.
20766         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
20767         * tests/test-wctype.c: Check that wint_t is defined.
20768         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
20769         * doc/posix-headers/wctype.texi: Likewise.
20770         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20771
20772 2008-09-18  Bruno Haible  <bruno@clisp.org>
20773
20774         * gnulib-tool (func_exit): Update comment.
20775
20776 2008-09-18  Simon Josefsson  <simon@josefsson.org>
20777
20778         * modules/getaddrinfo (Depends-on): Remove strdup, this module
20779         assumes strdup exists and does not depend on strdup to return
20780         ENOMEM on out of memory conditions.
20781
20782 2008-09-18  Bruno Haible  <bruno@clisp.org>
20783
20784         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
20785         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
20786         digits for the exponent.
20787
20788 2008-09-18  Jim Meyering  <meyering@redhat.com>
20789             Bruno Haible  <bruno@clisp.org>
20790
20791         * lib/vasnprintf.c (decimal_point_char): Define also if
20792         NEED_PRINTF_INFINITE_LONG_DOUBLE.
20793
20794 2008-09-16  Bruno Haible  <bruno@clisp.org>
20795         and Eric Blake  <ebb9@byu.net>
20796
20797         vasnprintf: support Irix 5.3
20798         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
20799         that mishandle long double infinity.
20800         Reported by Tom G. Christensen.
20801
20802 2008-09-16  Bruno Haible  <bruno@clisp.org>
20803
20804         * doc/glibc-functions/scandir.texi: Mention the function is missing on
20805         Solaris 9.
20806         * doc/glibc-functions/alphasort.texi: Likewise.
20807         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
20808
20809 2008-09-16  Jim Meyering  <meyering@redhat.com>
20810
20811         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
20812         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
20813         a umask modification leak out of a subshell.  Otherwise, the
20814         opensolaris /bin/sh would be accepted and thus cause unwarranted
20815         failures in the coreutils test suite.
20816
20817 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
20818
20819         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
20820         to succeed.
20821
20822 2008-09-16  Jim Meyering  <meyering@redhat.com>
20823
20824         avoid spurious test failure when library is built without ACL support
20825         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
20826         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
20827         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
20828         * tests/test-copy-acl.sh: Likewise.
20829
20830 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20831
20832         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
20833         based on character occurrence counts.
20834
20835 2008-09-15  Eric Blake  <ebb9@byu.net>
20836
20837         tests: avoid some compiler warnings
20838         * tests/test-memchr.c (main): Pass NULL indirectly.
20839         * tests/test-closein.c (main): Avoid unused variable.
20840
20841 2008-09-15  Bruno Haible  <bruno@clisp.org>
20842
20843         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
20844         are missing on OpenBSD 4.0 individually.
20845         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
20846
20847 2008-09-15  Bruno Haible  <bruno@clisp.org>
20848
20849         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
20850         * doc/posix-functions/strerror.texi: Mention also Cygwin.
20851         * doc/posix-functions/perror.texi: Likewise.
20852         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
20853         is missing.
20854         Reported by Eric Blake.
20855
20856         * lib/errno.in.h: Use replacement values >= 2000.
20857         Reported by Eric Blake.
20858
20859 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20860
20861         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
20862         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
20863         limit.
20864         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
20865         compareseq was aborted.
20866
20867 2008-09-14  Bruno Haible  <bruno@clisp.org>
20868
20869         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
20870         yvec_edit_count.
20871         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
20872         (fstrcmp_bounded): Simplify result computation accordingly.
20873
20874 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20875
20876         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
20877         (fstrcmp): Define in terms of fstrcmp_bounded.
20878         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
20879         lower_bound argument.
20880         Return quickly if the result is certainly < lower_bound.
20881         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
20882
20883 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20884
20885         * lib/diffseq.h (EARLY_ABORT): New macro.
20886         (compareseq): Change return type to bool. Return true when EARLY_ABORT
20887         evaluates to true.
20888
20889 2008-09-14  Bruno Haible  <bruno@clisp.org>
20890
20891         * modules/perror-tests: New file.
20892         * tests/test-perror.sh: New file.
20893         * tests/test-perror.c: New file.
20894
20895         New module 'perror'.
20896         * lib/stdio.in.h (perror): New declaration.
20897         * lib/perror.c: New file.
20898         * m4/perror.m4: New file.
20899         * modules/perror: New file.
20900         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
20901         * doc/posix-functions/perror.texi: Mention the perror module.
20902         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
20903         REPLACE_PERROR.
20904         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
20905         REPLACE_PERROR.
20906
20907 2008-09-14  Bruno Haible  <bruno@clisp.org>
20908
20909         * modules/stdio (Makefile.am): Reorder to match the order in
20910         lib/stdio.in.h.
20911         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
20912
20913 2008-09-13  Bruno Haible  <bruno@clisp.org>
20914
20915         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
20916
20917 2008-09-13  Bruno Haible  <bruno@clisp.org>
20918
20919         Extend strerror to cover the added errno values.
20920         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
20921         (rpl_strerror): Provide error messages for the added errno values and
20922         for the WSA* values.
20923         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
20924         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
20925         strerror.
20926         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
20927         * modules/strerror (Depends-on): Add errno.
20928         * doc/posix-functions/strerror.texi: Document the change.
20929         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
20930         and EOVERFLOW.
20931
20932 2008-09-13  Bruno Haible  <bruno@clisp.org>
20933
20934         * modules/EOVERFLOW: Remove file.
20935         * m4/eoverflow.m4: Remove file.
20936         * modules/EOVERFLOW-tests: Remove file.
20937         * tests/test-EOVERFLOW.c: Remove file.
20938         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
20939         * modules/ftell (Depends-on): Likewise.
20940         * modules/getdelim (Depends-on): Likewise.
20941         * modules/getugroups (Depends-on): Likewise.
20942         * modules/poll (Depends-on): Likewise.
20943         * modules/snprintf (Depends-on): Likewise.
20944         * modules/sprintf-posix (Depends-on): Likewise.
20945         * modules/vasnprintf (Depends-on): Likewise.
20946         * modules/vasprintf (Depends-on): Likewise.
20947         * modules/vfprintf-posix (Depends-on): Likewise.
20948         * modules/vsnprintf (Depends-on): Likewise.
20949         * modules/vsprintf-posix (Depends-on): Likewise.
20950         * modules/xvasprintf (Depends-on): Likewise.
20951         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
20952         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
20953         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
20954         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
20955         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
20956         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
20957         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
20958         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
20959         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
20960         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
20961         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
20962         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
20963         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
20964         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
20965         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
20966         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
20967         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
20968         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
20969         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
20970         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
20971         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
20972         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
20973         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
20974         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
20975         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
20976         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
20977         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
20978         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
20979         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
20980         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
20981         * MODULES.html.sh: Remove EOVERFLOW.
20982         * NEWS: Mention the change.
20983
20984 2008-09-13  Bruno Haible  <bruno@clisp.org>
20985
20986         * modules/errno-tests: New file.
20987         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
20988
20989         * lib/errno.in.h: New file.
20990         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
20991         * modules/errno: New file.
20992         * doc/posix-headers/errno.texi: Update documentation.
20993         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
20994
20995 2008-09-13  Bruno Haible  <bruno@clisp.org>
20996
20997         * tests/test-poll.c: Use #if for native Windows, rather than testing
20998         __MSVCRT__.
20999
21000 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21001             Bruno Haible  <bruno@clisp.org>
21002
21003         * lib/glob.c: Don't include <pwd.h> on native Windows.
21004         (WINDOWS32): New macro.
21005         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
21006
21007 2008-09-13  Bruno Haible  <bruno@clisp.org>
21008
21009         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
21010         (ETIMEDOUT): Remove macro.
21011         (glthread_cond_timedwait_multithreaded): New declaration.
21012         (glthread_cond_timedwait): Use it.
21013         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
21014         (glthread_cond_timedwait_multithreaded): New function.
21015
21016 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
21017
21018         * modules/poll-tests: Do not check for io.h.
21019         * tests/test-poll.c: Check for __MSVCRT__ instead.
21020
21021 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
21022
21023         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
21024         * modules/poll-tests: Add inet_pton, stdbool, sockets.
21025         * tests/test-poll.c: Use them.  Use _pipe on Windows.
21026
21027 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
21028
21029         * modules/poll-tests: New.
21030         * tests/test-poll.c: New.
21031
21032 2008-09-12  Eric Blake  <ebb9@byu.net>
21033
21034         frexp: test for NetBSD failure on -0.0
21035         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
21036         not all, bugs from NetBSD 3.0 have been fixed.
21037         * doc/posix-functions/frexp.texi (frexp): Document bug.
21038         Reported by Thomas Klausner.
21039
21040         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
21041         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
21042         literal -0.0.
21043         Reported by Jonathan C. Patschke <jp@centtech.com>.
21044
21045 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21046
21047         * lib/glthread/cond.h: Use dummy implementation also if
21048         USE_WIN32_THREADS.
21049
21050 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21051
21052         * modules/fnmatch-posix (License): Change to LGPLv2+.
21053         * modules/fnmatch-gnu (License): Likewise.
21054
21055 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21056
21057         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
21058
21059 2008-09-11  Jim Meyering  <meyering@redhat.com>
21060
21061         * users.txt: Add gtk-vnc.
21062
21063 2008-09-08  Simon Josefsson  <simon@josefsson.org>
21064
21065         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
21066         rotate amounts.
21067
21068         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
21069         required for 16-bit and 8-bit rotates.
21070         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
21071         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
21072         UINT8_MAX instead of hard-coded constants.
21073         Suggested by Paul Eggert.
21074
21075 2008-09-07  Bruno Haible  <bruno@clisp.org>
21076
21077         * tests/test-striconveh.c (main): Check behaviour when converting from
21078         UTF-7.
21079
21080         Make striconveh work better with stateful encodings.
21081         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
21082         that iconv does not increment the inptr when returning -1/EINVAL.
21083
21084 2008-09-07  Bruno Haible  <bruno@clisp.org>
21085
21086         * build-aux/config.rpath: Update according to libtool-2.2.6.
21087         * build-aux/config.libpath: Likewise.
21088
21089 2008-09-06  Bruno Haible  <bruno@clisp.org>
21090
21091         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
21092         * lib/freadptr.c (freadptr): Likewise.
21093         * lib/freadseek.c (freadptrinc): Likewise.
21094         Reported by Simon Josefsson.
21095
21096 2008-09-06  Bruno Haible  <bruno@clisp.org>
21097
21098         * modules/freadptr (License): Change to LGPLv2+.
21099         * modules/freadseek (License): Likewise.
21100         Suggested by Eric Blake.
21101
21102         * modules/memchr2 (License): Change to LGPLv2+.
21103         Approved by Eric Blake.
21104
21105 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21106             Bruno Haible  <bruno@clisp.org>
21107
21108         Make gnulib-tool work with native 'sed' on AIX.
21109         * gnulib-tool (sed_noop): New variable.
21110         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
21111         func_add_or_update, func_create_testdir): Use it to initialize sed
21112         script variables.
21113         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
21114
21115 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
21116             Bruno Haible  <bruno@clisp.org>
21117
21118         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
21119         also works after #include directives.
21120
21121 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
21122
21123         getdate.y: reject an out-of-range timezone value
21124         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
21125         the range [-24...+24].  When specified with only one or two digits,
21126         * tests/test-getdate.c: Tests for the fix.
21127         * doc/getdate.texi: Document this change.
21128
21129 2008-09-03  Bruno Haible  <bruno@clisp.org>
21130
21131         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
21132
21133 2008-09-02  Simon Josefsson  <simon@josefsson.org>
21134
21135         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
21136         <bruce.korb@gmail.com> with ideas from Ben Pfaff
21137         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
21138         Blake <ebb9@byu.net>.
21139
21140         * tests/test-bitrotate.c: Add more test vectors.
21141
21142 2008-09-02  Eric Blake  <ebb9@byu.net>
21143
21144         vasnprintf-posix: handle large precision via %.*d
21145         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
21146         when handling it ourselves.
21147         * tests/test-vasnprintf-posix.c (test_function): Add test.
21148         * tests/test-snprintf-posix.h (test_function): Likewise.
21149         * tests/test-sprintf-posix.h (test_function): Likewise.
21150         * tests/test-vasprintf-posix.c (test_function): Likewise.
21151         Reported by Alain Guibert.
21152
21153 2008-09-01  Eric Blake  <ebb9@byu.net>
21154
21155         c-stack: make configure-time check more robust
21156         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
21157         successful sigaction call.
21158         Reported by Tom G. Christensen.
21159
21160 2008-09-01  Bruno Haible  <bruno@clisp.org>
21161
21162         New module 'findprog-lgpl'.
21163         * modules/findprog-lgpl: New file.
21164         * lib/findprog-lgpl.c: New file.
21165         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
21166         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
21167         to decide whether to use strdup or xstrdup, concatenated_filename or
21168         xconcatenated_filename.
21169
21170 2008-09-01  Bruno Haible  <bruno@clisp.org>
21171
21172         Split module 'concat-filename' into 'concat-filename' (LGPL) and
21173         'xconcat-filename' (GPL).
21174         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
21175         (License): Change to LGPLv2+.
21176         * modules/xconcat-filename: New file.
21177         * lib/concat-filename.h (concatenated_filename): Change specification.
21178         (xconcatenated_filename): New declaration.
21179         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
21180         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
21181         memory situations.
21182         * lib/xconcat-filename.c: New file.
21183         * NEWS: Mention the change.
21184         * lib/findprog.c: Include concat-filename.h, not filename.h.
21185         (find_in_path): Use xconcatenated_filename instead of
21186         concatenated_filename.
21187         * lib/javacomp.c: Include concat-filename.h, not filename.h.
21188         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
21189         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
21190         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
21191         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
21192         instead of concatenated_filename.
21193         * lib/javaexec.c: Include concat-filename.h, not filename.h.
21194         (execute_java_class): Use xconcatenated_filename instead of
21195         concatenated_filename.
21196         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
21197         * modules/javacomp (Depends-on): Likewise.
21198         * modules/javaexec (Depends-on): Likewise.
21199
21200 2008-09-01  Bruno Haible  <bruno@clisp.org>
21201
21202         Split module 'filename' into 'filename' and 'concat-filename'.
21203         * modules/filename: Keep only lib/filename.h.
21204         (License): Change to LGPLv2+.
21205         * modules/concat-filename: New file, extracted from modules/filename.
21206         * lib/filename.h (concatenated_filename): Remove declaration.
21207         * lib/concat-filename.h: New file, extracted from lib/filename.h.
21208         * lib/concat-filename.c: Include concat-filename.h.
21209         * NEWS: Mention the change.
21210
21211 2008-09-01  Simon Josefsson  <simon@josefsson.org>
21212
21213         * lib/bitrotate.h (rotl8, rotr8): Add.
21214
21215         * modules/bitrotate (configure.ac): Need
21216         AC_REQUIRE([AC_C_INLINE]).
21217         (Description): Mention stdint.h.  Reported by Bruno Haible
21218         <bruno@clisp.org>.
21219
21220         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
21221         Paolo Bonzini <bonzini@gnu.org>.
21222
21223 2008-08-31  Bruno Haible  <bruno@clisp.org>
21224
21225         Assume Solaris specific bi-arch conventions on Solaris systems.
21226         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
21227         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
21228         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
21229         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
21230         like acl_libdirstem.
21231         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
21232         acl_libdirstem.
21233         * NEWS: Mention the change.
21234         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
21235
21236 2008-08-31  Jim Meyering  <meyering@redhat.com>
21237
21238         * lib/strftime.h: Add comments describing the two added arguments.
21239
21240         remove duplicate #include directives
21241         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
21242         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
21243
21244 2008-08-31  Bruno Haible  <bruno@clisp.org>
21245
21246         New module 'sigpipe-die'.
21247         * modules/sigpipe-die: New file.
21248         * lib/sigpipe-die.h: New file.
21249         * lib/sigpipe-die.c: New file.
21250         * MODULES.html.sh (Signal handling): Add sigpipe-die.
21251
21252 2008-08-31  Bruno Haible  <bruno@clisp.org>
21253
21254         Don't override previously installed signal handlers.
21255         * lib/fatal-signal.c (saved_sigactions): New variable.
21256         (uninstall_handlers): Reset the signal to the saved handler, not
21257         to SIG_DFL (except when ignored).
21258         (install_handlers): Save the previous handlers.
21259
21260 2008-08-30  Bruno Haible  <bruno@clisp.org>
21261
21262         * gnulib-tool (func_reset_sigpipe): New function.
21263         (func_get_automake_snippet, func_modules_transitive_closure,
21264         func_import): Invoke it before a join command that reads from stdin,
21265         to avoid "echo: write error: Broken pipe" error messages on stderr.
21266         Reported by Sam Steingold <sds@gnu.org>.
21267
21268 2008-08-30  Bruno Haible  <bruno@clisp.org>
21269
21270         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
21271         Code copied from m4/open.m4.
21272         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
21273         access and the filename ends in a slash. Code copied from lib/open.c.
21274         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
21275         * tests/test-fopen.c (main): Check against bug with trailing slash.
21276
21277 2008-08-29  Bruno Haible  <bruno@clisp.org>
21278
21279         Avoid some "gcc -pedantic" warnings.
21280         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
21281         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
21282         * lib/dirent.in.h: Likewise.
21283         * lib/fcntl.in.h: Likewise.
21284         * lib/float.in.h: Likewise.
21285         * lib/iconv.in.h: Likewise.
21286         * lib/inttypes.in.h: Likewise.
21287         * lib/locale.in.h: Likewise.
21288         * lib/math.in.h: Likewise.
21289         * lib/netinet_in.in.h: Likewise.
21290         * lib/search.in.h: Likewise.
21291         * lib/signal.in.h: Likewise.
21292         * lib/stdarg.in.h: Likewise.
21293         * lib/stdint.in.h: Likewise.
21294         * lib/stdio.in.h: Likewise.
21295         * lib/stdlib.in.h: Likewise.
21296         * lib/string.in.h: Likewise.
21297         * lib/strings.in.h: Likewise.
21298         * lib/sys_select.in.h: Likewise.
21299         * lib/sys_socket.in.h: Likewise.
21300         * lib/sys_stat.in.h: Likewise.
21301         * lib/sys_time.in.h: Likewise.
21302         * lib/sysexits.in.h: Likewise.
21303         * lib/time.in.h: Likewise.
21304         * lib/unistd.in.h: Likewise.
21305         * lib/wchar.in.h: Likewise.
21306         * lib/wctype.in.h: Likewise.
21307         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
21308         * modules/fchdir (Makefile.am): Likewise.
21309         * modules/fcntl (Makefile.am): Likewise.
21310         * modules/float (Makefile.am): Likewise.
21311         * modules/iconv_open (Makefile.am): Likewise.
21312         * modules/inttypes (Makefile.am): Likewise.
21313         * modules/locale (Makefile.am): Likewise.
21314         * modules/math (Makefile.am): Likewise.
21315         * modules/netinet_in (Makefile.am): Likewise.
21316         * modules/search (Makefile.am): Likewise.
21317         * modules/signal (Makefile.am): Likewise.
21318         * modules/stdarg (Makefile.am): Likewise.
21319         * modules/stdint (Makefile.am): Likewise.
21320         * modules/stdio (Makefile.am): Likewise.
21321         * modules/stdlib (Makefile.am): Likewise.
21322         * modules/string (Makefile.am): Likewise.
21323         * modules/strings (Makefile.am): Likewise.
21324         * modules/sys_select (Makefile.am): Likewise.
21325         * modules/sys_socket (Makefile.am): Likewise.
21326         * modules/sys_stat (Makefile.am): Likewise.
21327         * modules/sys_time (Makefile.am): Likewise.
21328         * modules/sysexits (Makefile.am): Likewise.
21329         * modules/time (Makefile.am): Likewise.
21330         * modules/unistd (Makefile.am): Likewise.
21331         * modules/wchar (Makefile.am): Likewise.
21332         * modules/wctype (Makefile.am): Likewise.
21333         Reported by Reuben Thomas <rrt@sc3d.org>.
21334
21335 2008-08-29  Bruno Haible  <bruno@clisp.org>
21336
21337         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
21338         any more.
21339
21340 2008-08-29  Simon Josefsson  <simon@josefsson.org>
21341
21342         * MODULES.html.sh (Misc): Add bitrotate.
21343
21344         * modules/bitrotate: New file.
21345
21346         * lib/bitrotate.h: New file.
21347
21348         * modules/bitrotate-tests: New file.
21349
21350         * tests/test-bitrotate.c: New file.
21351
21352         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
21353         on the bitrotate module.
21354
21355         * lib/arctwo.c: Use new bitrotate module.
21356
21357 2008-08-29  Jim Meyering  <meyering@redhat.com>
21358
21359         bootstrap: merge changes from coreutils
21360         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
21361         of copied files.  Remove a kludge, now that this is fixed.
21362         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
21363         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
21364         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
21365
21366 2008-08-29  Bruno Haible  <bruno@clisp.org>
21367
21368         * MODULES.html.sh: Remove --cvs-urls option.
21369
21370 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
21371
21372         maint.mk: adjust to file name change
21373         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
21374
21375 2008-08-28  Jim Meyering  <meyering@redhat.com>
21376
21377         * modules/getndelim2 (License): Relicense to LGPLv2+.
21378         Approved by Richard Stallman for the version of 1995, and by
21379         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
21380
21381 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
21382
21383         * lib/getdelim.c (flockfile, funlockfile): Make all of them
21384         dummy if one is not available.  Do not touch them if
21385         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
21386         (getc_maybe_unlocked): New.
21387         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
21388
21389 2008-08-26  Eric Blake  <ebb9@byu.net>
21390
21391         doc/INSTALL: resync from autoconf
21392         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
21393         (INSTALL_PRELUDE): Delete; this is done more efficiently by
21394         moving...
21395         * install.texi [!autoconf]: ...here.  Resync from autoconf.
21396         * INSTALL: Regenerate.
21397         * INSTALL.ISO: New file.
21398         * INSTALL.UTF-8: Likewise.
21399
21400 2008-08-26  Jim Meyering  <meyering@redhat.com>
21401
21402         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
21403         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
21404         these definitions conditional, so that they may be overridden, too.
21405
21406 2008-08-26  Bruno Haible  <bruno@clisp.org>
21407
21408         Generate INSTALL file variants with prettier quotes.
21409         * doc/Makefile (INSTALL_PRELUDE): New macro.
21410         (INSTALL): Use it.
21411         (INSTALL.ISO, INSTALL.UTF-8): New rules.
21412
21413 2008-08-26  Bruno Haible  <bruno@clisp.org>
21414
21415         Run makeinfo in an English locale.
21416         * doc/Makefile (MAKEINFO): New variable.
21417
21418 2008-08-26  Bruno Haible  <bruno@clisp.org>
21419
21420         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
21421         Suggested by Eric Blake.
21422
21423 2008-08-25  Bruno Haible  <bruno@clisp.org>
21424
21425         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
21426
21427 2008-08-25  Eric Blake  <ebb9@byu.net>
21428
21429         c-stack: test that stack overflow can be caught
21430         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
21431         that platform allows handling stack overflow; at least OS/2 EMX
21432         has sigaltstack, but crashes before transferring control to
21433         handler on stack overflow.
21434         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
21435         check for HAVE_STACK_OVERFLOW_HANDLING.
21436         Reported by Elbert Pol.
21437
21438 2008-08-25  Bruno Haible  <bruno@clisp.org>
21439
21440         * doc/posix-functions/strftime.texi: Fix description of strftime
21441         module.
21442
21443 2008-08-24  Bruno Haible  <bruno@clisp.org>
21444
21445         * tests/uniwidth/test-uc_width2.c: New file.
21446         * tests/uniwidth/test-uc_width2.sh: New file.
21447         * modules/uniwidth/width-tests (Files): Add the new files.
21448         (TESTS): Add uniwidth/test-uc_width2.sh.
21449         (TESTS_ENVIRONMENT): New variable.
21450         (check_PROGRAMS): Add test-uc_width2.
21451         (test_uc_width2_SOURCES): New variable.
21452
21453         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
21454         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
21455         not 0x00AB.
21456         Reported by Alexander V. Lukyanov <lav@netis.ru>.
21457
21458 2008-08-22  Eric Blake  <ebb9@byu.net>
21459
21460         test-lock, test-tls: mention why a test is skipped
21461         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
21462         skipped.
21463         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
21464
21465         count-one-bits: relax license
21466         * modules/count-one-bits (License): Relicense to LGPLv2+.
21467         Suggested by Ludovic Courtès, approved by Ben Pfaff.
21468
21469 2008-08-22  Andreas Schwab  <schwab@suse.de>
21470
21471         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
21472         Remove spurious space in assignment.
21473
21474 2008-08-21  Simon Josefsson  <simon@josefsson.org>
21475
21476         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
21477         Paul Eggert <eggert@CS.UCLA.EDU>.
21478
21479 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
21480
21481         * modules/gettext: Add m4/threadlib.m4.
21482
21483 2008-08-19  Eric Blake  <ebb9@byu.net>
21484
21485         test-c-stack: fix compilation failure on FreeBSD 5.0
21486         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
21487         headers before <sys/resource.h>.
21488         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
21489         the bug.
21490         Reported by Nelson H. F. Beebe.
21491
21492         strverscmp: migrate from "strverscmp.h" to <string.h>
21493         * modules/string (Makefile.am): Add new hooks.
21494         * modules/strverscmp (Files): Remove strverscmp.h.
21495         (Depends-on): Add string.
21496         (configure.ac): Add indicator.
21497         (Include): Mention new header.
21498         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
21499         defaults.
21500         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
21501         results.
21502         * lib/strverscmp.h: Delete.
21503         * lib/string.in.h (strverscmp): Provide declaration, when needed.
21504         * tests/test-strverscmp.c (includes): Adjust client.
21505         * lib/check-version.c (includes): Likewise.
21506         * NEWS: Document the change.
21507
21508         strverscmp: add unit test
21509         * modules/strverscmp-tests: New file.
21510         * tests/test-strverscmp.c: Likewise.
21511
21512 2008-08-19  Simon Josefsson  <simon@josefsson.org>
21513
21514         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
21515         regarding Windows crypto stuff, from Mono.
21516
21517 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
21518
21519         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
21520         if present, for intel RND.  Return error on failures.
21521
21522 2008-08-18  Ben Pfaff  <blp@gnu.org>
21523
21524         gitlog-to-changelog: give better diagnostic for failed pipe-open
21525         * build-aux/gitlog-to-changelog: Improve error message: suggest
21526         that the version of Git may be too old.
21527
21528 2008-08-18  Simon Josefsson  <simon@josefsson.org>
21529
21530         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
21531         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
21532
21533 2008-08-18  Bruno Haible  <bruno@clisp.org>
21534
21535         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
21536         pthread_in_use().
21537
21538 2008-08-18  Bruno Haible  <bruno@clisp.org>
21539
21540         * lib/glthread/threadlib.c: Include <pthread.h>.
21541
21542 2008-08-18  Bruno Haible  <bruno@clisp.org>
21543
21544         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
21545         glthread_recursive_lock_* macros.
21546         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
21547         Fix syntax error.
21548
21549 2008-08-18  Bruno Haible  <bruno@clisp.org>
21550
21551         * lib/glthread/thread.c: Avoid forcing a context switch right after
21552         thread creation.
21553
21554 2008-08-17  Bruno Haible  <bruno@clisp.org>
21555
21556         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
21557         * lib/glthread/thread.h: Provide Win32 specific implementation.
21558         * modules/thread (Files): Add lib/glthread/thread.c.
21559         (Depends-on): Add lock.
21560         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
21561
21562 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21563
21564         New module 'yield'.
21565         * modules/yield: New file.
21566         * lib/glthread/yield.h: New file.
21567         * m4/yield.m4: New file.
21568         * MODULES.html.sh (Multithreading): Add yield.
21569
21570 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21571
21572         New module 'thread'.
21573         * modules/thread: New file.
21574         * lib/glthread/thread.h: New file.
21575         * m4/thread.m4: New file.
21576         * MODULES.html.sh (Multithreading): Add thread.
21577
21578 2008-08-17  Bruno Haible  <bruno@clisp.org>
21579
21580         * lib/glthread/lock.h: Include <stdlib.h> always.
21581         * lib/glthread/tls.h: Likewise.
21582         * lib/glthread/cond.h: Likewise.
21583
21584 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21585
21586         New module 'cond'.
21587         * modules/cond: New file.
21588         * lib/glthread/cond.h: New file.
21589         * lib/glthread/cond.c: New file.
21590         * m4/cond.m4: New file.
21591         * MODULES.html.sh (Multithreading): Add cond.
21592
21593 2008-08-16  Eric Blake  <ebb9@byu.net>
21594
21595         c-stack: fix regression on Irix 5.3 from 2008-06-21
21596         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
21597         sa_sigaction...
21598         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
21599         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
21600         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
21601         * modules/signal (Makefile.am): Use the value.
21602         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
21603         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
21604         * doc/posix-headers/signal.texi (signal.h): Document this
21605         portability issue.
21606         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
21607         Reported by Tom G. Christensen.
21608
21609 2008-08-17  Bruno Haible  <bruno@clisp.org>
21610
21611         New module 'threadlib'.
21612         * modules/threadlib: New file.
21613         * lib/glthread/threadlib.c: New file, extracted from
21614         lib/glthread/lock.c.
21615         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
21616         functions.
21617         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
21618         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
21619         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
21620         macros.
21621         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
21622         (gl_DISABLE_THREADS): Remove macro.
21623         * modules/lock (Files): Remove build-aux/config.rpath.
21624         (Depends-on): Remove havelib. Add threadlib.
21625         (configure.ac-early): Remove section.
21626         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
21627         * modules/tls (Depends-on): Remove lock. Add threadlib.
21628         (Link): New section, copied from threadlib.
21629         * MODULES.html.sh (Multithreading): Add threadlib.
21630
21631 2008-08-14  Bruno Haible  <bruno@clisp.org>
21632
21633         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
21634         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
21635         glthread_rwlock_unlock, glthread_rwlock_destroy,
21636         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
21637         glthread_recursive_lock_destroy): Define as macros always.
21638         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
21639         glthread_lock_lock.
21640         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
21641         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
21642         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
21643         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
21644         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
21645         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
21646         (glthread_recursive_lock_lock_func): Renamed from
21647         glthread_recursive_lock_lock.
21648         (glthread_recursive_lock_unlock_func): Renamed from
21649         glthread_recursive_lock_unlock.
21650         (glthread_recursive_lock_destroy_func): Renamed from
21651         glthread_recursive_lock_destroy.
21652
21653 2008-08-14  Bruno Haible  <bruno@clisp.org>
21654
21655         * lib/glthread/lock.h: Renamed from lib/lock.h.
21656         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
21657         * lib/glthread/tls.h: Renamed from lib/tls.h.
21658         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
21659         * lib/fstrcmp.c: Update includes.
21660         * lib/strsignal.c: Update includes.
21661         * modules/lock (Files, Makefile.am): Update.
21662         (Include): Change to "glthread/lock.h".
21663         * modules/tls (Files, Makefile.am): Update.
21664         (Include): Change to "glthread/tls.h".
21665         * tests/test-lock.c: Update includes.
21666         * tests/test-tls.c: Update includes.
21667         * NEWS: Mention the renamed header files.
21668
21669 2008-08-11  Jim Meyering  <meyering@redhat.com>
21670
21671         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
21672
21673 2008-08-11  Eric Blake  <ebb9@byu.net>
21674
21675         test-c-stack: avoid C99-ism
21676         * tests/test-c-stack.c (main): Fix whitespace, move declaration
21677         before statement.
21678         Reported by Alain Guibert.
21679
21680 2008-08-10  Jim Meyering  <meyering@redhat.com>
21681
21682         ensure that return value of uinttostr et al are not ignored
21683         * lib/inttostr.h (__GNUC_PREREQ): Define.
21684         (__attribute_warn_unused_result__): Define.
21685         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
21686
21687 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
21688
21689         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
21690         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
21691
21692 2008-08-07  Jim Meyering  <meyering@redhat.com>
21693
21694         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
21695
21696         * modules/mkstemp (License): Relicense under LGPLv2+.
21697         * modules/tempname (License): Likewise.
21698
21699 2008-08-06  Bruno Haible  <bruno@clisp.org>
21700
21701         * lib/poll.c (poll): Further micro-optimization.
21702
21703 2008-08-06  Jim Meyering  <meyering@redhat.com>
21704
21705         inet_pton.c: use locale-independent tolower
21706         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
21707         (inet_pton6): Use c_tolower rather than tolower.
21708         * modules/inet_pton (Depends-on): Add c-ctype.
21709
21710 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
21711
21712         * lib/poll.c (poll): Avoid division when timeout is 0, cache
21713         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
21714
21715 2008-08-06  Jim Meyering  <meyering@redhat.com>
21716
21717         * modules/inet_pton (License): Relicense under LGPLv2+.
21718
21719 2008-08-03  Bruno Haible  <bruno@clisp.org>
21720
21721         Additional non-aborting API for lock and tls.
21722         * lib/lock.h: Include <errno.h>.
21723         (glthread_lock_init): New macro/function.
21724         (gl_lock_init): Define as wrapper around glthread_lock_init.
21725         (glthread_lock_lock): New macro/function.
21726         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
21727         (glthread_lock_unlock): New macro/function.
21728         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
21729         (glthread_lock_destroy): New macro/function.
21730         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
21731         (glthread_rwlock_init): New macro/function.
21732         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
21733         (glthread_rwlock_rdlock): New macro/function.
21734         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
21735         (glthread_rwlock_wrlock): New macro/function.
21736         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
21737         (glthread_rwlock_unlock): New macro/function.
21738         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
21739         (glthread_rwlock_destroy): New macro/function.
21740         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
21741         (glthread_recursive_lock_init): New macro/function.
21742         (gl_recursive_lock_init): Define as wrapper around
21743         glthread_recursive_lock_init.
21744         (glthread_recursive_lock_lock): New macro/function.
21745         (gl_recursive_lock_lock): Define as wrapper around
21746         glthread_recursive_lock_lock.
21747         (glthread_recursive_lock_unlock): New macro/function.
21748         (gl_recursive_lock_unlock): Define as wrapper around
21749         glthread_recursive_lock_unlock.
21750         (glthread_recursive_lock_destroy): New macro/function.
21751         (gl_recursive_lock_destroy): Define as wrapper around
21752         glthread_recursive_lock_destroy.
21753         (glthread_once): New macro/function.
21754         (gl_once): Define as wrapper around glthread_once.
21755         Update function declarations.
21756         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
21757         glthread_rwlock_init. Return error code.
21758         (glthread_rwlock_rdlock_multithreaded): Renamed from
21759         glthread_rwlock_rdlock. Return error code.
21760         (glthread_rwlock_wrlock_multithreaded): Renamed from
21761         glthread_rwlock_wrlock. Return error code.
21762         (glthread_rwlock_unlock_multithreaded): Renamed from
21763         glthread_rwlock_unlock. Return error code.
21764         (glthread_rwlock_destroy_multithreaded): Renamed from
21765         glthread_rwlock_destroy. Return error code.
21766         (glthread_recursive_lock_init_multithreaded): Renamed from
21767         glthread_recursive_lock_init. Return error code.
21768         (glthread_recursive_lock_lock_multithreaded): Renamed from
21769         glthread_recursive_lock_lock. Return error code.
21770         (glthread_recursive_lock_unlock_multithreaded): Renamed from
21771         glthread_recursive_lock_unlock. Return error code.
21772         (glthread_recursive_lock_destroy_multithreaded): Renamed from
21773         glthread_recursive_lock_destroy. Return error code.
21774         (glthread_once_call): Make static.
21775         (glthread_once_multithreaded): Renamed from glthread_once.
21776         * lib/tls.h: Include <errno.h>.
21777         (glthread_tls_key_init): New macro/function.
21778         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
21779         (glthread_tls_set): New macro/function.
21780         (gl_tls_set): Define as wrapper around glthread_tls_set.
21781         (glthread_tls_key_destroy): New macro/function.
21782         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
21783         Update function declarations.
21784         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
21785         glthread_tls_get.
21786         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
21787
21788 2008-08-04  Eric Blake  <ebb9@byu.net>
21789
21790         gnumakefile: use space, not TAB, outside of targets
21791         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
21792
21793 2008-08-02  Jim Meyering  <meyering@redhat.com>
21794
21795         getdate.y: avoid locale-dependent date parsing failure
21796         In Turkish locales, getdate would fail to recognize keywords
21797         containing a lowercase "i".  The solution is not to rely on
21798         locale-sensitive case-conversion.
21799         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
21800         (lookup_word): Use c_toupper in place of toupper.
21801         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
21802         Reported by Vefa Bicakci <bicave@superonline.com> in
21803         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
21804         * modules/getdate (Depends-on): Add c-ctype.
21805
21806 2008-08-02  Bruno Haible  <bruno@clisp.org>
21807
21808         * gnulib-tool (func_import): When updating or creating a .gitignore
21809         file, prepend each added line with a slash, and ignore leading slashes
21810         from the existing lines.
21811         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
21812
21813 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21814
21815         Portability fix for GNU make 3.79.1.
21816         * top/GNUmakefile: Avoid 'else COND', which older GNU make
21817         versions do not understand.
21818
21819 2008-08-01  Bruno Haible  <bruno@clisp.org>
21820
21821         Work around bug of HP-UX 10.20 cc with -0.0 literal.
21822         * tests/test-isnanf.h (zero): New variable.
21823         (main): Avoid literal -0.0f.
21824         * tests/test-isnand.h (zero): New variable.
21825         (main): Avoid literal -0.0.
21826         * tests/test-isnanl.h (zero): New variable.
21827         (main): Avoid literal -0.0L.
21828         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
21829         (test_float, test_double, test_long_double): Avoid literals -0.0f,
21830         -0.0, -0.0L.
21831         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
21832         (test_signbitd): Avoid literal -0.0.
21833         (test_signbitl): Avoid literal -0.0L.
21834         * tests/test-ceilf1.c (zero): New variable.
21835         (main): Avoid literal -0.0f.
21836         * tests/test-ceill.c (zero): New variable.
21837         (main): Avoid literal -0.0L.
21838         * tests/test-floorf1.c (zero): New variable.
21839         (main): Avoid literal -0.0f.
21840         * tests/test-floorl.c (zero): New variable.
21841         (main): Avoid literal -0.0L.
21842         * tests/test-roundf1.c (zero): New variable.
21843         (main): Avoid literal -0.0f.
21844         * tests/test-round1.c (zero): New variable.
21845         (main): Avoid literal -0.0.
21846         * tests/test-roundl.c (zero): New variable.
21847         (main): Avoid literal -0.0L.
21848         * tests/test-truncf1.c (zero): New variable.
21849         (main): Avoid literal -0.0f.
21850         * tests/test-trunc1.c (zero): New variable.
21851         (main): Avoid literal -0.0.
21852         * tests/test-truncl.c (zero): New variable.
21853         (main): Avoid literal -0.0L.
21854         * tests/test-frexp.c (zero): New variable.
21855         (main): Avoid literal -0.0.
21856         * tests/test-frexpl.c (zero): New variable.
21857         (main): Avoid literal -0.0L.
21858         * tests/test-ldexpl.c (zero): New variable.
21859         (main): Avoid literal -0.0L.
21860         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
21861         (zerod, zerol): New variables.
21862         (test_function): Avoid literals -0.0, -0.0L.
21863         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
21864         (zerod, zerol): New variables.
21865         (test_function): Avoid literals -0.0, -0.0L.
21866         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
21867         (zerod, zerol): New variables.
21868         (test_function): Avoid literals -0.0, -0.0L.
21869         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
21870         (zerod, zerol): New variables.
21871         (test_function): Avoid literals -0.0, -0.0L.
21872         * tests/test-strtod.c (zero): New variable.
21873         (main): Avoid literal -0.0.
21874         Reported by Jonathan C. Patschke <jp@centtech.com>.
21875
21876 2008-07-31  Jim Meyering  <meyering@redhat.com>
21877
21878         sha256.h: correct definition of SHA224_DIGEST_SIZE
21879         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
21880         Reported by Paulie Pena IV <paulie4@gmail.com>.
21881         Define as 224 / 8, rather than as a literal.
21882         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
21883         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
21884         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
21885
21886 2008-07-31  Bruno Haible  <bruno@clisp.org>
21887
21888         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
21889         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
21890         Reported by Jonathan Patschke <jp@centtech.com>.
21891
21892 2008-07-31  Bruno Haible  <bruno@clisp.org>
21893
21894         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
21895         Reported by Paolo Bonzini <bonzini@gnu.org>.
21896
21897 2008-07-30  Eric Blake  <ebb9@byu.net>
21898
21899         test-strtod: allow compilation without -lm
21900         * tests/test-strtod.c (main): Avoid link dependence on fabs.
21901         Reported by Dennis Clarke <blastwave@gmail.com>.
21902
21903 2008-07-28  Jim Meyering  <meyering@redhat.com>
21904
21905         bootstrap: work also when there are no .po files in po/
21906         * build-aux/bootstrap (update_po_files): Complete the change
21907         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
21908
21909 2008-07-27  Jim Meyering  <meyering@redhat.com>
21910
21911         * users.txt: Add zile.
21912
21913 2008-07-26  Ben Pfaff  <blp@gnu.org>
21914
21915         Add missing dependencies on new m4/exponent[fdl].m4 files.
21916         * modules/isnanf-nolibm: Add m4/exponentf.m4.
21917         * modules/isnand-nolibm: Add m4/exponentd.m4.
21918         * modules/isnanl-nolibm: Add m4/exponentl.m4.
21919         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
21920         m4/isnan[fdl].m4, because the macros actually used moved.
21921         Reported by Jim Meyering.
21922
21923 2008-07-14  Ben Pfaff  <blp@gnu.org>
21924
21925         Add isinf module.
21926         * lib/isinf.c: New file.
21927         * lib/math.in.h: Define isinf macro if we have decided to replace
21928         it.
21929         * m4/isinf.m4: New file.
21930         * m4/math_h.m4: Initialize and substitute variables for isinf
21931         module.
21932         * modules/isinf: New file.
21933         * modules/isinf-tests: New file.
21934         * modules/math: Add substitutions for new module.
21935         * tests/test-isinf.c: New file.
21936         * doc/posix-functions/isinf.texi: Mention new module.
21937         * MODULES.html.sh: Mention new module.
21938
21939 2008-07-14  Ben Pfaff  <blp@gnu.org>
21940
21941         Factor out some macros for use by additional modules.
21942         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
21943         exponentf.m4.
21944         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
21945         exponentd.m4.
21946         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
21947         file exponentl.m4.
21948         * m4/exponentf.m4: New file.
21949         * m4/exponentd.m4: New file.
21950         * m4/exponentl.m4: New file.
21951         * modules/isnanf: Use new file m4/exponentf.m4.
21952         * modules/isnand: Use new file m4/exponentd.m4.
21953         * modules/isnanl: Use new file m4/exponentl.m4.
21954
21955 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
21956
21957         mktime.c: normalize tp->tm_isdst value to -1/0/1.
21958         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
21959         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
21960         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
21961
21962         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
21963         readlink on platforms without PATH_MAX.
21964
21965 2008-07-21  Eric Blake  <ebb9@byu.net>
21966
21967         Warn, not fail, on stale version.
21968         * top/GNUmakefile (_curr-ver): Tone down previous patch.
21969
21970         Don't allow installation with stale devel version number.
21971         * top/GNUmakefile (_is-install-target): New macro.
21972         (_curr-ver): Forbid installation with stale version number.
21973
21974 2008-07-20  Bruno Haible  <bruno@clisp.org>
21975
21976         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
21977         TESTS_ENVIRONMENT.
21978         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
21979
21980 2008-07-20  Bruno Haible  <bruno@clisp.org>
21981
21982         * lib/c-stack.h (c_stack_action): Add documentation.
21983         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
21984
21985 2008-07-20  Bruno Haible  <bruno@clisp.org>
21986
21987         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
21988         * modules/readlink (License): Likewise.
21989
21990 2008-07-17  Eric Blake  <ebb9@byu.net>
21991
21992         * modules/c-stack (Link): Fix typo.
21993
21994         Make c-stack use libsigsegv, when available.
21995         * modules/c-stack (Depends-on): Add libsigsegv.
21996         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
21997         needed.
21998         * lib/c-stack.c (SIGSTKSZ): Define fallback.
21999         (segv_handler, overflow_handler, c_stack_action)
22000         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
22001         implementation when libsigsegv is available, but only when using
22002         the library is necessary.
22003         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
22004         comment, explaining why XSI check fails on Linux.
22005         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
22006         * tests/test-c-stack2.sh: Tweak skip message.
22007         * NEWS: Document new link-time requirements.
22008
22009 2008-07-16  Eric Blake  <ebb9@byu.net>
22010
22011         c-stack: Expose false positives when not using libsigsegv.
22012         * modules/c-stack-tests (Files): Expand test.
22013         * tests/test-c-stack.c (main): Add means to conditionally trigger
22014         non-overflow SIGSEGV.
22015         * tests/test-c-stack2.sh: New file.
22016
22017 2008-07-14  Bruno Haible  <bruno@clisp.org>
22018
22019         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
22020         Reported by Eric Blake.
22021
22022 2008-07-14  Sam Steingold  <sds@gnu.org>
22023             Bruno Haible  <bruno@clisp.org>
22024
22025         New module libsigsegv.
22026         * modules/libsigsegv: New file.
22027         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
22028         modifications.
22029         * MODULES.html.sh (Signal handling): New section.
22030
22031 2008-07-14  Bruno Haible  <bruno@clisp.org>
22032
22033         * modules/unictype/ctype-* (Description): Add the word "function".
22034         Improves the resulting doc in MODULES.html.
22035
22036 2008-07-12  Ben Pfaff  <blp@gnu.org>
22037
22038         Add longlong module.
22039         * modules/longlong: New file.
22040
22041 2008-07-12  Bruno Haible  <bruno@clisp.org>
22042
22043         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
22044         to empty.
22045
22046 2008-07-10  Ben Pfaff  <blp@gnu.org>
22047
22048         Add isnan module.
22049         * doc/posix-functions/isnan.texi: Mention new module.
22050         * lib/math.in.h: Define isnan macro if we have decided to replace
22051         it.
22052         * m4/isnan.m4: New file.
22053         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
22054         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
22055         also.
22056         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
22057         redundancy.
22058         * m4/math_h.m4: Initialize and substitute variables for isnan
22059         module.
22060         * modules/isnan: New file.
22061         * modules/isnan-tests: New file.
22062         * modules/math: Add substitutions for new module.
22063         * tests/test-isnan.c: New file.
22064         * MODULES.html.sh: Mention new module.
22065
22066 2008-07-10  Ben Pfaff  <blp@gnu.org>
22067
22068         Add isnanf module.
22069         * lib/isnanf.m4: New file.
22070         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
22071         (gl_HAVE_ISNANF_IN_LIBM): New macro.
22072         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
22073         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
22074         * modules/isnanf: New file.
22075         * modules/isnanf-tests: New file.
22076         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
22077         files.
22078         * tests/test-isnanf-nolibm.c: factored most of its contents into
22079         new file tests/test-isnanf.h.
22080         * tests/test-isnanf.h: New file.
22081         * tests/test-isnanf.c: New file.
22082         * MODULES.html.sh: Mention new module.
22083         * doc/glibc-functions/isnanf.texi: Mention new module.
22084
22085 2008-07-10  Ben Pfaff  <blp@gnu.org>
22086
22087         Add isnand module.
22088         * lib/isnand.h: New file.
22089         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
22090         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
22091         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
22092         functionality also.
22093         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
22094         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
22095         (gl_HAVE_ISNAND_IN_LIBM): New macro.
22096         * modules/isnand: New file.
22097         * modules/isnand-tests: New file.
22098         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
22099         files.
22100         * tests/test-isnand-nolibm.c: factored most of its contents into
22101         new file tests/test-isnand.h.
22102         * tests/test-isnand.h: New file.
22103         * tests/test-isnand.c: New file.
22104         * MODULES.html.sh: Mention new module.
22105
22106 2008-07-10  Ben Pfaff  <blp@gnu.org>
22107
22108         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
22109         * lib/isnand.h: Rename lib/isnand-nolibm.h.
22110         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
22111         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
22112         * modules/isnanf-nolibm: Update references to renamed files.
22113         * modules/isnand-nolibm: Likewise.
22114         * modules/isnanf-nolibm-tests: Likewise.
22115         * modules/isnand-nolibm-tests: Likewise.
22116         * lib/frexp.c: Likewise.
22117         * lib/isfinite.c: Likewise.
22118         * lib/signbitd.c: Likewise.
22119         * lib/signbitf.c: Likewise.
22120         * lib/vasnprintf.c: Likewise.
22121         * tests/test-ceilf1.c: Likewise.
22122         * tests/test-ceilf2.c: Likewise.
22123         * tests/test-floorf1.c: Likewise.
22124         * tests/test-floorf2.c: Likewise.
22125         * tests/test-frexp.c: Likewise.
22126         * tests/test-round1.c: Likewise.
22127         * tests/test-round2.c: Likewise.
22128         * tests/test-roundf1.c: Likewise.
22129         * tests/test-strtod.c: Likewise.
22130         * tests/test-trunc1.c: Likewise.
22131         * tests/test-trunc2.c: Likewise.
22132         * tests/test-truncf1.c: Likewise.
22133         * tests/test-truncf2.c: Likewise.
22134         * NEWS: Mention the renamed header files.
22135
22136 2008-07-11  Jim Meyering  <meyering@redhat.com>
22137
22138         vc-list-files: make the last-resort awk code more portable
22139         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
22140         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
22141         does not support it.
22142
22143 2008-07-10  Eric Blake  <ebb9@byu.net>
22144
22145         Work with tar's bootstrap.
22146         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
22147         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
22148         an m4 comment.
22149
22150 2008-07-09  Jim Meyering  <meyering@redhat.com>
22151
22152         posix-shell.m4: fix typo that made this test malfunction
22153         * m4/posix-shell.m4: Remove capitalization in variable name.
22154
22155 2008-07-08  Bruno Haible  <bruno@clisp.org>
22156
22157         * m4/onceonly.m4: Update comments.
22158         Reported by Ben Pfaff <blp@cs.stanford.edu>.
22159
22160 2008-07-04  Jim Meyering  <meyering@redhat.com>
22161
22162         * users.txt: Add vc-dwim.
22163         (bison, coreutils): Use the gitweb URL.
22164
22165 2008-07-03  Jim Meyering  <meyering@redhat.com>
22166
22167         * users.txt: Add libffcall.  From Sam Steingold.
22168
22169 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
22170
22171         getdate.y: do not ignore TZ with relative day, month or year offset
22172         * lib/getdate.y (get_date): Move the tz-handling block to follow the
22173         relative-date-handling, since otherwise, the latter would clobber the
22174         sole output (an updated Start value) of the tz-handling block.
22175         * tests/test-getdate.c: Tests for the fix
22176
22177 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22178
22179         Recognize 'foo_LIBRARIES += libgnu.a'.
22180         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
22181         makefile snippet has already specified an installation location,
22182         also using '+='.
22183
22184 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
22185
22186         getdate.y: factor out common actions
22187         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
22188         Use them in place of open-coded actions.
22189
22190 2008-07-01  Simon Josefsson  <simon@josefsson.org>
22191
22192         Add self-test for getdate module.
22193         * modules/getdate-tests: New file.
22194         * tests/test-getdate.c: New file.
22195
22196 2008-06-29  Bruno Haible  <bruno@clisp.org>
22197
22198         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
22199         .gitignore.
22200         Reported by Sylvain Beucler <beuc@beuc.net>.
22201
22202 2008-06-29  Bruno Haible  <bruno@clisp.org>
22203
22204         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
22205         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
22206
22207 2008-06-29  Bruno Haible  <bruno@clisp.org>
22208
22209         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
22210         EXTRA_DIST.
22211         Reported by Sylvain Beucler <beuc@beuc.net>.
22212
22213 2008-06-26  Jim Meyering  <meyering@redhat.com>
22214
22215         make several modules depend on the "open" module
22216         This provides slightly increased consistency when opening-for-write
22217         the name of a non-directory spelled with a trailing slash.
22218         * modules/chdir-safer: Likewise.
22219         * modules/chown: Likewise.
22220         * modules/clean-temp: Likewise.
22221         * modules/copy-file: Likewise.
22222         * modules/fchdir: Likewise.
22223         * modules/fcntl-safer: Likewise.
22224         * modules/pipe: Likewise.
22225         * modules/utime: Likewise.
22226         Prompted by Eric Blake and Bruno Haible.
22227
22228 2008-06-24  Andreas Schwab  <schwab@suse.de>
22229
22230         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
22231         literals can be used as initializers for global variables.
22232
22233 2008-06-23  Eric Blake  <ebb9@byu.net>
22234
22235         Make gnulib-cache.m4 easier to diff.
22236         * gnulib-tool (func_import): Allow newlines when reading cached
22237         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
22238
22239 2008-06-23  Bruno Haible  <bruno@clisp.org>
22240
22241         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
22242         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
22243         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
22244         m4/signalblocking.m4.
22245         (gl_PREREQ_SIGACTION): Don't invoke it.
22246         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
22247         gl_PREREQ_SIG_HANDLER_H.
22248         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
22249         Don't check for sigaction here.
22250
22251 2008-06-23  Bruno Haible  <bruno@clisp.org>
22252
22253         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
22254         (install_handlers): Don't set the SA_RESETHAND flag.
22255
22256 2008-06-23  Bruno Haible  <bruno@clisp.org>
22257
22258         * m4/sigaction.m4: Comment fixes.
22259         * lib/signal.in.h: Likewise.
22260
22261 2008-06-23  Eric Blake  <ebb9@byu.net>
22262
22263         Fix typo.
22264         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
22265
22266         Avoid SA_ namespace.
22267         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
22268         Reported by Ralf Wildenhues.
22269
22270         Avoid test failure due to SA_RESTORER.
22271         * tests/test-sigaction.c (SA_MASK): New macro.
22272         (main): Avoid failing due to extension flags being set.
22273         Reported by Jim Meyering.
22274
22275         Revert use of sig-handler.h in sigprocmask.c.
22276         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
22277         it requires the existence of struct sigaction.
22278         * lib/sigprocmask.c (handler_t): Restore typedef.
22279         (rpl_signal, old_handlers): Use local type.
22280
22281 2008-06-22  Bruno Haible  <bruno@clisp.org>
22282
22283         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
22284         conditionally.
22285         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
22286
22287 2008-06-22  Bruno Haible  <bruno@clisp.org>
22288
22289         * doc/posix-functions/siginterrupt.texi: Move note.
22290
22291         * lib/signal.in.h (SA_RESTART): New macro.
22292         * lib/sigaction.c: Update comment.
22293
22294         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
22295
22296         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
22297         (gl_PREREQ_SIGPROCMASK): Invoke it.
22298         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
22299
22300         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
22301
22302         * lib/sigprocmask.c: Update a comment.
22303
22304 2008-06-21  Eric Blake  <ebb9@byu.net>
22305
22306         Use sigaction module rather than signal().
22307         * modules/c-stack (Depends-on): Add sigaction.
22308         * modules/fatal-signal (Depends-on): Likewise.
22309         * modules/nanosleep (Depends-on): Likewise.
22310         * modules/sigprocmask (Files): Add sig-handler.h.
22311         * modules/sigaction (Files): Likewise.
22312         * lib/sig-handler.h (get_handler): New file, suggested by Paul
22313         Eggert.
22314         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
22315         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
22316         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
22317         (init_fatal_signals): Likewise.
22318         * lib/nanosleep.c (rpl_nanosleep): Likewise.
22319         (siginterrupt): Delete fallback.
22320         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
22321         instead.
22322         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
22323         siginterrupt.
22324
22325         New module sigaction, for mingw.
22326         * modules/sigaction: New module...
22327         * modules/sigaction-tests: ...and its test.
22328         * m4/sigaction.m4: New file.
22329         * lib/sigaction.c: Likewise.
22330         * tests/test-sigaction.c: Likewise.
22331         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
22332         * modules/signal (Makefile.am): Likewise.
22333         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
22334         needed.
22335         * doc/posix-headers/signal.texi (signal.h): Mention provided
22336         types.
22337         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
22338         that sigaction is preferable.
22339         * doc/posix-functions/sigaction.texi (sigaction): Mention new
22340         module.
22341         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
22342         sigaction.
22343
22344         Improve robustness of sigprocmask by overriding signal.
22345         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
22346         is in use.
22347         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
22348         (SIGKILL, SIGSTOP): Provide fallbacks.
22349         (rpl_signal): Implement.
22350         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
22351         signal can be called inside handlers.
22352
22353         Fix nanosleep module on mingw.
22354         * modules/nanosleep (Depends-on): Add sys_select.
22355         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
22356
22357         Fix licensing of sigprocmask.
22358         * modules/raise (License): Relicense as LGPL.
22359
22360 2008-06-21  Bruno Haible  <bruno@clisp.org>
22361
22362         * lib/propername.c (proper_name_utf8): Don't use the transliterated
22363         result if it contains question marks.
22364         Reported by Michael Geng <linux@michaelgeng.de>.
22365
22366 2008-06-19  Bruno Haible  <bruno@clisp.org>
22367
22368         Fix CVS-ism.
22369         * doc/gnulib.texi: Include updated-stamp.texi.
22370         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
22371         (updated-stamp.texi): New rule.
22372         (gnulib.info): Depend on it.
22373         * doc/.gitignore: Add updated-stamp.texi.
22374         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
22375
22376 2008-06-19  Bruno Haible  <bruno@clisp.org>
22377
22378         * doc/Makefile (gnulib.info): Update and simplify dependencies.
22379         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
22380
22381 2008-06-19  Eric Blake  <ebb9@byu.net>
22382
22383         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
22384         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
22385         Reported by Stepan Kasal.
22386
22387 2008-06-18  Bruno Haible  <bruno@clisp.org>
22388
22389         * lib/fatal-signal.c (init_fatal_signals): Add comment.
22390         Reported by Eric Blake.
22391
22392 2008-06-18  Eric Blake  <ebb9@byu.net>
22393
22394         Work around cygwin 1.5.25 strsignal bug.
22395         * tests/test-strsignal.c: Allow for const char *.
22396         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
22397
22398 2008-06-18  Simon Josefsson  <simon@josefsson.org>
22399
22400         * users.txt: Update URL to article and add author/date
22401         information.
22402
22403 2008-06-17  Bruno Haible  <bruno@clisp.org>
22404
22405         New macro gl_DISABLE_THREADS.
22406         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
22407         if the user did not pass --enable-threads or --disable-threads option.
22408         (gl_DISABLE_THREADS): New macro.
22409         Reported by Eric Blake <ebb9@byu.net>.
22410
22411 2008-06-17  Bruno Haible  <bruno@clisp.org>
22412
22413         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
22414         when the macro ignores it.
22415         Based on a patch by Eric Blake <ebb9@byu.net>.
22416
22417 2008-06-17  Bruno Haible  <bruno@clisp.org>
22418
22419         * modules/tls (License): Change to LGPLv2+.
22420         Reported by Eric Blake.
22421
22422 2008-06-17  Eric Blake  <ebb9@byu.net>
22423
22424         Simplify c-stack prerequisites.
22425         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
22426         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
22427         no longer requires <ucontext.h> to exist.  Optimize setrlimit
22428         check.
22429         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
22430         <sys/resource.h>.
22431
22432         Move c-stack test into testsuite.
22433         * modules/c-stack-tests: New file.
22434         * lib/c-stack.c [DEBUG]: Move test program...
22435         * tests/test-c-stack.c: ...into this new file.  Skip rather than
22436         fail test if sigaltstack is lacking.
22437         * tests/test-c-stack.sh: New driver file.
22438
22439 2008-06-16  Eric Blake  <ebb9@byu.net>
22440
22441         Use raise module consistently.
22442         * modules/fatal-signal (Depends-on): Add raise.
22443         * modules/sigprocmask (Depends-on): Likewise.
22444         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
22445         * lib/sigprocmask.c (sigprocmask): Likewise.
22446         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
22447         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
22448
22449         Fix compliance bug in sigpending.
22450         * lib/sigprocmask.c (sigpending): Return pending array via
22451         parameter, not return value.
22452
22453 2008-06-14  Eric Blake  <ebb9@byu.net>
22454
22455         Improve obstack-printf test code.
22456         * tests/test-obstack-printf.c (test_function): Fix comment, and
22457         simplify usage of obstack_* in macros.  Add a test for coverage.
22458         Reported by Bruno Haible.
22459
22460 2008-06-14  Bruno Haible  <bruno@clisp.org>
22461
22462         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
22463         array size as a constant, not as a const variable.
22464         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
22465         AC_USE_SYSTEM_EXTENSIONS.
22466         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
22467         Test whether the obstack_printf function actually exists.
22468         * modules/obstack-printf (Depends-on): Add extensions.
22469         (Include): Remove obstack.h.
22470         * modules/obstack-printf-posix (Depends-on): Add extensions.
22471         (Include): Remove obstack.h.
22472
22473 2008-06-13  Eric Blake  <ebb9@byu.net>
22474
22475         Add obstack-printf and obstack-printf-posix modules.
22476         * modules/obstack-printf: New file.
22477         * modules/obstack-printf-posix: Likewise.
22478         * MODULES.html.sh (Misc): Mention them.
22479         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
22480         Likewise.
22481         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
22482         Likewise.
22483         * modules/stdio (Makefile.am): Accomodate new modules.
22484         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
22485         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
22486         Declare.
22487         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
22488         functions.
22489         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
22490         (gl_REPLACE_OBSTACK_PRINTF): New macros
22491         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
22492         * tests/test-obstack-printf.c: New file.
22493         * modules/obstack-printf-tests: Likewise.
22494         * modules/obstack-printf-posix-tests: Likewise.
22495
22496 2008-06-11  Bruno Haible  <bruno@clisp.org>
22497
22498         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
22499         * lib/open.c: Include errno.h.
22500         (open): Fail when attempting to write to a file that has a trailing
22501         slash.
22502         * tests/test-open.c (main): Test against trailing slash bug.
22503         * doc/posix-functions/open.texi: Mention the trailing slash bug.
22504
22505 2008-06-10  Bruno Haible  <bruno@clisp.org>
22506
22507         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
22508         for $? to work inside the trap command, with various /bin/sh-s.
22509         * tests/test-vc-list-files-cvs.sh: Likewise.
22510
22511 2008-06-10  Bruno Haible  <bruno@clisp.org>
22512
22513         * lib/acl-internal.h: Don't include gettext.h here.
22514         * lib/set-mode-acl.c: Include gettext.h here.
22515         * lib/copy-acl.c: Likewise.
22516
22517 2008-06-10  Bruno Haible  <bruno@clisp.org>
22518
22519         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
22520         * lib/wait-process.c (wait_subprocess): Likewise.
22521         * lib/execute.h (execute): Add termsigp argument.
22522         * lib/execute.c (execute): Likewise.
22523         * lib/csharpcomp.c (compile_csharp_using_pnet,
22524         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
22525         * lib/csharpexec.c (execute_csharp_using_pnet,
22526         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
22527         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
22528         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
22529         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
22530         is_jikes_present): Update.
22531         * lib/javaexec.c (execute_java_class): Update.
22532         * lib/javaversion.c (execute_and_read_line): Update.
22533         * NEWS: Document the changes.
22534         Reported by Eric Blake.
22535
22536 2008-06-10  Eric Blake  <ebb9@byu.net>
22537
22538         Add missing include.
22539         * tests/test-strstr.c (includes): Add <signal.h>.
22540         * tests/test-strcasestr.c (includes): Likewise.
22541         * tests/test-memmem.c (includes): Likewise.
22542
22543 2008-06-10  Bruno Haible  <bruno@clisp.org>
22544
22545         * lib/wait-process.c (wait_subprocess): Add an assertion.
22546
22547 2008-06-10  Bruno Haible  <bruno@clisp.org>
22548
22549         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
22550
22551 2008-06-10  Bruno Haible  <bruno@clisp.org>
22552
22553         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
22554         using alarm().
22555         * tests/test-strcasestr.c (main): Likewise.
22556         * tests/test-strstr.c (main): Likewise.
22557
22558 2008-06-09  Bruno Haible  <bruno@clisp.org>
22559
22560         Work around the Solaris 10 ACE ACLs ABI change.
22561         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
22562         declare if ACL_NO_TRIVIAL is present.
22563         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
22564         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
22565         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
22566         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
22567         define if ACL_NO_TRIVIAL is present.
22568         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
22569         and use the current ABI.
22570         (file_has_acl): Use same #if condition as elsewhere.
22571         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
22572         in use, and use the current ABI.
22573         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
22574         Reported by Jim Meyering.
22575
22576 2008-06-09  Eric Blake  <ebb9@byu.net>
22577
22578         Work around environments that (stupidly) ignore SIGALRM.
22579         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
22580         before using alarm().
22581         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
22582         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
22583         Reported by Ian Beckwith <ianb@erislabs.net>.
22584
22585         Produce autobuild blurb earlier in log.
22586         * modules/autobuild (configure.ac-early): Move AB_INIT here.
22587
22588 2008-06-09  Jim Meyering  <meyering@redhat.com>
22589         and Ondřej Vašík  <ovasik@redhat.com>
22590
22591         utimens.c: correct kernel bug work-around
22592         Ondřej Vašík found that the invalid return value of 280 indicates
22593         failure, not success, and the kernel bug we're trying to work
22594         around affects not just the utimensat call, but also the fallback
22595         futimens call.
22596         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
22597         not success.
22598         [HAVE_FUTIMENS]: Use the same work-around, here.
22599
22600 2008-06-09  Jim Meyering  <meyering@redhat.com>
22601
22602         add more guards around definition of ACE_-related code
22603         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
22604         ALLOW and ACE_OWNER are also defined.
22605
22606 2008-06-08  Bruno Haible  <bruno@clisp.org>
22607
22608         * lib/acl-internal.h: Add me as co-author.
22609         * lib/file-has-acl.c: Likewise.
22610         * lib/set-mode-acl.c: Likewise.
22611         * lib/copy-acl.c: Likewise.
22612
22613 2008-06-08  Bruno Haible  <bruno@clisp.org>
22614
22615         Add support for AIX ACLs.
22616         * lib/acl-internal.h (acl_nontrivial): New declaration.
22617         * lib/file-has-acl.c (acl_nontrivial): New function.
22618         (file_has_acl): Add implementation using AIX 4 ACL API.
22619         * lib/set-mode-acl.c (qset_acl): Likewise.
22620         * lib/copy-acl.c (qcopy_acl): Likewise.
22621
22622 2008-06-08  Bruno Haible  <bruno@clisp.org>
22623
22624         Add support for HP-UX ACLs.
22625         * lib/acl-internal.h (acl_nontrivial): New declaration.
22626         * lib/file-has-acl.c (acl_nontrivial): New function.
22627         (file_has_acl): Add implementation using HP-UX 11 ACL API.
22628         * lib/set-mode-acl.c (qset_acl): Likewise.
22629         * lib/copy-acl.c (qcopy_acl): Likewise.
22630
22631 2008-06-08  Bruno Haible  <bruno@clisp.org>
22632
22633         Add support for Cygwin ACLs.
22634         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
22635         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
22636         the chmod_or_fchmod call.
22637         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
22638
22639 2008-06-08  Bruno Haible  <bruno@clisp.org>
22640
22641         Fix bug with setuid modes in Solaris 10+ code.
22642         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
22643         succeeded, when the mode contains some special bits.
22644
22645 2008-06-08  Bruno Haible  <bruno@clisp.org>
22646
22647         Add support for Solaris 7..10 ACLs.
22648         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
22649         declarations.
22650         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
22651         functions.
22652         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
22653         * lib/set-mode-acl.c (qset_acl): Likewise.
22654         * lib/copy-acl.c (qcopy_acl): Likewise.
22655
22656 2008-06-08  Bruno Haible  <bruno@clisp.org>
22657
22658         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
22659         declaration.
22660         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
22661         (acl_access_nontrivial): Remove MacOS X case.
22662         (file_has_acl): Use acl_extended_nontrivial.
22663         * lib/copy-acl.c (qcopy_acl): Likewise.
22664
22665 2008-06-08  Bruno Haible  <bruno@clisp.org>
22666
22667         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
22668
22669 2008-06-08  Jim Meyering  <meyering@redhat.com>
22670
22671         * modules/acl (Maintainer): Add Bruno Haible.
22672
22673 2008-06-07  Bruno Haible  <bruno@clisp.org>
22674
22675         Improve support for Tru64 ACLs.
22676         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
22677         ACL on OSF/1.
22678
22679 2008-06-07  Bruno Haible  <bruno@clisp.org>
22680
22681         Add support for MacOS X ACLs.
22682         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
22683         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
22684         * lib/set-mode-acl.c (qset_acl): Likewise.
22685         * lib/copy-acl.c (qcopy_acl): Likewise.
22686
22687 2008-06-07  Bruno Haible  <bruno@clisp.org>
22688
22689         Fix memory leak introduced on 2008-05-22.
22690         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
22691         use.
22692
22693 2008-06-07  Bruno Haible  <bruno@clisp.org>
22694
22695         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
22696         to construct an empty ACL.
22697
22698 2008-06-07  Bruno Haible  <bruno@clisp.org>
22699
22700         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
22701         precisely.
22702         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
22703
22704 2008-06-07  Bruno Haible  <bruno@clisp.org>
22705
22706         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
22707         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
22708
22709 2008-06-07  Bruno Haible  <bruno@clisp.org>
22710
22711         * doc/posix-functions/_setjmp.texi: Explain the use of this function
22712         regardless of POSIX.
22713         * doc/posix-functions/_longjmp.texi: Likewise.
22714         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
22715         SystemV platform in this case.
22716
22717 2008-06-06  Eric Blake  <ebb9@byu.net>
22718
22719         Document abort() bugs.
22720         * doc/posix-functions/abort.texi (abort): Mention anomalies.
22721
22722         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
22723         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
22724         sigsetjmp.
22725         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
22726         siglongjmp, but only as a macro.
22727         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
22728         is obsolete.
22729         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
22730
22731         Tweak documentation to cover cygwin argz bugs.
22732         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
22733         argz bug fix; no code change needed since no cygwin releases
22734         occurred between the last fix and the bug being tested.
22735         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
22736         module and recently fixed cygwin bugs.
22737         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
22738         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
22739         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
22740         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
22741         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
22742         Likewise.
22743         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
22744         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
22745         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
22746         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
22747         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
22748         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
22749         Likewise.
22750
22751         Avoid gcc warning on cygwin.
22752         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
22753         !ACL_NO_TRIVIAL]: Avoid unused variable.
22754
22755 2008-06-05  Eric Blake  <ebb9@byu.net>
22756
22757         Be tolerant of UNKNOWN version in gnulib-tool test dir.
22758         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
22759         git-version-gen fails to come up with a version.
22760         Reported by Simon Josefsson.
22761
22762 2008-06-05  Jim Meyering  <meyering@redhat.com>
22763             Paul Eggert  <eggert@cs.ucla.edu>
22764
22765         utimens.c: work around a probable Linux kernel bug
22766         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
22767         appears to be a kernel bug that causes utimensat to return 280
22768         instead of 0, indicating success.
22769
22770 2008-06-04  Bruno Haible  <bruno@clisp.org>
22771
22772         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
22773         2008-06-01 commit.
22774
22775 2008-06-04  Bruno Haible  <bruno@clisp.org>
22776
22777         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
22778         * lib/file-has-acl.c (acl_access_nontrivial): New function.
22779         (file_has_acl): Use it. Save errno afterwards.
22780         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
22781
22782 2008-06-03  Bruno Haible  <bruno@clisp.org>
22783
22784         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
22785         draft code. Simplify #ifs.
22786         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
22787         Put Solaris code after POSIX-draft code. Fix comments regarding
22788         Solaris 10, HP-UX. Mention Cygwin.
22789         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
22790
22791 2008-06-03  Eric Blake  <ebb9@byu.net>
22792
22793         Provide fallback for older kernels.
22794         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
22795         Provide runtime fallback if kernel lacks support.
22796         Reported by Mike Frysinger.
22797
22798 2008-06-02  Bruno Haible  <bruno@clisp.org>
22799
22800         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
22801         it exists.
22802
22803 2008-06-02  Bruno Haible  <bruno@clisp.org>
22804
22805         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
22806         * lib/copy-acl.c (qcopy_acl): Update comment.
22807
22808 2008-06-02  Bruno Haible  <bruno@clisp.org>
22809
22810         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
22811         like ACL APIs.
22812
22813 2008-06-02  Bruno Haible  <bruno@clisp.org>
22814
22815         * tests/test-file-has-acl.sh: Use different code for Cygwin.
22816         * tests/test-set-mode-acl.sh: Likewise.
22817         * tests/test-copy-acl.sh: Likewise.
22818         * tests/test-copy-file.sh: Likewise.
22819
22820 2008-06-02  Bruno Haible  <bruno@clisp.org>
22821
22822         * tests/test-file-has-acl.sh: Remove unused code.
22823
22824 2008-06-01  Bruno Haible  <bruno@clisp.org>
22825
22826         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
22827         (copy_acl): Just a wrapper around qcopy_acl that emits the error
22828         messages.
22829         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
22830
22831 2008-06-01  Bruno Haible  <bruno@clisp.org>
22832
22833         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
22834         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
22835         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
22836         APIs.
22837         * modules/acl-tests (configure.ac): Remove tests now contained in
22838         m4/acl.m4.
22839
22840 2008-06-02  Jim Meyering  <meyering@redhat.com>
22841
22842         announce-gen: use a better key-server host name
22843         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
22844         it may be more consistently reliable.  Suggested by Werner Koch
22845         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
22846
22847 2008-06-01  Bruno Haible  <bruno@clisp.org>
22848
22849         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
22850         Reported by Voroskoi Andras <voroskoi@gmail.com>.
22851
22852 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
22853
22854         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
22855
22856 2008-06-01  Bruno Haible  <bruno@clisp.org>
22857
22858         New ACL tests.
22859         * tests/test-file-has-acl.sh: New file.
22860         * tests/test-file-has-acl.c: New file.
22861         * tests/test-set-mode-acl.sh: New file.
22862         * tests/test-set-mode-acl.c: New file.
22863         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
22864         * tests/test-copy-acl.c: New file.
22865         * modules/acl-tests: New file, based on modules/copy-file-tests.
22866         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
22867         (Depends-on): Add acl-tests.
22868         (configure.ac): Remove checks.
22869         (Makefile.am): Don't create test-sameacls program here any more.
22870
22871 2008-06-01  Bruno Haible  <bruno@clisp.org>
22872
22873         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
22874         * tests/test-sameacls.c: Include progname.h.
22875         (main): Invoke set_program_name. Portability fixes for MacOS X,
22876         Solaris, HP-UX.
22877
22878 2008-06-01  Bruno Haible  <bruno@clisp.org>
22879
22880         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
22881         function.
22882         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
22883
22884 2008-06-01  Bruno Haible  <bruno@clisp.org>
22885
22886         * modules/rpmatch (Depends-on): Add strdup.
22887
22888 2008-06-01  Bruno Haible  <bruno@clisp.org>
22889
22890         * lib/pipe.c: Include unistd-safer.h.
22891         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
22892         * modules/pipe (Depends-on): Add unistd-safer.
22893
22894 2008-05-30  Simon Josefsson  <simon@josefsson.org>
22895
22896         * modules/autobuild (configure.ac): Call AB_INIT.
22897
22898 2008-05-30  Simon Josefsson  <simon@josefsson.org>
22899
22900         * tests/test-getaddrinfo.c: Don't print debug messages by default.
22901         Suggested by Bruno Haible <bruno@clisp.org>.
22902
22903 2008-05-30  Simon Josefsson  <simon@josefsson.org>
22904
22905         * tests/test-base64.c: Cast size_t to unsigned long when invoking
22906         printf.  Use %lu instead of %d.  Reported by Bruno Haible
22907         <bruno@clisp.org>.
22908
22909 2008-05-29  Eric Blake  <ebb9@byu.net>
22910
22911         Prefer new POSIX 200x interfaces over futimesat.
22912         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
22913         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
22914         when available.
22915         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
22916
22917 2008-05-28  Bruno Haible  <bruno@clisp.org>
22918
22919         * modules/stpcpy (License): Change to LGPLv2+.
22920         Requested by David Lutterkort <dlutter@redhat.com>.
22921
22922 2008-05-27  Bruno Haible  <bruno@clisp.org>
22923
22924         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
22925         current mingw.
22926         Reported by Jose E. Marchesi <jemarch@gnu.org>.
22927
22928 2008-05-27  Bruno Haible  <bruno@clisp.org>
22929
22930         * modules/iconv_open (Link): New section, from module 'iconv'.
22931         * modules/striconv (Link): Likewise.
22932         * modules/striconveh (Link): Likewise.
22933         * modules/xstriconv (Link): Likewise.
22934         * modules/unicodeio (Link): Likewise.
22935         * modules/propername (Link): Likewise.
22936         Reported by Jim Meyering.
22937
22938 2008-05-26  Jim Meyering  <meyering@redhat.com>
22939
22940         sha256: do not artificially restrict buffer length to be < 2^32
22941         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
22942         uint32_t to size_t.
22943         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
22944         to match.
22945
22946         avoid unaligned access errors, e.g., on sparc
22947         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
22948         direct access through a possibly-unaligned uint64* pointer.
22949         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
22950         direct access through a possibly-unaligned uint32* pointer.
22951         Prompted by this patch from Tom "spot" Callaway:
22952         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
22953
22954         sha512.c: fix typo in comment
22955         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
22956
22957 2008-05-25  Bruno Haible  <bruno@clisp.org>
22958
22959         * lib/set-mode-acl.c: Renamed from lib/acl.c.
22960         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
22961         (Makefile.am): Update lib_SOURCES.
22962
22963 2008-05-25  Bruno Haible  <bruno@clisp.org>
22964
22965         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
22966
22967 2008-05-25  Jim Meyering  <meyering@redhat.com>
22968
22969         useless-if-before-free: freed expr may have white-space differences
22970         * build-aux/useless-if-before-free: Recognize cases in which the
22971         freed expression differs from the tested one in embedded white
22972         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
22973         $1 was used, so we can't make any regexp shy.  Improved tests now
22974         detect this.
22975
22976         useless-if-before-free: accept white space in the expression.
22977         * build-aux/useless-if-before-free: For now, any white space
22978         in the expression must be identical in the free argument.
22979
22980         useless-if-before-free: efficiency tweak
22981         * build-aux/useless-if-before-free: Make the expression-matching
22982         regexp "shy".
22983         Make the *outer* regexp shy, not the expr-matching one.
22984
22985         update code-in-comment to accept cast of free arg
22986         * build-aux/useless-if-before-free: Update regexp.
22987
22988 2008-05-25  Bruno Haible  <bruno@clisp.org>
22989
22990         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
22991         * modules/copy-file-tests (Files, Makefile.am): Update.
22992         * tests/test-copy-file.c (func_test_copy): Update.
22993
22994 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
22995
22996         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
22997
22998 2008-05-23  Bruno Haible  <bruno@clisp.org>
22999
23000         Improve support for ACLs on OSF/1.
23001         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
23002         Remove fallback for unknown flavors of ACLs.
23003
23004 2008-05-22  Bruno Haible  <bruno@clisp.org>
23005
23006         Add support for ACLs on OSF/1.
23007         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
23008         replacements.
23009         (acl_free_text): New macro fallback.
23010         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
23011         acl_free.
23012         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
23013         acl_free_text function. Require AC_C_INLINE.
23014
23015 2008-05-22  Bruno Haible  <bruno@clisp.org>
23016
23017         Make copy_acl work on MacOS X 10.5.
23018         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
23019         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
23020         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
23021         If MODE_INSIDE_ACL, don't assume that every system has the same text
23022         representation for ACLs as FreeBSD.
23023         * lib/copy-acl.c (copy_acl): Add support for platforms with
23024         !MODE_INSIDE_ACL.
23025         * lib/file-has-acl.c (file_has_acl): Likewise.
23026         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
23027         FreeBSD, MacOS X, or IRIX, respectively.
23028
23029 2008-05-22  Bruno Haible  <bruno@clisp.org>
23030
23031         * lib/acl.h: Don't include <sys/acl.h>.
23032         (GETACLCNT): Move fallback to lib/acl-internal.h.
23033         * lib/acl-internal.h: Include <sys/acl.h> here.
23034         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
23035
23036 2008-05-22  Bruno Haible  <bruno@clisp.org>
23037
23038         Split off copy_acl function to separate file.
23039         * lib/copy-acl.c: New file, extracted from lib/acl.c.
23040         * lib/acl.c (copy_acl): Moved function to separate file.
23041         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
23042         * modules/acl (Files): Add lib/copy-acl.c.
23043         (Makefiles.am): Augment lib_SOURCES.
23044
23045 2008-05-22  Bruno Haible  <bruno@clisp.org>
23046
23047         * modules/copy-file-tests: New file.
23048         * tests/test-copy-file.sh: New file.
23049         * tests/test-copy-file.c: New file.
23050         * tests/test-copy-file-sameacls.c: New file.
23051
23052 2008-05-22  Eric Blake  <ebb9@byu.net>
23053
23054         Avoid gcc warning.
23055         * tests/test-memcmp.c (main): Pass NULL indirectly.
23056
23057 2008-05-21  Bruno Haible  <bruno@clisp.org>
23058
23059         Add reference doc about ACLs.
23060         * doc/acl-resources.txt: New file.
23061         * doc/acl-cygwin.txt: New file.
23062
23063 2008-05-21  Bruno Haible  <bruno@clisp.org>
23064
23065         Avoid one more warning from gcc.
23066         * lib/vasnprintf.c (IF_LINT): Update comments.
23067         (VASNPRINTF): Use it also for the 'prefix' array initializer.
23068
23069 2008-05-21  Jim Meyering  <meyering@redhat.com>
23070
23071         avoid a warning from gcc
23072         * lib/vasnprintf.c (IF_LINT): Define.
23073         (scale10_round_decimal_long_double):
23074         Use it to avoid a "may be used uninitialized" warning.
23075         (scale10_round_decimal_double): Likewise.
23076
23077 2008-05-21  Simon Josefsson  <simon@josefsson.org>
23078
23079         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
23080         declared.
23081
23082 2008-05-20  Bruno Haible  <bruno@clisp.org>
23083
23084         * tests/test-memcmp.c (main): Test also the sign of the result. Test
23085         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
23086
23087 2008-05-20  Simon Josefsson  <simon@josefsson.org>
23088
23089         * modules/memcmp-tests: New file.
23090         * tests/test-memcmp.c: New file.
23091
23092 2008-05-19  Bruno Haible  <bruno@clisp.org>
23093
23094         * modules/propername (Notice, configure.ac): Put quoted "..." into
23095         --keyword option.
23096         * lib/propername.h: Update comments accordingly.
23097         Reported by Eric Blake.
23098
23099 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
23100
23101         * modules/getpass-gnu (Depends-on): Add fseeko.
23102
23103 2008-05-19  Simon Josefsson  <simon@josefsson.org>
23104
23105         * modules/base64-tests: New file.
23106
23107 2008-05-19  Bo Borgerson <gigabo@gmail.com>
23108
23109         * lib/base64.c (base64_decode_ctx): If a decode context structure
23110         was passed in use it to ignore newlines.  If a context structure
23111         was _not_ passed in, continue to treat newlines as garbage (this
23112         is the historical behavior).  Formerly base64_decode.
23113         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
23114         takes a decode context structure.
23115         * lib/base64.h (base64_decode): Macro for four-argument calls.
23116         (base64_decode_alloc): Likewise.
23117         * lib/base64.c (base64_decode_ctx): If a decode context structure
23118         was passed in use it to ignore newlines.  If a context structure
23119         was _not_ passed in, continue to treat newlines as garbage (this
23120         is the historical behavior).  Formerly base64_decode.
23121         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
23122         takes a decode context structure.
23123         * lib/base64.h (base64_decode): Macro for four-argument calls.
23124         (base64_decode_alloc): Likewise.
23125
23126 2008-05-19  Jim Meyering  <meyering@redhat.com>
23127
23128         avoid a warning from gcc
23129         * lib/trim.c (IF_LINT): Define.
23130         (trim2): Use it to avoid a "may be used uninitialized" warning.
23131
23132         Fix doc typo.
23133         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
23134
23135 2008-05-19  Bruno Haible  <bruno@clisp.org>
23136
23137         * doc/glibc-functions/getpass.texi: Document limits of other
23138         implementations.
23139
23140 2008-05-19  Simon Josefsson  <simon@josefsson.org>
23141             Bruno Haible <bruno@clisp.org>
23142
23143         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
23144
23145 2008-05-18  Bruno Haible  <bruno@clisp.org>
23146
23147         * modules/propername: New file, from GNU gettext.
23148         * lib/propername.h: New file, from GNU gettext.
23149         * lib/propername.c: New file, from GNU gettext.
23150         * MODULES.html.sh (Internationalization functions): Add propername.
23151
23152 2008-05-16  Jim Meyering  <meyering@redhat.com>
23153             Bruno Haible  <bruno@clisp.org>
23154
23155         Avoid some warnings from "gcc -Wshadow".
23156         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
23157
23158 2008-05-15  Eric Blake  <ebb9@byu.net>
23159
23160         Extend previous patch to cygwin 1.7.0.
23161         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
23162         fast implementation in cygwin >= 1.7.0.
23163         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
23164         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23165
23166 2008-05-15  Bruno Haible  <bruno@clisp.org>
23167
23168         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
23169         implementation in glibc >= 2.9.
23170         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
23171         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23172
23173 2008-05-15  Bruno Haible  <bruno@clisp.org>
23174
23175         * MODULES.html.sh (Internationalization functions): Remove linebreak.
23176         (Unicode string functions): Add unilbrk/*.
23177         Reported by Karl Berry.
23178
23179 2008-05-15  Eric Blake  <ebb9@byu.net>
23180
23181         Fix violation of <stdbool.h> replacement in regex.
23182         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
23183         * lib/regexec.c (re_search_internal): Likewise.
23184         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
23185
23186 2008-05-15  Jim Meyering  <meyering@redhat.com>
23187
23188         avoid distracting test output when git or cvs is not found
23189         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
23190         * tests/test-vc-list-files-git.sh: Likewise.
23191
23192 2008-05-15  Eric Blake  <ebb9@byu.net>
23193
23194         Glibc finally accepted the memmem speedup code, bugzilla #5514.
23195         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
23196         glibc version.
23197         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
23198         * doc/posix-functions/strstr.texi (strstr): Likewise.
23199         * lib/str-two-way.h (MAX): Sychronize with glibc.
23200
23201 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
23202
23203         * lib/regcomp.c (optimize_utf8): Add a note on why we test
23204         opr.ctx_type.
23205         (calc_first): Initialize constraint field.
23206         (duplicate_node_closure): Use it instead of special casing ANCHORS.
23207         Fix grammar.
23208         (duplicate_node): Merge constraint field for all node types.
23209         (calc_eclosure_iter): Look at constraint field for all node types.
23210         * lib/regex_internal.c (create_cd_newstate): Don't look at
23211         opr.ctx_type.
23212
23213 2008-05-14  Bruno Haible  <bruno@clisp.org>
23214
23215         Help GCC to do better code generation.
23216         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
23217         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
23218         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
23219         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
23220         Declare with attribute 'malloc' if supported.
23221
23222 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
23223
23224         use "echo STR|wc -c" rather than unportable "expr length STR"
23225         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
23226         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
23227
23228 2008-05-14  Jim Meyering  <meyering@redhat.com>
23229
23230         use dd ibs=$n count=1 ... rather than less-portable head -c$n
23231         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
23232         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
23233         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
23234         via Collin Lasse.
23235
23236 2008-05-14  Eric Blake  <ebb9@byu.net>
23237
23238         Avoid quadratic growth in gl_LIBSOURCES.
23239         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
23240         Suggested by Bruno Haible.
23241
23242         Test xmemdup0.
23243         * modules/xmemdup0-tests: New file.
23244         * tests/test-xmemdup0.c: Likewise.
23245
23246 2008-05-13  Eric Blake  <ebb9@byu.net>
23247
23248         Split xmemdup0 into its own module.
23249         * modules/xmemdup0: New file.
23250         * lib/xmemdup0.h: Likewise.
23251         * lib/xmemdup0.c: Likewise.
23252         * MODULES.html.sh (Memory management functions): Add xmemdup0.
23253         * lib/xalloc.h (xmemdup0): Remove.
23254         * lib/xmalloc.c (xmemdup0): Likewise.
23255
23256 2008-05-13  Eric Blake  <ebb9@byu.net>
23257             Bruno Haible  <bruno@clisp.org>
23258
23259         Reduce number of forks required during autoconf.
23260         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
23261         and gl_LIBSOURCES_DIR.
23262         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
23263         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
23264         m4_syscmd per file.
23265         <m4_foreach_w>: Move...
23266         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
23267
23268 2008-05-13  Eric Blake  <ebb9@byu.net>
23269
23270         * gnulib-tool: Fix various comment typos.
23271
23272 2008-05-12  Bruno Haible  <bruno@clisp.org>
23273
23274         Tailor the linebreaking algorithm.
23275         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
23276
23277 2008-05-12  Bruno Haible  <bruno@clisp.org>
23278
23279         Update to Unicode 5.0.0.
23280         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
23281         LBP_JV, LBP_JT. Redistribute values.
23282         (unilbrk_table): Change size.
23283         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
23284         Unicode TR#14 rev. 22.
23285         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
23286         LBP_JV, LBP_JT. Redistribute values.
23287         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
23288         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
23289         Update.
23290         * lib/unilbrk/lbrkprop1.h: Regenerated.
23291         * lib/unilbrk/lbrkprop2.h: Regenerated.
23292         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
23293         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
23294         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
23295         Likewise.
23296         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
23297         Likewise.
23298         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
23299         result.
23300         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
23301         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
23302         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
23303         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
23304         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
23305         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
23306
23307 2008-05-11  Bruno Haible  <bruno@clisp.org>
23308
23309         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
23310
23311 2008-05-11  Bruno Haible  <bruno@clisp.org>
23312
23313         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
23314         * modules/unilbrk/gen-lbrk: New file.
23315
23316 2008-05-11  Bruno Haible  <bruno@clisp.org>
23317
23318         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
23319         * m4/sha512.m4 (gl_SHA512): Likewise.
23320
23321 2008-05-11  Jim Meyering  <meyering@redhat.com>
23322
23323         New modules: crypto/sha256, crypto/sha512 (from coreutils)
23324         * modules/crypto/sha256: New file.
23325         * modules/crypto/sha512: Likewise.
23326         * lib/sha256.c: Likewise.
23327         * lib/sha256.h: Likewise.
23328         * lib/sha512.c: Likewise.
23329         * lib/sha512.h: Likewise.
23330         * lib/u64.h: Likewise.
23331         * m4/sha256.m4: Likewise.
23332         * m4/sha512.m4: Likewise.
23333         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
23334
23335 2008-05-10  Bruno Haible  <bruno@clisp.org>
23336
23337         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
23338         (Input/Output <stdio.h>): Add xprintf.
23339         (Signal handling <signal.h>): Add strsignal.
23340         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
23341         (Core language properties): Add func.
23342         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
23343         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
23344         strings.
23345         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
23346         (Input/output): New section.
23347         (File system functions): Add openat-die, stat-macros.
23348         (Networking functions): Add sockets.
23349         (Unicode string functions): Add unictype/*.
23350         (Support for building libraries and executables): Add gperf.
23351         (Support for building documentation): Add agpl-3.0.
23352         (Misc): Add nocrash.
23353
23354 2008-05-10  Bruno Haible  <bruno@clisp.org>
23355
23356         * modules/unictype/gen-ctype: New file.
23357
23358 2008-05-10  Jim Meyering  <meyering@redhat.com>
23359
23360         Make chdir-safer.c more efficient on a system with no symlinks.
23361         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
23362         also if ELOOP is zero.  Suggested by Bruno Haible.
23363
23364         Make chdir-safer.c slightly safer.
23365         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
23366         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
23367
23368         Avoid compile failure on systems without ELOOP (like mingw).
23369         * lib/chdir-safer.c (ELOOP): Define if not already defined.
23370         Reported by Bruno Haible.
23371
23372 2008-05-10  Bruno Haible  <bruno@clisp.org>
23373
23374         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
23375         (is_utf8_encoding): Use a case-insensitive comparison.
23376         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
23377         streq.
23378
23379 2008-05-10  Bruno Haible  <bruno@clisp.org>
23380
23381         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
23382         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
23383         * lib/unilbrk/ulc-common.h (iconv_string_length,
23384         iconv_string_keeping_offsets): Remove declarations.
23385         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
23386         Don't include <iconv.h>, streq.h, xsize.h.
23387         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
23388         conversion.
23389         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
23390         <iconv.h>, streq.h, xsize.h.
23391         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
23392         conversion.
23393         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
23394         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
23395         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
23396         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
23397
23398 2008-05-10  Bruno Haible  <bruno@clisp.org>
23399
23400         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
23401         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
23402
23403         * modules/unilbrk/u32-width-linebreaks-tests: New file.
23404         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
23405
23406         * modules/unilbrk/u16-width-linebreaks-tests: New file.
23407         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
23408
23409         * modules/unilbrk/u8-width-linebreaks-tests: New file.
23410         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
23411
23412         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
23413         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
23414
23415         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
23416         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
23417
23418         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
23419         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
23420
23421         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
23422         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
23423
23424 2008-05-10  Bruno Haible  <bruno@clisp.org>
23425
23426         Split up 'linebreak' module.
23427         * lib/unilbrk.h: New file, based on lib/linebreak.h.
23428         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
23429         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
23430         modifications.
23431         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
23432         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
23433         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
23434         lib/linebreak.c.
23435         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
23436         lib/linebreak.c.
23437         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
23438         lib/linebreak.c.
23439         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
23440         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
23441         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
23442         lib/linebreak.c.
23443         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
23444         lib/linebreak.c.
23445         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
23446         lib/linebreak.c.
23447         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
23448         lib/linebreak.c.
23449         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
23450         lib/linebreak.c.
23451         * modules/unilbrk/base: New file.
23452         * modules/unilbrk/tables: New file.
23453         * modules/unilbrk/u8-possible-linebreaks: New file.
23454         * modules/unilbrk/u16-possible-linebreaks: New file.
23455         * modules/unilbrk/u32-possible-linebreaks: New file.
23456         * modules/unilbrk/ulc-common: New file.
23457         * modules/unilbrk/ulc-possible-linebreaks: New file.
23458         * modules/unilbrk/u8-width-linebreaks: New file.
23459         * modules/unilbrk/u16-width-linebreaks: New file.
23460         * modules/unilbrk/u32-width-linebreaks: New file.
23461         * modules/unilbrk/ulc-width-linebreaks: New file.
23462         * lib/linebreak.h: Remove file.
23463         * lib/linebreak.c: Remove file.
23464         * m4/linebreak.m4: Remove file.
23465         * modules/linebreak: Remove file.
23466         * NEWS: Mention the changes.
23467
23468 2008-05-09  Eric Blake  <ebb9@byu.net>
23469
23470         Add xmemdup0.
23471         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
23472         implementation.
23473         * lib/xmalloc.c (xmemdup0): New C implementation.
23474
23475 2008-05-08  Bruno Haible  <bruno@clisp.org>
23476
23477         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
23478
23479 2008-05-07  Eric Blake  <ebb9@byu.net>
23480
23481         Support cross-compilation of <wctype.h>.
23482         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
23483         AC_CACHE_CHECK.
23484
23485 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
23486
23487         * build-aux/vc-list-files: Add support for bzr.
23488
23489 2008-05-03  Jim Meyering  <meyering@redhat.com>
23490
23491         avoid failed assertion with tight malloc
23492         * tests/test-getndelim2.c: Correct an off-by-one assertion.
23493
23494 2008-05-03  Simon Josefsson  <simon@josefsson.org>
23495
23496         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
23497         are needed from arpa/inet.h.
23498         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
23499         Reported by Bruno Haible.
23500
23501 2008-05-02  Jim Meyering  <meyering@redhat.com>
23502
23503         avoid compilation error on FreeBSD 6
23504         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
23505
23506 2008-05-01  Jim Meyering  <meyering@redhat.com>
23507
23508         useless-if-before-free: correct --help's exit status description
23509         * build-aux/useless-if-before-free (usage): Like grep, exit 0
23510         for one or more matches, etc.  Reported by Bruno Haible.
23511
23512         vc-list-files: make the stand-alone gnulib test work
23513         * modules/vc-list-files-tests (configure.ac):
23514         Define and AC_SUBST abs_aux_dir.
23515         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
23516         $(abs_top_srcdir) to each script and having each of them
23517         duplicate the work of setting PATH, set PATH here, using
23518         the new variable, abs_aux_dir instead.
23519         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
23520         * tests/test-vc-list-files-git.sh: Likewise.
23521         Reported by Bruno Haible.
23522
23523 2008-05-01  Bruno Haible  <bruno@clisp.org>
23524
23525         * lib/getndelim2.c (getndelim2): Fix newsize computation during
23526         reallocation. Rename 'done' to 'found_delimiter'.
23527
23528 2008-05-01  Jim Meyering  <meyering@redhat.com>
23529
23530         vc-list-files: accommodate /bin/sh like the one from Solaris 10
23531         * build-aux/vc-list-files: Use `...`, not $(...).
23532
23533 2008-04-30  Jim Meyering  <meyering@redhat.com>
23534
23535         add tests for vc-list-files
23536         * modules/vc-list-files-tests: New module.
23537         * tests/test-vc-list-files-cvs.sh: New file.
23538         * tests/test-vc-list-files-git.sh: New file.
23539
23540         avoid a warning from gcc
23541         * lib/getndelim2.c (IF_LINT): Define.
23542         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
23543
23544         vc-list-files: work properly with build-aux/cvsu, too
23545         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
23546         to all cvs-based clauses.
23547
23548         vc-list-files: work properly in the CVS+awk case, too
23549         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
23550
23551         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
23552         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
23553         take more than one file argument, so .  Add quotes, just in case $dir
23554         ever contains a shell meta-character.  Prompted by Soren Hansen in
23555         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
23556
23557 2008-04-29  Eric Blake  <ebb9@byu.net>
23558
23559         Optimize getndelim2 to use block operations when possible.
23560         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
23561         freadseek, and memchr2.
23562         * lib/getndelim2.c (getndelim2): Use them for block reads.
23563
23564 2008-04-29  Bruno Haible  <bruno@clisp.org>
23565
23566         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
23567         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
23568         * modules/inet_ntop (Depends-on): Add extensions.
23569         * modules/inet_pton (Depends-on): Likewise.
23570         Reported by Simon Josefsson.
23571
23572 2008-04-29  Jim Meyering  <meyering@redhat.com>
23573
23574         When the is more than one match in a block, match all of them.
23575         * build-aux/useless-if-before-free: Iterate through each block
23576         until there are no more matches.
23577
23578         Fix broken useless-if-before-free script.
23579         * build-aux/useless-if-before-free: Fix typo: missing "?" after
23580         the expression to match cast of argument to free-like function.
23581
23582 2008-04-29  Eric Blake  <ebb9@byu.net>
23583
23584         Use new header.
23585         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
23586
23587 2008-04-29  Jim Meyering  <meyering@redhat.com>
23588
23589         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
23590         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
23591         by gnulib to exist and to declare e.g., inet_ntop.
23592         Don't include "inet_ntop.h", now removed.
23593
23594         * m4/arpa_inet_h.m4: Remove trailing blanks.
23595
23596 2008-04-29  Eric Blake  <ebb9@byu.net>
23597
23598         Silence valgrind on safe reads beyond potential array bounds.
23599         * lib/rawmemchr.valgrind: New file.
23600         * lib/strchrnul.valgrind: Likewise.
23601         * modules/rawmemchr (Files): Distribute new file.
23602         * modules/strchrnul (Files): Likewise.
23603         Suggested by Bruno Haible.
23604
23605 2008-04-29  Bruno Haible  <bruno@clisp.org>
23606
23607         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
23608         (inet_ntop, inet_pton): Change portability warning's wording.
23609         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
23610         Invoke gl_CHECK_NEXT_HEADERS.
23611         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
23612         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
23613         set ARPA_INET_H.
23614         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
23615         * modules/arpa_inet (Description): No longer only for systems that
23616         lack it.
23617         (Depends-on): Add include_next.
23618         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
23619         HAVE_ARPA_INET_H.
23620
23621 2008-04-29  Jim Meyering  <meyering@redhat.com>
23622
23623         * modules/mkdir (License): Re-license as LGPLv2+.
23624
23625 2008-04-29  Bruno Haible  <bruno@clisp.org>
23626
23627         * modules/rawmemchr (Maintainer): Set to Eric.
23628         * modules/strchrnul (Maintainer): Likewise.
23629
23630 2008-04-29  Simon Josefsson  <simon@josefsson.org>
23631
23632         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
23633         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
23634
23635         * modules/arpa_inet (arpa/inet.h): Use them.
23636
23637 2008-04-28  Eric Blake  <ebb9@byu.net>
23638
23639         Test getndelim2.
23640         * modules/getndelim2-tests: New file.
23641         * tests/test-getndelim2.c: Likewise.
23642         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
23643         stream.
23644         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
23645
23646         * MODULES.html.sh: Document new module.
23647
23648 2008-04-20  Bruno Haible  <bruno@clisp.org>
23649
23650         * lib/c-stack.c (die): Use raise.
23651         * modules/c-stack (Depends-on): Add raise.
23652
23653 2008-04-28  Bruno Haible  <bruno@clisp.org>
23654
23655         Expect rpmatch to be declared.
23656         * lib/yesno.c (rpmatch): Remove declaration.
23657
23658         Declare rpmatch.
23659         * lib/stdlib.in.h (rpmatch): New declaration.
23660         * lib/rpmatch.c: Include <stdlib.h> first.
23661         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
23662         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
23663         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
23664         HAVE_RPMATCH.
23665         * modules/rpmatch (Depends-on): Add stdlib, extensions.
23666         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
23667         (Include): Set to <stdlib.h>.
23668         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
23669         HAVE_RPMATCH.
23670         * NEWS: Document the change.
23671
23672 2008-04-28  Bruno Haible  <bruno@clisp.org>
23673
23674         Change rpmatch to use nl_langinfo when appropriate.
23675         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
23676         (N_): New macro.
23677         (localized_pattern): New function/macro.
23678         (try): Remove match, nomatch arguments. Copy the pattern into safe
23679         memory before caching it.
23680         (rpmatch): Use localized_pattern. Add translator comments.
23681         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
23682         Suggested by Eric Blake.
23683         * modules/rpmatch (Depends-on): Add stdbool.
23684
23685 2008-04-28  Eric Blake  <ebb9@byu.net>
23686
23687         Add rawmemchr module, matching glibc.
23688         * modules/string (Makefile.am): New indicator.
23689         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
23690         * lib/string.in.h (rawmemchr): Declare when appropriate.
23691         * modules/rawmemchr: New file.
23692         * m4/rawmemchr.m4: Likewise.
23693         * lib/rawmemchr.c: Likewise.
23694         * modules/rawmemchr-tests: Likewise.
23695         * tests/test-rawmemchr.c: Likewise.
23696         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
23697         module.
23698         * modules/strchrnul (Depends-on): Add rawmemchr.
23699         * lib/strchrnul.c (strchrnul): Optimize a corner case.
23700
23701         Whitespace cleanup.
23702         * tests/test-strchrnul.c: Reindent.
23703         * lib/strchrnul.c: Likewise.
23704
23705         Optimize and test strchrnul.
23706         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
23707         * modules/strchrnul-tests: New file.
23708         * tests/test-strchrnul.c: Likewise.
23709
23710         Remove intprops dependency.
23711         * modules/memchr (Depends-on): Remove intprops.
23712         * modules/memrchr (Depends-on): Likewise.
23713         * modules/memchr2 (Depends-on): Likewise.
23714         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
23715         * lib/memrchr.c (__memrchr): Likewise.
23716         * lib/memrchr2.c (memchr2): Likewise.
23717         Reported by Simon Josefsson.
23718
23719 2008-04-28  Simon Josefsson  <simon@josefsson.org>
23720
23721         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
23722         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23723
23724 2008-04-28  Simon Josefsson  <simon@josefsson.org>
23725
23726         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
23727
23728         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
23729
23730         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
23731
23732         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
23733         declarations.
23734         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
23735
23736         * m4/inet_pton.m4: Don't check for header files.
23737
23738         * m4/inet_ntop.m4: Don't check for header files.
23739
23740 2008-04-28  Simon Josefsson  <simon@josefsson.org>
23741
23742         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
23743         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
23744         trigger for cygwin).
23745         Reported by Bruno Haible  <bruno@clisp.org>.
23746
23747 2008-04-28  Bruno Haible  <bruno@clisp.org>
23748
23749         * doc/posix-functions/strdup.texi: Mention mingw problem.
23750
23751 2008-04-27  Bruno Haible  <bruno@clisp.org>
23752
23753         * modules/stat-time-tests (Depends-on): Add sleep.
23754         * tests/test-stat-time.c (force_unlink): New function.
23755         (cleanup): Use it.
23756         (test_mtime): Remove the ctime related tests.
23757         (test_ctime): New function, containing the ctime related tests.
23758         (main): Call test_ctime, except on native Windows platforms.
23759
23760 2008-04-27  Bruno Haible  <bruno@clisp.org>
23761
23762         * lib/rpmatch.c (rpmatch): Add some comments.
23763         Reported by James Youngman <jay@gnu.org>.
23764
23765 2008-04-27  Bruno Haible  <bruno@clisp.org>
23766
23767         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
23768         quiet NaNs.
23769
23770 2008-04-27  Bruno Haible  <bruno@clisp.org>
23771
23772         Make test-yesno.sh work on mingw.
23773         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
23774         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
23775         (main): Set stdin to binary mode.
23776         * modules/yesno-tests (Depends-on): Add binary-io.
23777
23778 2008-04-27  Bruno Haible  <bruno@clisp.org>
23779
23780         Fix 'isfinite' on x86, x86_64, ia64 platforms.
23781         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
23782         argument that lie outside the IEEE 854 domain.
23783         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
23784         (gl_ISFINITE): Use it.
23785         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
23786
23787 2008-04-27  Bruno Haible  <bruno@clisp.org>
23788
23789         Allow local renaming in config.h.
23790         * lib/memrchr.c (memrchr): Don't undefine outside libc.
23791
23792 2008-04-27  Bruno Haible  <bruno@clisp.org>
23793
23794         * lib/memchr.c (__memchr): Change type of 'i'.
23795         * lib/memchr2.c (memchr2): Likewise.
23796
23797 2008-04-26  Eric Blake  <ebb9@byu.net>
23798         and Bruno Haible  <bruno@clisp.org>
23799
23800         Optimize and test memrchr.
23801         * modules/memrchr (Depends-on): Add intprops.
23802         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
23803         * modules/memrchr-tests: New file.
23804         * tests/test-memrchr.c: New file.
23805
23806 2008-04-26  Bruno Haible  <bruno@clisp.org>
23807
23808         Add tentative support for DragonFly BSD.
23809         * lib/stdio-impl.h: Add macros for DragonFly BSD.
23810         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
23811         fp.
23812         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
23813         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
23814         * lib/fpurge.c (fpurge): Likewise.
23815         * lib/freadable.c (freaadable): Likewise.
23816         * lib/freadahead.c (freadahead): Likewise.
23817         * lib/freading.c (freading): Likewise.
23818         * lib/freadptr.c (freadptr): Likewise.
23819         * lib/freadseek.c (freadptrinc): Likewise.
23820         * lib/fseeko.c (fseeko): Likewise.
23821         * lib/fseterr.c (fseterr): Likewise.
23822         * lib/fwritable.c (fwritable): Likewise.
23823         * lib/fwriting.c (fwriting): Likewise.
23824
23825 2008-04-26  Bruno Haible  <bruno@clisp.org>
23826
23827         * lib/stdio-impl.h: New file.
23828         * lib/fbufmode.c: Include stdio-impl.h.
23829         (fbufmode): Use fp_, remove redundant #defines.
23830         * lib/fflush.c: Include stdio-impl.h.
23831         (clear_ungetc_buffer): Remove redundant #defines.
23832         * lib/fpurge.c: Include stdio-impl.h.
23833         (fpurge): Remove redundant #defines.
23834         * lib/freadable.c: Include stdio-impl.h.
23835         (freadable): Remove redundant #defines.
23836         * lib/freadahead.c: Include stdio-impl.h.
23837         (freadahead): Remove redundant #defines.
23838         * lib/freading.c: Include stdio-impl.h.
23839         (freading): Remove redundant #defines.
23840         * lib/freadptr.c: Include stdio-impl.h.
23841         (freadptr): Remove redundant #defines.
23842         * lib/freadseek.c: Include stdio-impl.h.
23843         (freadptrinc): Remove redundant #defines.
23844         * lib/fseeko.c: Include stdio-impl.h.
23845         (rpl_fseeko): Remove redundant #defines.
23846         * lib/fseterr.c: Include stdio-impl.h.
23847         (fseterr): Remove redundant #defines.
23848         * lib/fwritable.c: Include stdio-impl.h.
23849         (fwritable: Remove redundant #defines.
23850         * lib/fwriting.c: Include stdio-impl.h.
23851         (fwriting): Remove redundant #defines.
23852         * modules/fbufmode (Files): Add lib/stdio-impl.h.
23853         * modules/fflush (Files): Likewise.
23854         * modules/fpurge (Files): Likewise.
23855         * modules/freadable (Files): Likewise.
23856         * modules/freadahead (Files): Likewise.
23857         * modules/freading (Files): Likewise.
23858         * modules/freadptr (Files): Likewise.
23859         * modules/freadseek (Files): Likewise.
23860         * modules/fseeko (Files): Likewise.
23861         * modules/fseterr (Files): Likewise.
23862         * modules/fwritable (Files): Likewise.
23863         * modules/fwriting (Files): Likewise.
23864
23865 2008-04-26  Bruno Haible  <bruno@clisp.org>
23866
23867         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
23868         restore_seek_optimization, update_fpos_cache): New functions, extracted
23869         from rpl_fflush.
23870         (rpl_fflush): Use them.
23871         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
23872         (gl_REPLACE_FFLUSH): Use it.
23873
23874 2008-04-26  Bruno Haible  <bruno@clisp.org>
23875
23876         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
23877         on Solaris.
23878         * tests/test-xstrtoimax.sh: Likewise.
23879         * tests/test-xstrtoumax.sh: Likewise.
23880         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23881
23882 2008-04-26  Bruno Haible  <bruno@clisp.org>
23883
23884         * modules/memchr-tests: New file.
23885         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
23886
23887 2008-04-26  Eric Blake  <ebb9@byu.net>
23888             Bruno Haible  <bruno@clisp.org>
23889
23890         * lib/memchr.c: Include intprops.h.
23891         (__memchr): Optimize parallel detection of matching bytes. Rename local
23892         variables. Add explanatory comments.
23893
23894 2008-04-26  Bruno Haible  <bruno@clisp.org>
23895
23896         Fix module 'memchr', broken since 2000-10-28.
23897         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
23898
23899 2008-04-26  Bruno Haible  <bruno@clisp.org>
23900
23901         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
23902         comments.
23903
23904 2008-04-25  Eric Blake  <ebb9@byu.net>
23905
23906         Use native fstatat on cygwin 1.7.0.
23907         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
23908         first.
23909
23910 2008-04-23  Eric Blake  <ebb9@byu.net>
23911
23912         Improve memchr2 performance.
23913         * lib/memchr2.c (memchr2): Further optimize parallel detection of
23914         NUL bytes.
23915         * modules/memchr2 (Depends-on): Use intprops.h.
23916
23917 2008-04-23  Simon Josefsson  <simon@josefsson.org>
23918
23919         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
23920         an inline function instead of a CPP macro.  Patch by Ben Pfaff
23921         <blp@cs.stanford.edu>.
23922
23923 2008-04-23  Simon Josefsson  <simon@josefsson.org>
23924
23925         * lib/arpa_inet.in.h: New file.
23926
23927         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
23928         (Makefile.am): Sed in substitute header file.
23929
23930         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
23931         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
23932
23933         * modules/inet_ntop (configure.ac): Use
23934         gl_ARPA_INET_MODULE_INDICATOR.
23935
23936         * modules/inet_pton (configure.ac): Use
23937         gl_ARPA_INET_MODULE_INDICATOR.
23938
23939 2008-04-22  Jim Meyering  <meyering@redhat.com>
23940
23941         * modules/verify (License): Re-license as LGPLv2+.
23942
23943 2008-04-22  Simon Josefsson  <simon@josefsson.org>
23944
23945         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
23946         parameter to void* as per POSIX standard (MinGW uses char*).
23947
23948 2008-04-21  Bruno Haible  <bruno@clisp.org>
23949
23950         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
23951         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
23952         Define to replacements if REPLACE_ISWCNTRL is 1.
23953         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
23954         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
23955         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
23956         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
23957         what it fixes.
23958         * doc/posix-functions/iswalpha.texi: Likewise.
23959         * doc/posix-functions/iswblank.texi: Likewise.
23960         * doc/posix-functions/iswcntrl.texi: Likewise.
23961         * doc/posix-functions/iswdigit.texi: Likewise.
23962         * doc/posix-functions/iswgraph.texi: Likewise.
23963         * doc/posix-functions/iswlower.texi: Likewise.
23964         * doc/posix-functions/iswprint.texi: Likewise.
23965         * doc/posix-functions/iswpunct.texi: Likewise.
23966         * doc/posix-functions/iswspace.texi: Likewise.
23967         * doc/posix-functions/iswupper.texi: Likewise.
23968         * doc/posix-functions/iswxdigit.texi: Likewise.
23969         Reported by Alain Guibert.
23970
23971 2008-04-21  Bruno Haible  <bruno@clisp.org>
23972
23973         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
23974         Patch by Alain Guibert.
23975
23976 2008-04-21  Bruno Haible  <bruno@clisp.org>
23977
23978         Fix test failures on mingw.
23979         * tests/test-xstrtol.c (print_no_progname): New function.
23980         (main): Install it in error_print_progname hook.
23981         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
23982         * tests/test-xstrtoimax.sh: Likewise.
23983         * tests/test-xstrtoumax.sh: Likewise.
23984
23985 2008-04-21  Bruno Haible  <bruno@clisp.org>
23986
23987         Fix test failure on mingw.
23988         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
23989
23990 2008-04-21  Bruno Haible  <bruno@clisp.org>
23991
23992         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
23993         Actually assign a value.
23994
23995 2008-04-20  Bruno Haible  <bruno@clisp.org>
23996
23997         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
23998         take 2.
23999         * lib/canonicalize.c (canonicalize_file_name): Elide if the
24000         'canonicalize-lgpl' module is also used.
24001         * lib/canonicalize-lgpl.c: Undo last change.
24002         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
24003
24004 2008-04-20  Bruno Haible  <bruno@clisp.org>
24005
24006         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
24007         config.h. Provide _mkdir based fallback for mingw.
24008         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
24009         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
24010         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
24011         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
24012         rather than defining mkdir in config.h.
24013         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
24014         (gl_SYS_STAT_H_DEFAULTS): New macro.
24015         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
24016         HAVE_IO_H any more.
24017         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
24018         HAVE_DECL_MKDIR and HAVE_IO_H.
24019
24020 2008-04-20  Bruno Haible  <bruno@clisp.org>
24021
24022         * lib/isapipe.c: Port to native Windows platforms.
24023
24024 2008-04-20  Bruno Haible  <bruno@clisp.org>
24025
24026         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
24027
24028 2008-04-21  Eric Blake  <ebb9@byu.net>
24029
24030         Work around preprocessors that don't handle UINTMAX_MAX.
24031         * lib/memchr2.c (memchr2): Avoid embedded #if.
24032         Reported by Alain Guibert, fix suggested by Bruno Haible.
24033
24034 2008-04-21  Simon Josefsson  <simon@josefsson.org>
24035
24036         * doc/posix-functions/strftime.texi (strftime): Explain better
24037         Windows incompatibility.  Suggested by Micah Cowan
24038         <micah@cowan.name>.
24039
24040 2008-04-20  Bruno Haible  <bruno@clisp.org>
24041
24042         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
24043         unistr/u8-mblen.
24044
24045 2008-04-20  Bruno Haible  <bruno@clisp.org>
24046
24047         Fix test failure on platforms with non-GNU iconv.
24048         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
24049         (U_TO_U8): Use it, rather than u16_to_u8.
24050         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
24051         units at the end of the input string.
24052         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
24053
24054 2008-04-20  Bruno Haible  <bruno@clisp.org>
24055
24056         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
24057         when the resulting length is 0.
24058         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
24059
24060 2008-04-20  Bruno Haible  <bruno@clisp.org>
24061
24062         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
24063         works.
24064         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
24065
24066 2008-04-20  Bruno Haible  <bruno@clisp.org>
24067
24068         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
24069         * modules/tsearch-tests (configure.ac): Test for initstate function.
24070
24071 2008-04-20  Bruno Haible  <bruno@clisp.org>
24072
24073         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
24074         for nlink_t if missing.
24075         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
24076
24077 2008-04-19  Bruno Haible  <bruno@clisp.org>
24078
24079         Work around snprintf bug on Linux libc5.
24080         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
24081         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
24082         gl_SNPRINTF_SIZE1.
24083         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
24084         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
24085         that test failed.
24086         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
24087         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
24088         * modules/snprintf (Files): Add m4/printf.m4.
24089         * modules/vsnprintf (Files): Likewise.
24090         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
24091         * doc/posix-functions/vsnprintf.texi: Likewise.
24092
24093 2008-04-19  Bruno Haible  <bruno@clisp.org>
24094
24095         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
24096         from 0.0058 to less than 10^-7.
24097
24098 2008-04-19  Bruno Haible  <bruno@clisp.org>
24099
24100         Fix rounding when a precision is given.
24101         * lib/vasnprintf.c (is_borderline): New function.
24102         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
24103         9...9x.
24104         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
24105         %e, %g.
24106         * tests/test-vasprintf-posix.c (test_function): Likewise.
24107         * tests/test-snprintf-posix.h (test_function): Likewise.
24108         * tests/test-sprintf-posix.h (test_function): Likewise.
24109         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
24110         * tests/test-printf-posix.h (test_function): Likewise.
24111         * tests/test-printf-posix.output: Update.
24112         Reported by John Darrington <john@darrington.wattle.id.au> via
24113         Ben Pfaff <blp@cs.stanford.edu>.
24114
24115 2008-04-18  Simon Josefsson  <simon@josefsson.org>
24116
24117         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
24118         Suggested by Bruno Haible <bruno@clisp.org>.
24119
24120 2008-04-17  Bruno Haible  <bruno@clisp.org>
24121
24122         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
24123         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
24124         implementation.
24125         Patch by Bruce Merry <bmerry@gmail.com>.
24126
24127 2008-04-17  Simon Josefsson  <simon@josefsson.org>
24128
24129         * doc/posix-functions/strftime.texi (strftime): Mention that %e
24130         doesn't work under Windows.
24131
24132 2008-04-16  Bruno Haible  <bruno@clisp.org>
24133
24134         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
24135         New macros.
24136         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
24137         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
24138         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
24139         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
24140         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
24141         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
24142         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
24143         macros.
24144         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
24145         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
24146         Northern Sotho, Uighur.
24147
24148 2008-04-16  Bruno Haible  <bruno@clisp.org>
24149
24150         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
24151         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
24152         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
24153         Reported by Daniel Bergström <daniel@octocode.com>.
24154
24155 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
24156             Bruno Haible  <bruno@clisp.org>
24157
24158         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
24159         function.
24160         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
24161         New functions, mostly extracted from gl_locale_name_default.
24162         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
24163
24164 2008-04-16  Eric Blake  <ebb9@byu.net>
24165
24166         Adjust strtod detection to catch glibc 2.7 bug.
24167         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
24168         Reported by John Gatewood Ham.
24169
24170 2008-04-16  Bruno Haible  <bruno@clisp.org>
24171
24172         Add tentative support for Linux libc5.
24173         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
24174         * lib/fpurge.c (fpurge): Likewise.
24175         * lib/freadable.c (freadable): Likewise.
24176         * lib/freadahead.c (freadahead): Likewise.
24177         * lib/freading.c (freading): Likewise.
24178         * lib/freadptr.c (freadptr): Likewise.
24179         * lib/freadseek.c (freadptrinc): Likewise.
24180         * lib/fseeko.c (rpl_fseeko): Likewise.
24181         * lib/fseterr.c (fseterr): Likewise.
24182         * lib/fwritable.c (fwritable): Likewise.
24183         * lib/fwriting.c (fwriting): Likewise.
24184         Reported by Alain Guibert <alguibert+bts@free.fr>.
24185
24186 2008-04-15  Bruno Haible  <bruno@clisp.org>
24187
24188         * modules/mathl (configure.ac): Define module indicator.
24189
24190 2008-04-15  Bruno Haible  <bruno@clisp.org>
24191
24192         * lib/logl.c (logl): Remove unused variables.
24193
24194 2008-04-15  Bruno Haible  <bruno@clisp.org>
24195
24196         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
24197         fails.
24198
24199 2008-04-15  Bruno Haible  <bruno@clisp.org>
24200
24201         * lib/trim.c (trim2): Fix argument of isspace() macro.
24202
24203 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
24204
24205         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
24206         to 0.
24207         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
24208
24209 2008-04-14  Bruno Haible  <bruno@clisp.org>
24210
24211         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
24212         AC_LANG_PROGRAM argument.
24213         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
24214         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
24215         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
24216         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
24217         * m4/math_h.m4 (gl_MATH_H): Likewise.
24218         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
24219         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
24220         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
24221         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
24222         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
24223         * m4/regex.m4 (gl_REGEX): Likewise.
24224         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
24225         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
24226         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
24227         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
24228         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
24229         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
24230         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
24231         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
24232
24233 2008-04-14  Jim Meyering  <meyering@redhat.com>
24234
24235         test-strtod: fix typos: s/abs/fabs/
24236         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
24237
24238 2008-04-13  Bruno Haible  <bruno@clisp.org>
24239
24240         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
24241         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
24242         module is also used and while not building the reloc-wrapper.
24243
24244 2008-04-13  Bruno Haible  <bruno@clisp.org>
24245
24246         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
24247
24248 2008-04-13  Bruno Haible  <bruno@clisp.org>
24249
24250         Fix AIX compilation failure introduced on 2008-04-02.
24251         * tests/test-frexp.c (exp): Undefine before redefining.
24252         * tests/test-frexpl.c (exp): Likewise.
24253
24254 2008-04-13  Bruno Haible  <bruno@clisp.org>
24255
24256         Work around a HP-UX stdio bug.
24257         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
24258         * tests/test-ftello.c (main): Likewise.
24259         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
24260         * doc/posix-functions/ftello.texi: Likewise.
24261
24262 2008-04-13  Bruno Haible  <bruno@clisp.org>
24263
24264         Make test-signbit pass on HP-UX/hppa.
24265         * tests/test-signbit.c (minus_zerol): New variable.
24266         (test_signbitl): Use it.
24267
24268 2008-04-13  Bruno Haible  <bruno@clisp.org>
24269
24270         Make truncl work on OSF/1 4.0.
24271         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
24272         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
24273         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
24274         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
24275         HAVE_DECL_TRUNCL.
24276         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
24277         HAVE_DECL_TRUNCL.
24278         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
24279
24280 2008-04-13  Bruno Haible  <bruno@clisp.org>
24281
24282         * lib/unictype.h: Remove trailing comma from enumeration definitions.
24283
24284 2008-04-13  Bruno Haible  <bruno@clisp.org>
24285
24286         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
24287         expression, so as to avoid HP-UX 11 cc compiler bug.
24288
24289 2008-04-13  Bruno Haible  <bruno@clisp.org>
24290
24291         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
24292
24293 2008-04-13  Bruno Haible  <bruno@clisp.org>
24294
24295         * lib/git-merge-changelog.c: Remove empty declaration outside of
24296         functions.
24297
24298 2008-04-13  Bruno Haible  <bruno@clisp.org>
24299
24300         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
24301
24302 2008-04-13  Bruno Haible  <bruno@clisp.org>
24303
24304         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
24305         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
24306         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
24307         also if it exists but lacks definitions of the SHUT_* macros.
24308         * modules/sys_socket (Description): Update.
24309         Reported by Elbert Pol <e.pol@chello.nl>.
24310
24311 2008-04-13  Bruno Haible  <bruno@clisp.org>
24312
24313         * lib/localcharset.c (OS2): Don't redefine if already defined.
24314         Reported by Elbert Pol <e.pol@chello.nl>.
24315
24316 2008-04-13  Bruno Haible  <bruno@clisp.org>
24317
24318         * lib/binary-io.h [__EMX__]: Include <io.h>.
24319         Reported by Elbert Pol <e.pol@chello.nl>.
24320
24321 2008-04-12  Bruno Haible  <bruno@clisp.org>
24322
24323         * lib/fpucw.h: Enable the definitions also for x86_64.
24324         Needed for NetBSD/x86_64.
24325         Reported by Thomas Klausner <tk@giga.or.at>.
24326
24327 2008-04-12  Bruno Haible  <bruno@clisp.org>
24328
24329         * tests/test-strtod.c: Include isnand.h.
24330         (main): Use isnand instead of isnan.
24331         Reported by Jim Meyering.
24332
24333 2008-04-12  Bruno Haible  <bruno@clisp.org>
24334
24335         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
24336         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
24337
24338 2008-04-12  Jim Meyering  <meyering@redhat.com>
24339
24340         * m4/math_h.m4 (gl_MATH_H): Fix typos.
24341
24342 2008-04-12  Bruno Haible  <bruno@clisp.org>
24343
24344         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
24345         Reported by Elbert Pol <e.pol@chello.nl>.
24346
24347 2008-04-12  Eric Blake  <ebb9@byu.net>
24348
24349         Work around Solaris 10 math.h bug.
24350         * m4/math_h.m4 (gl_MATH_H): Check for bug.
24351         (gl_MATH_H_DEFAULTS): Set up default.
24352         * modules/math (Makefile.am): Replace new indicators.
24353         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
24354         * tests/test-math.c (main): Test this.
24355         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
24356         * doc/posix-headers/math.texi (math.h): Mention bug.
24357         Reported by Nelson H. F. Beebe and Jim Meyering.
24358
24359 2008-04-11  Bruno Haible  <bruno@clisp.org>
24360
24361         Adapt to future versions of Apple GCC.
24362         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
24363         Reported by Peter O'Gorman <peter@pogma.com>.
24364
24365 2008-04-11  Bruno Haible  <bruno@clisp.org>
24366
24367         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
24368
24369 2008-04-11  Bruno Haible  <bruno@clisp.org>
24370
24371         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
24372
24373         * modules/getaddrinfo-tests (Makefile.am): Define
24374         test_getaddrinfo_LDADD.
24375
24376 2008-04-11  Bruno Haible  <bruno@clisp.org>
24377
24378         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
24379         (init): Fix syntax error.
24380         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
24381         is declared.
24382
24383 2008-04-11  Bruno Haible  <bruno@clisp.org>
24384
24385         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
24386         * modules/glob (Depends-on): Add stdbool.
24387
24388 2008-04-11  Bruno Haible  <bruno@clisp.org>
24389
24390         * lib/trim.c: Include <string.h>.
24391
24392 2008-04-11  Eric Blake  <ebb9@byu.net>
24393
24394         Avoid compile failure on OS/2.
24395         * lib/regex_internal.h (internal_function): Disable optimization
24396         on OS/2 (__EMX__), where it caused compiler error.
24397         Reported by Elbert Pol.
24398
24399 2008-04-11  Bruno Haible  <bruno@clisp.org>
24400
24401         Flush the standard error stream before aborting. Needed on mingw.
24402         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
24403         * tests/test-array_list.c (ASSERT): Likewise.
24404         * tests/test-array_oset.c (ASSERT): Likewise.
24405         * tests/test-avltree_list.c (ASSERT): Likewise.
24406         * tests/test-avltree_oset.c (ASSERT): Likewise.
24407         * tests/test-avltreehash_list.c (ASSERT): Likewise.
24408         * tests/test-binary-io.c (ASSERT): Likewise.
24409         * tests/test-byteswap.c (ASSERT): Likewise.
24410         * tests/test-c-ctype.c (ASSERT): Likewise.
24411         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
24412         * tests/test-c-strcasestr.c (ASSERT): Likewise.
24413         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
24414         * tests/test-c-strstr.c (ASSERT): Likewise.
24415         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
24416         * tests/test-canonicalize.c (ASSERT): Likewise.
24417         * tests/test-carray_list.c (ASSERT): Likewise.
24418         * tests/test-ceilf1.c (ASSERT): Likewise.
24419         * tests/test-ceilf2.c (ASSERT): Likewise.
24420         * tests/test-ceill.c (ASSERT): Likewise.
24421         * tests/test-count-one-bits.c (ASSERT): Likewise.
24422         * tests/test-fbufmode.c (ASSERT): Likewise.
24423         * tests/test-fflush2.c (ASSERT): Likewise.
24424         * tests/test-floorf1.c (ASSERT): Likewise.
24425         * tests/test-floorf2.c (ASSERT): Likewise.
24426         * tests/test-floorl.c (ASSERT): Likewise.
24427         * tests/test-fopen.c (ASSERT): Likewise.
24428         * tests/test-fpending.c (ASSERT): Likewise.
24429         * tests/test-fprintf-posix.c (ASSERT): Likewise.
24430         * tests/test-fpurge.c (ASSERT): Likewise.
24431         * tests/test-freadable.c (ASSERT): Likewise.
24432         * tests/test-freadahead.c (ASSERT): Likewise.
24433         * tests/test-freading.c (ASSERT): Likewise.
24434         * tests/test-freadptr.c (ASSERT): Likewise.
24435         * tests/test-freadptr2.c (ASSERT): Likewise.
24436         * tests/test-freadseek.c (ASSERT): Likewise.
24437         * tests/test-freopen.c (ASSERT): Likewise.
24438         * tests/test-frexp.c (ASSERT): Likewise.
24439         * tests/test-frexpl.c (ASSERT): Likewise.
24440         * tests/test-fseek.c (ASSERT): Likewise.
24441         * tests/test-fseeko.c (ASSERT): Likewise.
24442         * tests/test-fstrcmp.c (ASSERT): Likewise.
24443         * tests/test-ftell.c (ASSERT): Likewise.
24444         * tests/test-ftello.c (ASSERT): Likewise.
24445         * tests/test-func.c (ASSERT): Likewise.
24446         * tests/test-fwritable.c (ASSERT): Likewise.
24447         * tests/test-fwriting.c (ASSERT): Likewise.
24448         * tests/test-getdelim.c (ASSERT): Likewise.
24449         * tests/test-getline.c (ASSERT): Likewise.
24450         * tests/test-i-ring.c (ASSERT): Likewise.
24451         * tests/test-iconv-utf.c (ASSERT): Likewise.
24452         * tests/test-iconv.c (ASSERT): Likewise.
24453         * tests/test-isfinite.c (ASSERT): Likewise.
24454         * tests/test-isnand.c (ASSERT): Likewise.
24455         * tests/test-isnanf.c (ASSERT): Likewise.
24456         * tests/test-isnanl.h (ASSERT): Likewise.
24457         * tests/test-ldexpl.c (ASSERT): Likewise.
24458         * tests/test-linked_list.c (ASSERT): Likewise.
24459         * tests/test-linkedhash_list.c (ASSERT): Likewise.
24460         * tests/test-localename.c (ASSERT): Likewise.
24461         * tests/test-lseek.c (ASSERT): Likewise.
24462         * tests/test-mbscasecmp.c (ASSERT): Likewise.
24463         * tests/test-mbscasestr1.c (ASSERT): Likewise.
24464         * tests/test-mbscasestr2.c (ASSERT): Likewise.
24465         * tests/test-mbscasestr3.c (ASSERT): Likewise.
24466         * tests/test-mbscasestr4.c (ASSERT): Likewise.
24467         * tests/test-mbschr.c (ASSERT): Likewise.
24468         * tests/test-mbscspn.c (ASSERT): Likewise.
24469         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
24470         * tests/test-mbspbrk.c (ASSERT): Likewise.
24471         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
24472         * tests/test-mbsrchr.c (ASSERT): Likewise.
24473         * tests/test-mbsspn.c (ASSERT): Likewise.
24474         * tests/test-mbsstr1.c (ASSERT): Likewise.
24475         * tests/test-mbsstr2.c (ASSERT): Likewise.
24476         * tests/test-mbsstr3.c (ASSERT): Likewise.
24477         * tests/test-memchr2.c (ASSERT): Likewise.
24478         * tests/test-memmem.c (ASSERT): Likewise.
24479         * tests/test-open.c (ASSERT): Likewise.
24480         * tests/test-printf-frexp.c (ASSERT): Likewise.
24481         * tests/test-printf-frexpl.c (ASSERT): Likewise.
24482         * tests/test-printf-posix.c (ASSERT): Likewise.
24483         * tests/test-quotearg.c (ASSERT): Likewise.
24484         * tests/test-rbtree_list.c (ASSERT): Likewise.
24485         * tests/test-rbtree_oset.c (ASSERT): Likewise.
24486         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
24487         * tests/test-round1.c (ASSERT): Likewise.
24488         * tests/test-roundf1.c (ASSERT): Likewise.
24489         * tests/test-roundl.c (ASSERT): Likewise.
24490         * tests/test-signbit.c (ASSERT): Likewise.
24491         * tests/test-sleep.c (ASSERT): Likewise.
24492         * tests/test-snprintf-posix.c (ASSERT): Likewise.
24493         * tests/test-snprintf.c (ASSERT): Likewise.
24494         * tests/test-sprintf-posix.c (ASSERT): Likewise.
24495         * tests/test-stat-time.c (ASSERT): Likewise.
24496         * tests/test-strcasestr.c (ASSERT): Likewise.
24497         * tests/test-strerror.c (ASSERT): Likewise.
24498         * tests/test-striconv.c (ASSERT): Likewise.
24499         * tests/test-striconveh.c (ASSERT): Likewise.
24500         * tests/test-striconveha.c (ASSERT): Likewise.
24501         * tests/test-strsignal.c (ASSERT): Likewise.
24502         * tests/test-strstr.c (ASSERT): Likewise.
24503         * tests/test-strtod.c (ASSERT): Likewise.
24504         * tests/test-trunc1.c (ASSERT): Likewise.
24505         * tests/test-trunc2.c (ASSERT): Likewise.
24506         * tests/test-truncf1.c (ASSERT): Likewise.
24507         * tests/test-truncf2.c (ASSERT): Likewise.
24508         * tests/test-truncl.c (ASSERT): Likewise.
24509         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
24510         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
24511         * tests/test-vasnprintf.c (ASSERT): Likewise.
24512         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
24513         * tests/test-vasprintf.c (ASSERT): Likewise.
24514         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
24515         * tests/test-vprintf-posix.c (ASSERT): Likewise.
24516         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
24517         * tests/test-vsnprintf.c (ASSERT): Likewise.
24518         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
24519         * tests/test-wcwidth.c (ASSERT): Likewise.
24520         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
24521         * tests/test-xprintf-posix.c (ASSERT): Likewise.
24522         * tests/test-xvasprintf.c (ASSERT): Likewise.
24523         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
24524         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
24525         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
24526         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
24527         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
24528         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
24529         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
24530         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
24531         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
24532         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
24533         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
24534         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
24535         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
24536         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
24537         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
24538         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
24539         * tests/unictype/test-block_list.c (ASSERT): Likewise.
24540         * tests/unictype/test-block_of.c (ASSERT): Likewise.
24541         * tests/unictype/test-block_test.c (ASSERT): Likewise.
24542         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
24543         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
24544         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
24545         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
24546         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
24547         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
24548         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
24549         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
24550         * tests/unictype/test-combining.c (ASSERT): Likewise.
24551         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
24552         * tests/unictype/test-digit.c (ASSERT): Likewise.
24553         * tests/unictype/test-mirror.c (ASSERT): Likewise.
24554         * tests/unictype/test-numeric.c (ASSERT): Likewise.
24555         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
24556         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
24557         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
24558         * tests/unictype/test-scripts.c (ASSERT): Likewise.
24559         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
24560         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
24561         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
24562         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
24563         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
24564         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
24565         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
24566         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
24567         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
24568         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
24569         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
24570         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
24571         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
24572         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
24573         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
24574         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
24575         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
24576         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
24577         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
24578         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
24579         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
24580         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
24581         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
24582         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
24583         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
24584         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
24585         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
24586         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
24587         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
24588         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
24589         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
24590         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
24591         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
24592         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
24593         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
24594         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
24595         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
24596         Reported by Eric Blake.
24597
24598 2008-04-11  Bruno Haible  <bruno@clisp.org>
24599
24600         * lib/wchar.in.h: Tweak comment.
24601
24602 2008-04-11  Bruno Haible  <bruno@clisp.org>
24603
24604         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
24605         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
24606         gl_COMMON.
24607         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
24608
24609 2008-04-11  Bruno Haible  <bruno@clisp.org>
24610
24611         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
24612
24613 2008-04-11  Simon Josefsson  <simon@josefsson.org>
24614
24615         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
24616         of attempting to use non-existing /dev/*random.  Based on patch
24617         from Adam Strzelecki <ono@java.pl> in
24618         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
24619
24620 2008-04-08  Bruno Haible  <bruno@clisp.org>
24621
24622         Add tentative support for emx+gcc.
24623         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
24624         * lib/fpurge.c (fpurge): Likewise.
24625         * lib/freadable.c (freadable): Likewise.
24626         * lib/freadahead.c (freadahead): Likewise.
24627         * lib/freading.c (freading): Likewise.
24628         * lib/freadptr.c (freadptr): Likewise.
24629         * lib/freadseek.c (freadptrinc): Likewise.
24630         * lib/fseeko.c (rpl_fseeko): Likewise.
24631         * lib/fseterr.c (fseterr): Likewise.
24632         * lib/fwritable.c (fwritable): Likewise.
24633         * lib/fwriting.c (fwriting): Likewise.
24634         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
24635
24636 2008-04-09  Eric Blake  <ebb9@byu.net>
24637
24638         Avoid some autoconf warnings.
24639         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
24640         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
24641         * m4/afs.m4 (gl_AFS): Likewise.
24642         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
24643         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
24644         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
24645         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
24646         (gl_INTEGER_TYPE_SUFFIX): Likewise.
24647         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
24648         (AC_CHECK_DECLS_ONCE): Likewise.
24649         Rename file...
24650         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
24651         gnulib-tool requires autoconf 2.59 or better.
24652         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
24653
24654 2008-04-08  Eric Blake  <ebb9@byu.net>
24655
24656         Use 'git describe --match' if present (added in git 1.5.5).
24657         * build-aux/git-version-gen: Limit result to tags that match 'v*'
24658         if possible.
24659
24660 2008-04-08  Bruno Haible  <bruno@clisp.org>
24661
24662         Add tentative support for OpenServer.
24663         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
24664         _ptr, _cnt.
24665         * lib/fpurge.c (fpurge): Likewise.
24666         * lib/freadable.c (freadable): Likewise.
24667         * lib/freadahead.c (freadahead): Likewise.
24668         * lib/freading.c (freading): Likewise.
24669         * lib/freadptr.c (freadptr): Likewise.
24670         * lib/freadseek.c (freadptrinc): Likewise.
24671         * lib/fseeko.c (rpl_fseeko): Likewise.
24672         * lib/fseterr.c (fseterr): Likewise.
24673         * lib/fwritable.c (fwritable): Likewise.
24674         * lib/fwriting.c (fwriting): Likewise.
24675         Reported by Roger Cornelius <rac@tenzing.org> and
24676         Brian K. White <brian@aljex.com>.
24677
24678 2008-04-06  Jim Meyering  <meyering@redhat.com>
24679
24680         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
24681
24682 2008-04-06  Bruno Haible  <bruno@clisp.org>
24683
24684         Avoid possible error with non-ASCII bytes in UTF-8 locales.
24685         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
24686         * tests/test-printf-posix.sh: Likewise.
24687         * tests/test-vfprintf-posix.sh: Likewise.
24688         * tests/test-vprintf-posix.sh: Likewise.
24689         * tests/test-xprintf-posix.sh: Likewise.
24690
24691 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24692
24693         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
24694         hide error from 'ls', needed on OS/2.
24695         Report by Elbert Pol <elbert.pol@gmail.com>.
24696
24697 2008-04-04  Eric Blake  <ebb9@byu.net>
24698
24699         Make test-fseeko.c failures meaningful.
24700         * tests/test-fseeko.c: Print line number on failure.
24701         * tests/test-fseek.c: Likewise.
24702         Reported by Nelson H. F. Beebe.
24703
24704         Improve strtod bug detection check.
24705         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
24706         required for Solaris 10.
24707         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
24708
24709 2008-04-04  Bruno Haible  <bruno@clisp.org>
24710
24711         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
24712         by m4/setenv.m4.
24713
24714 2008-04-03  Eric Blake  <ebb9@byu.net>
24715
24716         Ensure sane .version contents.
24717         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
24718         version string.
24719         * build-aux/git-version-gen: Improve documentation.
24720
24721         Make GNU make output nicer.
24722         * top/GNUmakefile [!_have-Makefile]: Add dependency on
24723         MAKECMDGOALS to enforce message for all command line targets.  Set
24724         srcdir for use in maint.mk.
24725
24726         Another maintainer tweak.
24727         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
24728         a target that regenerates version.
24729
24730 2008-04-03  Jim Meyering  <meyering@redhat.com>
24731
24732         vc-list-files: don't cause coreutils "make po-check" failure
24733         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
24734
24735 2008-04-03  Eric Blake  <ebb9@byu.net>
24736
24737         Allow VPATH usage of vc-list-files.
24738         * build-aux/vc-list-files (scriptversion): Add timestamp.
24739         (options): Add --help, --version, -C.
24740         (CVS): Support installed cvsu.
24741
24742 2008-04-02  Bruno Haible  <bruno@clisp.org>
24743
24744         Avoid some "statement with no effect" warnings from gcc.
24745         * tests/test-wctype.c (main): Explicitly ignore unused values.
24746         Reported by Jim Meyering.
24747
24748 2008-04-02  Jim Meyering  <meyering@redhat.com>
24749
24750         Avoid some warnings from "gcc -Wshadow".
24751         * tests/test-frexp.c (exp): Define to a different identifier.
24752         * tests/test-frexpl.c (exp): Likewise.
24753
24754 2008-04-03  Jim Meyering  <meyering@redhat.com>
24755
24756         bootstrap: remove dangling *.[ch] symlinks from lib
24757         * build-aux/bootstrap [dangling symlink removal]: Move find's
24758         -depth option to precede all others, to avoid a warning.
24759         Remove *.[ch] files too, and from "$source_base" (usually lib/).
24760
24761 2008-04-02  Bruno Haible  <bruno@clisp.org>
24762
24763         Avoid some warnings from "gcc -Wshadow".
24764         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
24765         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
24766         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
24767         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
24768         Reported by Jim Meyering.
24769
24770 2008-04-01  Bruno Haible  <bruno@clisp.org>
24771
24772         Fix test to work on IRIX 6.5 with cc.
24773         * tests/test-math.c (numeric_equal): New function.
24774         (main): Use it.
24775
24776 2008-04-01  Bruno Haible  <bruno@clisp.org>
24777
24778         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
24779
24780 2008-04-01  Bruno Haible  <bruno@clisp.org>
24781
24782         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
24783         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
24784         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
24785         (Depends-on): Remove math.
24786
24787         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
24788         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
24789         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
24790         (Depends-on): Remove math.
24791
24792         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
24793         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
24794         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
24795         (Depends-on): Remove math.
24796         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
24797         (Depends-on): Remove math.
24798
24799         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
24800         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
24801         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
24802         (Depends-on): Remove math.
24803         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
24804         (Depends-on): Remove math.
24805
24806         * tests/test-round1.c: Include nan.h.
24807         (main): Use NaNd instead of NAN.
24808         * modules/round-tests (Files): Add tests/nan.h.
24809
24810         * tests/test-trunc1.c: Include nan.h.
24811         (main): Use NaNd instead of NAN.
24812         * modules/trunc-tests (Files): Add tests/nan.h.
24813
24814         * tests/test-roundf1.c: Include nan.h.
24815         (main): Use NaNf instead of NAN.
24816         * modules/roundf-tests (Files): Add tests/nan.h.
24817
24818         * tests/test-truncf1.c: Include nan.h.
24819         (main): Use NaNf instead of NAN.
24820         * modules/truncf-tests (Files): Add tests/nan.h.
24821
24822         * tests/test-ceilf1.c: Include nan.h.
24823         (main): Use NaNf instead of NAN.
24824         * modules/ceilf-tests (Files): Add tests/nan.h.
24825
24826         * tests/test-floorf1.c: Include nan.h.
24827         (main): Use NaNf instead of NAN.
24828         * modules/floorf-tests (Files): Add tests/nan.h.
24829
24830         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
24831         (main): Use NaNf instead of NAN.
24832         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
24833
24834         * tests/test-isnand.c: Include nan.h instead of <math.h>.
24835         (main): Use NaNd instead of NAN.
24836         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
24837
24838         * tests/test-frexp.c: Include nan.h.
24839         (main): Use NaNd instead of NAN.
24840         * modules/frexp-tests (Files): Add tests/nan.h.
24841
24842         * lib/isnan.c: Don't include <math.h>.
24843         (FUNC): Don't use NAN macro.
24844         * modules/isnand-nolibm (Depends-on): Remove math.
24845         * modules/isnanf-nolibm (Depends-on): Remove math.
24846         * modules/isnanl (Depends-on): Remove math.
24847         * modules/isnanl-nolibm (Depends-on): Remove math.
24848
24849         * tests/nan.h: New file.
24850
24851 2008-04-01  Eric Blake  <ebb9@byu.net>
24852
24853         Fix typos.
24854         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
24855         values to be the right type.
24856
24857         For now, cater to gnulib strtod inaccuracies.
24858         * tests/test-strtod.c (main): Allow 1-ulp error on expected
24859         fractional results.  While not as nice from a QoI perspective, it
24860         is a quicker patch than correctly implementing decimal to binary
24861         rounding.
24862
24863 2008-03-31  Eric Blake  <ebb9@byu.net>
24864
24865         Guarantee a definition of NAN.
24866         * lib/math.in.h (NAN): Define if missing.
24867         * tests/test-math.c (main): Test it.
24868         * doc/posix-headers/math.texi (math.h): Document this.
24869         * lib/isnan.c (rpl_isnand): Use it.
24870         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
24871         * tests/test-floorf1.c (NaN): Likewise.
24872         * tests/test-frexp.c (NaN): Likewise.
24873         * tests/test-isnand.c (NaN): Likewise.
24874         * tests/test-isnanf.c (NaN): Likewise.
24875         * tests/test-round1.c (NaN): Likewise.
24876         * tests/test-roundf1.c (NaN): Likewise.
24877         * tests/test-snprintf-posix.h (NaN): Likewise.
24878         * tests/test-sprintf-posix.h (NaN): Likewise.
24879         * tests/test-trunc1.c (NaN): Likewise.
24880         * tests/test-truncf1.c (NaN): Likewise.
24881         * tests/test-vasnprintf-posix.c (NaN): Likewise.
24882         * tests/test-vasprintf-posix.c (NaN): Likewise.
24883         * modules/isnand-nolibm (Depends-on): Add math.
24884         * modules/isnanf-nolibm (Depends-on): Likewise.
24885         * modules/isnanl (Depends-on): Likewise.
24886         * modules/isnanl-nolibm (Depends-on): Likewise.
24887         * modules/snprintf-posix-tests (Depends-on): Likewise.
24888         * modules/sprintf-posix-tests (Depends-on): Likewise.
24889         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
24890         * modules/vsprintf-posix-tests (Depends-on): Likewise.
24891         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
24892         * modules/vasprintf-posix-tests (Depends-on): Likewise.
24893
24894 2008-03-31  Bruno Haible  <bruno@clisp.org>
24895
24896         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
24897         * doc/posix-functions/strtod.texi: Likewise.
24898
24899 2008-03-31  Bruno Haible  <bruno@clisp.org>
24900
24901         * tests/test-strtod.c (main): Don't use C99 syntax.
24902
24903 2008-03-31  Bruno Haible  <bruno@clisp.org>
24904
24905         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
24906         Reported by Eric Blake.
24907
24908 2008-03-31  Jim Meyering  <meyering@redhat.com>
24909
24910         Don't compare actual signbit return values.
24911         * tests/test-strtod.c (main): Rather, compare only their
24912         zero/non-zero nature.
24913
24914 2008-03-31  Eric Blake  <ebb9@byu.net>
24915
24916         More strtod documentation.
24917         * doc/posix-functions/strtod.texi (strtod): Interpret more test
24918         failures as distinct bugs.
24919
24920 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
24921
24922         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
24923         Problem reported by Erik Benada in
24924         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
24925
24926 2008-03-30  Bruno Haible  <bruno@clisp.org>
24927
24928         * tests/test-strtod.c: Add comments about which assertion fails on which
24929         platform.
24930         * doc/posix-functions/strtod.texi: Add info about many more platforms.
24931
24932 2008-03-30  Eric Blake  <ebb9@byu.net>
24933
24934         Test signbit behavior on zeros.
24935         * tests/test-signbit.c (test_signbitf): Add tests for zero.
24936         (test_signbitd, test_signbitl): Likewise.
24937
24938         More strtod touchups.
24939         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
24940         sign of negative underflow, for now.  Use .5, not .1.
24941         * doc/posix-functions/strtod.texi (strtod): Mention these
24942         limitations.
24943         Reported by Jim Meyering.
24944
24945 2008-03-30  Bruno Haible  <bruno@clisp.org>
24946
24947         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
24948         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
24949
24950 2008-03-30  Bruno Haible  <bruno@clisp.org>
24951
24952         Avoid failure when attempting to return empty iconv results on some
24953         platforms.
24954         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
24955         allocation, don't report ENOMEM when the resulting string is empty.
24956
24957 2008-03-30  Bruno Haible  <bruno@clisp.org>
24958
24959         Fix buffer overrun.
24960         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
24961         Don't consider the width for tmp_length. Check count against tmp_length
24962         before doing the padding. Ensure enough allocation during padding.
24963
24964 2008-03-30  Eric Blake  <ebb9@byu.net>
24965
24966         strtod touchups.
24967         * lib/strtod.c (strtod): Avoid compiler warnings.
24968         Reported by Jim Meyering.
24969
24970 2008-03-30  Bruno Haible  <bruno@clisp.org>
24971
24972         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
24973         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
24974         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
24975         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
24976         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
24977         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
24978         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
24979         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
24980
24981         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
24982         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
24983         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
24984         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
24985         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
24986         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
24987         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
24988         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
24989
24990         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
24991         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
24992         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
24993         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
24994         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
24995         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
24996         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
24997         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
24998
24999         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
25000         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
25001
25002         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
25003         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
25004
25005         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
25006         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
25007
25008         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
25009         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
25010         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
25011
25012         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
25013         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
25014         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
25015
25016         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
25017         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
25018         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
25019
25020         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
25021         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
25022         * modules/vasprintf (Depends-on): Add EOVERFLOW.
25023
25024         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
25025         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
25026         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
25027         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
25028         (Depends-on): Add EOVERFLOW.
25029         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
25030         (Depends-on): Add EOVERFLOW.
25031         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
25032         (Depends-on): Add EOVERFLOW.
25033         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
25034         (Depends-on): Add EOVERFLOW.
25035         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
25036         (Depends-on): Add EOVERFLOW.
25037         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
25038         (Depends-on): Add EOVERFLOW.
25039         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
25040         (Depends-on): Add EOVERFLOW.
25041         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
25042         (Depends-on): Add EOVERFLOW.
25043
25044         * lib/sprintf.c (EOVERFLOW): Remove fallback.
25045         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
25046         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
25047
25048         * lib/snprintf.c (EOVERFLOW): Remove fallback.
25049         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
25050         * modules/snprintf (Depends-on): Add EOVERFLOW.
25051
25052         * lib/poll.c (EOVERFLOW): Remove fallback.
25053         * modules/poll (Depends-on): Add EOVERFLOW.
25054
25055         * lib/getugroups.c (EOVERFLOW): Remove fallback.
25056         * modules/getugroups (Depends-on): Add EOVERFLOW.
25057
25058         * lib/getdelim.c (EOVERFLOW): Remove fallback.
25059         * modules/getdelim (Depends-on): Add EOVERFLOW.
25060
25061         * lib/ftell.c (EOVERFLOW): Remove fallback.
25062         * modules/ftell (Depends-on): Add EOVERFLOW.
25063
25064         * lib/fprintf.c (EOVERFLOW): Remove fallback.
25065         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
25066         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
25067
25068         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
25069
25070         * modules/EOVERFLOW-tests: New file.
25071         * tests/test-EOVERFLOW.c: New file.
25072
25073         * modules/EOVERFLOW: New file.
25074         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
25075
25076 2008-03-30  Bruno Haible  <bruno@clisp.org>
25077
25078         Fix bug introduced on 2007-06-10.
25079         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
25080         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
25081
25082 2008-03-30  Bruno Haible  <bruno@clisp.org>
25083
25084         Improve freadseek's efficiency after ungetc.
25085         * lib/freadseek.c: Include freadahead.h.
25086         (freadptrinc): New function, extracted from freadseek.
25087         (freadseek): Use it in a loop. Use freadahead to determine the number
25088         of loop iterations.
25089         * modules/freadseek (Depends-on): Add freadahead.
25090         (configure.ac): Require AC_C_INLINE.
25091
25092 2008-03-30  Bruno Haible  <bruno@clisp.org>
25093
25094         * lib/freadseek.c (freadseek): Don't ignore the return value of
25095         freadptr.
25096
25097 2008-03-29  Eric Blake  <ebb9@byu.net>
25098
25099         Add hex float support.
25100         * modules/strtod (Depends-on): Add c-ctype.
25101         (Link): Mention POW_LIB.
25102         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
25103         whitespace between 'e' and exponent.
25104         * tests/test-strtod.c (main): Enable hex float tests.
25105         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
25106         now provides.
25107
25108         Document various strtod bugs, with some fixes.
25109         * doc/posix-functions/strtod.texi (strtod): Document bugs with
25110         "-0x", "inf", "nan", and hex constants.
25111         * doc/posix-functions/atof.texi (atof): Likewise.
25112         * modules/stdlib (Makefile.am): Support strtod.
25113         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
25114         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
25115         detect additional strtod bugs.
25116         * lib/stdlib.in.h (rpl_strtod): Add declarations.
25117         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
25118         bool where appropriate.  Parse 'inf' and 'nan'.
25119         * tests/test-strtod.c: New file.
25120         * modules/strtod (Depends-on): Add stdbool, stdlib.
25121         (configure.ac): Turn on module indicator.
25122         * modules/strtod-tests: New module.
25123
25124 2008-03-29  Eric Blake  <ebb9@byu.net>
25125
25126         Fix ftell on mingw.
25127         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
25128         * modules/ftell-tests (Depends-on): Add binary-io.
25129         * modules/ftello-tests (Depends-on): Likewise.
25130         * tests/test-ftell.c (main): Enhance test to cover behavior after
25131         ungetc.  Enforce binary mode.
25132         * tests/test-ftello.c (main): Likewise.
25133
25134         Pass test-freadseek on cygwin.
25135         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
25136         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
25137         ungetc buffer.
25138
25139         * tests/test-fflush2.c (main): Fix typo.
25140
25141 2008-03-29  Bruno Haible  <bruno@clisp.org>
25142
25143         * tests/test-fflush2.c (main): Temporarily disable the contents of
25144         this test.
25145         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
25146         Reported by Eric Blake.
25147
25148 2008-03-28  Simon Josefsson  <simon@josefsson.org>
25149
25150         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
25151         (GC_SHA224_DIGEST_SIZE): Add.
25152
25153         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
25154         (gc_hash_digest_length): Likewise.
25155         (gc_hash_buffer): Likewise.
25156
25157 2008-03-25  Bruno Haible  <bruno@clisp.org>
25158
25159         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
25160         detail which gettext release to use.
25161         Reported by Simon Josefsson.
25162
25163 2008-03-26  Jim Meyering  <meyering@redhat.com>
25164
25165         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
25166         * modules/gnumakefile (clean-GNUmakefile): Also, use
25167         test ... && ... || : syntax rather than if-then ... fi.
25168
25169         gnumakefile: Don't double-quote-expand $(VPATH) value.
25170         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
25171
25172 2008-03-24  Eric Blake  <ebb9@byu.net>
25173
25174         Alter GNUmakefile to install into top directory.
25175         * modules/maintainer-makefile: Split, and add dependency...
25176         * modules/gnumakefile: to this new module.
25177         * build-aux/GNUmakefile: Move...
25178         * top/GNUmakefile: ...here.
25179         * build-aux/maint.mk: Move...
25180         * top/maint.mk: ...here.
25181         * MODULES.html.sh (Support for maintaining...): Document new
25182         module.
25183
25184 2008-03-23  Bruno Haible  <bruno@clisp.org>
25185
25186         * gnulib-tool: New options --vc-files, --no-vc-files.
25187         (func_usage): Document them.
25188         (vc_files): New variable.
25189         (func_import): Consider vc_files.
25190         (func_create_testdir): Set vc_files to empty.
25191         Suggested by Jim Meyering and Karl Berry.
25192
25193 2008-03-23  Bruno Haible  <bruno@clisp.org>
25194
25195         Fix regex compilation error on HP-UX 11.
25196         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
25197         * modules/regex (Files): Add m4/mbstate_t.m4.
25198         Reported by Ton Voon <ton.voon@altinity.com>.
25199
25200 2008-03-23  Bruno Haible  <bruno@clisp.org>
25201
25202         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
25203
25204 2008-03-23  Eric Blake  <ebb9@byu.net>
25205             Bruno Haible  <bruno@clisp.org>
25206
25207         Install files from top/ in the destination directory.
25208         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
25209         augmentation also for the files from top/.
25210         (func_import, func_create_testdir): Rewrite file names:
25211         top/filename -> filename.
25212
25213 2008-03-23  Bruno Haible  <bruno@clisp.org>
25214
25215         Tweak "gnulib --version" output.
25216         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
25217
25218 2008-03-23  Bruno Haible  <bruno@clisp.org>
25219
25220         Tweak "gnulib --version" output.
25221         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
25222         rather than contents of ChangeLog, when possible.
25223
25224 2008-03-21  Eric Blake  <ebb9@byu.net>
25225
25226         More --version tweaks.
25227         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
25228         date of last ChangeLog entry.
25229
25230 2008-03-21  Jim Meyering  <meyering@redhat.com>
25231
25232         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
25233
25234 2008-03-20  Eric Blake  <ebb9@byu.net>
25235
25236         VPATH fix.
25237         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
25238
25239 2008-03-20  Simon Josefsson  <simon@josefsson.org>
25240
25241         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
25242         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
25243
25244 2008-03-20  Eric Blake  <ebb9@byu.net>
25245
25246         Sync GNUmakefile with coreutils.
25247         * build-aux/GNUmakefile (have-Makefile): Rename...
25248         (_have-Makefile): ...to this, for namespace consideration.
25249         (GNUmakefile.cfg): Include, if present.
25250         (_autoreconf): Define a default.
25251         (_is-dist-target): New rule for rebuilds to pick up intra-release
25252         version.
25253         (maint-cfg.mk): Rename...
25254         (cfg.mk): ...to this.
25255
25256 2008-03-18  Jim Meyering  <meyering@redhat.com>
25257
25258         New script and module: mktempd
25259         * MODULES.html.sh (maint+release support): Add mktempd.
25260         * build-aux/mktempd: New file.
25261         * modules/mktempd: New file.
25262
25263 2008-03-15  Jim Meyering  <meyering@redhat.com>
25264
25265         Undo last change.
25266         * lib/sha1.c, lib/md5.c: 63 != ~63.
25267         Reported by Andreas Schwab.
25268
25269         sha1.c, md5.c: Hoist a redundant expression.
25270         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
25271         "ctx->buflen" only once, before calling *_process_block.
25272         * lib/md5.c (md5_process_bytes): Likewise.
25273
25274 2008-03-14  Eric Blake  <ebb9@byu.net>
25275
25276         Bump copyright year in files generated by gnulib-tool.
25277         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
25278         gnulib-tool, rather than hard-coding it.
25279
25280         Fix 'gnulib-tool --version' output to work with git.
25281         * gnulib-tool (func_gnulib_dir): New function, extracted from...
25282         (startup): ...here.
25283         (func_version): Use it to invoke git-version-gen, rather than
25284         relying on CVS keyword expansion.  Modernize wording.
25285         (cvsdatestamp, last_checkin_date, version): Kill unused
25286         variables.
25287
25288 2008-03-12  Jim Meyering  <meyering@redhat.com>
25289
25290         Recognize optional cast of the argument to free.
25291         * build-aux/useless-if-before-free: Update regexps.
25292
25293         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
25294
25295 2008-03-11  Bruno Haible  <bruno@clisp.org>
25296
25297         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
25298         by a single package.
25299         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
25300         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
25301         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
25302         Reported by Sam Steingold <sds@gnu.org>.
25303
25304 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
25305
25306         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
25307         repositories.
25308
25309 2008-03-11  Bruno Haible  <bruno@clisp.org>
25310
25311         Avoid conflicts between local macro definitions.
25312         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
25313         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
25314
25315 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
25316             Bruno Haible  <bruno@clisp.org>
25317
25318         Make va_copy work with some version of xlc on AIX 5.1.
25319         * lib/stdarg.in.h: New file.
25320         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
25321         On AIX, use a <stdarg.h> file substitute.
25322         * modules/stdarg (Files): Add lib/stdarg.in.h.
25323         (Depends-on): Add include_next.
25324         (Makefile.am): Build a stdarg.h substitute if requested.
25325         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
25326
25327 2008-03-10  Bruno Haible  <bruno@clisp.org>
25328
25329         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
25330         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
25331         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
25332
25333 2008-03-10  Bruno Haible  <bruno@clisp.org>
25334
25335         * modules/stdlib (Depends-on): Add include_next, remove
25336         absolute-header.
25337
25338 2008-03-09  Bruno Haible  <bruno@clisp.org>
25339
25340         * lib/freadahead.h (freadahead): Document more precisely.
25341         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
25342         the sum of both buffer sizes.
25343         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
25344         * NEWS: Document the change.
25345
25346 2008-03-09  Bruno Haible  <bruno@clisp.org>
25347
25348         Extend freadptr to return also the buffer size.
25349         * lib/freadptr.h (freadptr): Add sizep argument.
25350         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
25351         (freadptr): Add sizep argument. Determine buffer size like freadahead
25352         does.
25353         * tests/test-freadptr.c: Don't include freadahead.h.
25354         (main): Adapt for new calling convention of freadptr.
25355         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
25356         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
25357         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
25358         tests/test-freadptr2.sh.
25359         (Depends): Remove freadahead.
25360         (TESTS): Add test-freadptr2.sh.
25361         (check_PROGRAMS): Add test-freadptr2.
25362
25363 2008-03-09  Bruno Haible  <bruno@clisp.org>
25364
25365         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
25366         Report and solution by Simon Josefsson.
25367
25368 2008-03-06  Bruno Haible  <bruno@clisp.org>
25369
25370         Make fflush after ungetc work on BSD platforms.
25371         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
25372         * tests/test-fflush2.c: New file.
25373         * tests/test-fflush2.sh: New file.
25374         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
25375         tests/test-fflush2.c.
25376         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
25377         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
25378
25379 2008-03-06  Eric Blake  <ebb9@byu.net>
25380
25381         Likewise for ftello.
25382         * modules/ftello (Dependencies): Add extensions.
25383         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
25384
25385 2008-03-06  Bruno Haible  <bruno@clisp.org>
25386
25387         * modules/fseeko (Dependencies): Add extensions.
25388         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
25389         Needed on glibc systems.
25390
25391 2008-03-06  Bruno Haible  <bruno@clisp.org>
25392
25393         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
25394         email address.
25395         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
25396
25397 2008-03-06  Bruno Haible  <bruno@clisp.org>
25398
25399         * users.txt: Add libgnupdf.
25400
25401 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
25402
25403         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
25404         (Header File Substitutes, Function Substitutes,
25405         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
25406         (Build robot for gnulib): Fix typo.
25407
25408 2008-03-06  Bruno Haible  <bruno@clisp.org>
25409
25410         * doc/gnulib-tool.texi (VCS Issues): Small updates.
25411         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
25412
25413 2008-03-06  Bruno Haible  <bruno@clisp.org>
25414
25415         * doc/func.texi: New file, extracted from doc/gnulib.texi.
25416         * doc/gnulib.texi: Include it.
25417
25418 2008-03-06  Simon Josefsson  <simon@josefsson.org>
25419
25420         * modules/func (License): Change license to unlimited; there was
25421         no LGPL parts in the module anyway.
25422
25423 2008-03-06  Simon Josefsson  <simon@josefsson.org>
25424
25425         * modules/__func__: Renamed to modules/func.
25426         * modules/__func__-tests: Renamed to modules/func-tests.
25427         * tests/test-__func__.c: Renamed to tests/test-func.c.
25428         * m4/__func__.m4: Renamed to m4/func.m4.
25429         * doc/gnulib.texi (__func__): Section renamed to func.
25430         Suggested by Eric Blake <ebb9@byu.net>.
25431
25432 2008-03-06  Simon Josefsson  <simon@josefsson.org>
25433
25434         * doc/gnulib.texi (__func__): Use C99 terminology when talking
25435         about __func__.  Make example self-contained.  Suggested by Eric
25436         Blake <ebb9@byu.net>.
25437
25438         * tests/test-__func__.c (main): Avoid extraneous () around __func.
25439         Suggested by Eric Blake <ebb9@byu.net>.
25440
25441 2008-03-06  Simon Josefsson  <simon@josefsson.org>
25442
25443         * modules/__func__: New file.
25444         * modules/__func__-tests: New file.
25445         * tests/test-__func__.c: New file.
25446         * m4/__func__.m4: New file.
25447         * doc/gnulib.texi (__func__): Document __func__ module.
25448
25449 2008-03-05  Simon Josefsson  <simon@josefsson.org>
25450
25451         * modules/byteswap (License): Re-license as LGPLv2+.
25452
25453 2008-03-05  Simon Josefsson  <simon@josefsson.org>
25454
25455         * doc/Makefile: Add pdf target.
25456
25457 2008-03-05  Simon Josefsson  <simon@josefsson.org>
25458
25459         * modules/inline (License): Use 'unlimited', since there are only
25460         *.m4 files in this module.
25461
25462 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
25463             Bruno Haible  <bruno@clisp.org>
25464
25465         Add support for HP C 7.1 on OpenVMS 8.3.
25466         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
25467
25468 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
25469
25470         Update VMS specifics.
25471         * lib/getopt.c [VMS]: Remove include of unixlib.h.
25472
25473 2008-03-02  Jim Meyering  <meyering@redhat.com>
25474
25475         Remove the last dependency on the "free" module.
25476         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
25477         Reported by Bob Proulx.
25478
25479         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
25480
25481         Remove useless "if" tests before free.  Deprecate "free" module.
25482         * doc/posix-functions/free.texi: Mention that this
25483         module is no longer useful.
25484         * modules/free (Notice): Say this module is obsolete.
25485         * modules/readutmp (Depends-on): Remove free.
25486         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
25487         * lib/putenv.c (putenv): Likewise.
25488         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
25489         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
25490         * tests/test-c-strcasestr.c (main): Likewise.
25491         * tests/test-c-strstr.c (main): Likewise.
25492         * tests/test-mbscasestr1.c (main): Likewise.
25493         * tests/test-mbscasestr2.c (main): Likewise.
25494         * tests/test-mbsstr1.c (main): Likewise.
25495         * tests/test-mbsstr2.c (main): Likewise.
25496         * tests/test-memmem.c (main): Likewise.
25497         * tests/test-strcasestr.c (main): Likewise.
25498         * tests/test-striconv.c (main): Likewise.
25499         * tests/test-striconveh.c (main): Likewise.
25500         * tests/test-striconveha.c (main): Likewise.
25501         * tests/test-strstr.c (main): Likewise.
25502
25503         * build-aux/git-version-gen: Adjust a comment and the Usage string.
25504
25505         bootstrap: sync from coreutils again
25506         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
25507
25508 2008-03-01  Jim Meyering  <meyering@redhat.com>
25509
25510         bootstrap: sync from coreutils
25511         * build-aux/bootstrap (update_po_files): Copy a .po file into place
25512         also when the target doesn't exist.
25513
25514 2008-03-01  Eric Blake  <ebb9@byu.net>
25515
25516         Fix bugs in last patch.
25517         * lib/memchr2.c (memchr2): Fix typo.
25518         * tests/test-memchr2.c: Test previous bug, and don't use GNU
25519         extension.
25520         Reported by Bruce Korb.
25521
25522         New module 'memchr2'.
25523         * modules/memchr2: New file.
25524         * modules/memchr2-tests: Likewise.
25525         * lib/memchr2.h: Likewise.
25526         * lib/memchr2.c: Likewise, based on memchr.c.
25527         * tests/test-memchr2.c: New test.
25528         * MODULES.html.sh (String handling): Add memchr2.
25529
25530 2008-02-29  Bruno Haible  <bruno@clisp.org>
25531
25532         * modules/freadseek-tests: New file.
25533         * tests/test-freadseek.sh: New file.
25534         * tests/test-freadseek.c: New file.
25535
25536         New module 'freadseek'.
25537         * modules/freadseek: New file.
25538         * lib/freadseek.h: New file.
25539         * lib/freadseek.c: New file.
25540         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
25541
25542 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
25543
25544         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
25545         wydawca.
25546
25547         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
25548         program_invocation_name and program_invocation_short_name are
25549         present.
25550
25551 2008-02-28  Bruno Haible  <bruno@clisp.org>
25552
25553         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
25554         * tests/test-freadptr.sh: Also test non-seekable stdin.
25555
25556 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
25557
25558         * build-aux/bootstrap (source_base, m4_base)
25559         (doc_base, tests_base): New variables.
25560         (gnulib_tool_options): Do not hardcode base directories, use
25561         the above variables instead.
25562
25563 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
25564
25565         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
25566
25567 2008-02-28  Bruno Haible  <bruno@clisp.org>
25568
25569         * modules/freadptr-tests: New file.
25570         * tests/test-freadptr.sh: New file.
25571         * tests/test-freadptr.c: New file.
25572
25573         New module 'freadptr'.
25574         * modules/freadptr: New file.
25575         * lib/freadptr.h: New file.
25576         * lib/freadptr.c: New file.
25577         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
25578
25579 2008-02-26  Karl Berry  <karl@freefriends.org>
25580
25581         Sync from Libtool:
25582         * libltdl/argz.c (argz_add, argz_count): New functions.
25583         * libltdl/argz.in.h: Declare them.
25584         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
25585
25586 2008-02-22  Bruno Haible  <bruno@clisp.org>
25587
25588         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
25589         is a pointer type.  Needed for HP-UX 10.
25590         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
25591         * doc/posix-functions/gmtime_r.texi: Likewise.
25592         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
25593
25594 2008-02-24  Bruno Haible  <bruno@clisp.org>
25595
25596         * modules/environ-tests: New file.
25597         * tests/test-environ.c: New file.
25598
25599         New module 'environ'.
25600         * modules/environ: New file.
25601         * lib/unistd.in.h (environ): New declaration.
25602         * m4/environ.m4: New file.
25603         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
25604         after use.
25605         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
25606         HAVE_DECL_ENVIRON.
25607         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
25608         HAVE_DECL_ENVIRON.
25609         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
25610         wrong claim that 'environ' is missing on some systems.
25611         * modules/execute (Depends-on): Add environ.
25612         * lib/execute.c (environ): Remove fallback declaration.
25613         * modules/pipe (Depends-on): Add environ.
25614         * lib/pipe.c (environ): Remove fallback declaration.
25615         * modules/setenv (Depends-on): Add environ.
25616         * lib/setenv.c (environ): Remove fallback declaration.
25617         * modules/unsetenv (Depends-on): Add environ.
25618         * lib/unsetenv.c (environ): Remove fallback declaration.
25619         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
25620         m4/environ.m4.
25621         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
25622         (gl_PREREQ_UNSETENV): Likewise.
25623
25624 2008-02-24  Bruno Haible  <bruno@clisp.org>
25625
25626         * doc/posix-functions/environ.texi: Document the MacOS X problem.
25627
25628 2008-02-20  Bob Proulx  <bob@proulx.com>
25629
25630         Enable use of older two part flavor 'git describe'.
25631         * build-aux/git-version-gen: If using the older two part flavor of
25632         git version then recreate the third part now present in the
25633         newer three part flavor of git describe.
25634
25635 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
25636
25637         * lib/fts.c (fts_build): Typo correction to comment.
25638
25639 2008-02-17  Bruno Haible  <bruno@clisp.org>
25640
25641         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
25642         generating no-op conflicts.
25643
25644 2008-02-17  Bruno Haible  <bruno@clisp.org>
25645
25646         Speed up by 10%.
25647         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
25648         result_entries, rather than an index-based loop.
25649
25650 2008-02-17  Bruno Haible  <bruno@clisp.org>
25651
25652         Speed up by 25%.
25653         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
25654         'hashcode_cached'.
25655         (entry_create): New function.
25656         (entry_hashcode): Use the cached hashcode if possible.
25657         (read_changelog_file, try_split_merged_entry): Use entry_create.
25658
25659 2008-02-17  Bruno Haible  <bruno@clisp.org>
25660
25661         Speed up from O(n^2) to O(n) for long ChangeLog files.
25662         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
25663         (read_changelog_file): Change implementation of entries_reversed list
25664         to rbtreehash.
25665         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
25666
25667 2008-02-17  Bruno Haible  <bruno@clisp.org>
25668
25669         New option --split-merged-entry.
25670         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
25671         (find_paragraph_end, try_split_merged_entry): New functions.
25672         (long_options): Add option --split-merged-entry.
25673         (usage): Document option --split-merged-entry.
25674         (main): Implement option --split-merged-entry.
25675         Reported by Eric Blake.
25676
25677 2008-02-17  Bruno Haible  <bruno@clisp.org>
25678
25679         * lib/git-merge-changelog.c: Include c-strstr.h.
25680         (main): Support the "git pull --rebase" situation.
25681         * modules/git-merge-changelog (Depends-on): Add c-strstr.
25682         Reported by Eric Blake.
25683
25684 2008-02-16  Eric Blake  <ebb9@byu.net>
25685
25686         Avoid doubling \ in common case of "c-maybe" quoting style.
25687         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
25688         eliding outer quotes.
25689         * lib/quotearg.h: Document this.
25690         * tests/test-quotearg.c (result_strings, inputs, results_g)
25691         (flag_results, locale_results): Test it by adding a new string to
25692         each test group.
25693         (compare_strings): Test new string.
25694
25695 2008-02-13  Eric Blake  <ebb9@byu.net>
25696
25697         Avoid trigraph quoting in default output.
25698         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
25699         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
25700         unless explicitly requested.
25701         * tests/test-quotearg.c (flag_results, main): Add additional tests.
25702
25703 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
25704
25705         Don't rely on signed integer overflowing to negative value.
25706         * lib/getugroups.c (getugroups): Include <limits.h>.
25707         Instead, compare against INT_MAX, and increment only if the test passes.
25708
25709 2008-02-13  Jim Meyering  <meyering@redhat.com>
25710         and Eric Blake  <ebb9@byu.net>
25711
25712         Avoid shadowing warning and compile errors on Linux.
25713         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
25714         forwarding macros on Linux.
25715         (dcgettext): Define a stub, for Linux.
25716         (results_g, main): Avoid warnings.
25717
25718 2008-02-12  Eric Blake  <ebb9@byu.net>
25719
25720         Silence warning in last patch.
25721         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
25722
25723         Quotearg part 4: add tests, fix c-maybe colon quoting.
25724         * lib/quotearg.h: Improve documentation.
25725         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
25726         escapes when adding outer quotes.  When quoting trigraphs, use
25727         valid C notation.  When quoting NUL, omit extra characters if next
25728         character is not digit.  Alter prototype.
25729         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
25730         callers.
25731         * modules/quotearg-tests: New module.
25732         * tests/test-quotearg.c: New test.
25733
25734 2008-02-07  Eric Blake  <ebb9@byu.net>
25735
25736         Quotearg part 3: add flag to control outer quote elision.
25737         * lib/quotearg.h (c_maybe_quoting_style): New style.
25738         (enum quoting_flags): Better documentation of flags.
25739         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
25740         c-maybe style.
25741         (quotearg_buffer_restyled): Handle new flag to elide outer
25742         quotes.
25743
25744         Quotearg part 2: add flag that can control NUL elision.
25745         * lib/quotearg.h (set_quoting_flags): New prototype.
25746         * lib/quotearg.c (struct quoting_options): Add flag field.
25747         (set_quoting_flags): New function.
25748         (quotearg_buffer_restyled): Add flags parameter.
25749         (quotearg_alloc_mem): Set the flag if length cannot be returned.
25750         (quotearg_n_options): Set the flag, since length cannot be
25751         returned.
25752         (quoting_options_from_style): Default flags correctly.
25753
25754         Quotearg part 1: more wrappers, restore quotearg_char state.
25755         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
25756         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
25757         (quotearg_colon_mem): New wrappers.
25758         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
25759         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
25760         functions.
25761         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
25762         (quotearg_colon_mem): New functions.
25763
25764 2008-02-11  Bruno Haible  <bruno@clisp.org>
25765
25766         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
25767         library in the current directory: it does not work with parallel make.
25768         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25769
25770 2008-02-11  Bruno Haible  <bruno@clisp.org>
25771
25772         * .gitattributes: New file.
25773
25774 2008-02-11  Jim Meyering  <meyering@redhat.com>
25775
25776         useless-if-before-free: Fix reversed exit values.
25777         * build-aux/useless-if-before-free: Use correct values
25778         for EXIT_MATCH and EXIT_NO_MATCH.
25779
25780         * build-aux/useless-if-before-free: Close stdout carefully.
25781
25782 2008-02-10  Bruno Haible  <bruno@clisp.org>
25783
25784         New module 'git-merge-changelog'.
25785         * modules/git-merge-changelog: New file.
25786         * lib/git-merge-changelog.c: New file.
25787
25788 2008-02-10  Jim Meyering  <meyering@redhat.com>
25789
25790         useless-if-before-free: New option: --list (-l).
25791
25792         useless-if-before-free: Don't exit immediately upon open failure.
25793         * build-aux/useless-if-before-free: Exit 2 for errors.
25794         Upon failure to open a file, don't exit immediately.
25795         Rather, just warn and continue with any remaining files.
25796
25797 2008-02-10  Bruno Haible  <bruno@clisp.org>
25798
25799         New abstract list operation 'node_set_value'.
25800         * lib/gl_list.h (gl_list_node_set_value): New function.
25801         (struct gl_list_implementation): New field node_set_value.
25802         * lib/gl_list.c (gl_list_node_set_value): New function.
25803         * lib/gl_array_list.c (gl_array_node_set_value): New function.
25804         (gl_array_list_implementation): Update.
25805         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
25806         (gl_carray_list_implementation): Update.
25807         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
25808         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
25809         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
25810         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
25811         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
25812         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
25813         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
25814         Update.
25815         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
25816         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
25817         (gl_sublist_list_implementation): Update.
25818
25819 2008-02-10  Bruno Haible  <bruno@clisp.org>
25820
25821         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
25822         Needed when ELEMENT is #defined to 'some_type *'.
25823
25824 2008-02-10  Jim Meyering  <meyering@redhat.com>
25825
25826         New script and module: useless-if-before-free
25827         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
25828         * build-aux/useless-if-before-free: New file.
25829         * modules/useless-if-before-free: New file.
25830
25831         * build-aux/gitlog-to-changelog: Use committer date, not author date.
25832
25833         xstrtol_error: Fix typo.
25834         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
25835         s/exit_failure/exit_status/.
25836
25837 2008-02-09  Jim Meyering  <meyering@redhat.com>
25838
25839         New script and module: gitlog-to-changelog
25840         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
25841         * modules/gitlog-to-changelog: New file.
25842         * build-aux/gitlog-to-changelog: New file.
25843
25844 2008-02-08  Jim Meyering  <meyering@redhat.com>
25845
25846         Avoid two "parameter unused" warnings.
25847         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
25848         Mark "st" as used.
25849
25850         Use "git COMMAND", not "git-COMMAND".
25851         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
25852         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
25853         * build-aux/git-version-gen: Use "git status", not "git-status".
25854
25855 2008-02-07  Bruno Haible  <bruno@clisp.org>
25856
25857         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
25858         Avoids a crash on Windows Vista.
25859         Reported by Adam Strzelecki <ono@java.pl> via
25860         Simon Josefsson <simon@josefsson.org>.
25861
25862 2008-02-06  Bruno Haible  <bruno@clisp.org>
25863
25864         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
25865         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
25866         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
25867         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
25868         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
25869         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
25870         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
25871         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
25872         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
25873         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
25874         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
25875         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
25876         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
25877         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
25878         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
25879         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
25880         left-adjust flag.
25881         * tests/test-snprintf-posix.h (test_function): Likewise.
25882         * tests/test-sprintf-posix.h (test_function): Likewise.
25883         * tests/test-vasprintf-posix.c (test_function): Likewise.
25884         * doc/posix-functions/fprintf.texi: Update.
25885         * doc/posix-functions/printf.texi: Update.
25886         * doc/posix-functions/snprintf.texi: Update.
25887         * doc/posix-functions/sprintf.texi: Update.
25888         * doc/posix-functions/vfprintf.texi: Update.
25889         * doc/posix-functions/vprintf.texi: Update.
25890         * doc/posix-functions/vsnprintf.texi: Update.
25891         * doc/posix-functions/vsprintf.texi: Update.
25892         Reported by Peter Fales <psfales@alcatel-lucent.com>.
25893
25894 2008-02-06  Bruno Haible  <bruno@clisp.org>
25895
25896         Fix bug introduced on 2008-01-26.
25897         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
25898
25899 2008-02-06  Bruno Haible  <bruno@clisp.org>
25900
25901         Fix bug introduced on 2007-06-10.
25902         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
25903         !NEED_PRINTF_FLAG_ZERO.
25904
25905 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
25906
25907         getloadavg: use libperfstat on AIX5
25908         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
25909
25910 2008-02-03  Bruno Haible  <bruno@clisp.org>
25911
25912         * lib/diffseq.h: Add comments about required #includes.
25913         Reported by Michael Biggs <gnulib@doubleplum.net>.
25914
25915 2008-02-01  Bruno Haible  <bruno@clisp.org>
25916
25917         * users.txt: Add gnuit.
25918
25919 2008-01-31  Bruno Haible  <bruno@clisp.org>
25920
25921         * lib/md4.c (set_uint32): Mark as inline.
25922         * lib/md5.c (set_uint32): Likewise.
25923         * lib/sha1.c (set_uint32): Likewise.
25924         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
25925         * m4/md5.m4 (gl_MD5): Likewise.
25926         * m4/sha1.m4 (gl_SHA1): Likewise.
25927
25928 2008-01-31  Jim Meyering  <meyering@redhat.com>
25929
25930         Use "sizeof VAR", rather than a literal "4".
25931         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
25932         * lib/md4.c (md4_read_ctx): Likewise.
25933         * lib/sha1.c (sha1_read_ctx): Likewise.
25934
25935 2008-01-31  Simon Josefsson  <simon@josefsson.org>
25936
25937         * tests/test-sha1.c: New file, based on test-md5.c.
25938
25939         * modules/crypto/sha1-tests: New file.
25940
25941 2008-01-31  Simon Josefsson  <simon@josefsson.org>
25942
25943         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
25944
25945 2008-01-31  Jim Meyering  <meyering@redhat.com>
25946
25947         Prefer "sizeof v" over the equivalent "4".
25948         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
25949         * lib/md5.c (set_uint32): Likewise.
25950         * lib/sha1.c (set_uint32): Likewise.
25951
25952 2008-01-31  Simon Josefsson  <simon@josefsson.org>
25953
25954         * lib/sha1.c (set_uint32): Mark function as static.
25955
25956 2008-01-31  Simon Josefsson  <simon@josefsson.org>
25957
25958         md2: clarify comments to say that alignment is not required.
25959         * lib/md2.h: Remove warning about alignment in comment.
25960         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
25961         never been required.
25962
25963 2008-01-31  Simon Josefsson  <simon@josefsson.org>
25964
25965         md4: adapt alignment constraint fix from sha1.
25966         * lib/md4.c (set_uint32): New function, from sha1.c
25967         (md4_read_ctx): Use it.
25968         (md4_finish_ctx): Doc fix.
25969         * lib/md4.h: Doc fix.
25970
25971 2008-01-31  Simon Josefsson  <simon@josefsson.org>
25972
25973         md5: adapt alignment constraint fix from sha1.
25974         * lib/md5.c (set_uint32): New function, from sha1.c
25975         (md5_read_ctx): Use it.
25976         (md5_finish_ctx): Doc fix.
25977         * lib/md5.h: Doc fix.
25978
25979 2008-01-30  Peter Palfrader  <weasel@debian.org>
25980
25981         sha1: remove the result buffer alignment constraint
25982         * lib/sha1.c (set_uint32): New function.
25983         (sha1_read_ctx): Rewrite to remove the result buffer alignment
25984         constraint.
25985         (sha1_finish_ctx): Remove comment warning about alignment constraint.
25986         * lib/sha1.h: Likewise.
25987
25988 2008-01-30  Andreas Schwab  <schwab@suse.de>
25989             Bruno Haible  <bruno@clisp.org>
25990
25991         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
25992         correct definition of LDBL_MIN_EXP.
25993
25994 2008-01-30  Karl Berry  <karl@gnu.org>
25995
25996         * config/srclist-update: try to preserve x bit on updates.
25997         * config/srclistvars.sh: update for karl.
25998
25999 2008-01-29  Jim Meyering  <meyering@redhat.com>
26000
26001         vasnprintf.c: Avoid warning about unused label
26002         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
26003         "overflow" label definition and associated code with the
26004         same cpp condition that guards the sole use of that label.
26005
26006 2008-01-26  Bruno Haible  <bruno@clisp.org>
26007
26008         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
26009         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
26010         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
26011         * lib/isnanl-nolibm.h (isnanl): Likewise.
26012         Reported by Paul Eggert <eggert@cs.ucla.edu>.
26013
26014 2008-01-26  Bruno Haible  <bruno@clisp.org>
26015
26016         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
26017         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
26018
26019 2008-01-26  Bruno Haible  <bruno@clisp.org>
26020
26021         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
26022         GCC >= 4.0 built-in.
26023         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
26024
26025 2008-01-26  Bruno Haible  <bruno@clisp.org>
26026
26027         Rename isnan, applicable to 'double' only, to isnand.
26028         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
26029         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
26030         (configure.ac): Update.
26031         (Include): Replace "isnan.h" with "isnand.h".
26032         * m4/isnand.m4: Renamed from m4/isnan.m4.
26033         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
26034         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
26035         instead of isnan.c.
26036         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
26037         instead of HAVE_ISNAN_IN_LIBC.
26038         (isnand): Renamed from isnan.
26039         * lib/isnand.c: New file.
26040         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
26041         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
26042         (Makefile.am): Update.
26043         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
26044         Include isnand.h instead of isnan.h.
26045         (main): Test isnand instead of isnan.
26046         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
26047         isnan-nolibm.
26048         * modules/frexp (Depends-on): Likewise.
26049         * modules/frexp-tests (Depends-on): Likewise.
26050         * modules/frexp-nolibm (Depends-on): Likewise.
26051         * modules/frexp-nolibm-tests (Depends-on): Likewise.
26052         * modules/isfinite (Depends-on): Likewise.
26053         * modules/round-tests (Depends-on): Likewise.
26054         * modules/signbit (Depends-on): Likewise.
26055         * modules/signbit-tests (Depends-on): Likewise.
26056         * modules/snprintf-posix (Depends-on): Likewise.
26057         * modules/sprintf-posix (Depends-on): Likewise.
26058         * modules/trunc-tests (Depends-on): Likewise.
26059         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
26060         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
26061         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
26062         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
26063         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
26064         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
26065         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
26066         * modules/vasnprintf-posix (Depends-on): Likewise.
26067         * modules/vasprintf-posix (Depends-on): Likewise.
26068         * modules/vfprintf-posix (Depends-on): Likewise.
26069         * modules/vsnprintf-posix (Depends-on): Likewise.
26070         * modules/vsprintf-posix (Depends-on): Likewise.
26071         * lib/frexp.c: Include isnand.h instead of isnan.h.
26072         (ISNAN): Set to isnand instead of isnan.
26073         * lib/isfinite.c: Include isnand.h instead of isnan.h.
26074         (gl_isfinited): Use isnand instead of isnan.
26075         * lib/signbitd.c: Include isnand.h instead of isnan.h.
26076         (gl_signbitd): Use isnand instead of isnan.
26077         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
26078         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
26079         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
26080         (main): Use isnand instead of isnan.
26081         * tests/test-round1.c: Include isnand.h.
26082         (main): Use isnand instead of isnan.
26083         * tests/test-round2.c: Include isnand.h instead of isnan.h.
26084         (ISNAN): Set to isnand instead of isnan.
26085         * tests/test-trunc1.c: Include isnand.h.
26086         (main): Use isnand instead of isnan.
26087         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
26088         (equal): Use isnand instead of isnan.
26089         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
26090         isnand-nolibm.
26091         * NEWS: Mention the change.
26092
26093 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
26094             Bruno Haible  <bruno@clisp.org>
26095
26096         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
26097         the GCC builtins for signbits are present and set
26098         REPLACE_SIGNBIT_USING_GCC if so.
26099         * lib/math.in.h (signbit): Define using GCC builtins if
26100         REPLACE_SIGNBIT_USING_GCC is set.
26101         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
26102         REPLACE_SIGNBIT_USING_GCC.
26103         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
26104
26105 2008-01-25  Jim Meyering  <meyering@redhat.com>
26106
26107         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
26108         * lib/poll.c: Include <config.h>, not "config.h".
26109         * tests/test-getaddrinfo.c: Likewise.
26110
26111 2008-01-25  Simon Josefsson  <simon@josefsson.org>
26112
26113         * modules/sockets-tests: New file.
26114
26115 2008-01-24  Simon Josefsson  <simon@josefsson.org>
26116
26117         * modules/sockets: New module, can be used to call WSA_Startup and
26118         WSA_Cleanup when needed.
26119
26120         * lib/sockets.h, lib/sockets.c: New files.
26121
26122         * m4/sockets.m4: New file.
26123
26124         * tests/test-sockets.c: New file.
26125
26126 2008-01-19  Bruno Haible  <bruno@clisp.org>
26127
26128         * doc/posix-headers: Renamed from doc/headers.
26129         * doc/posix-functions: Renamed from doc/functions.
26130         * doc/gnulib.texi: Update.
26131
26132 2008-01-19  Bruno Haible  <bruno@clisp.org>
26133
26134         * doc/glibc-functions/strcasestr.texi: Include contents of
26135         doc/functions/strcasestr.texi, fixing the list of platforms.
26136         * doc/functions/strcasestr.texi: Remove file.
26137
26138 2008-01-19  Bruno Haible  <bruno@clisp.org>
26139
26140         * doc/glibc-functions/memmem.texi: Include contents of
26141         doc/functions/memmem.texi.
26142         * doc/functions/memmem.texi: Remove file.
26143
26144 2008-01-18  Bruno Haible  <bruno@clisp.org>
26145
26146         * doc/glibc-functions/*.texi: New files.
26147         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
26148         to use the new files.
26149
26150 2008-01-17  Bruno Haible  <bruno@clisp.org>
26151
26152         * tests/test-gethostname.c (main): Fix printf statement.
26153
26154 2008-01-17  Simon Josefsson  <simon@josefsson.org>
26155
26156         * modules/gethostname-tests: New file.
26157
26158         * tests/test-gethostname.c: New file.
26159
26160 2008-01-17  Simon Josefsson  <simon@josefsson.org>
26161
26162         * lib/gethostname.c: Include string.h unconditionally, strncpy is
26163         used by the UNAME case.  Reported by Bruno Haible
26164         <bruno@clisp.org>.
26165
26166 2008-01-17  Eric Blake  <ebb9@byu.net>
26167
26168         Convert c-strcasestr to be more efficient.
26169         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
26170         (Depends-on): Add c-strcase, remove malloca, strnlen.
26171         * tests/test-c-strcasestr.c (main): Enhance test.
26172         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
26173
26174 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
26175
26176         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
26177         Use it in creating po/Makevars.
26178
26179 2008-01-15  Simon Josefsson  <simon@josefsson.org>
26180
26181         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
26182         Applications that requires it should initialize libgcrypt
26183         manually.
26184
26185 2008-01-16  Simon Josefsson  <simon@josefsson.org>
26186
26187         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
26188
26189 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
26190
26191         Fix problem with getdate on mingw32 reported by Simon Josefsson
26192         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
26193         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
26194         tzname", when deciding whether to declare tzname.
26195         * lib/strftime.c (tzname): Likewise.
26196
26197 2008-01-15  Bruno Haible  <bruno@clisp.org>
26198
26199         Work around a MacOS X 10.5 bug in frexpl().
26200         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
26201         * doc/functions/frexpl.texi: Document the bug.
26202         Reported by Elias Pipping <pipping@gentoo.org>.
26203
26204 2008-01-14  Eric Blake  <ebb9@byu.net>
26205
26206         Touch up previous patch.
26207         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
26208         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
26209
26210         Convert strcasestr module to use Two-Way algorithm.
26211         * modules/strcasestr-simple: New module, based on the old
26212         strcasestr, but with Two-Way rather than KMP.
26213         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
26214         * lib/string.in.h (rpl_strcasestr): Declare.
26215         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
26216         performance.
26217         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
26218         * modules/string (Makefile.am): Support strcasestr.
26219         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
26220         * modules/strcasestr-tests (Depends-on): Check for alarm.
26221         * tests/test-strcasestr.c: Augment test.
26222         * lib/str-two-way.h: Clean up stray macro.
26223         * NEWS: Document new module.
26224         * MODULES.html.sh (string handling): Likewise.
26225         * doc/functions/strcasestr.texi: New file.
26226         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
26227         here, since it is not a POSIX function.
26228
26229 2008-01-14  Colin Watson  <cjwatson@debian.org>
26230             Bruno Haible  <bruno@clisp.org>
26231
26232         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
26233         works fine; if not, set REPLACE_STRSIGNAL.
26234         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
26235         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
26236         REPLACE_STRSIGNAL.
26237         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
26238         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
26239         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
26240
26241 2008-01-14  Bruno Haible  <bruno@clisp.org>
26242
26243         * modules/strsignal (Include): Change to <string.h>.
26244
26245 2008-01-14  Colin Watson  <cjwatson@debian.org>
26246
26247         * modules/argp (Notice): Add a notice recommending to change
26248         XGETTEXT_OPTIONS.
26249         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
26250
26251 2008-01-13  Colin Watson  <cjwatson@debian.org>
26252
26253         * modules/strsignal-tests: New file.
26254         * tests/test-strsignal.c: New file.
26255
26256         * lib/strsignal.c: New file, from glibc with modifications.
26257         * lib/siglist.h: New file, from glibc with modifications.
26258         * lib/string.in.h (strsignal): New declaration.
26259         * m4/strsignal.m4: New file.
26260         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
26261         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
26262         * modules/strsignal: New file.
26263         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
26264         HAVE_DECL_STRSIGNAL.
26265
26266 2008-01-13  Bruno Haible  <bruno@clisp.org>
26267
26268         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
26269         locale encoding is not ASCII. Needed for OpenBSD 4.0.
26270         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
26271         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
26272
26273 2008-01-13  Bruno Haible  <bruno@clisp.org>
26274
26275         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
26276         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
26277         * lib/argp.h (__attribute__): Likewise.
26278         * lib/c-stack.c (__attribute__): Likewise.
26279         * lib/error.h (__attribute__): Likewise.
26280         * lib/fts.c (__attribute__): Likewise.
26281         * lib/openat.h (__attribute__): Likewise.
26282         * lib/stdio.in.h (__attribute__): Likewise.
26283         * lib/string.in.h (__attribute__): Likewise.
26284         * lib/utimens.c (__attribute__): Likewise.
26285         * lib/vasnprintf.h (__attribute__): Likewise.
26286         * lib/xalloc.h (__attribute__): Likewise.
26287         * lib/xprintf.h (__attribute__): Likewise.
26288         * lib/xstrtol.h (__attribute__): Likewise.
26289         * lib/xvasprintf.h (__attribute__): Likewise.
26290
26291 2008-01-12  Bruno Haible  <bruno@clisp.org>
26292
26293         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
26294         * doc/glibc-headers/a.out.texi: New file.
26295         * doc/glibc-headers/aliases.texi: New file.
26296         * doc/glibc-headers/alloca.texi: New file.
26297         * doc/glibc-headers/ar.texi: New file.
26298         * doc/glibc-headers/argp.texi: New file.
26299         * doc/glibc-headers/argz.texi: New file.
26300         * doc/glibc-headers/byteswap.texi: New file.
26301         * doc/glibc-headers/crypt.texi: New file.
26302         * doc/glibc-headers/endian.texi: New file.
26303         * doc/glibc-headers/envz.texi: New file.
26304         * doc/glibc-headers/err.texi: New file.
26305         * doc/glibc-headers/error.texi: New file.
26306         * doc/glibc-headers/execinfo.texi: New file.
26307         * doc/glibc-headers/fpu_control.texi: New file.
26308         * doc/glibc-headers/fstab.texi: New file.
26309         * doc/glibc-headers/fts.texi: New file.
26310         * doc/glibc-headers/getopt.texi: New file.
26311         * doc/glibc-headers/ieee754.texi: New file.
26312         * doc/glibc-headers/ifaddrs.texi: New file.
26313         * doc/glibc-headers/libintl.texi: New file.
26314         * doc/glibc-headers/mcheck.texi: New file.
26315         * doc/glibc-headers/mntent.texi: New file.
26316         * doc/glibc-headers/obstack.texi: New file.
26317         * doc/glibc-headers/paths.texi: New file.
26318         * doc/glibc-headers/printf.texi: New file.
26319         * doc/glibc-headers/pty.texi: New file.
26320         * doc/glibc-headers/resolv.texi: New file.
26321         * doc/glibc-headers/shadow.texi: New file.
26322         * doc/glibc-headers/sysexits.texi: New file.
26323         * doc/glibc-headers/ttyent.texi: New file.
26324
26325 2008-01-12  Jim Meyering  <meyering@redhat.com>
26326
26327         announce-gen: emit Gnulib's git-based version string.
26328         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
26329         New option --gnulib-version=V, where V is expected to be
26330         the output of running git describe in the gnulib directory.
26331         (get_tool_versions): Request feedback on xdelta.  I suspect it's
26332         not useful, and plan to stop publishing an xdelta file with each
26333         coreutils release.
26334
26335         * build-aux/announce-gen: Also check for lzma-compressed files.
26336
26337 2008-01-11  Bruno Haible  <bruno@clisp.org>
26338
26339         * tests/test-memmem.c (main): Increase maximum allowed time.
26340         * tests/test-strstr.c (main): Likewise.
26341
26342 2008-01-11  Bruno Haible  <bruno@clisp.org>
26343
26344         * doc/functions/memmem.texi: Add more precisions about platforms.
26345         * doc/functions/strstr.texi: Likewise.
26346
26347 2008-01-10  Eric Blake  <ebb9@byu.net>
26348
26349         * m4/strstr.m4: Delete cruft from copy-n-paste.
26350         Reported by Bruno Haible.
26351
26352 2008-01-10  Bruno Haible  <bruno@clisp.org>
26353
26354         Make c-strstr rely on strstr.
26355         * lib/c-strstr.c: Don't include str-kmp.h.
26356         (c_strstr): Define in terms of strstr.
26357         * modules/c-strstr (Files): Remove lib/str-kmp.h.
26358         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
26359
26360 2008-01-10  Bruno Haible  <bruno@clisp.org>
26361
26362         * doc/gnulib.texi (String Functions in C Locale): New section.
26363         * doc/c-ctype.texi: New file.
26364         * doc/c-strcase.texi: New file.
26365         * doc/c-strcaseeq.texi: New file.
26366         * doc/c-strcasestr.texi: New file.
26367         * doc/c-strstr.texi: New file.
26368         * doc/c-strtod.texi: New file.
26369         * doc/c-strtold.texi: New file.
26370
26371 2008-01-10  Eric Blake  <ebb9@byu.net>
26372
26373         * lib/relocatable.h: Fix a comment.
26374
26375 2008-01-10  Eric Blake  <ebb9@byu.net>
26376
26377         Share two-way algorithm.
26378         * lib/str-two-way.h: New file, merged from...
26379         * lib/memmem.c: ...here...
26380         * lib/strstr.c: ...and here.
26381         * modules/memmem (Files): Use it.
26382         * modules/strstr (Files): Likewise.
26383
26384         Avoid quadratic strstr implementations.
26385         * lib/strstr.c: New file.
26386         * m4/strstr.m4: Likewise.
26387         * modules/strstr: Likewise.
26388         * modules/strstr-tests: Likewise.
26389         * tests/test-strstr.c: Likewise.
26390         * lib/string.in.h (rpl_strstr): Declare.
26391         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
26392         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
26393         * modules/string (Makefile.am): Likewise.
26394         * MODULES.html.sh (string handling): Mention new module.
26395         * doc/functions/strstr.texi (strstr): Document the bug.
26396
26397 2008-01-10  Bruno Haible  <bruno@clisp.org>
26398
26399         * lib/relocatable.h (relocate): State whether result is freshly
26400         allocated or not.
26401         * lib/relocatable.c (relocate): Return a freshly allocated string
26402         instead of a pointer to a privately held string.
26403         Reported by Sylvain Beucler <beuc@gnu.org>.
26404
26405 2008-01-10  Colin Watson  <cjwatson@debian.org>
26406
26407         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
26408         s/S_ISNLK/S_ISLNK/.
26409
26410 2008-01-09  Bruno Haible  <bruno@clisp.org>
26411
26412         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
26413         and other files.
26414         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
26415         if it's only a guess.
26416         * modules/memmem: Simplify by depending on memmem-simple.
26417
26418 2008-01-09  Bruno Haible  <bruno@clisp.org>
26419
26420         Work around OpenBSD 4.0 tdelete() bug.
26421         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
26422         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
26423         macros and don't redefine the enum values.
26424         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
26425         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
26426         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
26427
26428 2008-01-09  Bruno Haible  <bruno@clisp.org>
26429
26430         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
26431         (main): Don't perform the tests if setlocale did not install a UTF-8
26432         locale. Needed on OpenBSD 4.0.
26433         * modules/wcwidth-tests (Depends-on): Add localcharset.
26434
26435 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
26436
26437         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
26438         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
26439         * NEWS: announce this.
26440         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
26441
26442 2008-01-09  Simon Josefsson  <simon@josefsson.org>
26443         and Eric Blake  <ebb9@byu.net>
26444
26445         Add memmem-simple module.
26446         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
26447         (gl_FUNC_MEMMEM): Separate performance from presence checks.
26448         * modules/memmem-simple: New file.
26449         * modules/memmem (Description): Tweak.
26450         * MODULES.html.sh (string handling): Mention new module.
26451         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
26452         addressed by memmem-simple.
26453         * NEWS: Document the difference.
26454
26455 2008-01-09  Eric Blake  <ebb9@byu.net>
26456
26457         Give gcc some memmem optimization hints.
26458         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
26459         (strcasestr): Declare as pure.
26460         * modules/memmem (Maintainer): Claim my implementation.
26461
26462 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26463
26464         Support AIX 6.1 and higher.
26465         * build-aux/config.libpath: Likewise.
26466         * build-aux/config.rpath: Likewise.
26467
26468 2008-01-08  Jim Meyering  <meyering@redhat.com>
26469             Bruno Haible  <bruno@clisp.org>
26470
26471         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
26472         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
26473         Reported by Peter Fales in
26474         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
26475
26476 2008-01-08  Bruno Haible  <bruno@clisp.org>
26477
26478         * modules/unictype/category-of (Depends-on): Add
26479         unictype/category-none.
26480         * modules/unictype/category-and-tests (Depends-on): Add
26481         unictype/category-{L,N,Lu,Nd}.
26482         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
26483         * modules/unictype/category-or-tests (Depends-on): Add
26484         unictype/category-{L,N}.
26485         * modules/unictype/category-name-tests (Depends-on): Add
26486         unictype/category-{Z,Nl}.
26487         Reported by Simon Josefsson.
26488
26489 2008-01-08  Bruno Haible  <bruno@clisp.org>
26490
26491         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
26492         convention better.
26493         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
26494         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
26495         Reported by Peter Miller <millerp@canb.auug.org.au>.
26496
26497 2008-01-08  Eric Blake  <ebb9@byu.net>
26498
26499         Rewrite memmem to guarantee linear complexity without malloc.
26500         * lib/memmem.c (memmem): Use Two-Way rather than
26501         Knuth-Morris-Pratt, to allow O(1) space usage.
26502         (critical_factorization, two_way_short_needle)
26503         (two_way_long_needle): New functions.
26504         (knuth_morris_pratt): Delete.
26505         * modules/memmem (Depends-on): No longer need malloca or stdbool.
26506         Add stdint.
26507         * tests/test-memmem.c (main): Add tests for periodic needle and
26508         sublinear performance.
26509         * doc/functions/memmem.texi (memmem): Document other deficiencies
26510         in cygwin and older glibc.
26511
26512 2008-01-08  Bruno Haible  <bruno@clisp.org>
26513
26514         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
26515         augmentation.
26516
26517 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
26518
26519         Add a configure time option: --disable-acl.
26520         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
26521         AC_ARG_ENABLE(acl).
26522
26523 2008-01-06  Simon Josefsson  <simon@josefsson.org>
26524
26525         * tests/test-localename.c: Don't include obsolete "setenv.h".
26526
26527         * modules/localename-tests (Depends-on): Need unsetenv.
26528
26529 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26530
26531         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
26532
26533 2008-01-06  Colin Watson  <cjwatson@debian.org>
26534
26535         * users.txt: Add man-db.
26536
26537 2008-01-07  Bruno Haible  <bruno@clisp.org>
26538
26539         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
26540         previous section name.
26541
26542 2008-01-07  Bruno Haible  <bruno@clisp.org>
26543
26544         * lib/progname.c (set_program_name): Don't strip off a leading
26545         "lt-" prefix outside a .libs directory.
26546         Suggested by Paul Eggert.
26547
26548 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
26549             Bruno Haible  <bruno@clisp.org>
26550
26551         Improve memory cleanup in 'relocatable' module.
26552         * lib/relocatable.h (compute_curr_prefix): Change return type to
26553         'char *'.
26554         * lib/relocatable.c (compute_curr_prefix): Change return type to
26555         'char *'. Free curr_installdir after use.
26556         (relocate): Free curr_prefix_better after use.
26557         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
26558
26559 2008-01-01  Bruno Haible  <bruno@clisp.org>
26560
26561         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
26562         failure on older glibc systems.
26563         Reported by Peter Fales <psfales@alcatel-lucent.com>.
26564
26565 2008-01-05  Eric Blake  <ebb9@byu.net>
26566
26567         Avoid quadratic system memmem.
26568         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
26569         Reported by Ralf Wildenhues.
26570
26571         Fix memmem test for mingw.
26572         * modules/memmem-tests (configure.ac): Check for alarm.
26573         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
26574         it.
26575         * doc/functions/memmem.texi: New file.
26576         * doc/gnulib.texi (Function Substitutes): Add memmem.
26577         Reported by Bruno Haible.
26578
26579 2008-01-04  Bruno Haible  <bruno@clisp.org>
26580
26581         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
26582         Require gl_HEADER_STRINGS_H_DEFAULTS, not
26583         gl_HEADER_STRING_H_DEFAULTS.
26584
26585 2008-01-04  Eric Blake  <ebb9@byu.net>
26586
26587         Shorten duration of memmem test.
26588         * tests/test-memmem.c (main): Use alarm to declare failure if test
26589         is taking too long.
26590         Reported by Ralf Wildenhues.
26591
26592 2007-12-21  Simon Josefsson  <simon@josefsson.org>
26593
26594         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
26595         string, needed by strerror.
26596
26597 2008-01-03  Colin Watson  <cjwatson@debian.org>
26598             Bruno Haible  <bruno@clisp.org>
26599
26600         * doc/gnulib-tool.texi (Localization): New section.
26601
26602 2008-01-02  Bruno Haible  <bruno@clisp.org>
26603
26604         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
26605         variables to 'unsigned char *' type.
26606         Reported by Paul Eggert.
26607
26608 2008-01-02  Jim Meyering  <jim@meyering.net>
26609
26610         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
26611
26612 2007-12-31  Jim Meyering  <jim@meyering.net>
26613
26614         Avoid use of private FTS type name.
26615         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
26616
26617 2007-12-30  Karl Berry  <karl@gnu.org>
26618
26619         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
26620         work around defect in Texinfo and/or the standalone Info browser.
26621
26622 2007-12-30  Bruno Haible  <bruno@clisp.org>
26623
26624         Unify 5 copies of the KMP code.
26625         * lib/str-kmp.h: New file.
26626         * lib/c-strcasestr.c: Include str-kmp.h.
26627         (knuth_morris_pratt): Remove function.
26628         (c_strcasestr): Update.
26629         * lib/c-strstr.c: Include str-kmp.h.
26630         (knuth_morris_pratt): Remove function.
26631         (c_strcasestr): Update.
26632         * lib/mbscasestr.c: Include str-kmp.h.
26633         (knuth_morris_pratt_unibyte): Remove function.
26634         * lib/mbsstr.c: Include str-kmp.h.
26635         (knuth_morris_pratt_unibyte): Remove function.
26636         * lib/strcasestr.c: Include str-kmp.h.
26637         (knuth_morris_pratt): Remove function.
26638         (strcasestr): Update.
26639         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
26640         * modules/c-strstr (Files): Likewise.
26641         * modules/mbscasestr (Files): Likewise.
26642         * modules/mbsstr (Files): Likewise.
26643         * modules/strcasestr (Files): Likewise.
26644         Suggested by Paul Eggert.
26645
26646 2007-12-30  Bruno Haible  <bruno@clisp.org>
26647
26648         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
26649         defined.
26650
26651 2007-12-30  Bruno Haible  <bruno@clisp.org>
26652
26653         * lib/xmalloca.h: Include xalloc.h.
26654         (xnmalloca): New macro.
26655
26656 2007-12-30  Bruno Haible  <bruno@clisp.org>
26657
26658         * lib/malloca.h (nmalloca): New macro.
26659         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
26660         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
26661         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
26662         knuth_morris_pratt_multibyte): Likewise.
26663         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
26664         knuth_morris_pratt_multibyte): Likewise.
26665         * lib/memmem.c (knuth_morris_pratt): Likewise.
26666         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
26667
26668 2007-12-25  Bruno Haible  <bruno@clisp.org>
26669
26670         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
26671         * lib/glob.c: Don't include openat.h.
26672         (link_exists2_p): Add back the code that deals with the
26673         !GLOB_ALTDIRFUNC case.
26674         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
26675         let it do the filename concatenation.
26676         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
26677         * modules/glob (Depends-on): Remove openat.
26678
26679 2007-12-31  Bruno Haible  <bruno@clisp.org>
26680
26681         * modules/dirfd (License): Change to LGPLv2+.
26682         Approved by Jim Meyering.
26683
26684 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
26685
26686         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
26687         when multiplying M by sizeof (size_t).
26688
26689 2007-12-10  Martin Lambers  <marlam@marlam.de>
26690
26691         Override getpagesize on mingw.
26692         * lib/getpagesize.c: New file.
26693         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
26694         * modules/getpagesize (Files): Add lib/getpagesize.c.
26695         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
26696         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26697         REPLACE_GETPAGESIZE.
26698         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
26699
26700 2007-12-25  Bruno Haible  <bruno@clisp.org>
26701
26702         * modules/localcharset (Notice): New field.
26703         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
26704         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
26705
26706 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
26707             Bruno Haible  <bruno@clisp.org>
26708
26709         Avoid using the syntax symbol() in formatted documentation.
26710         * MODULES.html.sh (func_module): When replacing symbol() with a
26711         hyperlink, remove the parentheses. Show an error if some remain.
26712         Recognize and render the '...' syntax.
26713         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
26714         Rework. Add paragraph about GCC's inlining.
26715         * doc/alloca.texi: Likewise.
26716         * doc/error.texi: Remove parentheses from symbol reference.
26717         * doc/gnulib-intro.texi: Likewise.
26718         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
26719         * modules/fnmatch (Description): Reword to say "the ... function".
26720         * modules/full-read (Description): Likewise.
26721         * modules/full-write (Description): Likewise.
26722         * modules/safe-read (Description): Likewise.
26723         * modules/safe-write (Description): Likewise.
26724         * modules/strchrnul (Description): Likewise.
26725         * modules/trim (Description): Likewise.
26726         * modules/error (Description): Remove parentheses from symbol
26727         references.
26728         * modules/verror (Description): Likewise.
26729         Reported by Karl Berry.
26730
26731 2007-12-25  Bruno Haible  <bruno@clisp.org>
26732
26733         Fixup after 2007-10-16 commit.
26734         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
26735
26736 2007-12-24  Bruno Haible  <bruno@clisp.org>
26737
26738         Make --enable-relocatable work with DESTDIR.
26739         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
26740         to compute installdir from destprog.
26741         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
26742         also set the RELOC_DESTDIR variable.
26743         Reported by Левашев Иван <octagram@bluebottle.com>.
26744
26745 2007-12-24  Bruno Haible  <bruno@clisp.org>
26746
26747         Fix link error due to xalloc_die().
26748         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
26749         of xreadlink.
26750         * lib/relocwrapper.c: Update comments.
26751         * build-aux/install-reloc: Remove xreadlink.c from file list.
26752         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
26753         xreadlink.c.
26754         Reported by Левашев Иван <octagram@bluebottle.com>.
26755
26756 2007-12-24  Bruno Haible  <bruno@clisp.org>
26757
26758         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
26759         * lib/setenv.h: Remove file.
26760         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
26761         lib/setenv.h.
26762         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
26763         (Depends-on): Add stdlib.
26764         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
26765         gl_FUNC_UNSETENV.
26766         (Include): Replace setenv.h with <stdlib.h>.
26767         * modules/unsetenv: New file.
26768         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
26769         * lib/unsetenv.c: Include <stdlib.h> first.
26770         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
26771         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
26772         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
26773         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
26774         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
26775         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
26776         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
26777         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
26778         * doc/functions/unsetenv.texi: Update.
26779         * modules/xsetenv (Depends-on): Add unsetenv.
26780         * modules/getdate (Depends-on): Likewise.
26781         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
26782         * lib/xsetenv.c: Don't include setenv.h.
26783         * lib/getdate.y: Likewise.
26784         * lib/relocwrapper.c: Likewise.
26785         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
26786         (Depends-on): Add stdlib.
26787         * NEWS: Mention the changes.
26788         Reported by Левашев Иван <octagram@bluebottle.com>.
26789
26790 2007-12-23  Bruno Haible  <bruno@clisp.org>
26791
26792         * lib/memmem.c (memmem): Use lowercase variable names. Tab
26793         indentation.
26794
26795 2007-12-23  Bruno Haible  <bruno@clisp.org>
26796
26797         * lib/c-strcasestr.c: Add more comments.
26798         * lib/c-strstr.c: Likewise.
26799         * lib/mbscasestr.c: Likewise.
26800         * lib/mbsstr.c: Likewise.
26801         * lib/strcasestr.c: Likewise.
26802         * lib/memmem.c: Likewise.
26803
26804 2007-12-23  Bruno Haible  <bruno@clisp.org>
26805
26806         * tests/test-memmem.c: Include <string.h> first.
26807
26808 2007-12-22  Bruno Haible  <bruno@clisp.org>
26809
26810         * gnulib-tool (func_create_testdir): Change $auxdir while generating
26811         the contents of $testsbase.
26812         Reported by Ralf Wildenhues.
26813
26814 2007-12-22  Bruno Haible  <bruno@clisp.org>
26815
26816         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
26817         two variables local_ldadd_before, local_ldadd_last.
26818
26819 2007-12-20  Eric Blake  <ebb9@byu.net>
26820
26821         Work around circular library issue when cross-compiling.
26822         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
26823         that progname.o does not need to pull in rpl_memcmp.
26824
26825 2007-12-19  Eric Blake  <ebb9@byu.net>
26826
26827         Fix memmem to avoid O(n^2) worst-case complexity.
26828         * lib/memmem.c (knuth_morris_pratt): New function.
26829         (memmem): Use it if first few naive iterations fail.
26830         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
26831         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
26832         * modules/memchr (License): Likewise.
26833         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
26834         malloca.
26835         * tests/test-memmem.c: Rewrite, borrowing ideas from
26836         test-mbsstr1.c; the old version wouldn't even compile!
26837         * modules/memmem-tests: New file.
26838         * lib/string.in.h (rpl_memmem): Add declaration.
26839         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
26840         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
26841         REPLACE_MEMMEM.
26842
26843 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
26844
26845         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
26846         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
26847         before any system include files, and undef after them all.  This
26848         should fix a problem on VMS reported by John E. Malmberg in
26849         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
26850
26851 2007-12-17  Eric Blake  <ebb9@byu.net>
26852
26853         Revert addition of verify, for BSD/OS.
26854         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
26855         can't handle large files, for the sake of obsolete platforms.
26856         * modules/fseeko (Depends-on): Remove verify.
26857         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
26858         * doc/functions/ftello.texi (ftello): Likewise.
26859         * doc/functions/fgetpos.texi (fgetpos): Likewise.
26860         Reported by Larry Jones.
26861
26862 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
26863
26864         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
26865         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
26866
26867 2007-12-17  Jim Meyering  <meyering@redhat.com>
26868
26869         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
26870         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
26871         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
26872         * modules/getcwd (Depends-on): Add openat.
26873         Reported by Petr Salinger.
26874
26875 2007-12-17  Bruno Haible  <bruno@clisp.org>
26876
26877         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
26878         avoid a segmentation fault of the configure test on x86_64 systems.
26879
26880 2007-12-15  Jim Meyering  <meyering@redhat.com>
26881
26882         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
26883
26884 2007-12-13  Eric Blake  <ebb9@byu.net>
26885
26886         Another fseek test.
26887         * tests/test-fseek.c (main): Also test ungetc handling.
26888         * tests/test-fseeko.c (main): Likewise.
26889         * modules/fseeko (Depends-on): Add verify.
26890         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
26891         large.
26892         Reported by Larry Jones.
26893
26894         Fix fseeko on mingw.
26895         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
26896         seek.
26897
26898         Beef up fseek tests.
26899         * tests/test-fseek.c (main): Also test eof handling.
26900         * tests/test-fseeko.c (main): Likewise.
26901         Reported by Larry Jones.
26902
26903 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
26904
26905         Fix fseeko on BSD-based platforms.
26906         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
26907         successful seek.
26908
26909 2007-12-12  Eric Blake  <ebb9@byu.net>
26910
26911         Allow circular dependency of separate libtests.a
26912         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
26913         when use_libtests.
26914
26915 2007-12-11  Eric Blake  <ebb9@byu.net>
26916
26917         Fix bug with -0.0L in previous patch.
26918         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
26919         * tests/test-isnan.c (main): Also test on zeroes.
26920         * tests/test-isnanf.c (main): Likewise.
26921         * tests/test-isnanl.h (main): Likewise.
26922
26923         Detect pseudo-denormals on x86 even when cross-compiling.
26924         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
26925         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
26926         invalid bit patterns that happen to satisfy ==.
26927
26928         Avoid link failures with separate libtests.a.
26929         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
26930         last, to satisfy circular dependencies.
26931
26932 2007-12-11  Eric Blake  <ebb9@byu.net>
26933         and Bruno Haible  <bruno@clisp.org>
26934
26935         Fix OpenBSD 4.0 <float.h> handling of long double.
26936         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
26937         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
26938         * doc/headers/float.texi (float.h): Document OpenBSD bug.
26939
26940 2007-12-11  Jim Meyering  <meyering@redhat.com>
26941
26942         * users.txt: Add libvirt.
26943
26944         Support versions of autoconf prior to 2.59c.
26945         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
26946         if it is not already defined.
26947
26948 2007-12-09  Bruno Haible  <bruno@clisp.org>
26949
26950         Let 'gnulib-tool --import' collect sources needed for the tests in
26951         tests/ rather than in lib/.
26952         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
26953         argument. If true, add rules to generate libtests.a, and put libtests.a
26954         into $(LDADD). Consider source files in subdirectories and set
26955         uses_subdirs.
26956         (func_emit_initmacro_start, func_emit_initmacro_end,
26957         func_emit_initmacro_done): Pass all arguments explicitly.
26958         (func_import): Determine two module lists main_modules,
26959         testsrelated_modules. Determine use_libtests. Determine two variables
26960         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
26961         instead of just sed_transform_lib_file. Determine two variables
26962         main_files and testsrelated_files. Compute 'files' as the union of
26963         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
26964         func_add_or_update. In the generated gnulib-comp.m4, collect the
26965         object files for tests/ in different variables than those for lib/.
26966         Substitute LIBTESTS_LIBDEPS.
26967         (func_create_testdir): Combine the uses_subdirs results from
26968         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
26969
26970 2007-12-09  Bruno Haible  <bruno@clisp.org>
26971
26972         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
26973         the build-aux directory.
26974
26975 2007-12-09  Bruno Haible  <bruno@clisp.org>
26976
26977         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
26978         introduced on 2006-09-09.
26979
26980 2007-12-07  Jim Meyering  <meyering@redhat.com>
26981
26982         Let these macros work also with autoconf-2.59.
26983         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
26984         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
26985         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
26986
26987 2007-12-06  Jim Meyering  <meyering@redhat.com>
26988
26989         Avoid a configure-time syntax error in gl_FUNC_ACL.
26990         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
26991         function in each branch, before testing the cache variable.
26992
26993 2007-12-04  Eric Blake  <ebb9@byu.net>
26994
26995         Make scripts executable.
26996         * build-aux/config.guess: Add execute permissions.
26997         * build-aux/config.sub: Likewise.
26998         * build-aux/gendocs.sh: Likewise.
26999
27000         Fix frexp on mingw.
27001         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
27002         cross-compiling.
27003         * doc/functions/frexp.texi (frexp): Document the bug.
27004
27005         Make cygwin fseeko check more reliable.
27006         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
27007         version numbers, rather than unrelated feature check.
27008         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
27009         * doc/functions/ftello.texi (ftello): Likewise.
27010         Reported by Bruno Haible.
27011
27012         * m4/strerror.m4: Bump version number.
27013
27014 2007-12-03  Bruno Haible  <bruno@clisp.org>
27015
27016         * doc/functions/mprotect.texi: Mention the mingw problem.
27017
27018 2007-12-03  Eric Blake  <ebb9@byu.net>
27019
27020         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
27021         REPLACE_STRERROR is initialized before this macro.
27022
27023 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
27024
27025         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
27026         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
27027         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
27028         put -lsec in even for programs other than 'ls'.  This fixes a problem
27029         for gettext reported by Bruno Haible in
27030         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
27031         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
27032         Add support for Solaris 10.  This isn't efficient, but should get the
27033         job done for now.
27034
27035 2007-12-03  James Youngman  <jay@gnu.org>
27036
27037         * doc/regexprops-generic.texi: change "an close-group" to "a
27038         close-group" and "illegal" to "not allowed".
27039
27040 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27041
27042         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
27043         pr_byname.h. Needed for the rare case when the maintainer has done
27044         "make maintainer-clean" in the source directory and then attempts a
27045         build outside the source directory.
27046         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
27047         scripts_byname.h.
27048
27049 2007-12-02  Martin Lambers <marlam@marlam.de>
27050             Bruno Haible  <bruno@clisp.org>
27051
27052         * lib/getpagesize.h: Remove file.
27053         * lib/unistd.in.h: Include declaration of getpagesize here.
27054         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
27055         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
27056         HAVE_SYS_PARAM_H.
27057         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
27058         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
27059         * modules/getpagesize (Files): Remove lib/getpagesize.h.
27060         (Depends-on): Add unistd.
27061         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
27062         (Include): Use <unistd.h> instead of getpagesize.h.
27063         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
27064         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
27065         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
27066         gl_GETPAGESIZE invocation, already handled by module dependency.
27067         * lib/pagealign_alloc.c: Don't include getpagesize.h.
27068
27069 2007-12-02  Bruno Haible  <bruno@clisp.org>
27070
27071         * modules/strings-tests: New file.
27072         * tests/test-strings.c: New file.
27073
27074         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
27075         * lib/strings.in.h: New file.
27076         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
27077         * m4/strings_h.m4: New file.
27078         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
27079         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
27080         * modules/strings: New file.
27081         * modules/string (Makefile.am): Update.
27082         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
27083         Reported by Karl Berry.
27084
27085 2007-12-01  Eric Blake  <ebb9@byu.net>
27086
27087         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
27088         accomodate fix in cygwin 1.5.25.
27089
27090 2007-12-01  Jim Meyering  <meyering@redhat.com>
27091
27092         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
27093         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
27094         that would inhibit utf8-optimization of a regexp containing line-
27095         or buffer-anchors, e.g., `^', `$'.
27096
27097 2007-11-30  Bruno Haible  <bruno@clisp.org>
27098
27099         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
27100         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
27101         glthread_recursive_lock_init.
27102         * lib/lock.c (glthread_recursive_lock_init)
27103         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
27104         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
27105
27106 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
27107
27108         New function qset_acl, like set_acl but with syscall semantics.
27109         * lib/acl.h (qset_acl): New decl.
27110         * lib/acl.c (qset_acl): New function.
27111         (set_acl): Use new function.  Use more-consistent diagnostics.
27112
27113 2007-11-28  Jim Meyering  <meyering@redhat.com>
27114
27115         * modules/physmem (License): Change from GPL to LGPLv2+.
27116
27117 2007-11-26  Bruno Haible  <bruno@clisp.org>
27118
27119         * lib/vasnprintf.c (decode_long_double): Don't abort if the
27120         'long double' type has excess precision.
27121         Reported by Jim Meyering in
27122         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
27123
27124 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27125
27126         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
27127         Sync from <http://gnu.org/licenses>.
27128         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
27129         with license text from same location.
27130         * doc/maintain.texi, doc/standards.texi:  Sync from
27131         <http://savannah.gnu.org/projects/gnustandards>.
27132
27133 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
27134         and Jim Meyering  <meyering@redhat.com>
27135
27136         Adjust getdate' grammar to accept a slightly more regular language.
27137         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
27138         Before, the former was rejected.
27139         * lib/getdate.y (digits_to_date_time): New function, factored
27140         out of ...
27141         (number): ...here.  Just call digits_to_date_time.
27142         (hybrid): New non-terminal to handle an <unsigned number,
27143         signed relative offset> sequence consistently.
27144
27145 2007-11-18  Jim Meyering  <meyering@redhat.com>
27146
27147         Pull my changes from coreutils:
27148         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
27149         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
27150         use of $gnulib_tool_option_extras, so that it's separated from the
27151         preceding argument.
27152
27153         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
27154         * build-aux/bootstrap (cp_mark_as_generated): Create any required
27155         parent destination directories before copying a file into place.
27156
27157 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
27158
27159         bootstrap: work also with 4-argument variant of AC_INIT
27160         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
27161
27162 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
27163
27164         Port test-getaddrinfo to Solaris.
27165         Problem reported by Bruno Haible in
27166         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
27167         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
27168         explanation of setting 'hints'.
27169         Don't reject an implementation merely because it returns EAI_SERVICE.
27170         (EAI_SERVICE): Define to 0 if not defined.
27171
27172 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
27173
27174         The license of gnu-make and posix-shell is now "GPLed build tool".
27175         * modules/gnu-make (License): Likewise.
27176         * modules/posix-shell (License): Likewise.
27177
27178         New module posix-shell, for determining a POSIX shell
27179         or perhaps something that is close enough to a POSIX shell.
27180         * m4/posix-shell.m4: New file.
27181         * modules/posix-shell: New file.
27182
27183         * MODULES.html.sh: Mention new module.
27184
27185         New module gnu-make, for determining whether we're using GNU Make.
27186         * m4/gnu-make.m4: New file.
27187         * modules/gnu-make: New file.
27188         * MODULES.html.sh: Mention new module.
27189
27190 2007-11-14  Jim Meyering  <meyering@redhat.com>
27191
27192         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
27193         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
27194         use this macro to create a function _definition_.
27195         Remove useless "#undef ARGMATCH_DIE".
27196
27197 2007-11-14  Bruno Haible  <bruno@clisp.org>
27198
27199         * lib/config.charset: Update for OpenBSD 4.1.
27200         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
27201
27202 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
27203
27204         Document 64-bit #if problems in stdint.texi.
27205         * doc/headers/stdint.texi (stdint.h): Mention problems with
27206         64-bit-#if, and how to work around them.
27207
27208         Don't insist on 'long long int' support in the preprocessor.  It
27209         breaks too many things.  For example, PRIdMAX still uses a 'long
27210         long int' format with the latest Sun compiler, even though
27211         HAVE_LONG_LONG_INT isn't defined due to that compiler's
27212         preprocessor problem.  This causes the latest coreutils to dump
27213         core on Solaris 10 sparc with the Sun C compiler.
27214         Instead, fix the 2007-10-16 problem in a different way, by evaluating
27215         the troublesome expressions at configure-time, not at #if-time.
27216         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
27217         preprocessor.
27218         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
27219         compile-time C checks, done at 'configure'-time.
27220         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
27221         * modules/inttypes (Makefile): Substitute the new symbols that
27222         gl_INTTYPES_H now generates.
27223         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
27224
27225 2007-11-12  Bruno Haible  <bruno@clisp.org>
27226
27227         Tests for Unicode character classification functions.
27228
27229         * modules/unictype/bidicategory-byname-tests: New file.
27230         * modules/unictype/bidicategory-name-tests: New file.
27231         * modules/unictype/bidicategory-of-tests: New file.
27232         * modules/unictype/bidicategory-test-tests: New file.
27233         * modules/unictype/block-list-tests: New file.
27234         * modules/unictype/block-of-tests: New file.
27235         * modules/unictype/block-test-tests: New file.
27236         * modules/unictype/category-C-tests: New file.
27237         * modules/unictype/category-Cc-tests: New file.
27238         * modules/unictype/category-Cf-tests: New file.
27239         * modules/unictype/category-Cn-tests: New file.
27240         * modules/unictype/category-Co-tests: New file.
27241         * modules/unictype/category-Cs-tests: New file.
27242         * modules/unictype/category-L-tests: New file.
27243         * modules/unictype/category-Ll-tests: New file.
27244         * modules/unictype/category-Lm-tests: New file.
27245         * modules/unictype/category-Lo-tests: New file.
27246         * modules/unictype/category-Lt-tests: New file.
27247         * modules/unictype/category-Lu-tests: New file.
27248         * modules/unictype/category-M-tests: New file.
27249         * modules/unictype/category-Mc-tests: New file.
27250         * modules/unictype/category-Me-tests: New file.
27251         * modules/unictype/category-Mn-tests: New file.
27252         * modules/unictype/category-N-tests: New file.
27253         * modules/unictype/category-Nd-tests: New file.
27254         * modules/unictype/category-Nl-tests: New file.
27255         * modules/unictype/category-No-tests: New file.
27256         * modules/unictype/category-P-tests: New file.
27257         * modules/unictype/category-Pc-tests: New file.
27258         * modules/unictype/category-Pd-tests: New file.
27259         * modules/unictype/category-Pe-tests: New file.
27260         * modules/unictype/category-Pf-tests: New file.
27261         * modules/unictype/category-Pi-tests: New file.
27262         * modules/unictype/category-Po-tests: New file.
27263         * modules/unictype/category-Ps-tests: New file.
27264         * modules/unictype/category-S-tests: New file.
27265         * modules/unictype/category-Sc-tests: New file.
27266         * modules/unictype/category-Sk-tests: New file.
27267         * modules/unictype/category-Sm-tests: New file.
27268         * modules/unictype/category-So-tests: New file.
27269         * modules/unictype/category-Z-tests: New file.
27270         * modules/unictype/category-Zl-tests: New file.
27271         * modules/unictype/category-Zp-tests: New file.
27272         * modules/unictype/category-Zs-tests: New file.
27273         * modules/unictype/category-and-not-tests: New file.
27274         * modules/unictype/category-and-tests: New file.
27275         * modules/unictype/category-byname-tests: New file.
27276         * modules/unictype/category-name-tests: New file.
27277         * modules/unictype/category-none-tests: New file.
27278         * modules/unictype/category-of-tests: New file.
27279         * modules/unictype/category-or-tests: New file.
27280         * modules/unictype/category-test-withtable-tests: New file.
27281         * modules/unictype/combining-class-tests: New file.
27282         * modules/unictype/ctype-alnum-tests: New file.
27283         * modules/unictype/ctype-alpha-tests: New file.
27284         * modules/unictype/ctype-blank-tests: New file.
27285         * modules/unictype/ctype-cntrl-tests: New file.
27286         * modules/unictype/ctype-digit-tests: New file.
27287         * modules/unictype/ctype-graph-tests: New file.
27288         * modules/unictype/ctype-lower-tests: New file.
27289         * modules/unictype/ctype-print-tests: New file.
27290         * modules/unictype/ctype-punct-tests: New file.
27291         * modules/unictype/ctype-space-tests: New file.
27292         * modules/unictype/ctype-upper-tests: New file.
27293         * modules/unictype/ctype-xdigit-tests: New file.
27294         * modules/unictype/decimal-digit-tests: New file.
27295         * modules/unictype/digit-tests: New file.
27296         * modules/unictype/mirror-tests: New file.
27297         * modules/unictype/numeric-tests: New file.
27298         * modules/unictype/property-alphabetic-tests: New file.
27299         * modules/unictype/property-ascii-hex-digit-tests: New file.
27300         * modules/unictype/property-bidi-arabic-digit-tests: New file.
27301         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
27302         * modules/unictype/property-bidi-block-separator-tests: New file.
27303         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
27304         * modules/unictype/property-bidi-common-separator-tests: New file.
27305         * modules/unictype/property-bidi-control-tests: New file.
27306         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
27307         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
27308         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
27309         * modules/unictype/property-bidi-european-digit-tests: New file.
27310         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
27311         * modules/unictype/property-bidi-left-to-right-tests: New file.
27312         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
27313         * modules/unictype/property-bidi-other-neutral-tests: New file.
27314         * modules/unictype/property-bidi-pdf-tests: New file.
27315         * modules/unictype/property-bidi-segment-separator-tests: New file.
27316         * modules/unictype/property-bidi-whitespace-tests: New file.
27317         * modules/unictype/property-byname-tests: New file.
27318         * modules/unictype/property-combining-tests: New file.
27319         * modules/unictype/property-composite-tests: New file.
27320         * modules/unictype/property-currency-symbol-tests: New file.
27321         * modules/unictype/property-dash-tests: New file.
27322         * modules/unictype/property-decimal-digit-tests: New file.
27323         * modules/unictype/property-default-ignorable-code-point-tests: New file.
27324         * modules/unictype/property-deprecated-tests: New file.
27325         * modules/unictype/property-diacritic-tests: New file.
27326         * modules/unictype/property-extender-tests: New file.
27327         * modules/unictype/property-format-control-tests: New file.
27328         * modules/unictype/property-grapheme-base-tests: New file.
27329         * modules/unictype/property-grapheme-extend-tests: New file.
27330         * modules/unictype/property-grapheme-link-tests: New file.
27331         * modules/unictype/property-hex-digit-tests: New file.
27332         * modules/unictype/property-hyphen-tests: New file.
27333         * modules/unictype/property-id-continue-tests: New file.
27334         * modules/unictype/property-id-start-tests: New file.
27335         * modules/unictype/property-ideographic-tests: New file.
27336         * modules/unictype/property-ids-binary-operator-tests: New file.
27337         * modules/unictype/property-ids-trinary-operator-tests: New file.
27338         * modules/unictype/property-ignorable-control-tests: New file.
27339         * modules/unictype/property-iso-control-tests: New file.
27340         * modules/unictype/property-join-control-tests: New file.
27341         * modules/unictype/property-left-of-pair-tests: New file.
27342         * modules/unictype/property-line-separator-tests: New file.
27343         * modules/unictype/property-logical-order-exception-tests: New file.
27344         * modules/unictype/property-lowercase-tests: New file.
27345         * modules/unictype/property-math-tests: New file.
27346         * modules/unictype/property-non-break-tests: New file.
27347         * modules/unictype/property-not-a-character-tests: New file.
27348         * modules/unictype/property-numeric-tests: New file.
27349         * modules/unictype/property-other-alphabetic-tests: New file.
27350         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
27351         * modules/unictype/property-other-grapheme-extend-tests: New file.
27352         * modules/unictype/property-other-id-continue-tests: New file.
27353         * modules/unictype/property-other-id-start-tests: New file.
27354         * modules/unictype/property-other-lowercase-tests: New file.
27355         * modules/unictype/property-other-math-tests: New file.
27356         * modules/unictype/property-other-uppercase-tests: New file.
27357         * modules/unictype/property-paired-punctuation-tests: New file.
27358         * modules/unictype/property-paragraph-separator-tests: New file.
27359         * modules/unictype/property-pattern-syntax-tests: New file.
27360         * modules/unictype/property-pattern-white-space-tests: New file.
27361         * modules/unictype/property-private-use-tests: New file.
27362         * modules/unictype/property-punctuation-tests: New file.
27363         * modules/unictype/property-quotation-mark-tests: New file.
27364         * modules/unictype/property-radical-tests: New file.
27365         * modules/unictype/property-sentence-terminal-tests: New file.
27366         * modules/unictype/property-soft-dotted-tests: New file.
27367         * modules/unictype/property-space-tests: New file.
27368         * modules/unictype/property-terminal-punctuation-tests: New file.
27369         * modules/unictype/property-test-tests: New file.
27370         * modules/unictype/property-titlecase-tests: New file.
27371         * modules/unictype/property-unassigned-code-value-tests: New file.
27372         * modules/unictype/property-unified-ideograph-tests: New file.
27373         * modules/unictype/property-uppercase-tests: New file.
27374         * modules/unictype/property-variation-selector-tests: New file.
27375         * modules/unictype/property-white-space-tests: New file.
27376         * modules/unictype/property-xid-continue-tests: New file.
27377         * modules/unictype/property-xid-start-tests: New file.
27378         * modules/unictype/property-zero-width-tests: New file.
27379         * modules/unictype/scripts-tests: New file.
27380         * modules/unictype/syntax-c-ident-tests: New file.
27381         * modules/unictype/syntax-c-whitespace-tests: New file.
27382         * modules/unictype/syntax-java-ident-tests: New file.
27383         * modules/unictype/syntax-java-whitespace-tests: New file.
27384         * tests/unictype/test-bidi_byname.c: New file.
27385         * tests/unictype/test-bidi_name.c: New file.
27386         * tests/unictype/test-bidi_of.c: New file.
27387         * tests/unictype/test-bidi_test.c: New file.
27388         * tests/unictype/test-block_list.c: New file.
27389         * tests/unictype/test-block_of.c: New file.
27390         * tests/unictype/test-block_test.c: New file.
27391         * tests/unictype/test-categ_and.c: New file.
27392         * tests/unictype/test-categ_and_not.c: New file.
27393         * tests/unictype/test-categ_byname.c: New file.
27394         * tests/unictype/test-categ_name.c: New file.
27395         * tests/unictype/test-categ_none.c: New file.
27396         * tests/unictype/test-categ_of.c: New file.
27397         * tests/unictype/test-categ_or.c: New file.
27398         * tests/unictype/test-categ_test_withtable.c: New file.
27399         * tests/unictype/test-combining.c: New file.
27400         * tests/unictype/test-decdigit.c: New file.
27401         * tests/unictype/test-digit.c: New file.
27402         * tests/unictype/test-mirror.c: New file.
27403         * tests/unictype/test-numeric.c: New file.
27404         * tests/unictype/test-pr_byname.c: New file.
27405         * tests/unictype/test-pr_test.c: New file.
27406         * tests/unictype/test-predicate-part1.h: New file.
27407         * tests/unictype/test-predicate-part2.h: New file.
27408         * tests/unictype/test-scripts.c: New file.
27409         * tests/unictype/test-sy_c_ident.c: New file.
27410         * tests/unictype/test-sy_java_ident.c: New file.
27411
27412         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
27413         for Unicode 5.0.0.
27414         * tests/unictype/test-categ_Cc.c: Likewise.
27415         * tests/unictype/test-categ_Cf.c: Likewise.
27416         * tests/unictype/test-categ_Cn.c: Likewise.
27417         * tests/unictype/test-categ_Co.c: Likewise.
27418         * tests/unictype/test-categ_Cs.c: Likewise.
27419         * tests/unictype/test-categ_L.c: Likewise.
27420         * tests/unictype/test-categ_Ll.c: Likewise.
27421         * tests/unictype/test-categ_Lm.c: Likewise.
27422         * tests/unictype/test-categ_Lo.c: Likewise.
27423         * tests/unictype/test-categ_Lt.c: Likewise.
27424         * tests/unictype/test-categ_Lu.c: Likewise.
27425         * tests/unictype/test-categ_M.c: Likewise.
27426         * tests/unictype/test-categ_Mc.c: Likewise.
27427         * tests/unictype/test-categ_Me.c: Likewise.
27428         * tests/unictype/test-categ_Mn.c: Likewise.
27429         * tests/unictype/test-categ_N.c: Likewise.
27430         * tests/unictype/test-categ_Nd.c: Likewise.
27431         * tests/unictype/test-categ_Nl.c: Likewise.
27432         * tests/unictype/test-categ_No.c: Likewise.
27433         * tests/unictype/test-categ_P.c: Likewise.
27434         * tests/unictype/test-categ_Pc.c: Likewise.
27435         * tests/unictype/test-categ_Pd.c: Likewise.
27436         * tests/unictype/test-categ_Pe.c: Likewise.
27437         * tests/unictype/test-categ_Pf.c: Likewise.
27438         * tests/unictype/test-categ_Pi.c: Likewise.
27439         * tests/unictype/test-categ_Po.c: Likewise.
27440         * tests/unictype/test-categ_Ps.c: Likewise.
27441         * tests/unictype/test-categ_S.c: Likewise.
27442         * tests/unictype/test-categ_Sc.c: Likewise.
27443         * tests/unictype/test-categ_Sk.c: Likewise.
27444         * tests/unictype/test-categ_Sm.c: Likewise.
27445         * tests/unictype/test-categ_So.c: Likewise.
27446         * tests/unictype/test-categ_Z.c: Likewise.
27447         * tests/unictype/test-categ_Zl.c: Likewise.
27448         * tests/unictype/test-categ_Zp.c: Likewise.
27449         * tests/unictype/test-categ_Zs.c: Likewise.
27450         * tests/unictype/test-ctype_alnum.c: Likewise.
27451         * tests/unictype/test-ctype_alpha.c: Likewise.
27452         * tests/unictype/test-ctype_blank.c: Likewise.
27453         * tests/unictype/test-ctype_cntrl.c: Likewise.
27454         * tests/unictype/test-ctype_digit.c: Likewise.
27455         * tests/unictype/test-ctype_graph.c: Likewise.
27456         * tests/unictype/test-ctype_lower.c: Likewise.
27457         * tests/unictype/test-ctype_print.c: Likewise.
27458         * tests/unictype/test-ctype_punct.c: Likewise.
27459         * tests/unictype/test-ctype_space.c: Likewise.
27460         * tests/unictype/test-ctype_upper.c: Likewise.
27461         * tests/unictype/test-ctype_xdigit.c: Likewise.
27462         * tests/unictype/test-decdigit.h: Likewise.
27463         * tests/unictype/test-digit.h: Likewise.
27464         * tests/unictype/test-numeric.h: Likewise.
27465         * tests/unictype/test-pr_alphabetic.c: Likewise.
27466         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
27467         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
27468         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
27469         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
27470         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
27471         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
27472         * tests/unictype/test-pr_bidi_control.c: Likewise.
27473         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
27474         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
27475         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
27476         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
27477         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
27478         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
27479         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
27480         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
27481         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
27482         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
27483         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
27484         * tests/unictype/test-pr_combining.c: Likewise.
27485         * tests/unictype/test-pr_composite.c: Likewise.
27486         * tests/unictype/test-pr_currency_symbol.c: Likewise.
27487         * tests/unictype/test-pr_dash.c: Likewise.
27488         * tests/unictype/test-pr_decimal_digit.c: Likewise.
27489         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
27490         * tests/unictype/test-pr_deprecated.c: Likewise.
27491         * tests/unictype/test-pr_diacritic.c: Likewise.
27492         * tests/unictype/test-pr_extender.c: Likewise.
27493         * tests/unictype/test-pr_format_control.c: Likewise.
27494         * tests/unictype/test-pr_grapheme_base.c: Likewise.
27495         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
27496         * tests/unictype/test-pr_grapheme_link.c: Likewise.
27497         * tests/unictype/test-pr_hex_digit.c: Likewise.
27498         * tests/unictype/test-pr_hyphen.c: Likewise.
27499         * tests/unictype/test-pr_id_continue.c: Likewise.
27500         * tests/unictype/test-pr_id_start.c: Likewise.
27501         * tests/unictype/test-pr_ideographic.c: Likewise.
27502         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
27503         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
27504         * tests/unictype/test-pr_ignorable_control.c: Likewise.
27505         * tests/unictype/test-pr_iso_control.c: Likewise.
27506         * tests/unictype/test-pr_join_control.c: Likewise.
27507         * tests/unictype/test-pr_left_of_pair.c: Likewise.
27508         * tests/unictype/test-pr_line_separator.c: Likewise.
27509         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
27510         * tests/unictype/test-pr_lowercase.c: Likewise.
27511         * tests/unictype/test-pr_math.c: Likewise.
27512         * tests/unictype/test-pr_non_break.c: Likewise.
27513         * tests/unictype/test-pr_not_a_character.c: Likewise.
27514         * tests/unictype/test-pr_numeric.c: Likewise.
27515         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
27516         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
27517         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
27518         * tests/unictype/test-pr_other_id_continue.c: Likewise.
27519         * tests/unictype/test-pr_other_id_start.c: Likewise.
27520         * tests/unictype/test-pr_other_lowercase.c: Likewise.
27521         * tests/unictype/test-pr_other_math.c: Likewise.
27522         * tests/unictype/test-pr_other_uppercase.c: Likewise.
27523         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
27524         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
27525         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
27526         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
27527         * tests/unictype/test-pr_private_use.c: Likewise.
27528         * tests/unictype/test-pr_punctuation.c: Likewise.
27529         * tests/unictype/test-pr_quotation_mark.c: Likewise.
27530         * tests/unictype/test-pr_radical.c: Likewise.
27531         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
27532         * tests/unictype/test-pr_soft_dotted.c: Likewise.
27533         * tests/unictype/test-pr_space.c: Likewise.
27534         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
27535         * tests/unictype/test-pr_titlecase.c: Likewise.
27536         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
27537         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
27538         * tests/unictype/test-pr_uppercase.c: Likewise.
27539         * tests/unictype/test-pr_variation_selector.c: Likewise.
27540         * tests/unictype/test-pr_white_space.c: Likewise.
27541         * tests/unictype/test-pr_xid_continue.c: Likewise.
27542         * tests/unictype/test-pr_xid_start.c: Likewise.
27543         * tests/unictype/test-pr_zero_width.c: Likewise.
27544         * tests/unictype/test-sy_c_whitespace.c: Likewise.
27545         * tests/unictype/test-sy_java_whitespace.c: Likewise.
27546
27547 2007-11-12  Bruno Haible  <bruno@clisp.org>
27548
27549         Unicode character classification functions.
27550         * lib/unictype.h: New file.
27551         * modules/unictype/base: New file.
27552         * modules/unictype/category-L: New file.
27553         * modules/unictype/category-Lu: New file.
27554         * modules/unictype/category-Ll: New file.
27555         * modules/unictype/category-Lt: New file.
27556         * modules/unictype/category-Lm: New file.
27557         * modules/unictype/category-Lo: New file.
27558         * modules/unictype/category-M: New file.
27559         * modules/unictype/category-Mn: New file.
27560         * modules/unictype/category-Mc: New file.
27561         * modules/unictype/category-Me: New file.
27562         * modules/unictype/category-N: New file.
27563         * modules/unictype/category-Nd: New file.
27564         * modules/unictype/category-Nl: New file.
27565         * modules/unictype/category-No: New file.
27566         * modules/unictype/category-P: New file.
27567         * modules/unictype/category-Pc: New file.
27568         * modules/unictype/category-Pd: New file.
27569         * modules/unictype/category-Ps: New file.
27570         * modules/unictype/category-Pe: New file.
27571         * modules/unictype/category-Pi: New file.
27572         * modules/unictype/category-Pf: New file.
27573         * modules/unictype/category-Po: New file.
27574         * modules/unictype/category-S: New file.
27575         * modules/unictype/category-Sm: New file.
27576         * modules/unictype/category-Sc: New file.
27577         * modules/unictype/category-Sk: New file.
27578         * modules/unictype/category-So: New file.
27579         * modules/unictype/category-Z: New file.
27580         * modules/unictype/category-Zs: New file.
27581         * modules/unictype/category-Zl: New file.
27582         * modules/unictype/category-Zp: New file.
27583         * modules/unictype/category-C: New file.
27584         * modules/unictype/category-Cc: New file.
27585         * modules/unictype/category-Cf: New file.
27586         * modules/unictype/category-Cs: New file.
27587         * modules/unictype/category-Co: New file.
27588         * modules/unictype/category-Cn: New file.
27589         * modules/unictype/category-or: New file.
27590         * modules/unictype/category-of: New file.
27591         * modules/unictype/category-test: New file.
27592         * modules/unictype/category-test-withtable: New file.
27593         * modules/unictype/category-byname: New file.
27594         * modules/unictype/category-none: New file.
27595         * modules/unictype/category-and: New file.
27596         * modules/unictype/category-and-not: New file.
27597         * modules/unictype/category-name: New file.
27598         * modules/unictype/combining-class: New file.
27599         * modules/unictype/category-all: New file.
27600         * modules/unictype/bidicategory-all: New file.
27601         * modules/unictype/bidicategory-byname: New file.
27602         * modules/unictype/bidicategory-name: New file.
27603         * modules/unictype/bidicategory-of: New file.
27604         * modules/unictype/bidicategory-test: New file.
27605         * modules/unictype/decimal-digit: New file.
27606         * modules/unictype/digit: New file.
27607         * modules/unictype/numeric: New file.
27608         * modules/unictype/mirror: New file.
27609         * modules/unictype/property-white-space: New file.
27610         * modules/unictype/property-alphabetic: New file.
27611         * modules/unictype/property-other-alphabetic: New file.
27612         * modules/unictype/property-not-a-character: New file.
27613         * modules/unictype/property-default-ignorable-code-point: New file.
27614         * modules/unictype/property-other-default-ignorable-code-point: New
27615         file.
27616         * modules/unictype/property-deprecated: New file.
27617         * modules/unictype/property-logical-order-exception: New file.
27618         * modules/unictype/property-variation-selector: New file.
27619         * modules/unictype/property-private-use: New file.
27620         * modules/unictype/property-unassigned-code-value: New file.
27621         * modules/unictype/property-uppercase: New file.
27622         * modules/unictype/property-other-uppercase: New file.
27623         * modules/unictype/property-lowercase: New file.
27624         * modules/unictype/property-other-lowercase: New file.
27625         * modules/unictype/property-titlecase: New file.
27626         * modules/unictype/property-soft-dotted: New file.
27627         * modules/unictype/property-id-start: New file.
27628         * modules/unictype/property-other-id-start: New file.
27629         * modules/unictype/property-id-continue: New file.
27630         * modules/unictype/property-other-id-continue: New file.
27631         * modules/unictype/property-xid-start: New file.
27632         * modules/unictype/property-xid-continue: New file.
27633         * modules/unictype/property-pattern-white-space: New file.
27634         * modules/unictype/property-pattern-syntax: New file.
27635         * modules/unictype/property-join-control: New file.
27636         * modules/unictype/property-grapheme-base: New file.
27637         * modules/unictype/property-grapheme-extend: New file.
27638         * modules/unictype/property-other-grapheme-extend: New file.
27639         * modules/unictype/property-grapheme-link: New file.
27640         * modules/unictype/property-bidi-control: New file.
27641         * modules/unictype/property-bidi-left-to-right: New file.
27642         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
27643         * modules/unictype/property-bidi-arabic-right-to-left: New file.
27644         * modules/unictype/property-bidi-european-digit: New file.
27645         * modules/unictype/property-bidi-eur-num-separator: New file.
27646         * modules/unictype/property-bidi-eur-num-terminator: New file.
27647         * modules/unictype/property-bidi-arabic-digit: New file.
27648         * modules/unictype/property-bidi-common-separator: New file.
27649         * modules/unictype/property-bidi-block-separator: New file.
27650         * modules/unictype/property-bidi-segment-separator: New file.
27651         * modules/unictype/property-bidi-whitespace: New file.
27652         * modules/unictype/property-bidi-non-spacing-mark: New file.
27653         * modules/unictype/property-bidi-boundary-neutral: New file.
27654         * modules/unictype/property-bidi-pdf: New file.
27655         * modules/unictype/property-bidi-embedding-or-override: New file.
27656         * modules/unictype/property-bidi-other-neutral: New file.
27657         * modules/unictype/property-hex-digit: New file.
27658         * modules/unictype/property-ascii-hex-digit: New file.
27659         * modules/unictype/property-ideographic: New file.
27660         * modules/unictype/property-unified-ideograph: New file.
27661         * modules/unictype/property-radical: New file.
27662         * modules/unictype/property-ids-binary-operator: New file.
27663         * modules/unictype/property-ids-trinary-operator: New file.
27664         * modules/unictype/property-zero-width: New file.
27665         * modules/unictype/property-space: New file.
27666         * modules/unictype/property-non-break: New file.
27667         * modules/unictype/property-iso-control: New file.
27668         * modules/unictype/property-format-control: New file.
27669         * modules/unictype/property-dash: New file.
27670         * modules/unictype/property-hyphen: New file.
27671         * modules/unictype/property-punctuation: New file.
27672         * modules/unictype/property-line-separator: New file.
27673         * modules/unictype/property-paragraph-separator: New file.
27674         * modules/unictype/property-quotation-mark: New file.
27675         * modules/unictype/property-sentence-terminal: New file.
27676         * modules/unictype/property-terminal-punctuation: New file.
27677         * modules/unictype/property-currency-symbol: New file.
27678         * modules/unictype/property-math: New file.
27679         * modules/unictype/property-other-math: New file.
27680         * modules/unictype/property-paired-punctuation: New file.
27681         * modules/unictype/property-left-of-pair: New file.
27682         * modules/unictype/property-combining: New file.
27683         * modules/unictype/property-composite: New file.
27684         * modules/unictype/property-decimal-digit: New file.
27685         * modules/unictype/property-numeric: New file.
27686         * modules/unictype/property-diacritic: New file.
27687         * modules/unictype/property-extender: New file.
27688         * modules/unictype/property-ignorable-control: New file.
27689         * modules/unictype/property-test: New file.
27690         * modules/unictype/property-byname: New file.
27691         * modules/unictype/property-all: New file.
27692         * modules/unictype/scripts: New file.
27693         * modules/unictype/scripts-all: New file.
27694         * modules/unictype/block-of: New file.
27695         * modules/unictype/block-test: New file.
27696         * modules/unictype/block-list: New file.
27697         * modules/unictype/block-all: New file.
27698         * modules/unictype/syntax-c-whitespace: New file.
27699         * modules/unictype/syntax-java-whitespace: New file.
27700         * modules/unictype/syntax-c-ident: New file.
27701         * modules/unictype/syntax-java-ident: New file.
27702         * modules/unictype/ctype-alnum: New file.
27703         * modules/unictype/ctype-alpha: New file.
27704         * modules/unictype/ctype-cntrl: New file.
27705         * modules/unictype/ctype-digit: New file.
27706         * modules/unictype/ctype-graph: New file.
27707         * modules/unictype/ctype-lower: New file.
27708         * modules/unictype/ctype-print: New file.
27709         * modules/unictype/ctype-punct: New file.
27710         * modules/unictype/ctype-space: New file.
27711         * modules/unictype/ctype-upper: New file.
27712         * modules/unictype/ctype-xdigit: New file.
27713         * modules/unictype/ctype-blank: New file.
27714         * lib/unictype/bidi_byname.c: New file.
27715         * lib/unictype/bidi_name.c: New file.
27716         * lib/unictype/bidi_of.c: New file.
27717         * lib/unictype/bidi_test.c: New file.
27718         * lib/unictype/bitmap.h: New file.
27719         * lib/unictype/block_test.c: New file.
27720         * lib/unictype/blocks.c: New file.
27721         * lib/unictype/categ_C.c: New file.
27722         * lib/unictype/categ_Cc.c: New file.
27723         * lib/unictype/categ_Cf.c: New file.
27724         * lib/unictype/categ_Cn.c: New file.
27725         * lib/unictype/categ_Co.c: New file.
27726         * lib/unictype/categ_Cs.c: New file.
27727         * lib/unictype/categ_L.c: New file.
27728         * lib/unictype/categ_Ll.c: New file.
27729         * lib/unictype/categ_Lm.c: New file.
27730         * lib/unictype/categ_Lo.c: New file.
27731         * lib/unictype/categ_Lt.c: New file.
27732         * lib/unictype/categ_Lu.c: New file.
27733         * lib/unictype/categ_M.c: New file.
27734         * lib/unictype/categ_Mc.c: New file.
27735         * lib/unictype/categ_Me.c: New file.
27736         * lib/unictype/categ_Mn.c: New file.
27737         * lib/unictype/categ_N.c: New file.
27738         * lib/unictype/categ_Nd.c: New file.
27739         * lib/unictype/categ_Nl.c: New file.
27740         * lib/unictype/categ_No.c: New file.
27741         * lib/unictype/categ_P.c: New file.
27742         * lib/unictype/categ_Pc.c: New file.
27743         * lib/unictype/categ_Pd.c: New file.
27744         * lib/unictype/categ_Pe.c: New file.
27745         * lib/unictype/categ_Pf.c: New file.
27746         * lib/unictype/categ_Pi.c: New file.
27747         * lib/unictype/categ_Po.c: New file.
27748         * lib/unictype/categ_Ps.c: New file.
27749         * lib/unictype/categ_S.c: New file.
27750         * lib/unictype/categ_Sc.c: New file.
27751         * lib/unictype/categ_Sk.c: New file.
27752         * lib/unictype/categ_Sm.c: New file.
27753         * lib/unictype/categ_So.c: New file.
27754         * lib/unictype/categ_Z.c: New file.
27755         * lib/unictype/categ_Zl.c: New file.
27756         * lib/unictype/categ_Zp.c: New file.
27757         * lib/unictype/categ_Zs.c: New file.
27758         * lib/unictype/categ_and.c: New file.
27759         * lib/unictype/categ_and_not.c: New file.
27760         * lib/unictype/categ_byname.c: New file.
27761         * lib/unictype/categ_name.c: New file.
27762         * lib/unictype/categ_none.c: New file.
27763         * lib/unictype/categ_of.c: New file.
27764         * lib/unictype/categ_or.c: New file.
27765         * lib/unictype/categ_test.c: New file.
27766         * lib/unictype/combining.c: New file.
27767         * lib/unictype/ctype_alnum.c: New file.
27768         * lib/unictype/ctype_alpha.c: New file.
27769         * lib/unictype/ctype_blank.c: New file.
27770         * lib/unictype/ctype_cntrl.c: New file.
27771         * lib/unictype/ctype_digit.c: New file.
27772         * lib/unictype/ctype_graph.c: New file.
27773         * lib/unictype/ctype_lower.c: New file.
27774         * lib/unictype/ctype_print.c: New file.
27775         * lib/unictype/ctype_punct.c: New file.
27776         * lib/unictype/ctype_space.c: New file.
27777         * lib/unictype/ctype_upper.c: New file.
27778         * lib/unictype/ctype_xdigit.c: New file.
27779         * lib/unictype/decdigit.c: New file.
27780         * lib/unictype/digit.c: New file.
27781         * lib/unictype/identsyntaxmap.h: New file.
27782         * lib/unictype/mirror.c: New file.
27783         * lib/unictype/numeric.c: New file.
27784         * lib/unictype/pr_alphabetic.c: New file.
27785         * lib/unictype/pr_ascii_hex_digit.c: New file.
27786         * lib/unictype/pr_bidi_arabic_digit.c: New file.
27787         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
27788         * lib/unictype/pr_bidi_block_separator.c: New file.
27789         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
27790         * lib/unictype/pr_bidi_common_separator.c: New file.
27791         * lib/unictype/pr_bidi_control.c: New file.
27792         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
27793         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
27794         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
27795         * lib/unictype/pr_bidi_european_digit.c: New file.
27796         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
27797         * lib/unictype/pr_bidi_left_to_right.c: New file.
27798         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
27799         * lib/unictype/pr_bidi_other_neutral.c: New file.
27800         * lib/unictype/pr_bidi_pdf.c: New file.
27801         * lib/unictype/pr_bidi_segment_separator.c: New file.
27802         * lib/unictype/pr_bidi_whitespace.c: New file.
27803         * lib/unictype/pr_byname.c: New file.
27804         * lib/unictype/pr_byname.gperf: New file.
27805         * lib/unictype/pr_combining.c: New file.
27806         * lib/unictype/pr_composite.c: New file.
27807         * lib/unictype/pr_currency_symbol.c: New file.
27808         * lib/unictype/pr_dash.c: New file.
27809         * lib/unictype/pr_decimal_digit.c: New file.
27810         * lib/unictype/pr_default_ignorable_code_point.c: New file.
27811         * lib/unictype/pr_deprecated.c: New file.
27812         * lib/unictype/pr_diacritic.c: New file.
27813         * lib/unictype/pr_extender.c: New file.
27814         * lib/unictype/pr_format_control.c: New file.
27815         * lib/unictype/pr_grapheme_base.c: New file.
27816         * lib/unictype/pr_grapheme_extend.c: New file.
27817         * lib/unictype/pr_grapheme_link.c: New file.
27818         * lib/unictype/pr_hex_digit.c: New file.
27819         * lib/unictype/pr_hyphen.c: New file.
27820         * lib/unictype/pr_id_continue.c: New file.
27821         * lib/unictype/pr_id_start.c: New file.
27822         * lib/unictype/pr_ideographic.c: New file.
27823         * lib/unictype/pr_ids_binary_operator.c: New file.
27824         * lib/unictype/pr_ids_trinary_operator.c: New file.
27825         * lib/unictype/pr_ignorable_control.c: New file.
27826         * lib/unictype/pr_iso_control.c: New file.
27827         * lib/unictype/pr_join_control.c: New file.
27828         * lib/unictype/pr_left_of_pair.c: New file.
27829         * lib/unictype/pr_line_separator.c: New file.
27830         * lib/unictype/pr_logical_order_exception.c: New file.
27831         * lib/unictype/pr_lowercase.c: New file.
27832         * lib/unictype/pr_math.c: New file.
27833         * lib/unictype/pr_non_break.c: New file.
27834         * lib/unictype/pr_not_a_character.c: New file.
27835         * lib/unictype/pr_numeric.c: New file.
27836         * lib/unictype/pr_other_alphabetic.c: New file.
27837         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
27838         * lib/unictype/pr_other_grapheme_extend.c: New file.
27839         * lib/unictype/pr_other_id_continue.c: New file.
27840         * lib/unictype/pr_other_id_start.c: New file.
27841         * lib/unictype/pr_other_lowercase.c: New file.
27842         * lib/unictype/pr_other_math.c: New file.
27843         * lib/unictype/pr_other_uppercase.c: New file.
27844         * lib/unictype/pr_paired_punctuation.c: New file.
27845         * lib/unictype/pr_paragraph_separator.c: New file.
27846         * lib/unictype/pr_pattern_syntax.c: New file.
27847         * lib/unictype/pr_pattern_white_space.c: New file.
27848         * lib/unictype/pr_private_use.c: New file.
27849         * lib/unictype/pr_punctuation.c: New file.
27850         * lib/unictype/pr_quotation_mark.c: New file.
27851         * lib/unictype/pr_radical.c: New file.
27852         * lib/unictype/pr_sentence_terminal.c: New file.
27853         * lib/unictype/pr_soft_dotted.c: New file.
27854         * lib/unictype/pr_space.c: New file.
27855         * lib/unictype/pr_terminal_punctuation.c: New file.
27856         * lib/unictype/pr_test.c: New file.
27857         * lib/unictype/pr_titlecase.c: New file.
27858         * lib/unictype/pr_unassigned_code_value.c: New file.
27859         * lib/unictype/pr_unified_ideograph.c: New file.
27860         * lib/unictype/pr_uppercase.c: New file.
27861         * lib/unictype/pr_variation_selector.c: New file.
27862         * lib/unictype/pr_white_space.c: New file.
27863         * lib/unictype/pr_xid_continue.c: New file.
27864         * lib/unictype/pr_xid_start.c: New file.
27865         * lib/unictype/pr_zero_width.c: New file.
27866         * lib/unictype/scripts.c: New file.
27867         * lib/unictype/sy_c_ident.c: New file.
27868         * lib/unictype/sy_c_whitespace.c: New file.
27869         * lib/unictype/sy_java_ident.c: New file.
27870         * lib/unictype/sy_java_whitespace.c: New file.
27871
27872         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
27873         Unicode 5.0.0.
27874         * lib/unictype/blocks.h: Likewise.
27875         * lib/unictype/categ_C.h: Likewise.
27876         * lib/unictype/categ_Cc.h: Likewise.
27877         * lib/unictype/categ_Cf.h: Likewise.
27878         * lib/unictype/categ_Cn.h: Likewise.
27879         * lib/unictype/categ_Co.h: Likewise.
27880         * lib/unictype/categ_Cs.h: Likewise.
27881         * lib/unictype/categ_L.h: Likewise.
27882         * lib/unictype/categ_Ll.h: Likewise.
27883         * lib/unictype/categ_Lm.h: Likewise.
27884         * lib/unictype/categ_Lo.h: Likewise.
27885         * lib/unictype/categ_Lt.h: Likewise.
27886         * lib/unictype/categ_Lu.h: Likewise.
27887         * lib/unictype/categ_M.h: Likewise.
27888         * lib/unictype/categ_Mc.h: Likewise.
27889         * lib/unictype/categ_Me.h: Likewise.
27890         * lib/unictype/categ_Mn.h: Likewise.
27891         * lib/unictype/categ_N.h: Likewise.
27892         * lib/unictype/categ_Nd.h: Likewise.
27893         * lib/unictype/categ_Nl.h: Likewise.
27894         * lib/unictype/categ_No.h: Likewise.
27895         * lib/unictype/categ_P.h: Likewise.
27896         * lib/unictype/categ_Pc.h: Likewise.
27897         * lib/unictype/categ_Pd.h: Likewise.
27898         * lib/unictype/categ_Pe.h: Likewise.
27899         * lib/unictype/categ_Pf.h: Likewise.
27900         * lib/unictype/categ_Pi.h: Likewise.
27901         * lib/unictype/categ_Po.h: Likewise.
27902         * lib/unictype/categ_Ps.h: Likewise.
27903         * lib/unictype/categ_S.h: Likewise.
27904         * lib/unictype/categ_Sc.h: Likewise.
27905         * lib/unictype/categ_Sk.h: Likewise.
27906         * lib/unictype/categ_Sm.h: Likewise.
27907         * lib/unictype/categ_So.h: Likewise.
27908         * lib/unictype/categ_Z.h: Likewise.
27909         * lib/unictype/categ_Zl.h: Likewise.
27910         * lib/unictype/categ_Zp.h: Likewise.
27911         * lib/unictype/categ_Zs.h: Likewise.
27912         * lib/unictype/categ_of.h: Likewise.
27913         * lib/unictype/combining.h: Likewise.
27914         * lib/unictype/ctype_alnum.h: Likewise.
27915         * lib/unictype/ctype_alpha.h: Likewise.
27916         * lib/unictype/ctype_blank.h: Likewise.
27917         * lib/unictype/ctype_cntrl.h: Likewise.
27918         * lib/unictype/ctype_digit.h: Likewise.
27919         * lib/unictype/ctype_graph.h: Likewise.
27920         * lib/unictype/ctype_lower.h: Likewise.
27921         * lib/unictype/ctype_print.h: Likewise.
27922         * lib/unictype/ctype_punct.h: Likewise.
27923         * lib/unictype/ctype_space.h: Likewise.
27924         * lib/unictype/ctype_upper.h: Likewise.
27925         * lib/unictype/ctype_xdigit.h: Likewise.
27926         * lib/unictype/decdigit.h: Likewise.
27927         * lib/unictype/digit.h: Likewise.
27928         * lib/unictype/mirror.h: Likewise.
27929         * lib/unictype/numeric.h: Likewise.
27930         * lib/unictype/pr_alphabetic.h: Likewise.
27931         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
27932         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
27933         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
27934         * lib/unictype/pr_bidi_block_separator.h: Likewise.
27935         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
27936         * lib/unictype/pr_bidi_common_separator.h: Likewise.
27937         * lib/unictype/pr_bidi_control.h: Likewise.
27938         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
27939         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
27940         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
27941         * lib/unictype/pr_bidi_european_digit.h: Likewise.
27942         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
27943         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
27944         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
27945         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
27946         * lib/unictype/pr_bidi_pdf.h: Likewise.
27947         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
27948         * lib/unictype/pr_bidi_whitespace.h: Likewise.
27949         * lib/unictype/pr_combining.h: Likewise.
27950         * lib/unictype/pr_composite.h: Likewise.
27951         * lib/unictype/pr_currency_symbol.h: Likewise.
27952         * lib/unictype/pr_dash.h: Likewise.
27953         * lib/unictype/pr_decimal_digit.h: Likewise.
27954         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
27955         * lib/unictype/pr_deprecated.h: Likewise.
27956         * lib/unictype/pr_diacritic.h: Likewise.
27957         * lib/unictype/pr_extender.h: Likewise.
27958         * lib/unictype/pr_format_control.h: Likewise.
27959         * lib/unictype/pr_grapheme_base.h: Likewise.
27960         * lib/unictype/pr_grapheme_extend.h: Likewise.
27961         * lib/unictype/pr_grapheme_link.h: Likewise.
27962         * lib/unictype/pr_hex_digit.h: Likewise.
27963         * lib/unictype/pr_hyphen.h: Likewise.
27964         * lib/unictype/pr_id_continue.h: Likewise.
27965         * lib/unictype/pr_id_start.h: Likewise.
27966         * lib/unictype/pr_ideographic.h: Likewise.
27967         * lib/unictype/pr_ids_binary_operator.h: Likewise.
27968         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
27969         * lib/unictype/pr_ignorable_control.h: Likewise.
27970         * lib/unictype/pr_iso_control.h: Likewise.
27971         * lib/unictype/pr_join_control.h: Likewise.
27972         * lib/unictype/pr_left_of_pair.h: Likewise.
27973         * lib/unictype/pr_line_separator.h: Likewise.
27974         * lib/unictype/pr_logical_order_exception.h: Likewise.
27975         * lib/unictype/pr_lowercase.h: Likewise.
27976         * lib/unictype/pr_math.h: Likewise.
27977         * lib/unictype/pr_non_break.h: Likewise.
27978         * lib/unictype/pr_not_a_character.h: Likewise.
27979         * lib/unictype/pr_numeric.h: Likewise.
27980         * lib/unictype/pr_other_alphabetic.h: Likewise.
27981         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
27982         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
27983         * lib/unictype/pr_other_id_continue.h: Likewise.
27984         * lib/unictype/pr_other_id_start.h: Likewise.
27985         * lib/unictype/pr_other_lowercase.h: Likewise.
27986         * lib/unictype/pr_other_math.h: Likewise.
27987         * lib/unictype/pr_other_uppercase.h: Likewise.
27988         * lib/unictype/pr_paired_punctuation.h: Likewise.
27989         * lib/unictype/pr_paragraph_separator.h: Likewise.
27990         * lib/unictype/pr_pattern_syntax.h: Likewise.
27991         * lib/unictype/pr_pattern_white_space.h: Likewise.
27992         * lib/unictype/pr_private_use.h: Likewise.
27993         * lib/unictype/pr_punctuation.h: Likewise.
27994         * lib/unictype/pr_quotation_mark.h: Likewise.
27995         * lib/unictype/pr_radical.h: Likewise.
27996         * lib/unictype/pr_sentence_terminal.h: Likewise.
27997         * lib/unictype/pr_soft_dotted.h: Likewise.
27998         * lib/unictype/pr_space.h: Likewise.
27999         * lib/unictype/pr_terminal_punctuation.h: Likewise.
28000         * lib/unictype/pr_titlecase.h: Likewise.
28001         * lib/unictype/pr_unassigned_code_value.h: Likewise.
28002         * lib/unictype/pr_unified_ideograph.h: Likewise.
28003         * lib/unictype/pr_uppercase.h: Likewise.
28004         * lib/unictype/pr_variation_selector.h: Likewise.
28005         * lib/unictype/pr_white_space.h: Likewise.
28006         * lib/unictype/pr_xid_continue.h: Likewise.
28007         * lib/unictype/pr_xid_start.h: Likewise.
28008         * lib/unictype/pr_zero_width.h: Likewise.
28009         * lib/unictype/scripts.h: Likewise.
28010         * lib/unictype/scripts_byname.gperf: Likewise.
28011         * lib/unictype/sy_c_ident.h: Likewise.
28012         * lib/unictype/sy_c_whitespace.h: Likewise.
28013         * lib/unictype/sy_java_ident.h: Likewise.
28014         * lib/unictype/sy_java_whitespace.h: Likewise.
28015
28016         * lib/unictype/Makefile: New file.
28017         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
28018         glibc.
28019         * lib/unictype/3level.h: New file, copied from glibc.
28020         * lib/unictype/3levelbit.h: New file.
28021
28022 2007-11-11  Bruno Haible  <bruno@clisp.org>
28023
28024         * modules/gperf: New file.
28025         * modules/iconv_open (Depends-on): Add it.
28026         (Makefile.am): Remove the GPERF definition.
28027
28028 2007-11-11  Bruno Haible  <bruno@clisp.org>
28029
28030         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
28031         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
28032
28033 2007-11-11  Bruno Haible  <bruno@clisp.org>
28034
28035         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
28036         (usage): Remove function.
28037
28038 2007-11-11  Bruno Haible  <bruno@clisp.org>
28039
28040         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
28041         gl_FUNC_CEILF_LIBS.
28042         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
28043         gl_FUNC_CEIL_LIBS.
28044         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
28045         gl_FUNC_CEILL_LIBS.
28046         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
28047         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
28048         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
28049
28050 2007-11-11  Bruno Haible  <bruno@clisp.org>
28051
28052         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
28053         roundf were declared but do not exist on functions.
28054         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
28055         roundl were declared but do not exist on functions.
28056         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
28057         HAVE_FLOORL_AND_CEILL, respectively.
28058         Needed for Sun C on Solaris 10.
28059
28060 2007-11-11  Bruno Haible  <bruno@clisp.org>
28061
28062         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
28063         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
28064         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
28065         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
28066         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
28067         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
28068         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
28069         HAVE_DECL_ROUNDF.
28070         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
28071         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
28072         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
28073         of HAVE_DECL_ROUND*.
28074         * modules/math (Makefile.am): Update.
28075
28076 2007-11-10  Bruno Haible  <bruno@clisp.org>
28077
28078         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
28079         ptrdiff_t as m4/intl.m4.
28080
28081 2007-11-10  Jim Meyering  <meyering@redhat.com>
28082
28083         Avoid link failure for the argmatch test.
28084         * tests/test-argmatch.c (usage): Define function to avoid a link
28085         failure: argmatch_die requires a usage function.
28086
28087 2007-11-09  Bruno Haible  <bruno@clisp.org>
28088
28089         * doc/functions/snprintf.texi: Mention BeOS deficiency.
28090         * doc/functions/vsnprintf.texi: Likewise.
28091         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
28092         with a size argument < 2.
28093
28094 2007-11-09  Bruno Haible  <bruno@clisp.org>
28095
28096         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
28097         buffer. Fixes an inefficiency introduced on 2007-11-03.
28098
28099 2007-11-09  Bruno Haible  <bruno@clisp.org>
28100
28101         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
28102         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
28103
28104 2007-11-08  Jim Meyering  <meyering@redhat.com>
28105
28106         Change cache variable name prefix "jm_" to "gl_" everywhere.
28107         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
28108         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
28109         * m4/uptime.m4: s/gl_/jm_/
28110
28111 2007-11-07  Bruno Haible  <bruno@clisp.org>
28112
28113         Update to GNU gettext 0.17.
28114         * m4/intl.m4: Update to GNU gettext 0.17.
28115         * m4/po.m4: Likewise.
28116         * modules/gettext (Files): Remove m4/ulonglong.m4.
28117         (configure.ac): Require gettext infrastructure from version 0.17.
28118
28119 2007-11-06  Bruno Haible  <bruno@clisp.org>
28120
28121         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
28122         symbolic values are not defined in a public header.
28123         * lib/freadable.c (freadable) [QNX]: Likewise.
28124         * lib/freadahead.c (freadahead) [QNX]: Likewise.
28125         * lib/freading.c (freading) [QNX]: Likewise.
28126         * lib/fseterr.c (fseterr) [QNX]: Likewise.
28127         * lib/fwritable.c (fwritable) [QNX]: Likewise.
28128         * lib/fwriting.c (fwriting) [QNX]: Likewise.
28129         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
28130         Reported by Alain Magloire.
28131
28132         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
28133
28134 2007-11-05  Bruno Haible  <bruno@clisp.org>
28135
28136         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
28137         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
28138         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
28139         Reported by Eric Blake.
28140
28141 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28142             Bruno Haible  <bruno@clisp.org>
28143
28144         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
28145         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
28146         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
28147         (malloc): Undefine also before including <stdlib.h>.
28148         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
28149         Needed on OSF/1 4.0.
28150
28151 2007-11-05  Jim Meyering  <meyering@redhat.com>
28152
28153         git-version-gen: sync from coreutils.
28154         * build-aux/git-version-gen: Add comments.
28155         Change the first '-' to '.' in the snapshot version string,
28156         e.g., 6.9-377-08144 -> 6.9.377-08144
28157         Remove first parameter.
28158         Don't declare a version "-dirty" merely because a time
28159         stamp has changed.
28160
28161 2007-11-04  Bruno Haible  <bruno@clisp.org>
28162
28163         * lib/lock.h: Protect all macro definitions containing an 'if'
28164         statement through a "do { ... } while (0)".
28165         * lib/tls.h: Likewise.
28166
28167 2007-11-04  Bruno Haible  <bruno@clisp.org>
28168
28169         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
28170
28171 2007-11-04  Bruno Haible  <bruno@clisp.org>
28172
28173         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
28174         * modules/fprintf-posix (Depends-on): Add nocrash.
28175         * modules/snprintf-posix (Depends-on): Likewise.
28176         * modules/sprintf-posix (Depends-on): Likewise.
28177         * modules/vasnprintf-posix (Depends-on): Likewise.
28178         * modules/vasprintf-posix (Depends-on): Likewise.
28179         * modules/vfprintf-posix (Depends-on): Likewise.
28180         * modules/vsnprintf-posix (Depends-on): Likewise.
28181         * modules/vsprintf-posix (Depends-on): Likewise.
28182         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
28183         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
28184         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
28185         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
28186         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
28187         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
28188         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
28189
28190 2007-11-04  Bruno Haible  <bruno@clisp.org>
28191
28192         * modules/nocrash: New file.
28193         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
28194         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
28195
28196 2007-11-04  Bruno Haible  <bruno@clisp.org>
28197
28198         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
28199         precision handling.
28200         * tests/test-vasprintf-posix.c (test_function): Likewise.
28201         * tests/test-snprintf-posix.h (test_function): Likewise.
28202         * tests/test-sprintf-posix.h (test_function): Likewise.
28203
28204         Fix *printf behaviour for large precisions on mingw and BeOS.
28205         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
28206         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
28207         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
28208         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
28209         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
28210         gl_PRINTF_PRECISION and test its result. Invoke
28211         gl_PREREQ_VASNPRINTF_PRECISION.
28212         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
28213         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
28214         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
28215         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
28216         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
28217         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
28218         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
28219         * doc/functions/fprintf.texi: Update.
28220         * doc/functions/printf.texi: Update.
28221         * doc/functions/snprintf.texi: Update.
28222         * doc/functions/sprintf.texi: Update.
28223         * doc/functions/vfprintf.texi: Update.
28224         * doc/functions/vprintf.texi: Update.
28225         * doc/functions/vsnprintf.texi: Update.
28226         * doc/functions/vsprintf.texi: Update.
28227
28228 2007-11-04  Bruno Haible  <bruno@clisp.org>
28229
28230         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
28231
28232 2007-11-04  Bruno Haible  <bruno@clisp.org>
28233
28234         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
28235         Reported by Sylvain Beucler <beuc@gnu.org>.
28236
28237 2007-11-03  Bruno Haible  <bruno@clisp.org>
28238
28239         * tests/test-fprintf-posix2.sh: New file.
28240         * tests/test-fprintf-posix2.c: New file.
28241         * modules/fprintf-posix-tests (Files): Add them.
28242         (TESTS): Add test-fprintf-posix2.sh.
28243         (configure.ac): Check for getrlimit and setrlimit.
28244         (check_PROGRAMS): Add test-fprintf-posix2.
28245
28246         * tests/test-printf-posix2.sh: New file.
28247         * tests/test-printf-posix2.c: New file.
28248         * modules/printf-posix-tests (Files): Add them.
28249         (TESTS): Add test-printf-posix2.sh.
28250         (configure.ac): Check for getrlimit and setrlimit.
28251         (check_PROGRAMS): Add test-printf-posix2.
28252
28253         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
28254         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
28255         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
28256         (decode_double): New function, copied from decode_long_double.
28257         (scale10_round_decimal_decoded): New function, extracted from
28258         scale10_round_decimal_long_double.
28259         (scale10_round_decimal_long_double): Use it.
28260         (scale10_round_decimal_double): New function.
28261         (floorlog10): New function.
28262         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
28263         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
28264         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
28265         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
28266         gl_PRINTF_ENOMEM and test its result. Invoke
28267         gl_PREREQ_VASNPRINTF_ENOMEM.
28268         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
28269         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
28270         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
28271         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
28272         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
28273         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
28274         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
28275         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
28276         * modules/snprintf-posix (Depends-on): Likewise.
28277         * modules/sprintf-posix (Depends-on): Likewise.
28278         * modules/vasnprintf-posix (Depends-on): Likewise.
28279         * modules/vasprintf-posix (Depends-on): Likewise.
28280         * modules/vfprintf-posix (Depends-on): Likewise.
28281         * modules/vsnprintf-posix (Depends-on): Likewise.
28282         * modules/vsprintf-posix (Depends-on): Likewise.
28283         * doc/functions/fprintf.texi: Update.
28284         * doc/functions/printf.texi: Update.
28285         * doc/functions/snprintf.texi: Update.
28286         * doc/functions/sprintf.texi: Update.
28287         * doc/functions/vfprintf.texi: Update.
28288         * doc/functions/vprintf.texi: Update.
28289         * doc/functions/vsnprintf.texi: Update.
28290         * doc/functions/vsprintf.texi: Update.
28291
28292 2007-11-03  Bruno Haible  <bruno@clisp.org>
28293
28294         * modules/frexp-nolibm-tests: New file.
28295
28296         * modules/frexp-nolibm: New file.
28297         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
28298
28299 2007-11-03  Bruno Haible  <bruno@clisp.org>
28300
28301         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
28302         value is C99 compliant.
28303         Needed for OSF/1 5.1.
28304
28305 2007-11-03  Bruno Haible  <bruno@clisp.org>
28306
28307         Fix out-of-memory handling of vasnprintf.
28308         * lib/printf-parse.c: Include <errno.h>.
28309         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
28310         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
28311         is already set.
28312
28313 2007-11-02  Eric Blake  <ebb9@byu.net>
28314
28315         Fix tests on cygwin.
28316         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
28317
28318 2007-11-01  Bruno Haible  <bruno@clisp.org>
28319
28320         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
28321         warning.
28322         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
28323         needed for POSIX compatibility.
28324
28325 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
28326
28327         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
28328         for compatibility with GNU.
28329
28330 2007-11-01  Bruno Haible  <bruno@clisp.org>
28331
28332         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
28333         (putenv): Renamed from rpl_putenv. Change argument type from
28334         'const char *' to 'char *'.
28335         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
28336         of defining putenv in config.h, just set REPLACE_PUTENV.
28337         * modules/putenv (Depends-on): Add stdlib.
28338         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
28339         (Include): Use <stdlib.h>.
28340         * lib/stdlib.in.h (putenv): New declaration.
28341         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
28342         REPLACE_PUTENV.
28343         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
28344         REPLACE_PUTENV.
28345         Needed for MacOS X 10.5.0.
28346         Reported by Peter O'Gorman <peter@pogma.com>.
28347
28348 2007-11-01  Jim Meyering  <meyering@redhat.com>
28349
28350         Treat an empty date string exactly like "0".
28351         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
28352         if the remaining date string (to be parsed) is empty, use "0".
28353         Reported by Mischa Molhoek and discussed in this thread:
28354         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
28355
28356 2007-10-31  Bruno Haible  <bruno@clisp.org>
28357
28358         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
28359         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
28360         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
28361         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
28362         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
28363         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
28364
28365 2007-10-31  Bruno Haible  <bruno@clisp.org>
28366
28367         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
28368         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
28369         (AC_TYPE_LONG_LONG_INT): Use it.
28370         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
28371         it as well.
28372         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
28373         to m4/longlong.m4.
28374         * modules/stdint (Files): Remove m4/ulonglong.m4.
28375         * modules/strtoull (Files): Use m4/longlong.m4 instead of
28376         m4/ulonglong.m4.
28377         * modules/strtoumax (Files): Likewise.
28378
28379 2007-10-30  Bruno Haible  <bruno@clisp.org>
28380
28381         * modules/xvasprintf-posix: New file.
28382         Suggested by Eric Blake.
28383
28384 2007-10-30  Bruno Haible  <bruno@clisp.org>
28385
28386         * modules/xprintf-posix-tests: New file.
28387         * tests/test-xprintf-posix.sh: New file.
28388         * tests/test-xprintf-posix.c: New file.
28389         * tests/test-xfprintf-posix.c: New file.
28390
28391         * modules/xprintf-posix: New file.
28392
28393 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28394
28395         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
28396         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
28397         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
28398
28399 2007-10-29  Bruno Haible  <bruno@clisp.org>
28400
28401         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
28402         contain the special marker '_cv_'.
28403         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
28404         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
28405         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
28406         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
28407         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
28408         Reported by Ralf Wildenhues.
28409
28410 2007-10-29  Bruno Haible  <bruno@clisp.org>
28411
28412         * gnulib-tool (func_import): When --lgpl is not specified, set
28413         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
28414         GPLv3.
28415         Reported by Simon Josefsson.
28416
28417 2007-10-28  Bruno Haible  <bruno@clisp.org>
28418
28419         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
28420         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
28421         HAVE_DECL_ISFINITE.
28422         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
28423         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
28424         HAVE_DECL_ISFINITE.
28425
28426 2007-10-28  Bruno Haible  <bruno@clisp.org>
28427
28428         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
28429         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
28430
28431 2007-10-28  Bruno Haible  <bruno@clisp.org>
28432
28433         Fix link errors with Sun C 5.0 on Solaris 10.
28434         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
28435         function is declared but not present in the compiler's libm.
28436         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
28437         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
28438         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
28439         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
28440         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
28441         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
28442         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
28443         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
28444         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
28445         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
28446         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
28447         HAVE_DECL_FLOORL.
28448
28449 2007-10-28  Bruno Haible  <bruno@clisp.org>
28450
28451         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
28452         gl_FUNC_FLOORL. Cache the result.
28453         (gl_FUNC_FLOORL): Use it.
28454         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
28455         gl_FUNC_CEILL. Cache the result.
28456         (gl_FUNC_CEILL): Use it.
28457
28458         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
28459         gl_FUNC_FLOOR. Cache the result.
28460         (gl_FUNC_FLOOR): Use it.
28461         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
28462         gl_FUNC_CEIL. Cache the result.
28463         (gl_FUNC_CEIL): Use it.
28464
28465         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
28466         gl_FUNC_FLOORF. Cache the result.
28467         (gl_FUNC_FLOORF): Use it.
28468         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
28469         gl_FUNC_CEILF. Cache the result.
28470         (gl_FUNC_CEILF): Use it.
28471
28472 2007-10-28  Bruno Haible  <bruno@clisp.org>
28473
28474         * gnulib-tool: Allow specifying the LGPL version number through
28475         --lgpl=2 or --lgpl=3.
28476         (func_usage): Document --lgpl with argument.
28477         Handle --lgpl=... arguments.
28478         (func_import): Recognize also gl_LGPL calls with an argument. When
28479         --lgpl=2 is used and the module's license is just LGPL, report an
28480         error. Set sed_transform_lib_file according to the lgpl variable. In
28481         the generated files, use --lgpl or gl_LGPL invocations with argument,
28482         if necessary.
28483         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
28484         an LGPv2+ license.
28485         * doc/gnulib-tool.texi (Modified imports): Update explanation of
28486         gl_LGPL macro.
28487
28488 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28489             Bruno Haible  <bruno@clisp.org>
28490
28491         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
28492         (u16_uctomb_aux): Likewise.
28493         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
28494         !HAVE_INLINE.
28495         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
28496
28497 2007-10-28  Bruno Haible  <bruno@clisp.org>
28498
28499         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
28500         Invoke AM_GETTEXT_OPTION if it exists.
28501         * modules/vasprintf: Likewise.
28502         * modules/verror: Likewise.
28503         * modules/xprintf: Likewise.
28504         * modules/xvasprintf: Likewise.
28505
28506 2007-10-27  Ben Pfaff  <blp@gnu.org>
28507
28508         * lib/math.in.h: Define isfinite macro and prototypes for
28509         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
28510         implementations.
28511         * m4/math_h.m4: New substitutions for isfinite module.
28512         * lib/isfinite.c: New file.
28513         * m4/isfinite.m4: New file.
28514         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
28515         * modules/isfinite: New file.
28516         * modules/isfinite-tests: New file.
28517         * tests/tests-isfinite.c: New file.
28518         * doc/functions/isfinite.texi: Mention isfinite module.
28519         * MODULES.html.sh: Mention new module.
28520
28521 2007-10-27  Ben Pfaff  <blp@gnu.org>
28522
28523         Ralf Wildenhues reported that Tru64 4.0D declares the round
28524         functions but does not have definitions.
28525         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
28526         cannot be found in any library, set the output variable to
28527         "missing" instead of "".
28528         * m4/round.m4: Also use our substitute if we cannot find round in
28529         any library, even if it is declared.
28530         * m4/roundf.m4: Likewise for roundf.
28531         * m4/roundl.m4: Likewise for roundl.
28532         * lib/math.in.h: Undefine roundf, round, roundl before defining
28533         their replacements, to allow for hypothetical systems where these
28534         may be defined as macros but not available in libraries.
28535
28536 2007-10-27  Bruno Haible  <bruno@clisp.org>
28537
28538         * doc/gnulib.texi: Invoke @firstparagraphindent.
28539         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
28540         changes in gnulib.
28541         (Source changes): New section.
28542
28543 2007-10-26  Bruno Haible  <bruno@clisp.org>
28544
28545         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
28546         borrowed from autoconf.
28547
28548 2007-10-26  Bruno Haible  <bruno@clisp.org>
28549
28550         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
28551         strerror returned the empty string. Needed on HP-UX 11.00.
28552
28553 2007-10-24  Micah Cowan  <micah@cowan.name>
28554
28555         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
28556         * build-aux/bootstrap: Remove support for now-unnecessary option,
28557         --cvs-user, and envvars CVS_USER, CVS_RSH.
28558
28559 2007-10-24  Jim Meyering  <meyering@redhat.com>
28560
28561         Avoid diagnostics from sha1sum when there is no cached checksum.
28562         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
28563         if the po.s1 file hasn't been created yet.
28564
28565         * build-aux/bootstrap: Sync from coreutils:
28566         2007-10-24  Jim Meyering  <meyering@redhat.com>
28567         Get gnulib from the git repository, not from an obsolete cvs one.
28568         * build-aux/bootstrap: Suggestion from Micah Cowan.
28569         2007-10-04  Jim Meyering  <jim@meyering.net>
28570         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
28571         (update_po_files): Work also when there are no .po files in po/.
28572
28573 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
28574
28575         * README: Append ".git" to git and cg examples.
28576         Problem reported by Benoit Sigoure.
28577
28578 2007-10-23  Micah Cowan  <micah@cowan.name>
28579
28580         * users.txt: Add wget.
28581
28582 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28583
28584         Fix linking of some unistdio tests on FreeBSD.
28585         * modules/unistdio/u16-vsnprintf-tests
28586         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
28587         * modules/unistdio/u16-vsprintf-tests
28588         (test_u16_vsnprintf1_LDADD): Likewise.
28589         * modules/unistdio/u32-vsnprintf-tests
28590         (test_u32_vsnprintf1_LDADD): Likewise.
28591         * modules/unistdio/u32-vsprintf-tests
28592         (test_u32_vsprintf1_LDADD): Likewise.
28593         * modules/unistdio/u8-vsnprintf-tests
28594         (test_u8_vsnprintf1_LDADD): Likewise.
28595         * modules/unistdio/u8-vsprintf-tests
28596         (test_u8_vsprintf1_LDADD): Likewise.
28597         * modules/unistdio/ulc-vsnprintf-tests
28598         (test_ulc_vsnprintf1_LDADD): Likewise.
28599         * modules/unistdio/ulc-vsprintf-tests
28600         (test_ulc_vsprintf1_LDADD): Likewise.
28601
28602         Fix linking of some uniconv tests on FreeBSD.
28603         * modules/uniconv/u16-conv-from-enc-tests
28604         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
28605         * modules/uniconv/u16-conv-to-enc-tests
28606         (test_u16_conv_to_enc_LDADD): Likewise.
28607         * modules/uniconv/u16-strconv-from-enc-tests
28608         (test_u16_strconv_from_enc_LDADD): Likewise.
28609         * modules/uniconv/u16-strconv-to-enc-tests
28610         (test_u16_strconv_to_enc_LDADD): Likewise.
28611         * modules/uniconv/u32-conv-from-enc-tests
28612         (test_u32_conv_from_enc_LDADD): Likewise.
28613         * modules/uniconv/u32-conv-to-enc-tests
28614         (test_u32_conv_to_enc_LDADD): Likewise.
28615         * modules/uniconv/u32-strconv-from-enc-tests
28616         (test_u32_strconv_from_enc_LDADD): Likewise.
28617         * modules/uniconv/u32-strconv-to-enc-tests
28618         (test_u32_strconv_to_enc_LDADD): Likewise.
28619         * modules/uniconv/u8-conv-from-enc-tests
28620         (test_u8_conv_from_enc_LDADD): Likewise.
28621         * modules/uniconv/u8-conv-to-enc-tests
28622         (test_u8_conv_to_enc_LDADD): Likewise.
28623         * modules/uniconv/u8-strconv-from-enc-tests
28624         (test_u8_strconv_from_enc_LDADD): Likewise.
28625         * modules/uniconv/u8-strconv-to-enc-tests
28626         (test_u8_strconv_to_enc_LDADD): Likewise.
28627
28628 2007-10-22  Bruno Haible  <bruno@clisp.org>
28629
28630         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
28631         size.
28632
28633 2007-10-22  Eric Blake  <ebb9@byu.net>
28634
28635         Tweak x*printf documentation.
28636         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
28637         variable name and comments.
28638         Suggested by Bruno Haible.
28639
28640 2007-10-22  Bruno Haible  <bruno@clisp.org>
28641
28642         * lib/acl.c (copy_acl): Fix file name in comment.
28643
28644 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
28645
28646         Fix Tru64 problem with stdbool.h.
28647         * lib/stdbool.in.h (false, true):
28648         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
28649         Don't declare as an enum in this situation; it runs afoul of Tru64.
28650         Problem reported by Steven M. Schweda in
28651         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
28652
28653 2007-10-22  Eric Blake  <ebb9@byu.net>
28654
28655         Also wrap vf?printf.
28656         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
28657         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
28658         (xvprintf, xvfprintf): New functions.
28659
28660 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28661
28662         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
28663         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
28664
28665         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
28666         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
28667
28668 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
28669
28670         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
28671         by Bruno Haible.
28672
28673 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28674
28675         * lib/getloadavg.c
28676         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
28677         Undef `sys' after including sys/table.h, for Tru64 4.0D.
28678
28679         * tests/test-i-ring.c: Work for C89.
28680
28681 2007-10-22  Bruno Haible  <bruno@clisp.org>
28682
28683         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
28684         -1u, in preprocessor expression, so that we don't test for the bug
28685         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
28686         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
28687
28688 2007-10-22  Eric Blake  <ebb9@byu.net>
28689
28690         * tests/test-yesno.sh: Silence stderr during test.
28691
28692 2007-10-22  Simon Josefsson  <simon@josefsson.org>
28693
28694         * modules/crypto/gc-camellia: New file.
28695
28696         * m4/gc-camellia.m4: New file.
28697
28698         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
28699
28700         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
28701
28702 2007-10-22  Simon Josefsson  <simon@josefsson.org>
28703
28704         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
28705         --help to stdout.  Reported by sms@antinode.org (Steven
28706         M. Schweda).
28707
28708 2007-10-22  Simon Josefsson  <simon@josefsson.org>
28709
28710         * users.txt: Fix link to libksba.
28711
28712 2007-10-21  Ben Pfaff  <blp@gnu.org>
28713
28714         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
28715         round.c roundf implementation that depends on floorf and ceilf to
28716         be tested unconditionally.
28717
28718 2007-10-21  Ben Pfaff  <blp@gnu.org>
28719
28720         * m4/check-libm-func.m4: Removed.
28721         * m4/check-math-lib.m4: New file.
28722         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
28723         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
28724         definition and lack of AC_LIBOBJ([roundf]).
28725         * m4/roundl.m4: Ditto, and similarly for roundl.
28726         * modules/round: Reference new m4 file.
28727         * modules/roundf: Ditto.
28728         * modules/roundl: Ditto.
28729         * tests/test-round2.c (main): Use ROUND instead of round.
28730         Bug report from Bruno Haible.
28731
28732 2007-10-21  Bruno Haible  <bruno@clisp.org>
28733
28734         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
28735         context.
28736
28737 2007-10-21  Bruno Haible  <bruno@clisp.org>
28738
28739         * tests/test-wcwidth.c (main): Allow negative result for some control
28740         characters.
28741
28742         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
28743         Needed on OSF/1 5.1.
28744
28745 2007-10-21  Bruno Haible  <bruno@clisp.org>
28746
28747         * tests/test-floorf1.c: Include isnanf.h.
28748         (main): Use isnanf() instead of isnan().
28749         * tests/test-ceilf1.c: Include isnanf.h.
28750         (main): Use isnanf() instead of isnan().
28751         * tests/test-truncf1.c: Include isnanf.h.
28752         (main): Use isnanf() instead of isnan().
28753         * tests/test-roundf1.c: Include isnanf.h.
28754         (main): Use isnanf() instead of isnan().
28755
28756 2007-10-21  Eric Blake  <ebb9@byu.net>
28757
28758         * users.txt: Update URL for m4.
28759
28760 2007-10-21  Bruno Haible  <bruno@clisp.org>
28761
28762         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
28763
28764 2007-10-21  Bruno Haible  <bruno@clisp.org>
28765
28766         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
28767         Git's management files if the CVS files are not present.
28768
28769 2007-10-20  Bruno Haible  <bruno@clisp.org>
28770
28771         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
28772         gcc-3.4.x.
28773
28774 2007-10-20  Ben Pfaff  <blp@gnu.org>
28775
28776         * lib/math.in.h: Declare round, roundf, roundl if we are providing
28777         implementations.
28778         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
28779         * lib/round.c: New file.
28780         * lib/roundf.c: New file.
28781         * lib/roundl.c: New file.
28782         * m4/round.m4: New file.
28783         * m4/roundf.m4: New file.
28784         * m4/roundl.m4: New file.
28785         * m4/check-libm-func-m4: New file.
28786         * modules/math: Replace round, roundf, roundl related @VARS@ in
28787         math.in.h.
28788         * modules/round: New file.
28789         * modules/round-tests: New file.
28790         * modules/roundf: New file.
28791         * modules/roundf-tests: New file.
28792         * modules/roundl: New file.
28793         * modules/roundl-tests: New file.
28794         * tests/test-round1.c: New file.
28795         * tests/test-round2.c: New file.
28796         * tests/test-roundf1.c: New file.
28797         * tests/test-roundf2.c: New file.
28798         * tests/test-roundl.c: New file.
28799         * doc/functions/round.texi: Mention round module.
28800         * doc/functions/roundf.texi: Mention roundf module.
28801         * doc/functions/roundl.texi: Mention roundl module.
28802         * MODULES.html.sh: Mention new modules.
28803         Thanks to Bruno Haible for suggestions.
28804
28805 2007-10-20  Jim Meyering  <meyering@redhat.com>
28806
28807         * lib/xprintf.c: Include <config.h> unconditionally.
28808
28809         Change xprintf's license to GPL.
28810         * modules/xprintf (License): s/LGPL/GPL/, since this module
28811         depends on modules (exit and exitfail) which are GPL.
28812         Suggestion from Bruno Haible.
28813
28814         xprintf fixes.
28815         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
28816         Use a clearer diagnostic.
28817         Patch from Bruno Haible.
28818
28819 2007-10-20  Bruno Haible  <bruno@clisp.org>
28820
28821         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
28822         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
28823         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28824
28825 2007-10-20  Bruno Haible  <bruno@clisp.org>
28826
28827         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
28828         precision in the comparison result > x - 1 or similar.
28829         * tests/test-ceilf2.c (correct_result_p): Likewise.
28830         * tests/test-truncf2.c (correct_result_p): Likewise.
28831         * tests/test-trunc2.c (correct_result_p): Likewise.
28832         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28833
28834 2007-10-20  Bruno Haible  <bruno@clisp.org>
28835
28836         * modules/ceil: New file.
28837         * m4/ceil.m4: New file.
28838         * doc/functions/ceil.texi: Mention the 'ceil' module.
28839
28840 2007-10-20  Bruno Haible  <bruno@clisp.org>
28841
28842         * modules/floor: New file.
28843         * m4/floor.m4: New file.
28844         * doc/functions/floor.texi: Mention the 'floor' module.
28845
28846 2007-10-20  Bruno Haible  <bruno@clisp.org>
28847
28848         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
28849         of %a.
28850         * modules/floorf-tests (Depends-on): Likewise.
28851         * modules/truncf-tests (Depends-on): Likewise.
28852         * modules/trunc-tests (Depends-on): Likewise.
28853         Reported by Ben Pfaff.
28854
28855 2007-10-19  Jim Meyering  <meyering@redhat.com>
28856
28857         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
28858         Don't bother testing specific errno values.  Just test ferror.
28859
28860         New module: xprintf
28861         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
28862
28863 2007-10-19  Bruno Haible  <bruno@clisp.org>
28864
28865         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
28866         syntax.
28867         * modules/javaexec (Makefile.am): Likewise.
28868         * modules/relocatable-prog (Makefile.am): Likewise.
28869         Suggested by Jim Meyering.
28870
28871 2007-10-18  Bruno Haible  <bruno@clisp.org>
28872
28873         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
28874         Reported by Jim Meyering.
28875
28876 2007-10-18  Eric Blake  <ebb9@byu.net>
28877
28878         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
28879
28880 2007-10-18  Bruno Haible  <bruno@clisp.org>
28881
28882         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
28883         the format string into writable memory. Needed in Fortify conditions.
28884
28885 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
28886             Bruno Haible  <bruno@clisp.org>
28887
28888         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
28889         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
28890         * modules/trim (Depends-on): Add mbchar.
28891         (configure.ac): Add gl_FUNC_MBRTOWC.
28892         (Makefile.am): Augment lib_SOURCES.
28893
28894 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
28895
28896         Modify glob.c to use fstatat and dirfd, to simplify it.
28897         Suggested by Eric Blake.
28898         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
28899         Don't include <stdbool.h>; not used.
28900         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
28901         (link_exists_p): Simplify implementation, since we can now assume
28902         dirfd and fstatat.
28903         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
28904
28905 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28906
28907         * gnulib-tool (func_get_dependencies): Fix sed script to
28908         match only tests.
28909
28910 2007-10-17  Bruno Haible  <bruno@clisp.org>
28911
28912         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
28913         allow locale names without encoding suffix.
28914         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
28915         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
28916
28917 2007-10-16  Bruno Haible  <bruno@clisp.org>
28918
28919         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
28920         * lib/getgroups.c (getgroups): Likewise.
28921         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
28922
28923 2007-10-16  Bruno Haible  <bruno@clisp.org>
28924
28925         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
28926         * modules/malloc-posix (License): Likewise.
28927         * modules/realloc-posix (License): Likewise.
28928         * modules/calloc-posix (License): Likewise.
28929         * modules/intprops (License): Change from GPL to LGPL, with
28930         Paul Eggert's approval.
28931
28932 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
28933
28934         Merge glibc changes into lib/glob.c.
28935
28936         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
28937         2007-10-15 04:59:03 UTC.  Here are the changes:
28938
28939         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
28940
28941         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
28942
28943         * lib/glob.c: Add some branch prediction throughout.
28944
28945         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
28946
28947         [BZ #5103]
28948         * lib/glob.c (glob): Recognize patterns starting \/.
28949
28950         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
28951
28952         [BZ #3996]
28953         * lib/glob.c (attribute_hidden): Define if not defined.
28954         (glob): Unescape dirname, filename or username when needed and not
28955         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
28956         is NULL.  Handle unescaped [ in pattern without closing ].
28957         Don't pass GLOB_CHECK down to recursive glob for directories.
28958         (__glob_pattern_type): New function.
28959         (__glob_pattern_p): Implement using __glob_pattern_type.
28960         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
28961         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
28962         Remove unreachable code.
28963
28964         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
28965
28966         * lib/glob.c (glob_in_dir): Add some comments and asserts to
28967         explain why there are no leaks.
28968
28969         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
28970
28971         [BZ #3253]
28972         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
28973         time, rather allocate increasingly bigger arrays of pointers, if
28974         possible with alloca, if too large with malloc.
28975
28976 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
28977
28978         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
28979         Problem reported by H.Merijn Brand in
28980         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
28981         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
28982         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
28983
28984 2007-10-15  Bruno Haible  <bruno@clisp.org>
28985
28986         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
28987         with explicit rpl_ prefix.
28988         * lib/fopen.c (fopen): Likewise.
28989         * lib/freopen.c (freopen): Likewise.
28990         * lib/iconv.c (iconv): Likewise.
28991         * lib/iconv_close.c (iconv_close): Likewise.
28992
28993 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28994
28995         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
28996
28997 2007-10-15  Bruno Haible  <bruno@clisp.org>
28998
28999         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
29000         <stddef.h> instead of <stdlib.h> since we only need NULL.
29001         Reported by Ben Pfaff <blp@cs.stanford.edu>.
29002
29003 2007-10-15  Bruno Haible  <bruno@clisp.org>
29004
29005         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
29006         Replace paragraph talking about LIBOBJS.
29007         Reported by Colin Watson <cjwatson@debian.org>.
29008
29009 2007-10-15  Bruno Haible  <bruno@clisp.org>
29010
29011         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
29012         <stdlib.h> before using NULL.
29013
29014 2007-10-15  Simon Josefsson  <simon@josefsson.org>
29015
29016         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
29017         Reported by Albert Chin <china@thewrittenword.com>.
29018
29019 2007-10-14  Bruno Haible  <bruno@clisp.org>
29020
29021         * modules/iconv_open-utf-tests: New file.
29022         * tests/test-iconv-utf.c: New file.
29023
29024         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
29025         * modules/iconv_open-utf: New file.
29026         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
29027         (iconv, iconv_close): New declarations.
29028         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
29029         be defined.
29030         (iconv_open): Add special handling of conversion between UTF-8 and
29031         UTF-{16,32}{BE,LE}.
29032         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
29033         * lib/iconv_close.c: New file.
29034         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
29035         gl_FUNC_ICONV_OPEN.
29036         (gl_FUNC_ICONV_OPEN): Use it.
29037         (gl_FUNC_ICONV_OPEN_UTF): New macro.
29038         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
29039         and REPLACE_ICONV_UTF.
29040         * modules/iconv_open (Depends-on): Add c-strcase.
29041         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
29042         ICONV_CONST.
29043         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
29044
29045 2007-10-13  Albert Chin  <china@thewrittenword.com>
29046             Bruno Haible  <bruno@clisp.org>
29047
29048         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
29049         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
29050
29051 2007-10-13  Bruno Haible  <bruno@clisp.org>
29052
29053         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
29054         defined, use the ISO C99 inline semantics.
29055         * lib/argp.h (ARGP_EI): Likewise.
29056
29057 2007-10-13  Bruno Haible  <bruno@clisp.org>
29058
29059         Handle 'inline' change in gcc 4.3.0.
29060         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
29061         argp_fmtstream_write, argp_fmtstream_set_lmargin,
29062         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
29063         argp_fmtstream_point): Disable 'extern' declaration if the function
29064         definition is going to be provided inline.
29065         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
29066         semantics, not the ISO C99 inline semantics.
29067         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
29068         'extern' declaration if the function definition is going to be provided
29069         inline.
29070         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
29071         the GNU C inline semantics, not the ISO C99 inline semantics. With
29072         GCC 4.2, avoid a warning.
29073
29074 2007-10-13  Bruno Haible  <bruno@clisp.org>
29075
29076         * lib/freading.h (freading): Enable the use of __freading for
29077         glibc >= 2.7.
29078         * lib/freading.c (freading): Likewise.
29079
29080 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
29081
29082         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
29083         "warning: C99 inline functions are not supported; using GNU89".
29084
29085 2007-10-12  Bruno Haible  <bruno@clisp.org>
29086
29087         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
29088         of 2.
29089         * tests/test-ceilf2.c: New file.
29090         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
29091
29092         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
29093         * modules/ceilf-tests: Update.
29094
29095 2007-10-12  Bruno Haible  <bruno@clisp.org>
29096
29097         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
29098         of 2.
29099         * tests/test-floorf2.c: New file.
29100         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
29101
29102         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
29103         * modules/floorf-tests: Update.
29104
29105 2007-10-12  Bruno Haible  <bruno@clisp.org>
29106
29107         * tests/test-trunc2.c: New file.
29108         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
29109
29110         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
29111         * modules/trunc-tests: Update.
29112
29113 2007-10-12  Bruno Haible  <bruno@clisp.org>
29114
29115         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
29116         of 2.
29117         * tests/test-truncf2.c: New file.
29118         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
29119
29120         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
29121         * modules/truncf-tests: Update.
29122
29123 2007-10-11  Eric Blake  <ebb9@byu.net>
29124
29125         Don't claim strerror is broken on Interix.
29126         * doc/functions/strerror.texi (strerror): Known broken systems are
29127         now Solaris 8, and not Interix.
29128         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
29129         Interix on cross-compile.
29130         Reported by Martin Koeppe in
29131         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
29132
29133 2007-10-11  Bruno Haible  <bruno@clisp.org>
29134
29135         * modules/i-ring-tests: New file.
29136         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
29137         instead of assert.
29138
29139 2007-10-11  Bruno Haible  <bruno@clisp.org>
29140
29141         * modules/filenamecat-tests: New file.
29142         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
29143         * lib/filenamecat.c: Remove test code.
29144
29145 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
29146
29147         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
29148
29149         * lib/strerror.c: Include <string.h> always, to test interface,
29150         and to remove the need for the dummy.
29151         Include intprops.h to compute width instead of doing it ourselves
29152         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
29153         (strerror): Define it to return NULL if there's no system strerror.
29154         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
29155         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
29156         ancient pre-strerror Unix systems well any more.  Saying "unknown
29157         system error" is enough.
29158         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
29159         simpler strerror.c implementation.
29160         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
29161         Simplify the tests to reflect the simpler strerror implementation.
29162         * modules/strerror (Depends-on): Add intprops.
29163
29164 2007-10-09  Eric Blake  <ebb9@byu.net>
29165
29166         Silence test-fpending.
29167         * modules/fpending-tests (Files): Add wrapper script.
29168         * tests/test-fpending.sh: New file.
29169
29170 2007-10-09  Bruno Haible  <bruno@clisp.org>
29171
29172         * MODULES.html.sh (func_module): Don't create a hyperlink for
29173         function names like 'printf_frexp'.
29174         (Misc): Add crc, memxor.
29175         (Characteristics of floating types): New section.
29176         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
29177         isnanf-nolibm, signbit, trunc, truncf, truncl.
29178         (Enhancements for ISO C 99 functions): New subsection Input/output.
29179         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
29180         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
29181         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
29182         (Compatibility checks for POSIX:2001 functions): Add clock-time.
29183         (Enhancements for POSIX:2001 functions): Add chdir-long.
29184         (File system functions): Add areadlink, chdir-safer, read-file.
29185         Remove cycle-check.
29186         (File system as inode set): New section.
29187         (Date and time): Add gethrxtime.
29188         (Multithreading): Add openmp.
29189         (Internationalization functions): Add localename.
29190         (Unicode string functions): Add unistr/u*-mbsnlen.
29191         (Support for maintaining and releasing projects): Add git-version-gen.
29192         (Lone files): Remove directories.
29193
29194 2007-10-08  Ben Pfaff  <blp@gnu.org>
29195
29196         * lib/xmalloca.h: Fix typo in comment.
29197
29198 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
29199
29200         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
29201         when avoiding problems with integer overflow.  Use a portable test
29202         instead.
29203
29204 2007-10-08  Simon Josefsson  <simon@josefsson.org>
29205
29206         * modules/dummy (License): Change to LGPLv2+.
29207         * modules/float (License): Likewise
29208         * modules/realloc (License): Likewise
29209         * modules/stdlib (License): Likewise
29210
29211 2007-10-07  Bruno Haible  <bruno@clisp.org>
29212
29213         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
29214         * floor.c (TWO_MANT_DIG): Likewise.
29215         * ceil.c (TWO_MANT_DIG): Likewise.
29216         Reported by Ben Pfaff.
29217
29218 2007-10-07  Bruno Haible  <bruno@clisp.org>
29219
29220         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
29221         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
29222         * lib/frexp.c (FUNC): Likewise.
29223         * lib/printf-frexp.h (printf_frexp): Likewise.
29224         * lib/printf-frexpl.h (printf_frexpl): Likewise.
29225         * lib/printf-frexp.c (FUNC): Likewise.
29226         Suggested by Jim Meyering.
29227
29228 2007-10-07  Jim Meyering  <meyering@redhat.com>
29229
29230         Make xnanosleep's integer overflow test more robust.
29231         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
29232         so that gcc-4.3.0 doesn't optimize away this test for overflow.
29233
29234 2007-10-07  Bruno Haible  <bruno@clisp.org>
29235
29236         * NEWS: Mention the license change.
29237
29238         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
29239         abbreviations in the modules files.
29240
29241         Change copyright notice from GPLv2+ to GPLv3+.
29242         * README: Change copyright notice.
29243         * MODULES.html.sh: Likewise.
29244         * build-aux/bootstrap.conf: Likewise.
29245         * build-aux/config.libpath: Likewise.
29246         * build-aux/csharpcomp.sh.in: Likewise.
29247         * build-aux/csharpexec.sh.in: Likewise.
29248         * build-aux/install-reloc: Likewise.
29249         * build-aux/javacomp.sh.in: Likewise.
29250         * build-aux/javaexec.sh.in: Likewise.
29251         * build-aux/ldd.sh.in: Likewise.
29252         * build-aux/reloc-ldflags: Likewise.
29253         * build-aux/relocatable.sh.in: Likewise.
29254         * build-aux/x-to-1.in: Likewise.
29255         * check-module: Likewise.
29256         * config/srclistvars.sh: Likewise.
29257         * gnulib-tool: Likewise.
29258         * lib/acl-internal.h: Likewise.
29259         * lib/acl.c: Likewise.
29260         * lib/acl.h: Likewise.
29261         * lib/acl_entries.c: Likewise.
29262         * lib/areadlink-with-size.c: Likewise.
29263         * lib/areadlink.c: Likewise.
29264         * lib/areadlink.h: Likewise.
29265         * lib/argmatch.c: Likewise.
29266         * lib/argmatch.h: Likewise.
29267         * lib/argp-ba.c: Likewise.
29268         * lib/argp-eexst.c: Likewise.
29269         * lib/argp-fmtstream.c: Likewise.
29270         * lib/argp-fmtstream.h: Likewise.
29271         * lib/argp-fs-xinl.c: Likewise.
29272         * lib/argp-help.c: Likewise.
29273         * lib/argp-namefrob.h: Likewise.
29274         * lib/argp-parse.c: Likewise.
29275         * lib/argp-pin.c: Likewise.
29276         * lib/argp-pv.c: Likewise.
29277         * lib/argp-pvh.c: Likewise.
29278         * lib/argp-xinl.c: Likewise.
29279         * lib/argp.h: Likewise.
29280         * lib/at-func.c: Likewise.
29281         * lib/atanl.c: Likewise.
29282         * lib/backupfile.c: Likewise.
29283         * lib/backupfile.h: Likewise.
29284         * lib/basename.c: Likewise.
29285         * lib/binary-io.h: Likewise.
29286         * lib/byteswap.in.h: Likewise.
29287         * lib/c-stack.c: Likewise.
29288         * lib/c-stack.h: Likewise.
29289         * lib/c-strcasestr.c: Likewise.
29290         * lib/c-strcasestr.h: Likewise.
29291         * lib/c-strstr.c: Likewise.
29292         * lib/c-strstr.h: Likewise.
29293         * lib/c-strtod.c: Likewise.
29294         * lib/calloc.c: Likewise.
29295         * lib/canon-host.c: Likewise.
29296         * lib/canon-host.h: Likewise.
29297         * lib/canonicalize-lgpl.c: Likewise.
29298         * lib/canonicalize.c: Likewise.
29299         * lib/canonicalize.h: Likewise.
29300         * lib/ceil.c: Likewise.
29301         * lib/ceilf.c: Likewise.
29302         * lib/ceill.c: Likewise.
29303         * lib/chdir-long.c: Likewise.
29304         * lib/chdir-long.h: Likewise.
29305         * lib/chdir-safer.c: Likewise.
29306         * lib/chdir-safer.h: Likewise.
29307         * lib/chown.c: Likewise.
29308         * lib/classpath.c: Likewise.
29309         * lib/classpath.h: Likewise.
29310         * lib/clean-temp.c: Likewise.
29311         * lib/clean-temp.h: Likewise.
29312         * lib/cloexec.c: Likewise.
29313         * lib/close-stream.c: Likewise.
29314         * lib/closein.c: Likewise.
29315         * lib/closein.h: Likewise.
29316         * lib/closeout.c: Likewise.
29317         * lib/closeout.h: Likewise.
29318         * lib/concat-filename.c: Likewise.
29319         * lib/copy-file.c: Likewise.
29320         * lib/copy-file.h: Likewise.
29321         * lib/count-one-bits.h: Likewise.
29322         * lib/crc.c: Likewise.
29323         * lib/crc.h: Likewise.
29324         * lib/creat-safer.c: Likewise.
29325         * lib/csharpcomp.c: Likewise.
29326         * lib/csharpcomp.h: Likewise.
29327         * lib/csharpexec.c: Likewise.
29328         * lib/csharpexec.h: Likewise.
29329         * lib/cycle-check.c: Likewise.
29330         * lib/cycle-check.h: Likewise.
29331         * lib/diacrit.c: Likewise.
29332         * lib/diacrit.h: Likewise.
29333         * lib/diffseq.h: Likewise.
29334         * lib/dirchownmod.c: Likewise.
29335         * lib/dirent.in.h: Likewise.
29336         * lib/dirfd.c: Likewise.
29337         * lib/dirfd.h: Likewise.
29338         * lib/dirname.c: Likewise.
29339         * lib/dirname.h: Likewise.
29340         * lib/dummy.c: Likewise.
29341         * lib/dup-safer.c: Likewise.
29342         * lib/dup2.c: Likewise.
29343         * lib/eealloc.h: Likewise.
29344         * lib/error.c: Likewise.
29345         * lib/error.h: Likewise.
29346         * lib/euidaccess.c: Likewise.
29347         * lib/exclude.c: Likewise.
29348         * lib/exclude.h: Likewise.
29349         * lib/execute.c: Likewise.
29350         * lib/execute.h: Likewise.
29351         * lib/exitfail.c: Likewise.
29352         * lib/exitfail.h: Likewise.
29353         * lib/expl.c: Likewise.
29354         * lib/fatal-signal.c: Likewise.
29355         * lib/fatal-signal.h: Likewise.
29356         * lib/fbufmode.c: Likewise.
29357         * lib/fbufmode.h: Likewise.
29358         * lib/fchdir.c: Likewise.
29359         * lib/fchmodat.c: Likewise.
29360         * lib/fchownat.c: Likewise.
29361         * lib/fcntl--.h: Likewise.
29362         * lib/fcntl-safer.h: Likewise.
29363         * lib/fcntl.in.h: Likewise.
29364         * lib/fd-safer.c: Likewise.
29365         * lib/fflush.c: Likewise.
29366         * lib/file-has-acl.c: Likewise.
29367         * lib/file-set.c: Likewise.
29368         * lib/file-type.c: Likewise.
29369         * lib/file-type.h: Likewise.
29370         * lib/fileblocks.c: Likewise.
29371         * lib/filemode.c: Likewise.
29372         * lib/filemode.h: Likewise.
29373         * lib/filename.h: Likewise.
29374         * lib/filenamecat.c: Likewise.
29375         * lib/filenamecat.h: Likewise.
29376         * lib/findprog.c: Likewise.
29377         * lib/findprog.h: Likewise.
29378         * lib/float.in.h: Likewise.
29379         * lib/floor.c: Likewise.
29380         * lib/floorf.c: Likewise.
29381         * lib/floorl.c: Likewise.
29382         * lib/fopen-safer.c: Likewise.
29383         * lib/fopen.c: Likewise.
29384         * lib/fpending.c: Likewise.
29385         * lib/fpending.h: Likewise.
29386         * lib/fprintf.c: Likewise.
29387         * lib/fprintftime.h: Likewise.
29388         * lib/fpucw.h: Likewise.
29389         * lib/fpurge.c: Likewise.
29390         * lib/fpurge.h: Likewise.
29391         * lib/freadable.c: Likewise.
29392         * lib/freadable.h: Likewise.
29393         * lib/freadahead.c: Likewise.
29394         * lib/freadahead.h: Likewise.
29395         * lib/freading.c: Likewise.
29396         * lib/freading.h: Likewise.
29397         * lib/free.c: Likewise.
29398         * lib/freopen.c: Likewise.
29399         * lib/frexp.c: Likewise.
29400         * lib/frexpl.c: Likewise.
29401         * lib/fseek.c: Likewise.
29402         * lib/fseterr.c: Likewise.
29403         * lib/fseterr.h: Likewise.
29404         * lib/fstatat.c: Likewise.
29405         * lib/fstrcmp.c: Likewise.
29406         * lib/fstrcmp.h: Likewise.
29407         * lib/fsusage.c: Likewise.
29408         * lib/fsusage.h: Likewise.
29409         * lib/ftell.c: Likewise.
29410         * lib/ftello.c: Likewise.
29411         * lib/fts-cycle.c: Likewise.
29412         * lib/fts.c: Likewise.
29413         * lib/fts_.h: Likewise.
29414         * lib/full-read.c: Likewise.
29415         * lib/full-read.h: Likewise.
29416         * lib/full-write.c: Likewise.
29417         * lib/full-write.h: Likewise.
29418         * lib/fwritable.c: Likewise.
29419         * lib/fwritable.h: Likewise.
29420         * lib/fwriteerror.c: Likewise.
29421         * lib/fwriteerror.h: Likewise.
29422         * lib/fwriting.c: Likewise.
29423         * lib/fwriting.h: Likewise.
29424         * lib/gcd.c: Likewise.
29425         * lib/gcd.h: Likewise.
29426         * lib/getcwd.c: Likewise.
29427         * lib/getdate.h: Likewise.
29428         * lib/getdate.y: Likewise.
29429         * lib/getdomainname.c: Likewise.
29430         * lib/getdomainname.h: Likewise.
29431         * lib/getgroups.c: Likewise.
29432         * lib/gethostname.c: Likewise.
29433         * lib/gethrxtime.c: Likewise.
29434         * lib/gethrxtime.h: Likewise.
29435         * lib/getloadavg.c: Likewise.
29436         * lib/getndelim2.c: Likewise.
29437         * lib/getndelim2.h: Likewise.
29438         * lib/getnline.c: Likewise.
29439         * lib/getnline.h: Likewise.
29440         * lib/getopt.c: Likewise.
29441         * lib/getopt.in.h: Likewise.
29442         * lib/getopt1.c: Likewise.
29443         * lib/getopt_int.h: Likewise.
29444         * lib/getpagesize.h: Likewise.
29445         * lib/getsubopt.c: Likewise.
29446         * lib/gettime.c: Likewise.
29447         * lib/getugroups.c: Likewise.
29448         * lib/getugroups.h: Likewise.
29449         * lib/getusershell.c: Likewise.
29450         * lib/gl_anyavltree_list1.h: Likewise.
29451         * lib/gl_anyavltree_list2.h: Likewise.
29452         * lib/gl_anyhash_list1.h: Likewise.
29453         * lib/gl_anyhash_list2.h: Likewise.
29454         * lib/gl_anylinked_list1.h: Likewise.
29455         * lib/gl_anylinked_list2.h: Likewise.
29456         * lib/gl_anyrbtree_list1.h: Likewise.
29457         * lib/gl_anyrbtree_list2.h: Likewise.
29458         * lib/gl_anytree_list1.h: Likewise.
29459         * lib/gl_anytree_list2.h: Likewise.
29460         * lib/gl_anytree_oset.h: Likewise.
29461         * lib/gl_anytreehash_list1.h: Likewise.
29462         * lib/gl_anytreehash_list2.h: Likewise.
29463         * lib/gl_array_list.c: Likewise.
29464         * lib/gl_array_list.h: Likewise.
29465         * lib/gl_array_oset.c: Likewise.
29466         * lib/gl_array_oset.h: Likewise.
29467         * lib/gl_avltree_list.c: Likewise.
29468         * lib/gl_avltree_list.h: Likewise.
29469         * lib/gl_avltree_oset.c: Likewise.
29470         * lib/gl_avltree_oset.h: Likewise.
29471         * lib/gl_avltreehash_list.c: Likewise.
29472         * lib/gl_avltreehash_list.h: Likewise.
29473         * lib/gl_carray_list.c: Likewise.
29474         * lib/gl_carray_list.h: Likewise.
29475         * lib/gl_linked_list.c: Likewise.
29476         * lib/gl_linked_list.h: Likewise.
29477         * lib/gl_linkedhash_list.c: Likewise.
29478         * lib/gl_linkedhash_list.h: Likewise.
29479         * lib/gl_list.c: Likewise.
29480         * lib/gl_list.h: Likewise.
29481         * lib/gl_oset.c: Likewise.
29482         * lib/gl_oset.h: Likewise.
29483         * lib/gl_rbtree_list.c: Likewise.
29484         * lib/gl_rbtree_list.h: Likewise.
29485         * lib/gl_rbtree_oset.c: Likewise.
29486         * lib/gl_rbtree_oset.h: Likewise.
29487         * lib/gl_rbtreehash_list.c: Likewise.
29488         * lib/gl_rbtreehash_list.h: Likewise.
29489         * lib/gl_sublist.c: Likewise.
29490         * lib/gl_sublist.h: Likewise.
29491         * lib/group-member.c: Likewise.
29492         * lib/group-member.h: Likewise.
29493         * lib/hard-locale.c: Likewise.
29494         * lib/hard-locale.h: Likewise.
29495         * lib/hash-pjw.c: Likewise.
29496         * lib/hash-pjw.h: Likewise.
29497         * lib/hash-triple.c: Likewise.
29498         * lib/hash.c: Likewise.
29499         * lib/hash.h: Likewise.
29500         * lib/human.c: Likewise.
29501         * lib/human.h: Likewise.
29502         * lib/i-ring.c: Likewise.
29503         * lib/i-ring.h: Likewise.
29504         * lib/idcache.c: Likewise.
29505         * lib/imaxabs.c: Likewise.
29506         * lib/imaxdiv.c: Likewise.
29507         * lib/inet_pton.c: Likewise.
29508         * lib/inet_pton.h: Likewise.
29509         * lib/intprops.h: Likewise.
29510         * lib/inttostr.c: Likewise.
29511         * lib/inttostr.h: Likewise.
29512         * lib/inttypes.in.h: Likewise.
29513         * lib/isapipe.c: Likewise.
29514         * lib/isdir.c: Likewise.
29515         * lib/isnan.c: Likewise.
29516         * lib/isnan.h: Likewise.
29517         * lib/isnanf.c: Likewise.
29518         * lib/isnanf.h: Likewise.
29519         * lib/isnanl-nolibm.h: Likewise.
29520         * lib/isnanl.c: Likewise.
29521         * lib/isnanl.h: Likewise.
29522         * lib/javacomp.c: Likewise.
29523         * lib/javacomp.h: Likewise.
29524         * lib/javaexec.c: Likewise.
29525         * lib/javaexec.h: Likewise.
29526         * lib/javaversion.c: Likewise.
29527         * lib/javaversion.h: Likewise.
29528         * lib/javaversion.java: Likewise.
29529         * lib/lbrkprop.h: Likewise.
29530         * lib/lchmod.h: Likewise.
29531         * lib/lchown.c: Likewise.
29532         * lib/ldexpl.c: Likewise.
29533         * lib/linebreak.c: Likewise.
29534         * lib/linebreak.h: Likewise.
29535         * lib/linebuffer.c: Likewise.
29536         * lib/linebuffer.h: Likewise.
29537         * lib/locale.in.h: Likewise.
29538         * lib/logl.c: Likewise.
29539         * lib/long-options.c: Likewise.
29540         * lib/long-options.h: Likewise.
29541         * lib/lstat.c: Likewise.
29542         * lib/lstat.h: Likewise.
29543         * lib/math.in.h: Likewise.
29544         * lib/mbchar.c: Likewise.
29545         * lib/mbchar.h: Likewise.
29546         * lib/mbfile.h: Likewise.
29547         * lib/mbiter.h: Likewise.
29548         * lib/mbscasecmp.c: Likewise.
29549         * lib/mbscasestr.c: Likewise.
29550         * lib/mbschr.c: Likewise.
29551         * lib/mbscspn.c: Likewise.
29552         * lib/mbslen.c: Likewise.
29553         * lib/mbsncasecmp.c: Likewise.
29554         * lib/mbsnlen.c: Likewise.
29555         * lib/mbspbrk.c: Likewise.
29556         * lib/mbspcasecmp.c: Likewise.
29557         * lib/mbsrchr.c: Likewise.
29558         * lib/mbssep.c: Likewise.
29559         * lib/mbsspn.c: Likewise.
29560         * lib/mbsstr.c: Likewise.
29561         * lib/mbstok_r.c: Likewise.
29562         * lib/mbswidth.c: Likewise.
29563         * lib/mbswidth.h: Likewise.
29564         * lib/mbuiter.h: Likewise.
29565         * lib/memcasecmp.c: Likewise.
29566         * lib/memcasecmp.h: Likewise.
29567         * lib/memchr.c: Likewise.
29568         * lib/memcmp.c: Likewise.
29569         * lib/memcoll.c: Likewise.
29570         * lib/memcoll.h: Likewise.
29571         * lib/memcpy.c: Likewise.
29572         * lib/memrchr.c: Likewise.
29573         * lib/mkancesdirs.c: Likewise.
29574         * lib/mkdir-p.c: Likewise.
29575         * lib/mkdir-p.h: Likewise.
29576         * lib/mkdir.c: Likewise.
29577         * lib/mkdirat.c: Likewise.
29578         * lib/mkdtemp.c: Likewise.
29579         * lib/mkstemp-safer.c: Likewise.
29580         * lib/mkstemp.c: Likewise.
29581         * lib/modechange.c: Likewise.
29582         * lib/modechange.h: Likewise.
29583         * lib/mountlist.c: Likewise.
29584         * lib/mountlist.h: Likewise.
29585         * lib/mpsort.c: Likewise.
29586         * lib/nanosleep.c: Likewise.
29587         * lib/obstack.c: Likewise.
29588         * lib/obstack.h: Likewise.
29589         * lib/open-safer.c: Likewise.
29590         * lib/open.c: Likewise.
29591         * lib/openat-die.c: Likewise.
29592         * lib/openat-priv.h: Likewise.
29593         * lib/openat-proc.c: Likewise.
29594         * lib/openat.c: Likewise.
29595         * lib/openat.h: Likewise.
29596         * lib/pagealign_alloc.c: Likewise.
29597         * lib/pagealign_alloc.h: Likewise.
29598         * lib/physmem.c: Likewise.
29599         * lib/physmem.h: Likewise.
29600         * lib/pipe-safer.c: Likewise.
29601         * lib/pipe.c: Likewise.
29602         * lib/pipe.h: Likewise.
29603         * lib/posixtm.c: Likewise.
29604         * lib/posixtm.h: Likewise.
29605         * lib/posixver.c: Likewise.
29606         * lib/printf-frexp.c: Likewise.
29607         * lib/printf-frexp.h: Likewise.
29608         * lib/printf-frexpl.c: Likewise.
29609         * lib/printf-frexpl.h: Likewise.
29610         * lib/printf.c: Likewise.
29611         * lib/progname.c: Likewise.
29612         * lib/progname.h: Likewise.
29613         * lib/progreloc.c: Likewise.
29614         * lib/putenv.c: Likewise.
29615         * lib/quote.c: Likewise.
29616         * lib/quote.h: Likewise.
29617         * lib/quotearg.c: Likewise.
29618         * lib/quotearg.h: Likewise.
29619         * lib/raise.c: Likewise.
29620         * lib/readline.c: Likewise.
29621         * lib/readline.h: Likewise.
29622         * lib/readlink.c: Likewise.
29623         * lib/readtokens.c: Likewise.
29624         * lib/readtokens.h: Likewise.
29625         * lib/readtokens0.c: Likewise.
29626         * lib/readtokens0.h: Likewise.
29627         * lib/readutmp.c: Likewise.
29628         * lib/readutmp.h: Likewise.
29629         * lib/realloc.c: Likewise.
29630         * lib/relocwrapper.c: Likewise.
29631         * lib/rename-dest-slash.c: Likewise.
29632         * lib/rename.c: Likewise.
29633         * lib/rmdir.c: Likewise.
29634         * lib/rpmatch.c: Likewise.
29635         * lib/safe-read.c: Likewise.
29636         * lib/safe-read.h: Likewise.
29637         * lib/safe-write.c: Likewise.
29638         * lib/safe-write.h: Likewise.
29639         * lib/same-inode.h: Likewise.
29640         * lib/same.c: Likewise.
29641         * lib/same.h: Likewise.
29642         * lib/save-cwd.c: Likewise.
29643         * lib/save-cwd.h: Likewise.
29644         * lib/savedir.c: Likewise.
29645         * lib/savedir.h: Likewise.
29646         * lib/savewd.c: Likewise.
29647         * lib/savewd.h: Likewise.
29648         * lib/search.in.h: Likewise.
29649         * lib/setenv.c: Likewise.
29650         * lib/setenv.h: Likewise.
29651         * lib/settime.c: Likewise.
29652         * lib/sh-quote.c: Likewise.
29653         * lib/sh-quote.h: Likewise.
29654         * lib/sig2str.c: Likewise.
29655         * lib/sig2str.h: Likewise.
29656         * lib/signal.in.h: Likewise.
29657         * lib/signbitd.c: Likewise.
29658         * lib/signbitf.c: Likewise.
29659         * lib/signbitl.c: Likewise.
29660         * lib/sigprocmask.c: Likewise.
29661         * lib/sincosl.c: Likewise.
29662         * lib/sleep.c: Likewise.
29663         * lib/sprintf.c: Likewise.
29664         * lib/sqrtl.c: Likewise.
29665         * lib/stat-time.h: Likewise.
29666         * lib/stdio--.h: Likewise.
29667         * lib/stdio-safer.h: Likewise.
29668         * lib/stdlib--.h: Likewise.
29669         * lib/stdlib-safer.h: Likewise.
29670         * lib/stdlib.in.h: Likewise.
29671         * lib/stpcpy.c: Likewise.
29672         * lib/stpncpy.c: Likewise.
29673         * lib/strchrnul.c: Likewise.
29674         * lib/strcspn.c: Likewise.
29675         * lib/strerror.c: Likewise.
29676         * lib/strftime.c: Likewise.
29677         * lib/strftime.h: Likewise.
29678         * lib/striconveh.c: Likewise.
29679         * lib/striconveh.h: Likewise.
29680         * lib/striconveha.c: Likewise.
29681         * lib/striconveha.h: Likewise.
29682         * lib/stripslash.c: Likewise.
29683         * lib/strnlen1.c: Likewise.
29684         * lib/strnlen1.h: Likewise.
29685         * lib/strtod.c: Likewise.
29686         * lib/strtoimax.c: Likewise.
29687         * lib/strtok_r.c: Likewise.
29688         * lib/strtol.c: Likewise.
29689         * lib/strtoll.c: Likewise.
29690         * lib/strtoul.c: Likewise.
29691         * lib/strtoull.c: Likewise.
29692         * lib/sysexits.in.h: Likewise.
29693         * lib/tempname.c: Likewise.
29694         * lib/tempname.h: Likewise.
29695         * lib/timespec.h: Likewise.
29696         * lib/tls.c: Likewise.
29697         * lib/tls.h: Likewise.
29698         * lib/tmpdir.c: Likewise.
29699         * lib/tmpdir.h: Likewise.
29700         * lib/tmpfile-safer.c: Likewise.
29701         * lib/tmpfile.c: Likewise.
29702         * lib/trigl.c: Likewise.
29703         * lib/trigl.h: Likewise.
29704         * lib/trim.c: Likewise.
29705         * lib/trim.h: Likewise.
29706         * lib/trunc.c: Likewise.
29707         * lib/truncf.c: Likewise.
29708         * lib/truncl.c: Likewise.
29709         * lib/tsearch.c: Likewise.
29710         * lib/unicodeio.c: Likewise.
29711         * lib/unicodeio.h: Likewise.
29712         * lib/unistd--.h: Likewise.
29713         * lib/unistd-safer.h: Likewise.
29714         * lib/unistdio/ulc-fprintf.c: Likewise.
29715         * lib/unistdio/ulc-vfprintf.c: Likewise.
29716         * lib/unlinkdir.c: Likewise.
29717         * lib/unlinkdir.h: Likewise.
29718         * lib/unlocked-io.h: Likewise.
29719         * lib/unsetenv.c: Likewise.
29720         * lib/userspec.c: Likewise.
29721         * lib/utime.c: Likewise.
29722         * lib/utimecmp.c: Likewise.
29723         * lib/utimecmp.h: Likewise.
29724         * lib/utimens.c: Likewise.
29725         * lib/verify.h: Likewise.
29726         * lib/verror.c: Likewise.
29727         * lib/verror.h: Likewise.
29728         * lib/version-etc-fsf.c: Likewise.
29729         * lib/version-etc.c: Likewise.
29730         * lib/version-etc.h: Likewise.
29731         * lib/vfprintf.c: Likewise.
29732         * lib/vprintf.c: Likewise.
29733         * lib/vsprintf.c: Likewise.
29734         * lib/w32spawn.h: Likewise.
29735         * lib/wait-process.c: Likewise.
29736         * lib/wait-process.h: Likewise.
29737         * lib/wcwidth.c: Likewise.
29738         * lib/write-any-file.c: Likewise.
29739         * lib/xalloc-die.c: Likewise.
29740         * lib/xalloc.h: Likewise.
29741         * lib/xasprintf.c: Likewise.
29742         * lib/xgetcwd.c: Likewise.
29743         * lib/xgetcwd.h: Likewise.
29744         * lib/xgetdomainname.c: Likewise.
29745         * lib/xgetdomainname.h: Likewise.
29746         * lib/xgethostname.c: Likewise.
29747         * lib/xmalloc.c: Likewise.
29748         * lib/xmalloca.c: Likewise.
29749         * lib/xmalloca.h: Likewise.
29750         * lib/xmemcoll.c: Likewise.
29751         * lib/xnanosleep.c: Likewise.
29752         * lib/xreadlink.c: Likewise.
29753         * lib/xreadlink.h: Likewise.
29754         * lib/xsetenv.c: Likewise.
29755         * lib/xsetenv.h: Likewise.
29756         * lib/xstriconv.c: Likewise.
29757         * lib/xstriconv.h: Likewise.
29758         * lib/xstrndup.c: Likewise.
29759         * lib/xstrndup.h: Likewise.
29760         * lib/xstrtod.c: Likewise.
29761         * lib/xstrtod.h: Likewise.
29762         * lib/xstrtol-error.c: Likewise.
29763         * lib/xstrtol.c: Likewise.
29764         * lib/xstrtol.h: Likewise.
29765         * lib/xtime.h: Likewise.
29766         * lib/xvasprintf.c: Likewise.
29767         * lib/xvasprintf.h: Likewise.
29768         * lib/yesno.c: Likewise.
29769         * lib/yesno.h: Likewise.
29770         * posix-modules: Likewise.
29771         * tests/test-alloca-opt.c: Likewise.
29772         * tests/test-arcfour.c: Likewise.
29773         * tests/test-arctwo.c: Likewise.
29774         * tests/test-argmatch.c: Likewise.
29775         * tests/test-argp-2.sh: Likewise.
29776         * tests/test-argp.c: Likewise.
29777         * tests/test-arpa_inet.c: Likewise.
29778         * tests/test-array_list.c: Likewise.
29779         * tests/test-array_oset.c: Likewise.
29780         * tests/test-atexit.c: Likewise.
29781         * tests/test-avltree_list.c: Likewise.
29782         * tests/test-avltree_oset.c: Likewise.
29783         * tests/test-avltreehash_list.c: Likewise.
29784         * tests/test-base64.c: Likewise.
29785         * tests/test-binary-io.c: Likewise.
29786         * tests/test-byteswap.c: Likewise.
29787         * tests/test-c-ctype.c: Likewise.
29788         * tests/test-c-strcasecmp.c: Likewise.
29789         * tests/test-c-strcasestr.c: Likewise.
29790         * tests/test-c-strncasecmp.c: Likewise.
29791         * tests/test-c-strstr.c: Likewise.
29792         * tests/test-canonicalize-lgpl.c: Likewise.
29793         * tests/test-canonicalize.c: Likewise.
29794         * tests/test-carray_list.c: Likewise.
29795         * tests/test-ceilf.c: Likewise.
29796         * tests/test-ceill.c: Likewise.
29797         * tests/test-count-one-bits.c: Likewise.
29798         * tests/test-crc.c: Likewise.
29799         * tests/test-dirname.c: Likewise.
29800         * tests/test-fbufmode.c: Likewise.
29801         * tests/test-fcntl.c: Likewise.
29802         * tests/test-fflush.c: Likewise.
29803         * tests/test-floorf.c: Likewise.
29804         * tests/test-floorl.c: Likewise.
29805         * tests/test-fopen.c: Likewise.
29806         * tests/test-fprintf-posix.c: Likewise.
29807         * tests/test-fprintf-posix.h: Likewise.
29808         * tests/test-fpurge.c: Likewise.
29809         * tests/test-freadable.c: Likewise.
29810         * tests/test-freadahead.c: Likewise.
29811         * tests/test-freading.c: Likewise.
29812         * tests/test-freopen.c: Likewise.
29813         * tests/test-frexp.c: Likewise.
29814         * tests/test-frexpl.c: Likewise.
29815         * tests/test-fseek.c: Likewise.
29816         * tests/test-fseeko.c: Likewise.
29817         * tests/test-fseterr.c: Likewise.
29818         * tests/test-fstrcmp.c: Likewise.
29819         * tests/test-ftell.c: Likewise.
29820         * tests/test-ftello.c: Likewise.
29821         * tests/test-fwritable.c: Likewise.
29822         * tests/test-fwriting.c: Likewise.
29823         * tests/test-getaddrinfo.c: Likewise.
29824         * tests/test-getpass.c: Likewise.
29825         * tests/test-gettimeofday.c: Likewise.
29826         * tests/test-hmac-md5.c: Likewise.
29827         * tests/test-hmac-sha1.c: Likewise.
29828         * tests/test-iconv.c: Likewise.
29829         * tests/test-iconvme.c: Likewise.
29830         * tests/test-inttypes.c: Likewise.
29831         * tests/test-isnan.c: Likewise.
29832         * tests/test-isnanf.c: Likewise.
29833         * tests/test-isnanl-nolibm.c: Likewise.
29834         * tests/test-isnanl.c: Likewise.
29835         * tests/test-isnanl.h: Likewise.
29836         * tests/test-ldexpl.c: Likewise.
29837         * tests/test-linked_list.c: Likewise.
29838         * tests/test-linkedhash_list.c: Likewise.
29839         * tests/test-locale.c: Likewise.
29840         * tests/test-localename.c: Likewise.
29841         * tests/test-lock.c: Likewise.
29842         * tests/test-lseek.c: Likewise.
29843         * tests/test-malloca.c: Likewise.
29844         * tests/test-math.c: Likewise.
29845         * tests/test-mbscasecmp.c: Likewise.
29846         * tests/test-mbscasestr1.c: Likewise.
29847         * tests/test-mbscasestr2.c: Likewise.
29848         * tests/test-mbscasestr3.c: Likewise.
29849         * tests/test-mbscasestr4.c: Likewise.
29850         * tests/test-mbschr.c: Likewise.
29851         * tests/test-mbscspn.c: Likewise.
29852         * tests/test-mbsncasecmp.c: Likewise.
29853         * tests/test-mbspbrk.c: Likewise.
29854         * tests/test-mbspcasecmp.c: Likewise.
29855         * tests/test-mbsrchr.c: Likewise.
29856         * tests/test-mbsspn.c: Likewise.
29857         * tests/test-mbsstr1.c: Likewise.
29858         * tests/test-mbsstr2.c: Likewise.
29859         * tests/test-mbsstr3.c: Likewise.
29860         * tests/test-md5.c: Likewise.
29861         * tests/test-memmem.c: Likewise.
29862         * tests/test-netinet_in.c: Likewise.
29863         * tests/test-open.c: Likewise.
29864         * tests/test-printf-frexp.c: Likewise.
29865         * tests/test-printf-frexpl.c: Likewise.
29866         * tests/test-printf-posix.c: Likewise.
29867         * tests/test-printf-posix.h: Likewise.
29868         * tests/test-rbtree_list.c: Likewise.
29869         * tests/test-rbtree_oset.c: Likewise.
29870         * tests/test-rbtreehash_list.c: Likewise.
29871         * tests/test-read-file.c: Likewise.
29872         * tests/test-rijndael.c: Likewise.
29873         * tests/test-search.c: Likewise.
29874         * tests/test-signbit.c: Likewise.
29875         * tests/test-sleep.c: Likewise.
29876         * tests/test-snprintf-posix.c: Likewise.
29877         * tests/test-snprintf-posix.h: Likewise.
29878         * tests/test-snprintf.c: Likewise.
29879         * tests/test-sprintf-posix.c: Likewise.
29880         * tests/test-sprintf-posix.h: Likewise.
29881         * tests/test-stat-time.c: Likewise.
29882         * tests/test-stdbool.c: Likewise.
29883         * tests/test-stdint.c: Likewise.
29884         * tests/test-stdio.c: Likewise.
29885         * tests/test-stdlib.c: Likewise.
29886         * tests/test-stpncpy.c: Likewise.
29887         * tests/test-strcasestr.c: Likewise.
29888         * tests/test-striconv.c: Likewise.
29889         * tests/test-striconveh.c: Likewise.
29890         * tests/test-striconveha.c: Likewise.
29891         * tests/test-string.c: Likewise.
29892         * tests/test-sys_select.c: Likewise.
29893         * tests/test-sys_socket.c: Likewise.
29894         * tests/test-sys_stat.c: Likewise.
29895         * tests/test-sys_time.c: Likewise.
29896         * tests/test-sysexits.c: Likewise.
29897         * tests/test-time.c: Likewise.
29898         * tests/test-tls.c: Likewise.
29899         * tests/test-trunc.c: Likewise.
29900         * tests/test-truncf.c: Likewise.
29901         * tests/test-truncl.c: Likewise.
29902         * tests/test-unistd.c: Likewise.
29903         * tests/test-vasnprintf-posix.c: Likewise.
29904         * tests/test-vasnprintf-posix2.c: Likewise.
29905         * tests/test-vasnprintf.c: Likewise.
29906         * tests/test-vasprintf-posix.c: Likewise.
29907         * tests/test-vasprintf.c: Likewise.
29908         * tests/test-verify.c: Likewise.
29909         * tests/test-vfprintf-posix.c: Likewise.
29910         * tests/test-vprintf-posix.c: Likewise.
29911         * tests/test-vsnprintf-posix.c: Likewise.
29912         * tests/test-vsnprintf.c: Likewise.
29913         * tests/test-vsprintf-posix.c: Likewise.
29914         * tests/test-wchar.c: Likewise.
29915         * tests/test-wctype.c: Likewise.
29916         * tests/test-wcwidth.c: Likewise.
29917         * tests/test-xstrtol.c: Likewise.
29918         * tests/test-xvasprintf.c: Likewise.
29919         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
29920         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
29921         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
29922         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
29923         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
29924         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
29925         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
29926         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
29927         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
29928         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
29929         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
29930         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
29931         * tests/uniname/test-uninames.c: Likewise.
29932         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
29933         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
29934         * tests/unistdio/test-u16-printf1.h: Likewise.
29935         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
29936         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
29937         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
29938         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
29939         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
29940         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
29941         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
29942         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
29943         * tests/unistdio/test-u32-printf1.h: Likewise.
29944         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
29945         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
29946         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
29947         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
29948         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
29949         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
29950         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
29951         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
29952         * tests/unistdio/test-u8-printf1.h: Likewise.
29953         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
29954         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
29955         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
29956         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
29957         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
29958         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
29959         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
29960         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
29961         * tests/unistdio/test-ulc-printf1.h: Likewise.
29962         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
29963         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
29964         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
29965         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
29966         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
29967         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
29968         * tests/uniwidth/test-u16-strwidth.c: Likewise.
29969         * tests/uniwidth/test-u16-width.c: Likewise.
29970         * tests/uniwidth/test-u32-strwidth.c: Likewise.
29971         * tests/uniwidth/test-u32-width.c: Likewise.
29972         * tests/uniwidth/test-u8-strwidth.c: Likewise.
29973         * tests/uniwidth/test-u8-width.c: Likewise.
29974         * tests/uniwidth/test-uc_width.c: Likewise.
29975         * config/srclist-update: Likewise.
29976         (fixlicense): Update to GPLv3+.
29977
29978         Change copyright notice from LGPLv2.1+ to LGPLv3+.
29979         * tests/test-tsearch.c: Change copyright notice.
29980
29981         Change copyright notice from LGPLv2.0+ to LGPLv3+.
29982         * lib/c-strcaseeq.h: Change copyright notice.
29983         * lib/streq.h: Likewise.
29984         * lib/uniconv.h: Likewise.
29985         * lib/uniconv/u-conv-from-enc.h: Likewise.
29986         * lib/uniconv/u-conv-to-enc.h: Likewise.
29987         * lib/uniconv/u-strconv-from-enc.h: Likewise.
29988         * lib/uniconv/u-strconv-to-enc.h: Likewise.
29989         * lib/uniconv/u16-conv-from-enc.c: Likewise.
29990         * lib/uniconv/u16-conv-to-enc.c: Likewise.
29991         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
29992         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
29993         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
29994         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
29995         * lib/uniconv/u32-conv-from-enc.c: Likewise.
29996         * lib/uniconv/u32-conv-to-enc.c: Likewise.
29997         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
29998         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
29999         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
30000         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
30001         * lib/uniconv/u8-conv-from-enc.c: Likewise.
30002         * lib/uniconv/u8-conv-to-enc.c: Likewise.
30003         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
30004         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
30005         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
30006         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
30007         * lib/uniname.h: Likewise.
30008         * lib/uniname/uniname.c: Likewise.
30009         * lib/unistdio.h: Likewise.
30010         * lib/unistdio/u-asnprintf.h: Likewise.
30011         * lib/unistdio/u-asprintf.h: Likewise.
30012         * lib/unistdio/u-printf-args.c: Likewise.
30013         * lib/unistdio/u-printf-args.h: Likewise.
30014         * lib/unistdio/u-printf-parse.h: Likewise.
30015         * lib/unistdio/u-snprintf.h: Likewise.
30016         * lib/unistdio/u-sprintf.h: Likewise.
30017         * lib/unistdio/u-vasprintf.h: Likewise.
30018         * lib/unistdio/u-vsnprintf.h: Likewise.
30019         * lib/unistdio/u-vsprintf.h: Likewise.
30020         * lib/unistdio/u16-asnprintf.c: Likewise.
30021         * lib/unistdio/u16-asprintf.c: Likewise.
30022         * lib/unistdio/u16-printf-parse.c: Likewise.
30023         * lib/unistdio/u16-snprintf.c: Likewise.
30024         * lib/unistdio/u16-sprintf.c: Likewise.
30025         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
30026         * lib/unistdio/u16-u16-asprintf.c: Likewise.
30027         * lib/unistdio/u16-u16-snprintf.c: Likewise.
30028         * lib/unistdio/u16-u16-sprintf.c: Likewise.
30029         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
30030         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
30031         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
30032         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
30033         * lib/unistdio/u16-vasnprintf.c: Likewise.
30034         * lib/unistdio/u16-vasprintf.c: Likewise.
30035         * lib/unistdio/u16-vsnprintf.c: Likewise.
30036         * lib/unistdio/u16-vsprintf.c: Likewise.
30037         * lib/unistdio/u32-asnprintf.c: Likewise.
30038         * lib/unistdio/u32-asprintf.c: Likewise.
30039         * lib/unistdio/u32-printf-parse.c: Likewise.
30040         * lib/unistdio/u32-snprintf.c: Likewise.
30041         * lib/unistdio/u32-sprintf.c: Likewise.
30042         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
30043         * lib/unistdio/u32-u32-asprintf.c: Likewise.
30044         * lib/unistdio/u32-u32-snprintf.c: Likewise.
30045         * lib/unistdio/u32-u32-sprintf.c: Likewise.
30046         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
30047         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
30048         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
30049         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
30050         * lib/unistdio/u32-vasnprintf.c: Likewise.
30051         * lib/unistdio/u32-vasprintf.c: Likewise.
30052         * lib/unistdio/u32-vsnprintf.c: Likewise.
30053         * lib/unistdio/u32-vsprintf.c: Likewise.
30054         * lib/unistdio/u8-asnprintf.c: Likewise.
30055         * lib/unistdio/u8-asprintf.c: Likewise.
30056         * lib/unistdio/u8-printf-parse.c: Likewise.
30057         * lib/unistdio/u8-snprintf.c: Likewise.
30058         * lib/unistdio/u8-sprintf.c: Likewise.
30059         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
30060         * lib/unistdio/u8-u8-asprintf.c: Likewise.
30061         * lib/unistdio/u8-u8-snprintf.c: Likewise.
30062         * lib/unistdio/u8-u8-sprintf.c: Likewise.
30063         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
30064         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
30065         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
30066         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
30067         * lib/unistdio/u8-vasnprintf.c: Likewise.
30068         * lib/unistdio/u8-vasprintf.c: Likewise.
30069         * lib/unistdio/u8-vsnprintf.c: Likewise.
30070         * lib/unistdio/u8-vsprintf.c: Likewise.
30071         * lib/unistdio/ulc-asnprintf.c: Likewise.
30072         * lib/unistdio/ulc-asprintf.c: Likewise.
30073         * lib/unistdio/ulc-printf-parse.c: Likewise.
30074         * lib/unistdio/ulc-snprintf.c: Likewise.
30075         * lib/unistdio/ulc-sprintf.c: Likewise.
30076         * lib/unistdio/ulc-vasnprintf.c: Likewise.
30077         * lib/unistdio/ulc-vasprintf.c: Likewise.
30078         * lib/unistdio/ulc-vsnprintf.c: Likewise.
30079         * lib/unistdio/ulc-vsprintf.c: Likewise.
30080         * lib/unistr.h: Likewise.
30081         * lib/unistr/u-cpy-alloc.h: Likewise.
30082         * lib/unistr/u-cpy.h: Likewise.
30083         * lib/unistr/u-endswith.h: Likewise.
30084         * lib/unistr/u-move.h: Likewise.
30085         * lib/unistr/u-set.h: Likewise.
30086         * lib/unistr/u-startswith.h: Likewise.
30087         * lib/unistr/u-stpcpy.h: Likewise.
30088         * lib/unistr/u-stpncpy.h: Likewise.
30089         * lib/unistr/u-strcat.h: Likewise.
30090         * lib/unistr/u-strcpy.h: Likewise.
30091         * lib/unistr/u-strcspn.h: Likewise.
30092         * lib/unistr/u-strdup.h: Likewise.
30093         * lib/unistr/u-strlen.h: Likewise.
30094         * lib/unistr/u-strncat.h: Likewise.
30095         * lib/unistr/u-strncpy.h: Likewise.
30096         * lib/unistr/u-strnlen.h: Likewise.
30097         * lib/unistr/u-strpbrk.h: Likewise.
30098         * lib/unistr/u-strspn.h: Likewise.
30099         * lib/unistr/u-strstr.h: Likewise.
30100         * lib/unistr/u-strtok.h: Likewise.
30101         * lib/unistr/u16-check.c: Likewise.
30102         * lib/unistr/u16-chr.c: Likewise.
30103         * lib/unistr/u16-cmp.c: Likewise.
30104         * lib/unistr/u16-cpy-alloc.c: Likewise.
30105         * lib/unistr/u16-cpy.c: Likewise.
30106         * lib/unistr/u16-endswith.c: Likewise.
30107         * lib/unistr/u16-mblen.c: Likewise.
30108         * lib/unistr/u16-mbsnlen.c: Likewise.
30109         * lib/unistr/u16-mbtouc-aux.c: Likewise.
30110         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
30111         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
30112         * lib/unistr/u16-mbtouc.c: Likewise.
30113         * lib/unistr/u16-mbtoucr.c: Likewise.
30114         * lib/unistr/u16-move.c: Likewise.
30115         * lib/unistr/u16-next.c: Likewise.
30116         * lib/unistr/u16-prev.c: Likewise.
30117         * lib/unistr/u16-set.c: Likewise.
30118         * lib/unistr/u16-startswith.c: Likewise.
30119         * lib/unistr/u16-stpcpy.c: Likewise.
30120         * lib/unistr/u16-stpncpy.c: Likewise.
30121         * lib/unistr/u16-strcat.c: Likewise.
30122         * lib/unistr/u16-strchr.c: Likewise.
30123         * lib/unistr/u16-strcmp.c: Likewise.
30124         * lib/unistr/u16-strcpy.c: Likewise.
30125         * lib/unistr/u16-strcspn.c: Likewise.
30126         * lib/unistr/u16-strdup.c: Likewise.
30127         * lib/unistr/u16-strlen.c: Likewise.
30128         * lib/unistr/u16-strmblen.c: Likewise.
30129         * lib/unistr/u16-strmbtouc.c: Likewise.
30130         * lib/unistr/u16-strncat.c: Likewise.
30131         * lib/unistr/u16-strncmp.c: Likewise.
30132         * lib/unistr/u16-strncpy.c: Likewise.
30133         * lib/unistr/u16-strnlen.c: Likewise.
30134         * lib/unistr/u16-strpbrk.c: Likewise.
30135         * lib/unistr/u16-strrchr.c: Likewise.
30136         * lib/unistr/u16-strspn.c: Likewise.
30137         * lib/unistr/u16-strstr.c: Likewise.
30138         * lib/unistr/u16-strtok.c: Likewise.
30139         * lib/unistr/u16-to-u32.c: Likewise.
30140         * lib/unistr/u16-to-u8.c: Likewise.
30141         * lib/unistr/u16-uctomb-aux.c: Likewise.
30142         * lib/unistr/u16-uctomb.c: Likewise.
30143         * lib/unistr/u32-check.c: Likewise.
30144         * lib/unistr/u32-chr.c: Likewise.
30145         * lib/unistr/u32-cmp.c: Likewise.
30146         * lib/unistr/u32-cpy-alloc.c: Likewise.
30147         * lib/unistr/u32-cpy.c: Likewise.
30148         * lib/unistr/u32-endswith.c: Likewise.
30149         * lib/unistr/u32-mblen.c: Likewise.
30150         * lib/unistr/u32-mbsnlen.c: Likewise.
30151         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
30152         * lib/unistr/u32-mbtouc.c: Likewise.
30153         * lib/unistr/u32-mbtoucr.c: Likewise.
30154         * lib/unistr/u32-move.c: Likewise.
30155         * lib/unistr/u32-next.c: Likewise.
30156         * lib/unistr/u32-prev.c: Likewise.
30157         * lib/unistr/u32-set.c: Likewise.
30158         * lib/unistr/u32-startswith.c: Likewise.
30159         * lib/unistr/u32-stpcpy.c: Likewise.
30160         * lib/unistr/u32-stpncpy.c: Likewise.
30161         * lib/unistr/u32-strcat.c: Likewise.
30162         * lib/unistr/u32-strchr.c: Likewise.
30163         * lib/unistr/u32-strcmp.c: Likewise.
30164         * lib/unistr/u32-strcpy.c: Likewise.
30165         * lib/unistr/u32-strcspn.c: Likewise.
30166         * lib/unistr/u32-strdup.c: Likewise.
30167         * lib/unistr/u32-strlen.c: Likewise.
30168         * lib/unistr/u32-strmblen.c: Likewise.
30169         * lib/unistr/u32-strmbtouc.c: Likewise.
30170         * lib/unistr/u32-strncat.c: Likewise.
30171         * lib/unistr/u32-strncmp.c: Likewise.
30172         * lib/unistr/u32-strncpy.c: Likewise.
30173         * lib/unistr/u32-strnlen.c: Likewise.
30174         * lib/unistr/u32-strpbrk.c: Likewise.
30175         * lib/unistr/u32-strrchr.c: Likewise.
30176         * lib/unistr/u32-strspn.c: Likewise.
30177         * lib/unistr/u32-strstr.c: Likewise.
30178         * lib/unistr/u32-strtok.c: Likewise.
30179         * lib/unistr/u32-to-u16.c: Likewise.
30180         * lib/unistr/u32-to-u8.c: Likewise.
30181         * lib/unistr/u32-uctomb.c: Likewise.
30182         * lib/unistr/u8-check.c: Likewise.
30183         * lib/unistr/u8-chr.c: Likewise.
30184         * lib/unistr/u8-cmp.c: Likewise.
30185         * lib/unistr/u8-cpy-alloc.c: Likewise.
30186         * lib/unistr/u8-cpy.c: Likewise.
30187         * lib/unistr/u8-endswith.c: Likewise.
30188         * lib/unistr/u8-mblen.c: Likewise.
30189         * lib/unistr/u8-mbsnlen.c: Likewise.
30190         * lib/unistr/u8-mbtouc-aux.c: Likewise.
30191         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
30192         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
30193         * lib/unistr/u8-mbtouc.c: Likewise.
30194         * lib/unistr/u8-mbtoucr.c: Likewise.
30195         * lib/unistr/u8-move.c: Likewise.
30196         * lib/unistr/u8-next.c: Likewise.
30197         * lib/unistr/u8-prev.c: Likewise.
30198         * lib/unistr/u8-set.c: Likewise.
30199         * lib/unistr/u8-startswith.c: Likewise.
30200         * lib/unistr/u8-stpcpy.c: Likewise.
30201         * lib/unistr/u8-stpncpy.c: Likewise.
30202         * lib/unistr/u8-strcat.c: Likewise.
30203         * lib/unistr/u8-strchr.c: Likewise.
30204         * lib/unistr/u8-strcmp.c: Likewise.
30205         * lib/unistr/u8-strcpy.c: Likewise.
30206         * lib/unistr/u8-strcspn.c: Likewise.
30207         * lib/unistr/u8-strdup.c: Likewise.
30208         * lib/unistr/u8-strlen.c: Likewise.
30209         * lib/unistr/u8-strmblen.c: Likewise.
30210         * lib/unistr/u8-strmbtouc.c: Likewise.
30211         * lib/unistr/u8-strncat.c: Likewise.
30212         * lib/unistr/u8-strncmp.c: Likewise.
30213         * lib/unistr/u8-strncpy.c: Likewise.
30214         * lib/unistr/u8-strnlen.c: Likewise.
30215         * lib/unistr/u8-strpbrk.c: Likewise.
30216         * lib/unistr/u8-strrchr.c: Likewise.
30217         * lib/unistr/u8-strspn.c: Likewise.
30218         * lib/unistr/u8-strstr.c: Likewise.
30219         * lib/unistr/u8-strtok.c: Likewise.
30220         * lib/unistr/u8-to-u16.c: Likewise.
30221         * lib/unistr/u8-to-u32.c: Likewise.
30222         * lib/unistr/u8-uctomb-aux.c: Likewise.
30223         * lib/unistr/u8-uctomb.c: Likewise.
30224         * lib/unitypes.h: Likewise.
30225         * lib/uniwidth.h: Likewise.
30226         * lib/uniwidth/cjk.h: Likewise.
30227         * lib/uniwidth/u16-strwidth.c: Likewise.
30228         * lib/uniwidth/u16-width.c: Likewise.
30229         * lib/uniwidth/u32-strwidth.c: Likewise.
30230         * lib/uniwidth/u32-width.c: Likewise.
30231         * lib/uniwidth/u8-strwidth.c: Likewise.
30232         * lib/uniwidth/u8-width.c: Likewise.
30233         * lib/uniwidth/width.c: Likewise.
30234
30235 2007-10-07  Bruno Haible  <bruno@clisp.org>
30236
30237         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
30238         The file is still under LGPL (see modules/inttypes).
30239
30240 2007-10-06  Bruno Haible  <bruno@clisp.org>
30241
30242         * modules/trunc (Dependencies): Add 'extensions'.
30243         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
30244         Reported by Ben Pfaff <blp@gnu.org>.
30245
30246 2007-10-06  Bruno Haible  <bruno@clisp.org>
30247
30248         * modules/freopen-tests: New file.
30249         * tests/test-freopen.c: New file.
30250
30251         * modules/fopen-tests: New file.
30252         * tests/test-fopen.c: New file.
30253
30254         * modules/fopen: New file.
30255         * lib/fopen.c: New file.
30256         * m4/fopen.m4: New file.
30257         * modules/freopen: New file.
30258         * lib/freopen.c: New file.
30259         * m4/freopen.m4: New file.
30260         * lib/stdio.in.h (fopen, freopen): New declarations.
30261         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
30262         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
30263         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
30264         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
30265         * doc/functions/fopen.texi: Mention the 'fopen' module.
30266         * doc/functions/freopen.texi: Mention the 'freopen' module.
30267
30268 2007-10-06  Bruno Haible  <bruno@clisp.org>
30269
30270         * modules/open-tests: New file.
30271         * tests/test-open.c: New file.
30272
30273         * modules/open: New file.
30274         * lib/open.c: New file.
30275         * m4/open.m4: New file.
30276         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
30277         lib/open.c does.
30278         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
30279         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
30280         macros.
30281         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
30282         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
30283         REPLACE_OPEN.
30284         * doc/functions/open.texi: Mention the 'open' module.
30285
30286 2007-10-04  Bruno Haible  <bruno@clisp.org>
30287
30288         * modules/ceill-tests: New file.
30289         * tests/test-ceill.c: New file.
30290
30291         * modules/ceill: New file.
30292         * lib/ceill.c: Replace entire file.
30293         * m4/ceill.m4: New file.
30294         * lib/math.in.h (ceill): Replace declaration.
30295         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
30296         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
30297         * doc/functions/ceill.texi: Mention the 'ceill' module.
30298         * modules/mathl (Files): Remove lib/ceill.c.
30299         (Depends-on): Add ceill.
30300
30301 2007-10-04  Bruno Haible  <bruno@clisp.org>
30302
30303         * modules/ceilf-tests: New file.
30304         * tests/test-ceilf.c: New file.
30305
30306         * modules/ceilf: New file.
30307         * lib/ceil.c: New file.
30308         * lib/ceilf.c: New file.
30309         * m4/ceilf.m4: New file.
30310         * lib/math.in.h (ceilf): New declaration.
30311         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
30312         HAVE_DECL_CEILF.
30313         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
30314         HAVE_DECL_CEILF.
30315         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
30316
30317 2007-10-04  Bruno Haible  <bruno@clisp.org>
30318
30319         * modules/floorl-tests: New file.
30320         * tests/test-floorl.c: New file.
30321
30322         * modules/floorl: New file.
30323         * lib/floorl.c: Replace entire file.
30324         * m4/floorl.m4: New file.
30325         * lib/math.in.h (floorl): Replace declaration.
30326         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
30327         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
30328         * doc/functions/floorl.texi: Mention the 'floorl' module.
30329         * modules/mathl (Files): Remove lib/floorl.c.
30330         (Depends-on): Add floorl.
30331
30332 2007-10-04  Bruno Haible  <bruno@clisp.org>
30333
30334         * modules/floorf-tests: New file.
30335         * tests/test-floorf.c: New file.
30336
30337         * modules/floorf: New file.
30338         * lib/floor.c: New file.
30339         * lib/floorf.c: New file.
30340         * m4/floorf.m4: New file.
30341         * lib/math.in.h (floorf): New declaration.
30342         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
30343         HAVE_DECL_FLOORF.
30344         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
30345         HAVE_DECL_FLOORF.
30346         * doc/functions/floorf.texi: Mention the 'floorf' module.
30347
30348 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
30349             Bruno Haible  <bruno@clisp.org>
30350
30351         Advertise for the Git server instead of the CVS server.
30352         * doc/gnulib-intro.texi (Steady Development): Mention the Git
30353         repository instead of the CVS one.
30354         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
30355         about all VCS systems generically.
30356         * doc/gnulib.texi (Introduction): Capitalize `Git'.
30357
30358 2007-10-04  Bruno Haible  <bruno@clisp.org>
30359
30360         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
30361         means.
30362         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
30363
30364 2007-10-04  Bruno Haible  <bruno@clisp.org>
30365
30366         * modules/truncl-tests: New file.
30367         * tests/test-truncl.c: New file.
30368
30369         * modules/truncl: New file.
30370         * lib/truncl.c: New file.
30371         * m4/truncl.m4: New file.
30372         * lib/math.in.h (truncl): New declaration.
30373         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
30374         HAVE_DECL_TRUNCL.
30375         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
30376         HAVE_DECL_TRUNCL.
30377         * doc/functions/truncl.texi: Mention the 'truncl' module.
30378
30379 2007-10-04  Bruno Haible  <bruno@clisp.org>
30380
30381         * modules/truncf-tests: New file.
30382         * tests/test-truncf.c: New file.
30383
30384         * modules/truncf: New file.
30385         * lib/trunc.c: Make paramerizable through USE_* macros.
30386         * lib/truncf.c: New file.
30387         * m4/truncf.m4: New file.
30388         * lib/math.in.h (truncf): New declaration.
30389         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
30390         HAVE_DECL_TRUNCF.
30391         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
30392         HAVE_DECL_TRUNCF.
30393         * doc/functions/truncf.texi: Mention the 'truncf' module.
30394
30395 2007-10-03  Bruno Haible  <bruno@clisp.org>
30396
30397         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
30398         augmentation also for tests modules.
30399         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
30400         * modules/atexit-tests (Makefile.am): Likewise.
30401         * modules/binary-io-tests (Makefile.am): Likewise.
30402         * modules/c-strcase-tests (Makefile.am): Likewise.
30403         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
30404         * modules/canonicalize-tests (Makefile.am): Likewise.
30405         * modules/closein-tests (Makefile.am): Likewise.
30406         * modules/fprintf-posix-tests (Makefile.am): Likewise.
30407         * modules/freadahead-tests (Makefile.am): Likewise.
30408         * modules/fseek-tests (Makefile.am): Likewise.
30409         * modules/fseeko-tests (Makefile.am): Likewise.
30410         * modules/ftell-tests (Makefile.am): Likewise.
30411         * modules/ftello-tests (Makefile.am): Likewise.
30412         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
30413         * modules/isnanl-tests (Makefile.am): Likewise.
30414         * modules/lseek-tests (Makefile.am): Likewise.
30415         * modules/mbscasecmp-tests (Makefile.am): Likewise.
30416         * modules/mbscasestr-tests (Makefile.am): Likewise.
30417         * modules/mbschr-tests (Makefile.am): Likewise.
30418         * modules/mbscspn-tests (Makefile.am): Likewise.
30419         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
30420         * modules/mbspbrk-tests (Makefile.am): Likewise.
30421         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
30422         * modules/mbsrchr-tests (Makefile.am): Likewise.
30423         * modules/mbsspn-tests (Makefile.am): Likewise.
30424         * modules/mbsstr-tests (Makefile.am): Likewise.
30425         * modules/printf-posix-tests (Makefile.am): Likewise.
30426         * modules/snprintf-posix-tests (Makefile.am): Likewise.
30427         * modules/sprintf-posix-tests (Makefile.am): Likewise.
30428         * modules/tsearch-tests (Makefile.am): Likewise.
30429         * modules/uniname/uniname-tests (Makefile.am): Likewise.
30430         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
30431         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
30432         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
30433         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
30434         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
30435         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
30436         * modules/vprintf-posix-tests (Makefile.am): Likewise.
30437         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
30438         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
30439         * modules/xstrtoimax-tests (Makefile.am): Likewise.
30440         * modules/xstrtol-tests (Makefile.am): Likewise.
30441         * modules/xstrtoumax-tests (Makefile.am): Likewise.
30442         * modules/yesno-tests (Makefile.am): Likewise.
30443
30444 2007-10-03  Bruno Haible  <bruno@clisp.org>
30445
30446         * modules/trunc-tests: New file.
30447         * tests/test-trunc.c: New file.
30448
30449         * modules/trunc: New file.
30450         * lib/trunc.c: New file.
30451         * m4/trunc.m4: New file.
30452         * lib/math.in.h (trunc): New declaration.
30453         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
30454         HAVE_DECL_TRUNC.
30455         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
30456         HAVE_DECL_TRUNC.
30457         * doc/functions/trunc.texi: Mention the 'trunc' module.
30458
30459 2007-10-03  Bruno Haible  <bruno@clisp.org>
30460
30461         * tests/test-fpending.c: New file, mostly copied
30462         from coreutils/lib/t-fpending.c.
30463         * modules/fpending-tests: New file.
30464
30465 2007-10-03  Bruno Haible  <bruno@clisp.org>
30466
30467         Port the stdio extensions to QNX (untested).
30468         * lib/fseterr.c (fseterr): Add support for QNX.
30469         * lib/fbufmode.c (fbufmode): Likewise.
30470         * lib/freadable.c (freadable): Likewise.
30471         * lib/fwritable.c (fwritable): Likewise.
30472         * lib/freading.c (freading): Likewise.
30473         * lib/fwriting.c (fwriting): Likewise.
30474         * lib/freadahead.c (freadahed): Likewise.
30475         * lib/fpurge.c (fpurge): Likewise.
30476         * lib/fseeko.c (rpl_fseeko): Likewise.
30477
30478 2007-10-03  Bruno Haible  <bruno@clisp.org>
30479             Jim Meyering  <jim@meyering.net>
30480             Eric Blake  <ebb9@byu.net>
30481
30482         * doc/relocatable.texi: Use @command instead of @program.
30483
30484 2007-10-02  Jim Meyering  <jim@meyering.net>
30485
30486         Perform one more "_.h" -> ".in.h" substitution.
30487         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
30488         instead of unistd_.h here, too.
30489
30490 2007-10-01  Bruno Haible  <bruno@clisp.org>
30491
30492         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
30493         Needed for the alloca-opt module.
30494
30495 2007-09-30  Bruno Haible  <bruno@clisp.org>
30496
30497         * lib/alloca.in.h: Renamed from lib/alloca_.h.
30498         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
30499         alloca_.h.
30500         * lib/argz.in.h: Renamed from lib/argz_.h.
30501         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
30502         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
30503         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
30504         byteswap_.h.
30505         * lib/dirent.in.h: Renamed from lib/dirent_.h.
30506         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
30507         dirent_.h.
30508         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
30509         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
30510         fcntl_.h.
30511         * lib/float.in.h: Renamed from lib/float_.h.
30512         * modules/float (Files, Makefile.am): Use float.in.h instead of
30513         float_.h.
30514         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
30515         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
30516         fnmatch_.h.
30517         * lib/getopt.in.h: Renamed from lib/getopt_.h.
30518         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
30519         getopt_.h.
30520         * lib/glob.in.h: Renamed from lib/glob_.h.
30521         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
30522         * lib/iconv.in.h: Renamed from lib/iconv_.h.
30523         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
30524         iconv_.h.
30525         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
30526         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
30527         inttypes_.h.
30528         * lib/locale.in.h: Renamed from lib/locale_.h.
30529         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
30530         locale_.h.
30531         * lib/math.in.h: Renamed from lib/math_.h.
30532         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
30533         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
30534         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
30535         of netinet_in_.h. Add dependency.
30536         * lib/poll.in.h: Renamed from lib/poll_.h.
30537         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
30538         * lib/search.in.h: Renamed from lib/search_.h.
30539         * modules/search (Files, Makefile.am): Use search.in.h instead of
30540         search_.h.
30541         * lib/signal.in.h: Renamed from lib/signal_.h.
30542         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
30543         _signal.h.
30544         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
30545         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
30546         stdbool_.h.
30547         * lib/stdint.in.h: Renamed from lib/stdint_.h.
30548         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
30549         stdint_.h.
30550         * lib/stdio.in.h: Renamed from lib/stdio_.h.
30551         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
30552         stdio_.h.
30553         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
30554         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
30555         stdlib_.h.
30556         * lib/string.in.h: Renamed from lib/string_.h.
30557         * modules/string (Files, Makefile.am): Use string.in.h instead of
30558         string_.h.
30559         * doc/gnulib-tool.texi (Initial import): Update.
30560         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
30561         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
30562         of sys_select_.h. Add dependency.
30563         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
30564         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
30565         of sys_socket_.h.
30566         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
30567         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
30568         sys_stat_.h.
30569         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
30570         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
30571         sys_time_.h.
30572         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
30573         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
30574         sysexits_.h.
30575         * lib/time.in.h: Renamed from lib/time_.h.
30576         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
30577         * lib/unistd.in.h: Renamed from lib/unistd_.h.
30578         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
30579         unistd_.h.
30580         * lib/wchar.in.h: Renamed from lib/wchar_.h.
30581         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
30582         wchar_.h.
30583         * lib/wctype.in.h: Renamed from lib/wctype_.h.
30584         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
30585         wctype_.h.
30586         * build-aux/bootstrap (slurp): Update.
30587         * lib/.cppi-disable: Update.
30588
30589 2007-09-30  Bruno Haible  <bruno@clisp.org>
30590
30591         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
30592         Needed on BeOS.
30593
30594 2007-09-30  Bruno Haible  <bruno@clisp.org>
30595
30596         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
30597
30598 2007-09-29  Bruno Haible  <bruno@clisp.org>
30599
30600         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
30601
30602 2007-09-29  Bruno Haible  <bruno@clisp.org>
30603
30604         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
30605         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
30606         * build-aux/install-reloc: Compile also areadlink.c.
30607         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
30608
30609 2007-09-29  Bruno Haible  <bruno@clisp.org>
30610
30611         * gnulib-tool (func_emit_initmacro_done): Indentation.
30612
30613 2007-09-29  Bruno Haible  <bruno@clisp.org>
30614
30615         * README: Add CVS checkout update instructions.
30616         Info from Bob Proulx <bob@proulx.com>.
30617
30618 2007-09-28  Eric Blake  <ebb9@byu.net>
30619
30620         Provide move-if-change.
30621         * build-aux/move-if-change: New file, based on best practice
30622         rather than any canonical upstream location.
30623
30624 2007-09-28  Jim Meyering  <jim@meyering.net>
30625
30626         Fix canonicalize loop-detection corner case.
30627         Do not attempt to stat the symlink values stored via seen_triple.
30628         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
30629         on linux-2.6.18, (but not 2.6.22).
30630         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
30631         triple_compare.  The former compares dev,ino,filename, while the latter
30632         would actually stat dirname(filename) when dev and ino were equal.
30633         * lib/hash-triple.c: Install <string.h>.
30634         (STREQ): Define.
30635         (triple_compare_ino_str): New function.
30636         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
30637
30638 2007-09-28  Eric Blake  <ebb9@byu.net>
30639
30640         Enforce that AC_REPLACE_FUNCS files exist.
30641         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
30642         override check for typos.
30643
30644         Fix test-closein on Solaris 10.
30645         * tests/test-closein.c (main): Don't assume stdin can be inherited
30646         closed on all systems.
30647         * tests/test-closein.sh: Likewise.
30648         Reported by Piotr Tarnowski.
30649
30650 2007-09-28  Jim Meyering  <jim@meyering.net>
30651
30652         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
30653
30654 2007-09-27  Jim Meyering  <jim@meyering.net>
30655
30656         canonicalize: Avoid a false-positive cycle failure.
30657         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
30658         Sort.  Remove cycle-check.
30659         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
30660         not cycle-check.h.
30661         (seen_triple): New function.
30662         (canonicalize_filename_mode): Use it instead of cycle-check.
30663         * tests/test-canonicalize.c: Add a test for this bug.
30664         * tests/test-canonicalize.sh: Set up and run the test.
30665
30666         New module, file-set, from coreutils.
30667         * modules/file-set: Define it.
30668         * lib/file-set.c, lib/file-set.h: Implement.
30669
30670         New module, hash-triple, from coreutils.
30671         * modules/hash-triple: Define it.
30672         * lib/hash-triple.c, lib/hash-triple.h: Implement.
30673
30674 2007-09-25  Eric Blake  <ebb9@byu.net>
30675
30676         Fix strerror on Interix.
30677         * lib/string_.h (strerror): Declare replacement.
30678         * doc/functions/strerror.texi (strerror): Document the Interix
30679         shortcoming.
30680         * modules/string (Makefile.am): Support new hooks.
30681         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
30682         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
30683         gl_FUNC_STRERROR_SEPARATE.
30684         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
30685         * lib/strerror.c (rpl_strerror): Provide replacement.
30686         * modules/strerror (Depends-on): Add string.
30687         (configure.ac): Detect use of module.
30688         * tests/test-strerror.c: New file.
30689         * modules/strerror-tests: New test module.
30690         * modules/argp (Depends-on): Add strerror.
30691         * modules/error (Depends-on): Likewise.
30692         Reported by Martin Koeppe.
30693
30694 2007-09-24  Bruno Haible  <bruno@clisp.org>
30695
30696         * README: Update git instructions.
30697
30698 2007-09-24  Eric Blake  <ebb9@byu.net>
30699
30700         Revert fpending breakage from 2007-09-08.
30701         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
30702         __fpending.c.
30703
30704 2007-09-24  Jim Meyering  <jim@meyering.net>
30705
30706         filenamecat.c: Add a test.
30707         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
30708         showing how the function works when DIR is the empty string.
30709
30710 2007-09-21  Simon Josefsson  <simon@josefsson.org>
30711
30712         * tests/test-canonicalize.sh: Turn on executable bit.
30713
30714 2007-09-19  Eric Blake  <ebb9@byu.net>
30715
30716         * README: Update CVS instructions.
30717
30718 2007-09-18  Bruno Haible  <bruno@clisp.org>
30719
30720         * modules/areadlink: New file.
30721         * lib/areadlink.h (areadlink): New declaration.
30722         * lib/areadlink.c: New file, based on lib/xreadlink.c.
30723
30724 2007-09-17  Jim Meyering  <jim@meyering.net>
30725
30726         * lib/savewd.c (ESTALE) [!defined]: Define.
30727         Reported to be required on Interix by Martin Koeppe.
30728
30729 2007-09-17  Bruno Haible  <bruno@clisp.org>
30730
30731         * gnulib-tool (func_version): Use $version.
30732
30733 2007-09-16  Bruno Haible  <bruno@clisp.org>
30734
30735         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
30736         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
30737         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
30738         Reported by Greg Schafer <gschafer@zip.com.au>.
30739
30740 2007-09-15  Bruno Haible  <bruno@clisp.org>
30741
30742         * gnulib-tool (sed): Try a little harder to make bash understand the
30743         alias.
30744         Reported by Bruce Korb <bruce.korb@gmail.com>.
30745
30746 2007-09-13  Eric Blake  <ebb9@byu.net>
30747
30748         * ChangeLog: Remove conflict markers.
30749
30750 2007-09-13  Simon Josefsson  <simon@josefsson.org>
30751
30752         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
30753         Reported by Bruno Haible <bruno@clisp.org>.
30754
30755 2007-09-12  Bruno Haible  <bruno@clisp.org>
30756
30757         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
30758         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
30759         is not defined.
30760
30761 2007-09-12  Eric Blake  <ebb9@byu.net>
30762
30763         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
30764         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
30765         Autoconf definition.
30766         * modules/euidaccess (Depends-on): Add extensions, for
30767         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
30768         * modules/fnmatch (Depends-on): Likewise.
30769         * modules/getaddrinfo (Depends-on): Likewise.
30770         * modules/getdelim (Depends-on): Likewise.
30771         * modules/getline (Depends-on): Likewise.
30772         * modules/getsubopt (Depends-on): Likewise.
30773         * modules/gettext (Depends-on): Likewise.
30774         * modules/group-member (Depends-on): Likewise.
30775         * modules/mbchar (Depends-on): Likewise.
30776         * modules/memmem (Depends-on): Likewise.
30777         * modules/mempcpy (Depends-on): Likewise.
30778         * modules/memrchr (Depends-on): Likewise.
30779         * modules/pagealign_alloc (Depends-on): Likewise.
30780         * modules/readutmp (Depends-on): Likewise.
30781         * modules/stpcpy (Depends-on): Likewise.
30782         * modules/stpncpy (Depends-on): Likewise.
30783         * modules/strchrnul (Depends-on): Likewise.
30784         * modules/strndup (Depends-on): Likewise.
30785         * modules/strsep (Depends-on): Likewise.
30786         * modules/strverscmp (Depends-on): Likewise.
30787         * modules/vasprintf (Depends-on): Likewise.
30788         * modules/wcwidth (Depends-on): Likewise.
30789         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
30790         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
30791         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
30792         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
30793         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
30794         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
30795         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
30796         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
30797         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
30798         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
30799         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
30800         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
30801         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
30802         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
30803         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
30804         * m4/readutmp.m4 (gl_READUTMP): Likewise.
30805         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
30806         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
30807         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
30808         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
30809         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
30810         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
30811         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
30812         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
30813         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
30814         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
30815         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
30816         so that lock.m4 can be used in gettext without extensions module.
30817
30818 2007-09-11  Bruno Haible  <bruno@clisp.org>
30819
30820         * m4/isc-posix.m4: Remove file.
30821         Suggested by Eric Blake.
30822
30823 2007-09-11  Eric Blake  <ebb9@byu.net>
30824
30825         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
30826
30827 2007-09-10  Bruno Haible  <bruno@clisp.org>
30828
30829         * posix-modules: Fix typo in error message.
30830         Reported by Matt <mkraai@beckman.com>.
30831
30832 2007-09-09  Bruno Haible  <bruno@clisp.org>
30833
30834         * doc/functions/getdelim.texi: Update list of platforms lacking the
30835         function.
30836         * doc/functions/getline.texi: Likewise.
30837
30838 2007-09-09  Jim Meyering  <jim@meyering.net>
30839
30840         * lib/hash.c (hash_initialize): Detect calloc failure.
30841         Reported by Bruno Haible.
30842
30843 2007-09-09  Bruno Haible  <bruno@clisp.org>
30844
30845         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
30846         malloc or realloc fails.
30847
30848 2007-09-09  Bruno Haible  <bruno@clisp.org>
30849
30850         * modules/getcwd (Depends-on): Add malloc-posix.
30851         * modules/glob (Depends-on): Likewise.
30852         * modules/putenv (Depends-on): Likewise.
30853         * modules/strdup (Depends-on): Likewise.
30854         * modules/getdelim (Depends-on): Add realloc-posix.
30855         * modules/read-file (Depends-on): Likewise.
30856
30857 2007-09-09  Bruno Haible  <bruno@clisp.org>
30858
30859         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
30860         (gl_FUNC_MALLOC_POSIX): Require it.
30861         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
30862         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
30863         * modules/realloc (Files): Add m4/malloc.m4.
30864         * modules/calloc (Files): Likewise.
30865
30866 2007-09-09  Bruno Haible  <bruno@clisp.org>
30867
30868         * modules/malloc-posix: New file.
30869         * modules/malloc (Depends-on): Add malloc-posix.
30870         * lib/malloc.c: Include errno.h.
30871         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
30872         and a POSIX-compatible malloc into a single function. Set ENOMEM
30873         when returning NULL.
30874         * m4/malloc.m4: New file.
30875         * doc/functions/malloc.texi: Mention the malloc-posix module.
30876         * lib/stdlib_.h (malloc): New declaration.
30877         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
30878         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
30879         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
30880         and HAVE_MALLOC_POSIX.
30881
30882 2007-09-09  Bruno Haible  <bruno@clisp.org>
30883
30884         * modules/realloc-posix: New file.
30885         * modules/realloc (Depends-on): Add realloc-posix.
30886         * lib/realloc.c: Include errno.h.
30887         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
30888         and a POSIX-compatible realloc into a single function. Set ENOMEM
30889         when returning NULL.
30890         * m4/realloc.m4: New file.
30891         * doc/functions/realloc.texi: Mention the realloc-posix module.
30892         * lib/stdlib_.h (realloc): New declaration.
30893         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
30894         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
30895         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
30896         and HAVE_REALLOC_POSIX.
30897
30898 2007-09-09  Bruno Haible  <bruno@clisp.org>
30899
30900         * modules/calloc-posix: New file.
30901         * modules/calloc (Depends-on): Add calloc-posix.
30902         * lib/calloc.c: Include errno.h.
30903         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
30904         and a POSIX-compatible calloc into a single function. Set ENOMEM
30905         when returning NULL.
30906         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
30907         * doc/functions/calloc.texi: Mention the calloc-posix module.
30908         * lib/stdlib_.h (calloc): New declaration.
30909         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
30910         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
30911         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
30912         and HAVE_CALLOC_POSIX.
30913
30914 2007-09-09  Bruno Haible  <bruno@clisp.org>
30915
30916         Allow for modules to show an arbitrary notice.
30917         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
30918         * gnulib-tool: New option --extract-notice.
30919         (func_usage): Document it.
30920         (sed_extract_prog): Update.
30921         (func_get_notice): New function.
30922         (func_modules_notice): New function.
30923         (func_import, func_create_testdir): Invoke it.
30924         Suggested by Jim Meyering.
30925
30926 2007-09-09  Bruno Haible  <bruno@clisp.org>
30927
30928         * gnulib-tool: New options --verbose, --quiet.
30929         (func_usage): Document them.
30930         (verbose): New variable.
30931         (func_execute_command): New function.
30932         (func_import): Don't show the module list and the file list if
30933         $verbose < 0.
30934         (func_create_testdir): Likewise. Use func_execute_command.
30935         (func_create_megatestdir): Use func_execute_command.
30936
30937 2007-09-08  Bruno Haible  <bruno@clisp.org>
30938
30939         * gnulib-tool (func_import): Prefer rsync over wget when available,
30940         for fetching the PO files.
30941
30942 2007-09-08  Bruno Haible  <bruno@clisp.org>
30943
30944         * posix-modules: New file. Portions copied from gnulib-tool.
30945         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
30946
30947 2007-09-08  Jim Meyering  <jim@meyering.net>
30948
30949         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
30950         * lib/fpending.h: Rename from __fpending.h.
30951         * lib/fpending.c: Rename from __fpending.c.
30952         Include "fpending.h", not "__fpending.h".
30953         * lib/__fpending.h, lib/__fpending.c: Remove files.
30954         * modules/fpending (Files): Reflect new file names.
30955         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
30956
30957 2007-09-08  Bruno Haible  <bruno@clisp.org>
30958
30959         * m4/inttypes-h.m4: Remove stub file.
30960
30961 2007-09-07  Simon Josefsson  <simon@josefsson.org>
30962
30963         * doc/headers/stdint.texi: Discuss #include_next issue.
30964
30965 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
30966
30967         * build-aux/bootstrap: Remove obsolete comment about wget --help.
30968
30969 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30970
30971         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
30972         in variable name.
30973
30974 2007-09-03  Jim Meyering  <jim@meyering.net>
30975
30976         New module: git-version-gen.
30977         * modules/git-version-gen: New file.
30978
30979         Import changes from coreutils for bootstrap script.
30980
30981         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
30982
30983         bootstrap: uses rsync to download the .po files
30984         * build-aux/bootstrap (po_download_command_format): New global.
30985         (download_po_files): Use rsync.
30986         (update_po_files): Don't remove .po files after download,
30987         so future rsync runs can take advantage of the copies.
30988
30989         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
30990
30991         Solve the unnecessary-.po-file-regeneration problem once and for all.
30992         * build-aux/bootstrap (download_po_files): New function, renamed from
30993         get_translations.  Now, downloads, but doesn't update LINGUAS.
30994         (update_po_files): New function.
30995
30996         bootstrap: Ignore more.
30997         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
30998         uniwidth to e.g., lib/.gitignore.
30999         (slurp): Handle the sys_stat_.h -> sys mapping, too.
31000
31001         * build-aux/bootstrap: New setting: vc_ignore.
31002         (insert_sorted_if_absent): Create $file if absent.
31003         Adapt to new, possibly empty, list: $vc_ignore.
31004
31005         bootstrap: generate more ignorable names
31006         * build-aux/bootstrap (slurp): When generating ignorable names,
31007         also map .sin to .sed, .gperf to .c, and .y to .c.
31008
31009 2007-09-03  Jim Meyering  <jim@meyering.net>
31010
31011         * build-aux/git-version-gen: New file, from coreutils.  For details, see
31012         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
31013
31014 2007-09-02  Bruno Haible  <bruno@clisp.org>
31015
31016         Fix mis-recognition of 'mcs' on QNX 6.
31017         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
31018         output contains the string "Mono".
31019         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
31020         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
31021
31022 2007-09-01  Bruno Haible  <bruno@clisp.org>
31023
31024         Fix collision between uniwidth/* and linebreak modules.
31025         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
31026         u32_width): Remove declarations.
31027         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
31028         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
31029         streq3, streq2, streq1, streq0): Remove functions.
31030         (STREQ): Remove macro.
31031         (is_cjk_encoding): Remove function.
31032         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
31033         (uc_width, u8_width, u16_width, u32_width): Remove functions.
31034         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
31035         * NEWS: Document the change.
31036
31037 2007-09-01  Bruno Haible  <bruno@clisp.org>
31038
31039         * lib/streq.h: Add double-inclusion guard.
31040
31041 2007-09-01  Karl Berry  <karl@gnu.org>
31042
31043         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
31044
31045 2007-08-28  Jim Meyering  <jim@meyering.net>
31046
31047         Rename mreadlink_with_size to areadlink_with_size.
31048         * NEWS: Document the change.
31049         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
31050         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
31051         * lib/mreadlink.h: Rename this to...
31052         * lib/areadlink.h: ...this.
31053         * modules/mreadlink-with-size: Rename this to...
31054         * modules/areadlink-with-size: ...this.
31055         * lib/canonicalize.c: Reflect the renaming.
31056         * modules/canonicalize: Likewise.
31057
31058 2007-08-26  Bruno Haible  <bruno@clisp.org>
31059
31060         * gnulib-tool (func_import): When deciding which files to remove,
31061         consider also dangling symbolic links.
31062         Reported by Eric Blake.
31063
31064 2007-08-26  Bruno Haible  <bruno@clisp.org>
31065
31066         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
31067
31068 2007-08-23  Simon Josefsson  <simon@josefsson.org>
31069
31070         * lib/readline.c: Don't include getline.h, the prototype is now
31071         found in stdio.h.
31072
31073 2007-08-23  Jim Meyering  <jim@meyering.net>
31074
31075         Getdelim touchup.
31076         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
31077         around the funlockfile call, since funlockfile never sets errno.
31078         Don't set errno upon failed realloc.
31079
31080 2007-08-22  Eric Blake  <ebb9@byu.net>
31081
31082         Getline touchups.
31083         * lib/getdelim.c (getdelim): Revert regression that required *n to
31084         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
31085         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
31086         getdelim, rather than whether implementation is missing.
31087         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
31088         * lib/stdio_.h (getline): Also declare if replacement is
31089         required.
31090         * doc/functions/getdelim.texi: New file.
31091         * doc/functions/getline.texi: Likewise.
31092         * doc/gnulib.texi (Function Substitutes): Add new files.
31093         Reported by Bruno Haible.
31094
31095 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
31096
31097         * users.txt: Add Guile.
31098
31099 2007-08-22  Eric Blake  <ebb9@byu.net>
31100
31101         * tests/test-getdelim.c (main): Use remove, not unlink.
31102         * tests/test-getline.c (main): Likewise.
31103
31104         Move getline and getdelim into stdio.h, per POSIX 200x.
31105         * modules/getline (Files): Remove getline.h.
31106         (Depends-on): Add stdio.
31107         (configure.ac): Add module indicator.
31108         * modules/getdelim (Files): Remove getdelim.h.
31109         (Depends-on): Add stdio.
31110         (configure.ac): Add module indicator.
31111         * modules/stdio (Makefile.am): Work with new indicators.
31112         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
31113         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
31114         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
31115         * lib/getdelim.h: Delete.
31116         * lib/getline.h: Delete.
31117         * lib/stdio_.h (getdelim, getline): Declare.
31118         * modules/getdelim-tests: New module.
31119         * modules/getline-tests: Likewise.
31120         * tests/test-getdelim.c: New file.
31121         * tests/test-getline.c: Likewise.
31122         * NEWS: Document the change.
31123         * lib/getline.c: Update choice of header.
31124         * lib/csharpcomp.c: Likewise.
31125         * lib/getpass.c: Likewise.
31126         * lib/javacomp.c: Likewise.
31127         * lib/javaversion.c: Likewise.
31128         * lib/yesno.c: Likewise.
31129         * lib/getdelim.c: Likewise.
31130         (getdelim): Set errno on failure, and avoid memory leak.
31131
31132 2007-08-19  Bruno Haible  <bruno@clisp.org>
31133
31134         * modules/closein (Depends-on): Add freadahead.
31135         * lib/closein.c: Include freadahead.h.
31136         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
31137         is zero.
31138
31139 2007-08-19  Bruno Haible  <bruno@clisp.org>
31140
31141         * modules/freadahead-tests: New file.
31142         * tests/test-freadahead.sh: New file.
31143         * tests/test-freadahead.c: New file.
31144
31145         * modules/freadahead: New file.
31146         * lib/freadahead.h: New file.
31147         * lib/freadahead.c: New file.
31148         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
31149         fbufmode, fpurge, freadable, fwritable.
31150
31151 2007-08-19  Eric Blake  <ebb9@byu.net>
31152
31153         Test yesno in combination with closein.
31154         * lib/yesno.c (yesno): Document use of stdin.
31155         * modules/yesno-tests (Files): New module.
31156         * tests/test-yesno.c (main): New file.
31157         * tests/test-yesno.sh: Likewise.
31158
31159 2007-08-19  Bruno Haible  <bruno@clisp.org>
31160
31161         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
31162         * lib/fseeko.c (rpl_fseeko): Likewise.
31163         * lib/fseterr.c (fseterr): Likewise.
31164
31165 2007-08-19  Bruno Haible  <bruno@clisp.org>
31166
31167         * tests/test-lseek.c (main): Disable a test for BeOS.
31168         * doc/functions/lseek.texi: Document the BeOS bug.
31169
31170 2007-08-19  Bruno Haible  <bruno@clisp.org>
31171             Eric Blake  <ebb9@byu.net>
31172
31173         * lib/lseek.c: Include <sys/stat.h>.
31174         (rpl_lseek): Add workaround code also for Unix platforms.
31175         Needed for BeOS.
31176         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
31177         * doc/functions/lseek.texi: Document BeOS definiency.
31178
31179 2007-08-18  Bruno Haible  <bruno@clisp.org>
31180
31181         * modules/fstrcmp-tests: New file.
31182         * tests/test-fstrcmp.c: New file.
31183
31184 2007-08-18  Bruno Haible  <bruno@clisp.org>
31185
31186         * modules/fstrcmp: New file, from GNU gettext with modifications.
31187         * lib/fstrcmp.h: New file, from GNU gettext.
31188         * lib/fstrcmp.c: New file, from GNU gettext.
31189         * MODULES.html.sh (String handling): Add fstrcmp.
31190
31191 2007-08-18  Bruno Haible  <bruno@clisp.org>
31192
31193         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
31194         'bool'.
31195         (diag, compareseq): Remove const from the ctxt argument.
31196         (USE_HEURISTIC): Undefine at the end.
31197
31198 2007-08-18  Jim Meyering  <jim@meyering.net>
31199
31200         New file: lib/idcache.h
31201         * NEWS: Mention the addition.
31202         * modules/idcache (Files): Add lib/idcache.h
31203         * lib/idcache.c: Include "idcache.h".
31204         Don't include <sys/types.h>.
31205         Add a FIXME comment.
31206         Move file-scoped "static" declarations to the top.
31207         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
31208
31209 2007-08-17  Bruno Haible  <bruno@clisp.org>
31210         and Paul Eggert  <eggert@cs.ucla.edu>
31211
31212         * MODULES.html.sh: Add diffseq.
31213         * modules/diffseq: New file.
31214         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
31215         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
31216
31217 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
31218
31219         Import changes from coreutils for bootstrap script.
31220
31221         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
31222
31223         * build-aux/bootstrap (slurp): Work even in environments where
31224         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
31225         current code does not slurp files whose names start with ".", and
31226         this looks like it might be a troublesome area.
31227
31228         2007-07-11  Jim Meyering  <jim@meyering.net>
31229
31230         If there's a GPL vN copyright comment, require that N == 3.
31231
31232         2007-07-08  Jim Meyering  <jim@meyering.net>
31233
31234         Run the coreutils-specific code only if tests/Makefile.am.in exists.
31235         * build-aux/bootstrap (mam_template): Move definition out of loop.
31236
31237         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
31238
31239         * build-aux/bootstrap (symlink_to_dir): Rename function from
31240         symlink_to_gnulib.  Add a directory parameter.  Update all
31241         callers.
31242         (cp_mark_as_generated): Also check for -- and link to -- files in
31243         gl/.
31244
31245         2007-07-08  Jim Meyering  <jim@meyering.net>
31246
31247         Adapt to deeper hierarchy in gnulib.
31248         * build-aux/bootstrap (symlink_to_dir): If the destination
31249         directory doesn't exist, create it. This is required at least for
31250         "lib/uniwidth/cjk.h".
31251
31252         2007-05-15  Jim Meyering  <jim@meyering.net>
31253
31254         * build-aux/bootstrap: Now that generated Makefile.am files
31255         are no longer under version control, they must be created at
31256         bootstrap time.
31257
31258 2007-08-14  Ben Pfaff  <blp@gnu.org>
31259
31260         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
31261
31262 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
31263
31264         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
31265         given the changes below.
31266         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
31267         even on hosts that have padding bits beyond the supported 64.
31268
31269 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
31270
31271         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
31272         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
31273         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
31274         depends on it.
31275         (xstrtol_error): Remove.
31276         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
31277         but with a different signature.
31278         (ATTRIBUTE_NORETURN, __attribute__): New macros.
31279         * lib/xstrtol-error.c: Include exitfail.h.
31280         (xstrtol_fatal): New function, with a different signature from the
31281         old xstrtol_error, so that the caller need not worry about passing
31282         in an exit status, or about storage management of the option argument.
31283         (xstrtol_error): Now a static function.  Redo signature to
31284         implement xstrtol_fatal.  Output the correct number of hyphens in
31285         front of the option so that the caller need not worry about
31286         storage management.
31287         (N_): New macro.
31288         (_): Remove; not used now.
31289         * modules/xstrtol: Depend on getopt.
31290         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
31291         of old STRTOL_FATAL_ERROR macro.
31292         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
31293         of test program.
31294         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
31295         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
31296
31297 2007-08-08  Eric Blake  <ebb9@byu.net>
31298
31299         * lib/xstrtol-error.c: Add missing include.
31300
31301         Move xstrtol messages into gnulib domain, when --pobase is used.
31302         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
31303         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
31304         * modules/xstrtol (Files): Distribute new file.
31305         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
31306         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
31307         * tests/test-xstrtol.c: ...into new file.
31308         * tests/test-xstrtoul.c: Also test xstrtoul.
31309         * tests/test-xstrtoimax.c: Also test xstrtoimax.
31310         * tests/test-xstrtoumax.c: Also test xstrtoumax.
31311         * tests/test-xstrtol.sh: Drive the tests.
31312         * tests/test-xstrtoimax.sh: Likewise.
31313         * tests/test-xstrtoumax.sh: Likewise.
31314         * modules/xstrtol-tests: New module.
31315         * modules/xstrtoimax-tests: Likewise.
31316         * modules/xstrtoumax-tests: Likewise.
31317
31318 2007-08-08  Jim Meyering  <jim@meyering.net>
31319
31320         New function: mfile_name_concat.
31321         * lib/filenamecat.c (mfile_name_concat): New function, just like
31322         file_name_concat, but return NULL upon failure rather than exiting
31323         with a diagnostic.
31324         * lib/filenamecat.h: Declare it.
31325
31326 2007-08-07  Bruno Haible  <bruno@clisp.org>
31327
31328         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
31329         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
31330         warning from gcc.
31331         Reported by Eric Blake.
31332
31333 2007-08-07  Simon Josefsson  <simon@josefsson.org>
31334
31335         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
31336         * modules/crypto/arcfour (License): Likewise.
31337         * modules/crypto/des-tests (License): Likewise.
31338         * modules/crypto/gc-arctwo-tests (License): Likewise.
31339         * modules/crypto/gc-des-tests (License): Likewise.
31340         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
31341         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
31342         * modules/crypto/gc-md2-tests (License): Likewise.
31343         * modules/crypto/gc-md4-tests (License): Likewise.
31344         * modules/crypto/gc-md5-tests (License): Likewise.
31345         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
31346         * modules/crypto/gc-rijndael-tests (License): Likewise.
31347         * modules/crypto/gc-sha1-tests (License): Likewise.
31348         * modules/crypto/gc-tests (License): Likewise.
31349         * modules/crypto/hmac-md5 (License): Likewise.
31350         * modules/crypto/hmac-sha1 (License): Likewise.
31351         * modules/crypto/md2-tests (License): Likewise.
31352         * modules/crypto/md4-tests (License): Likewise.
31353         * modules/crypto/md5 (License): Likewise.
31354         * modules/crypto/rijndael (License): Likewise.
31355         * modules/crypto/sha1 (License): Likewise.
31356         * modules/memxor (License): Likewise.
31357
31358 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
31359         and Bruno Haible  <bruno@clisp.org>
31360
31361         * NEWS: Describe interface changes to human, xstrtol.
31362         * lib/human.h: Include <xstrtol.h>.
31363         (human_options): Return enum strtol_error, not int.  Remove
31364         bool arg; take int * instead.
31365         * lib/human.c: Don't include "gettext.h".
31366         (_): Remove; no longer used.
31367         Don't include <xstrtol.h>, since human.h does it.
31368         (human_options): Adjust to abovementioned interface changes.
31369         Do not report error to stderr; that's now the caller's
31370         responsibility.
31371         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
31372         interface change.
31373         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
31374         Str, Argument_type_string.  All uses changed.  Put " argument"
31375         in diagnostics to make them clearer.  Change wording of suffix
31376         message for clarity.
31377         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
31378         Argument_type_string.
31379         (STRTOL_FATAL_WARN): Remove; no longer used.
31380         * modules/human (Depends-on): Remove gettext-h.
31381
31382 2007-08-06  Simon Josefsson  <simon@josefsson.org>
31383
31384         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
31385
31386 2007-07-31  Bruno Haible  <bruno@clisp.org>
31387
31388         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
31389         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
31390         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
31391
31392 2007-07-31  Bruno Haible  <bruno@clisp.org>
31393
31394         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
31395         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
31396
31397 2007-07-30  Bruno Haible  <bruno@clisp.org>
31398
31399         * modules/base64 (License): Use the synonymous term "LGPLv2+".
31400         * modules/c-ctype (License): Likewise.
31401         * modules/c-strcase (License): Likewise.
31402         * modules/check-version (License): Likewise.
31403         * modules/iconv (License): Likewise.
31404         * modules/iconv_open (License): Likewise.
31405         * modules/read-file (License): Likewise.
31406         * modules/striconv (License): Likewise.
31407         * modules/strverscmp (License): Likewise.
31408         * modules/vasprintf (License): Likewise.
31409         * modules/crypto/des (License): Likewise.
31410         * modules/crypto/gc (License): Likewise.
31411         * modules/crypto/gc-arcfour (License): Likewise.
31412         * modules/crypto/gc-arctwo (License): Likewise.
31413         * modules/crypto/gc-des (License): Likewise.
31414         * modules/crypto/gc-hmac-md5 (License): Likewise.
31415         * modules/crypto/gc-hmac-sha1 (License): Likewise.
31416         * modules/crypto/gc-md2 (License): Likewise.
31417         * modules/crypto/gc-md4 (License): Likewise.
31418         * modules/crypto/gc-md5 (License): Likewise.
31419         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
31420         * modules/crypto/gc-random (License): Likewise.
31421         * modules/crypto/gc-rijndael (License): Likewise.
31422         * modules/crypto/gc-sha1 (License): Likewise.
31423         * modules/crypto/md2 (License): Likewise.
31424         * modules/crypto/md4 (License): Likewise.
31425
31426 2007-07-30  Jim Meyering  <jim@meyering.net>
31427
31428         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
31429         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
31430         it has valid stat data.  This bug would cause du not to count the
31431         sizes of inaccessible directories.
31432         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
31433         in <http://bugzilla.redhat.com/250077>.
31434
31435 2007-07-25  Peter O'Gorman  <peter@pogma.com>
31436             Bruno Haible  <bruno@clisp.org>
31437
31438         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
31439         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
31440         #include_next, gives a diagnostic about it, but reports no error in
31441         the exit code.
31442         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
31443
31444 2007-07-24  Ben Pfaff  <blp@gnu.org>
31445
31446         Improve name: "count-one-bits" is better than "popcount".
31447         * MODULES.html.sh: Update name.
31448         * lib/popcount.h: Renamed lib/count-one-bits.h.
31449         (popcount): Renamed count_one_bits.
31450         (popcountl): Renamed count_one_bits_l.
31451         (popcountll): Renamed count_one_bits_ll.
31452         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
31453         * modules/popcount: Renamed module/count-one-bits.
31454         * modules/popcount-tests: Renamed module/count-one-bits-tests.
31455         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
31456
31457 2007-07-23  Ben Pfaff  <blp@gnu.org>
31458
31459         * lib/popcount.h (popcount32): Reduce size of constants, to allow
31460         better code generation, and add U to large constants to avoid
31461         warnings, in non-GCC case.
31462         Suggested by Bruno Haible.
31463
31464 2007-07-23  Ben Pfaff  <blp@gnu.org>
31465
31466         * lib/popcount.h: Use verify_true instead of if...abort.
31467         * modules/popcount: Depend on verify module.
31468         Suggested by Jim Meyering.
31469
31470 2007-07-23  Bruno Haible  <bruno@clisp.org>
31471
31472         * gnulib-tool (func_import): Create a .cvsignore file also when the
31473         directory is not yet in CVS but the toplevel directory is. When
31474         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
31475         Reported by Karl Berry.
31476
31477 2007-07-22  Ben Pfaff  <blp@gnu.org>
31478
31479         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
31480         case.
31481         Suggested by Eric Blake.
31482
31483 2007-07-22  Ben Pfaff  <blp@gnu.org>
31484
31485         New module: popcount.
31486         * MODULES.html.sh: Add popcount.
31487         * modules/popcount: New file.
31488         * modules/popcount-tests: New file.
31489         * tests/test-popcount.c: New file.
31490         * lib/popcount.h: New file.
31491         * m4/popcount.m4: New file.
31492
31493 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
31494
31495         * build-aux/announce-gen: Update to GPLv3.
31496
31497         * build-aux/config.guess: Update from config.
31498
31499 2007-07-21  Bruno Haible  <bruno@clisp.org>
31500
31501         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
31502         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
31503
31504 2007-07-20  Jim Meyering  <jim@meyering.net>
31505
31506         * check-module: Diagnose a self-dependency.
31507
31508 2007-07-19  Bruno Haible  <bruno@clisp.org>
31509
31510         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
31511         empty.
31512         Reported by Eric Blake.
31513
31514 2007-07-18  Bruno Haible  <bruno@clisp.org>
31515
31516         * gnulib-tool: New options --po-base, --po-domain.
31517         (func_usage): Document them.
31518         (pobase, po_domain): New variables.
31519         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
31520         DEFAULT_TEXT_DOMAIN.
31521         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
31522         (func_import): Consider pobase and po_domain. Create a po/ directory.
31523         (func_create_testdir): Set pobase and po_domain to empty.
31524         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
31525         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
31526
31527 2007-07-18  Bruno Haible  <bruno@clisp.org>
31528
31529         * gnulib-tool (func_get_automake_snippet): Synthesize also an
31530         EXTRA_DIST augmentation for files in build-aux/.
31531
31532 2007-07-16  Bruno Haible  <bruno@clisp.org>
31533
31534         * modules/lseek (License): Use the synonymous term "LGPLv2+".
31535         * modules/getdelim (License): Likewise.
31536
31537 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31538
31539         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
31540         * modules/d-type (License): Likewise.
31541         * modules/extensions (License): Likewise.
31542         * modules/fnmatch (License): Likewise.
31543         * modules/fseeko (License): Likewise.
31544         * modules/getaddrinfo (License): Likewise.
31545         * modules/getline (License): Likewise.
31546         * modules/getlogin_r (License): Likewise.
31547         * modules/getpass (License): Likewise.
31548         * modules/gettimeofday (License): Likewise.
31549         * modules/glob (License): Likewise.
31550         * modules/inet_ntop (License): Likewise.
31551         * modules/malloc (License): Likewise.
31552         * modules/malloca (License): Likewise.
31553         * modules/memmem (License): Likewise.
31554         * modules/mempcpy (License): Likewise.
31555         * modules/memset (License): Likewise.
31556         * modules/minmax (License): Likewise.
31557         * modules/mktime (License): Likewise.
31558         * modules/netinet_in (License): Likewise.
31559         * modules/pathmax (License): Likewise.
31560         * modules/poll (License): Likewise.
31561         * modules/regex (License): Likewise.
31562         * modules/snprintf (License): Likewise.
31563         * modules/stdbool (License): Likewise.
31564         * modules/stdint (License): Likewise.
31565         * modules/stdio (License): Likewise.
31566         * modules/strcase (License): Likewise.
31567         * modules/strcasestr (License): Likewise.
31568         * modules/strdup (License): Likewise.
31569         * modules/string (License): Likewise.
31570         * modules/strndup (License): Likewise.
31571         * modules/strnlen (License): Likewise.
31572         * modules/strpbrk (License): Likewise.
31573         * modules/strptime (License): Likewise.
31574         * modules/strsep (License): Likewise.
31575         * modules/sys_select (License): Likewise.
31576         * modules/sys_socket (License): Likewise.
31577         * modules/sys_stat (License): Likewise.
31578         * modules/sys_time (License): Likewise.
31579         * modules/time (License): Likewise.
31580         * modules/time_r (License): Likewise.
31581         * modules/timegm (License): Likewise.
31582         * modules/unistd (License): Likewise.
31583         * modules/vsnprintf (License): Likewise.
31584         * modules/wctype (License): Likewise.
31585
31586 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31587
31588         * modules/argz (License): LGPLv2+.
31589
31590 2007-07-15  Karl Berry  <karl@gnu.org>
31591
31592         * doc/gnulib.texi: revise node structure per new fdl.texi.
31593
31594 2007-07-14  Bruno Haible  <bruno@clisp.org>
31595
31596         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
31597         the output file.
31598         * lib/uniname/uninames.h: Regenerated.
31599
31600 2007-07-14  Karl Berry  <karl@gnu.org>
31601
31602         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
31603         omitting sectioning and index commands.
31604
31605 2007-07-13  Bruno Haible  <bruno@clisp.org>
31606
31607         New gnulib-tool option --more-symlinks.
31608         * gnulib-tool (func_usage): Document --more-symlinks.
31609         (do_copyrights): New variable.
31610         Recognize option --more-symlinks.
31611         (func_import): Don't add a copyright notice transform to
31612         sed_transform_lib_file if do_copyrights is empty.
31613
31614 2007-07-13  Bruno Haible  <bruno@clisp.org>
31615
31616         * lib/vasnprintf.c (decimal_point_char): Define also if
31617         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
31618         && !NEED_PRINTF_DIRECTIVE_A.
31619         Reported by Clemens Koller <clemens.koller@anagramm.de> via
31620         Gary V. Vaughan <gary@gnu.org>.
31621
31622 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
31623
31624         * lib/inttypes_.h: Undo previous change, since it was fixed
31625         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
31626
31627 2007-07-13  Bruno Haible  <bruno@clisp.org>
31628
31629         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
31630         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
31631
31632 2007-07-13  Jim Meyering  <jim@meyering.net>
31633
31634         df: Don't fail for Tru64's "file-on-file mount".
31635         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
31636         so we fall through and use statfs instead.  Details here:
31637         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
31638         Reported by Albert Chin.
31639
31640 2007-07-13  Bruno Haible  <bruno@clisp.org>
31641
31642         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
31643         * modules/configmake (License): Likewise.
31644         * modules/gettext (License): Likewise.
31645         * modules/gettext-h (License): Likewise.
31646         * modules/include_next (License): Likewise.
31647         * modules/link-warning (License): Likewise.
31648         * modules/localcharset (License): Likewise.
31649         * modules/localename (License): Likewise.
31650         * modules/lock (License): Likewise.
31651         * modules/relocatable-lib-lgpl (License): Likewise.
31652         * modules/size_max (License): Likewise.
31653         * modules/vasnprintf (License): Likewise.
31654         * modules/wchar (License): Likewise.
31655         * modules/xsize (License): Likewise.
31656
31657 2007-07-13  Bruno Haible  <bruno@clisp.org>
31658
31659         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
31660         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
31661
31662 2007-07-12  Bruno Haible  <bruno@clisp.org>
31663
31664         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
31665         in the modules files.
31666
31667 2007-07-11  Karl Berry  <karl@gnu.org>
31668
31669         * MODULES.html.sh (func_module): use
31670          sed -e '\|^'"${includefile}"'$|d'
31671          instead of /.../d, to avoid errors on $includefile's containing /.
31672
31673 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
31674
31675         * gnulib-tool (func_import): Avoid duplication of --avoid
31676         statements
31677         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
31678         names to `_' in variable names.
31679
31680 2007-07-10  Eric Blake  <ebb9@byu.net>
31681
31682         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
31683         * NEWS: Document this change.
31684
31685 2007-07-08  Bruno Haible  <bruno@clisp.org>
31686
31687         Update to Unicode 5.0.
31688         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
31689         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
31690         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
31691         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
31692         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
31693         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
31694         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
31695         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
31696         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
31697         U+10A3F, U+1D242..U+1D244.
31698         (nonspacing_table_ind): Update.
31699         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
31700         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
31701
31702 2007-07-08  Bruno Haible  <bruno@clisp.org>
31703
31704         Update to Unicode 5.0.
31705         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
31706         code transform. Extend the name index field of unicode_name_to_code and
31707         unicode_code_to_name from 16 to 24 bits.
31708         * lib/uniname/uniname.c (unicode_character_name,
31709         unicode_name_character): Add the range 0x12xxx to the code transform.
31710         * lib/uniname/uninames.h: Regenerated.
31711         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
31712
31713 2007-07-07  Bruno Haible  <bruno@clisp.org>
31714
31715         * modules/wcwidth-tests: New file.
31716         * tests/test-wcwidth.c: New file.
31717
31718         Work around MacOS X wcwidth() bug.
31719         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
31720         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
31721         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
31722         original wcwidth in non-UTF-8 locales.
31723         * modules/wcwidth (Depends-on): Add localcharset, streq,
31724         uniwidth/width.
31725         * doc/functions/wcwidth.texi: Update.
31726
31727 2007-07-07  Bruno Haible  <bruno@clisp.org>
31728
31729         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
31730         (wcwidth): New declaration.
31731         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
31732         macros.
31733         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
31734         here. Prepare for creating <wchar.h> unconditionally.
31735         * modules/wchar (Depends-on): Add link-warning.
31736         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
31737         REPLACE_WCWIDTH, and GL_LINK_WARNING.
31738         * lib/wcwidth.h: Remove file.
31739         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
31740         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
31741         * modules/wcwidth (Files): Remove lib/wcwidth.h.
31742         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
31743         (Include): Replace wcwidth.h with <wchar.h>.
31744         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
31745         * lib/mbchar.h: Don't include wcwidth.h.
31746         * lib/mbswidth.c: Likewise.
31747         * NEWS: Mention the change.
31748
31749 2007-07-07  Bruno Haible  <bruno@clisp.org>
31750
31751         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
31752         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
31753         definition with an external declaration.
31754         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
31755         defined as a function. Remove AC_C_INLINE requirement.
31756         * modules/wcwidth (Files): Add lib/wcwidth.c.
31757         (Makefile.am): Remove redundant statement.
31758
31759 2007-07-07  Bruno Haible  <bruno@clisp.org>
31760
31761         * MODULES.html.sh (Unicode string functions): Add the new modules.
31762
31763         * tests/uniwidth/test-u32-strwidth.c: New file.
31764         * modules/uniwidth/u32-strwidth-tests: New file.
31765
31766         * lib/uniwidth/u32-strwidth.c: New file.
31767         * modules/uniwidth/u32-strwidth: New file.
31768
31769         * tests/uniwidth/test-u16-strwidth.c: New file.
31770         * modules/uniwidth/u16-strwidth-tests: New file.
31771
31772         * lib/uniwidth/u16-strwidth.c: New file.
31773         * modules/uniwidth/u16-strwidth: New file.
31774
31775         * tests/uniwidth/test-u8-strwidth.c: New file.
31776         * modules/uniwidth/u8-strwidth-tests: New file.
31777
31778         * lib/uniwidth/u8-strwidth.c: New file.
31779         * modules/uniwidth/u8-strwidth: New file.
31780
31781         * tests/uniwidth/test-u32-width.c: New file.
31782         * modules/uniwidth/u32-width-tests: New file.
31783
31784         * lib/uniwidth/u32-width.c: New file.
31785         * modules/uniwidth/u32-width: New file.
31786
31787         * tests/uniwidth/test-u16-width.c: New file.
31788         * modules/uniwidth/u16-width-tests: New file.
31789
31790         * lib/uniwidth/u16-width.c: New file.
31791         * modules/uniwidth/u16-width: New file.
31792
31793         * tests/uniwidth/test-u8-width.c: New file.
31794         * modules/uniwidth/u8-width-tests: New file.
31795
31796         * lib/uniwidth/u8-width.c: New file.
31797         * modules/uniwidth/u8-width: New file.
31798
31799         * tests/uniwidth/test-uc_width.c: New file.
31800         * modules/uniwidth/width-tests: New file.
31801
31802         * lib/uniwidth/width.c: New file, from GNU libiconv.
31803         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
31804         * modules/uniwidth/width: New file.
31805
31806         * lib/uniwidth.h: New file, from GNU libiconv.
31807         * modules/uniwidth/base: New file.
31808
31809 2007-07-07  Bruno Haible  <bruno@clisp.org>
31810
31811         * lib/uniname.h: New file, from GNU gettext.
31812         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
31813         * lib/uniname/uninames.h: New file, from GNU gettext.
31814         * lib/uniname/uniname.c: New file, from GNU gettext.
31815         * tests/uniname/test-uninames.sh: New file.
31816         * tests/uniname/test-uninames.c: New file, from GNU gettext.
31817         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
31818         * modules/uniname/base: New file.
31819         * modules/uniname/uniname: New file.
31820         * modules/uniname/uniname-tests: New file.
31821         * MODULES.html.sh (Unicode string functions): Add the new modules.
31822
31823 2007-07-06  Bruno Haible  <bruno@clisp.org>
31824
31825         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
31826
31827 2007-07-06  Bruno Haible  <bruno@clisp.org>
31828
31829         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
31830         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
31831         includes <cygwin/sys_time.h> which includes <sys/select.h> which
31832         include <sys/time.h>.
31833         Reported by Eric Blake.
31834
31835 2007-07-06  Eric Blake  <ebb9@byu.net>
31836
31837         Fix testing canonicalize on cygwin.
31838         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
31839         Revert patch from 2007-06-19.
31840         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
31841         canonicalize module is also in use.
31842         * tests/test-canonicalize.c: New file.
31843         * tests/test-canonicalize.sh: Likewise.
31844         * modules/canonicalize-tests: Likewise.
31845
31846 2007-07-06  Jim Meyering  <jim@meyering.net>
31847
31848         * lib/getugroups.c (getugroups): Detect getgrent failure.
31849         Adjust comment to reflect reality: this function may return -1.
31850
31851 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
31852
31853         * build-aux/bootstrap (TP_URL,get_translations): Update to use
31854         the new TP address.
31855         (usage): Fix typo
31856         (gnulib_mk): New variable.
31857
31858 2007-07-05  Jim Meyering  <jim@meyering.net>
31859
31860         Don't let endgrent clobber errno, no matter how improbable.
31861         * lib/getugroups.c (getugroups): Save and restore errno around
31862         endgrent call.
31863
31864         Close the group DB even when failing with 2^31 or more members.
31865         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
31866
31867 2007-07-04  Jim Meyering  <jim@meyering.net>
31868
31869         * lib/getugroups.h: New file.
31870         * lib/getugroups.c: Include "getugroups.h".
31871         Remove uses of "register" keyword.
31872         Move local variable, "cp", down into scope where used.
31873         Give "username" parameter the "const" attribute.
31874         * modules/getugroups (Files): Add lib/getugroups.h
31875
31876 2007-07-04  Karl Berry  <karl@gnu.org>
31877
31878         * MODULES.html.sh (func_all_modules): Complete rename of
31879         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
31880
31881 2007-07-02  Bruno Haible  <bruno@clisp.org>
31882
31883         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
31884         mode, when inttypes.h comes from gnulib.
31885         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
31886
31887 2007-07-02  Simon Josefsson  <simon@josefsson.org>
31888
31889         * NEWS: Mention lgpl module name change.
31890
31891         * modules/lgpl-2.1: Renamed from lgpl.
31892
31893         * NEWS: Mention gpl module name change.
31894
31895         * modules/gpl-3.0: New file, based on gpl-2.0.
31896
31897         * modules/gpl-2.0: Renamed from gpl.
31898
31899         * modules/gpl: Fix filename, doc/gpl.texi is now found at
31900         doc/gpl-2.0.texi.
31901
31902 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
31903
31904         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
31905         #define __STDC_LIMIT_MACROS temporarily while including
31906         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
31907         Problem reported by Joel E. Denny in
31908         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
31909
31910 2007-07-01  Bruno Haible  <bruno@clisp.org>
31911
31912         * lib/unistdio.h: New file.
31913         * lib/unistdio/u-asnprintf.h: New file.
31914         * lib/unistdio/u-asprintf.h: New file.
31915         * lib/unistdio/u-printf-args.c: New file.
31916         * lib/unistdio/u-printf-args.h: New file.
31917         * lib/unistdio/u-printf-parse.h: New file.
31918         * lib/unistdio/u-snprintf.h: New file.
31919         * lib/unistdio/u-sprintf.h: New file.
31920         * lib/unistdio/u-vasprintf.h: New file.
31921         * lib/unistdio/u-vsnprintf.h: New file.
31922         * lib/unistdio/u-vsprintf.h: New file.
31923         * lib/unistdio/ulc-asnprintf.c: New file.
31924         * lib/unistdio/ulc-asprintf.c: New file.
31925         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
31926         * lib/unistdio/ulc-printf-parse.c: New file.
31927         * lib/unistdio/ulc-snprintf.c: New file.
31928         * lib/unistdio/ulc-sprintf.c: New file.
31929         * lib/unistdio/ulc-vasnprintf.c: New file.
31930         * lib/unistdio/ulc-vasprintf.c: New file.
31931         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
31932         * lib/unistdio/ulc-vsnprintf.c: New file.
31933         * lib/unistdio/ulc-vsprintf.c: New file.
31934         * lib/unistdio/u8-asnprintf.c: New file.
31935         * lib/unistdio/u8-asprintf.c: New file.
31936         * lib/unistdio/u8-printf-parse.c: New file.
31937         * lib/unistdio/u8-snprintf.c: New file.
31938         * lib/unistdio/u8-sprintf.c: New file.
31939         * lib/unistdio/u8-vasnprintf.c: New file.
31940         * lib/unistdio/u8-vasprintf.c: New file.
31941         * lib/unistdio/u8-vsnprintf.c: New file.
31942         * lib/unistdio/u8-vsprintf.c: New file.
31943         * lib/unistdio/u8-u8-asnprintf.c: New file.
31944         * lib/unistdio/u8-u8-asprintf.c: New file.
31945         * lib/unistdio/u8-u8-snprintf.c: New file.
31946         * lib/unistdio/u8-u8-sprintf.c: New file.
31947         * lib/unistdio/u8-u8-vasnprintf.c: New file.
31948         * lib/unistdio/u8-u8-vasprintf.c: New file.
31949         * lib/unistdio/u8-u8-vsnprintf.c: New file.
31950         * lib/unistdio/u8-u8-vsprintf.c: New file.
31951         * lib/unistdio/u16-asnprintf.c: New file.
31952         * lib/unistdio/u16-asprintf.c: New file.
31953         * lib/unistdio/u16-printf-parse.c: New file.
31954         * lib/unistdio/u16-snprintf.c: New file.
31955         * lib/unistdio/u16-sprintf.c: New file.
31956         * lib/unistdio/u16-vasnprintf.c: New file.
31957         * lib/unistdio/u16-vasprintf.c: New file.
31958         * lib/unistdio/u16-vsnprintf.c: New file.
31959         * lib/unistdio/u16-vsprintf.c: New file.
31960         * lib/unistdio/u16-u16-asnprintf.c: New file.
31961         * lib/unistdio/u16-u16-asprintf.c: New file.
31962         * lib/unistdio/u16-u16-snprintf.c: New file.
31963         * lib/unistdio/u16-u16-sprintf.c: New file.
31964         * lib/unistdio/u16-u16-vasnprintf.c: New file.
31965         * lib/unistdio/u16-u16-vasprintf.c: New file.
31966         * lib/unistdio/u16-u16-vsnprintf.c: New file.
31967         * lib/unistdio/u16-u16-vsprintf.c: New file.
31968         * lib/unistdio/u32-asnprintf.c: New file.
31969         * lib/unistdio/u32-asprintf.c: New file.
31970         * lib/unistdio/u32-printf-parse.c: New file.
31971         * lib/unistdio/u32-snprintf.c: New file.
31972         * lib/unistdio/u32-sprintf.c: New file.
31973         * lib/unistdio/u32-vasnprintf.c: New file.
31974         * lib/unistdio/u32-vasprintf.c: New file.
31975         * lib/unistdio/u32-vsnprintf.c: New file.
31976         * lib/unistdio/u32-vsprintf.c: New file.
31977         * lib/unistdio/u32-u32-asnprintf.c: New file.
31978         * lib/unistdio/u32-u32-asprintf.c: New file.
31979         * lib/unistdio/u32-u32-snprintf.c: New file.
31980         * lib/unistdio/u32-u32-sprintf.c: New file.
31981         * lib/unistdio/u32-u32-vasnprintf.c: New file.
31982         * lib/unistdio/u32-u32-vasprintf.c: New file.
31983         * lib/unistdio/u32-u32-vsnprintf.c: New file.
31984         * lib/unistdio/u32-u32-vsprintf.c: New file.
31985         * tests/unistdio/test-ulc-asnprintf1.c: New file.
31986         * tests/unistdio/test-ulc-asnprintf1.h: New file.
31987         * tests/unistdio/test-ulc-printf1.h: New file.
31988         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
31989         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
31990         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
31991         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
31992         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
31993         * tests/unistdio/test-ulc-vasprintf1.c: New file.
31994         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
31995         * tests/unistdio/test-ulc-vsprintf1.c: New file.
31996         * tests/unistdio/test-u8-asnprintf1.c: New file.
31997         * tests/unistdio/test-u8-asnprintf1.h: New file.
31998         * tests/unistdio/test-u8-printf1.h: New file.
31999         * tests/unistdio/test-u8-vasnprintf1.c: New file.
32000         * tests/unistdio/test-u8-vasnprintf2.c: New file.
32001         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
32002         * tests/unistdio/test-u8-vasnprintf3.c: New file.
32003         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
32004         * tests/unistdio/test-u8-vasprintf1.c: New file.
32005         * tests/unistdio/test-u8-vsnprintf1.c: New file.
32006         * tests/unistdio/test-u8-vsprintf1.c: New file.
32007         * tests/unistdio/test-u16-asnprintf1.c: New file.
32008         * tests/unistdio/test-u16-asnprintf1.h: New file.
32009         * tests/unistdio/test-u16-printf1.h: New file.
32010         * tests/unistdio/test-u16-vasnprintf1.c: New file.
32011         * tests/unistdio/test-u16-vasnprintf2.c: New file.
32012         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
32013         * tests/unistdio/test-u16-vasnprintf3.c: New file.
32014         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
32015         * tests/unistdio/test-u16-vasprintf1.c: New file.
32016         * tests/unistdio/test-u16-vsnprintf1.c: New file.
32017         * tests/unistdio/test-u16-vsprintf1.c: New file.
32018         * tests/unistdio/test-u32-asnprintf1.c: New file.
32019         * tests/unistdio/test-u32-asnprintf1.h: New file.
32020         * tests/unistdio/test-u32-printf1.h: New file.
32021         * tests/unistdio/test-u32-vasnprintf1.c: New file.
32022         * tests/unistdio/test-u32-vasnprintf2.c: New file.
32023         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
32024         * tests/unistdio/test-u32-vasnprintf3.c: New file.
32025         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
32026         * tests/unistdio/test-u32-vasprintf1.c: New file.
32027         * tests/unistdio/test-u32-vsnprintf1.c: New file.
32028         * tests/unistdio/test-u32-vsprintf1.c: New file.
32029         * modules/unistdio/base: New file.
32030         * modules/unistdio/u-printf-args: New file.
32031         * modules/unistdio/ulc-asnprintf: New file.
32032         * modules/unistdio/ulc-asprintf: New file.
32033         * modules/unistdio/ulc-fprintf: New file.
32034         * modules/unistdio/ulc-printf-parse: New file.
32035         * modules/unistdio/ulc-snprintf: New file.
32036         * modules/unistdio/ulc-sprintf: New file.
32037         * modules/unistdio/ulc-vasnprintf: New file.
32038         * modules/unistdio/ulc-vasprintf: New file.
32039         * modules/unistdio/ulc-vfprintf: New file.
32040         * modules/unistdio/ulc-vsnprintf: New file.
32041         * modules/unistdio/ulc-vsprintf: New file.
32042         * modules/unistdio/u8-asnprintf: New file.
32043         * modules/unistdio/u8-asprintf: New file.
32044         * modules/unistdio/u8-printf-parse: New file.
32045         * modules/unistdio/u8-snprintf: New file.
32046         * modules/unistdio/u8-sprintf: New file.
32047         * modules/unistdio/u8-vasnprintf: New file.
32048         * modules/unistdio/u8-vasprintf: New file.
32049         * modules/unistdio/u8-vsnprintf: New file.
32050         * modules/unistdio/u8-vsprintf: New file.
32051         * modules/unistdio/u8-u8-asnprintf: New file.
32052         * modules/unistdio/u8-u8-asprintf: New file.
32053         * modules/unistdio/u8-u8-snprintf: New file.
32054         * modules/unistdio/u8-u8-sprintf: New file.
32055         * modules/unistdio/u8-u8-vasnprintf: New file.
32056         * modules/unistdio/u8-u8-vasprintf: New file.
32057         * modules/unistdio/u8-u8-vsnprintf: New file.
32058         * modules/unistdio/u8-u8-vsprintf: New file.
32059         * modules/unistdio/u16-asnprintf: New file.
32060         * modules/unistdio/u16-asprintf: New file.
32061         * modules/unistdio/u16-printf-parse: New file.
32062         * modules/unistdio/u16-snprintf: New file.
32063         * modules/unistdio/u16-sprintf: New file.
32064         * modules/unistdio/u16-vasnprintf: New file.
32065         * modules/unistdio/u16-vasprintf: New file.
32066         * modules/unistdio/u16-vsnprintf: New file.
32067         * modules/unistdio/u16-vsprintf: New file.
32068         * modules/unistdio/u16-u16-asnprintf: New file.
32069         * modules/unistdio/u16-u16-asprintf: New file.
32070         * modules/unistdio/u16-u16-snprintf: New file.
32071         * modules/unistdio/u16-u16-sprintf: New file.
32072         * modules/unistdio/u16-u16-vasnprintf: New file.
32073         * modules/unistdio/u16-u16-vasprintf: New file.
32074         * modules/unistdio/u16-u16-vsnprintf: New file.
32075         * modules/unistdio/u16-u16-vsprintf: New file.
32076         * modules/unistdio/u32-asnprintf: New file.
32077         * modules/unistdio/u32-asprintf: New file.
32078         * modules/unistdio/u32-printf-parse: New file.
32079         * modules/unistdio/u32-snprintf: New file.
32080         * modules/unistdio/u32-sprintf: New file.
32081         * modules/unistdio/u32-vasnprintf: New file.
32082         * modules/unistdio/u32-vasprintf: New file.
32083         * modules/unistdio/u32-vsnprintf: New file.
32084         * modules/unistdio/u32-vsprintf: New file.
32085         * modules/unistdio/u32-u32-asnprintf: New file.
32086         * modules/unistdio/u32-u32-asprintf: New file.
32087         * modules/unistdio/u32-u32-snprintf: New file.
32088         * modules/unistdio/u32-u32-sprintf: New file.
32089         * modules/unistdio/u32-u32-vasnprintf: New file.
32090         * modules/unistdio/u32-u32-vasprintf: New file.
32091         * modules/unistdio/u32-u32-vsnprintf: New file.
32092         * modules/unistdio/u32-u32-vsprintf: New file.
32093         * modules/unistdio/ulc-asnprintf-tests: New file.
32094         * modules/unistdio/ulc-vasnprintf-tests: New file.
32095         * modules/unistdio/ulc-vasprintf-tests: New file.
32096         * modules/unistdio/ulc-vsnprintf-tests: New file.
32097         * modules/unistdio/ulc-vsprintf-tests: New file.
32098         * modules/unistdio/u8-asnprintf-tests: New file.
32099         * modules/unistdio/u8-vasnprintf-tests: New file.
32100         * modules/unistdio/u8-vasprintf-tests: New file.
32101         * modules/unistdio/u8-vsnprintf-tests: New file.
32102         * modules/unistdio/u8-vsprintf-tests: New file.
32103         * modules/unistdio/u16-asnprintf-tests: New file.
32104         * modules/unistdio/u16-vasnprintf-tests: New file.
32105         * modules/unistdio/u16-vasprintf-tests: New file.
32106         * modules/unistdio/u16-vsnprintf-tests: New file.
32107         * modules/unistdio/u16-vsprintf-tests: New file.
32108         * modules/unistdio/u32-asnprintf-tests: New file.
32109         * modules/unistdio/u32-vasnprintf-tests: New file.
32110         * modules/unistdio/u32-vasprintf-tests: New file.
32111         * modules/unistdio/u32-vsnprintf-tests: New file.
32112         * modules/unistdio/u32-vsprintf-tests: New file.
32113         * MODULES.html.sh (Unicode string functions): Add the new modules.
32114
32115 2007-07-01  Bruno Haible  <bruno@clisp.org>
32116
32117         * lib/sprintf.c (sprintf): Limit the available length estimation,
32118         to avoid address wraparound.
32119         * lib/vsprintf.c (vsprintf): Likewise.
32120         * modules/sprintf-posix (Dependencies): Add stdint.
32121         * modules/vsprintf-posix (Dependencies): Likewise.
32122
32123 2007-07-01  Bruno Haible  <bruno@clisp.org>
32124
32125         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
32126         Windows PATH as well. Conservative double-quoting. Comments.
32127
32128 2007-07-01  Bruno Haible  <bruno@clisp.org>
32129             Eric Blake  <ebb9@byu.net>
32130             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32131
32132         * gnulib-tool (self_abspathname): Fix algorithm to cope with
32133         empty components in $PATH, denoting '.'.
32134
32135 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32136
32137         * gnulib-tool: Fix indentation.
32138         (func_create_megatestdir): Likewise.
32139         Report by Bruno Haible.
32140
32141 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32142
32143         Sync from Automake.
32144         * build-aux/gnupload: Fix shell portability issues with for loops.
32145         Report by Karl Berry.
32146
32147 2007-06-29  Simon Josefsson  <simon@josefsson.org>
32148
32149         * build-aux/maint.mk (POURL): Use translationproject.org.
32150
32151 2007-06-27  Simon Josefsson  <simon@josefsson.org>
32152             Bruno Haible  <bruno@clisp.org>
32153
32154         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
32155         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
32156         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
32157         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
32158         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
32159
32160 2007-06-27  Bruno Haible  <bruno@clisp.org>
32161
32162         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
32163         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
32164
32165 2007-06-26  Karl Berry  <karl@gnu.org>
32166
32167         * MODULES.html.sh: remove xreadlink-with-size.
32168
32169 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
32170
32171         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
32172         method that I hope also handles the double-include problem noted
32173         by Bruno Haible in
32174         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
32175
32176 2007-06-23  Bruno Haible  <bruno@clisp.org>
32177
32178         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
32179         Don't let the 'mostlyclean' target fail if the last subdirectory could
32180         not be removed.
32181         Reported by Karl Berry.
32182
32183 2007-06-23  Bruno Haible  <bruno@clisp.org>
32184
32185         * gnulib-tool (echo): Add a speedier workaround for ksh.
32186         * tests/test-echo.sh: Likewise.
32187
32188 2007-06-23  Bruno Haible  <bruno@clisp.org>
32189
32190         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
32191         * tests/test-echo.sh: Likewise.
32192
32193 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32194
32195         * gnulib-tool (IFS): Initialize early, so we don't set it to
32196         empty later.
32197         (self_abspathname): Rewrite algorithm to set it, reindent.
32198         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
32199         (func_create_megatestdir): Merge some sed scripts.
32200
32201 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
32202
32203         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
32204         exposed by Sun Studio 11 cc on Solaris 8.
32205
32206 2007-06-22  Bruno Haible  <bruno@clisp.org>
32207
32208         * gnulib-tool (echo): Ensure the echo primitive does not interpret
32209         backslashes.
32210         * tests/test-echo.sh: New file.
32211
32212 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32213
32214         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
32215         simplify `sed_replace_build_aux' scripts, they are portable but
32216         echoing them with `echo' is not.
32217         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
32218
32219 2007-06-21  Karl Berry  <karl@gnu.org>
32220
32221         * config/srclist.txt: guess we can't handle the licenses via
32222         srclist at the moment.
32223
32224 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
32225
32226         * MODULES.html.sh: Add include_next.
32227         * modules/include_next: New file.
32228
32229 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
32230
32231         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
32232         INCLUDE_NEXT.
32233         (gl_CHECK_NEXT_HEADERS): New macro.
32234         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
32235         the obsolescent gl_ABSOLUTE_HEADER.
32236         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
32237         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
32238         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
32239         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
32240         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
32241         * m4/math_h.m4 (gl_MATH_H): Likewise.
32242         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
32243         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
32244         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
32245         * m4/stdint.m4 (gl_STDINT_H): Likewise.
32246         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
32247         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
32248         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
32249         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
32250         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
32251         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
32252         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
32253         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
32254         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
32255         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
32256         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
32257         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
32258         * m4/inttypes.m4 (gl_INTTYPES_H): Define
32259         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
32260         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
32261         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
32262         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
32263         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
32264         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
32265         * lib/float_.h: Likewise.
32266         * lib/inttypes_.h: Likewise.
32267         * lib/math_.h: Likewise.
32268         * lib/search_.h: Likewise.
32269         * lib/signal_.h: Likewise.
32270         * lib/stdint_.h: Likewise.
32271         * lib/stdio_.h: Likewise.
32272         * lib/stdlib_.h: Likewise.
32273         * lib/string_.h: Likewise.
32274         * lib/sys_stat_.h: Likewise.
32275         * lib/sys_time_.h: Likewise.
32276         * lib/time_.h: Likewise.
32277         * lib/unistd_.h: Likewise.
32278         * lib/wchar_.h: Likewise.
32279         * lib/wctype_.h: Likewise.
32280         * lib/dirent_.h: Likewise.
32281         * lib/iconv_.h: Likewise.
32282         * lib/locale_.h: Likewise.
32283         * lib/netinet_in_.h: Likewise.
32284         * lib/sys_select_.h: Likewise.
32285         * lib/sys_socket_.h: Likewise.
32286         * lib/sysexits_.h: Likewise.
32287         * modules/fcntl (Depends-on): Depend on include_next, not
32288         absolute_header.
32289         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
32290         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
32291         * modules/fchdir: Likewise.
32292         * modules/float: Likewise.
32293         * modules/iconv_open: Likewise.
32294         * modules/inttypes: Likewise.
32295         * modules/locale: Likewise.
32296         * modules/math: Likewise.
32297         * modules/netinet_in: Likewise.
32298         * modules/search: Likewise.
32299         * modules/signal: Likewise.
32300         * modules/stdint: Likewise.
32301         * modules/stdio: Likewise.
32302         * modules/stdlib: Likewise.
32303         * modules/string: Likewise.
32304         * modules/sys_select: Likewise.
32305         * modules/sys_socket: Likewise.
32306         * modules/sys_stat: Likewise.
32307         * modules/sys_time: Likewise.
32308         * modules/sysexits: Likewise.
32309         * modules/time: Likewise.
32310         * modules/unistd: Likewise.
32311         * modules/wchar: Likewise.
32312         * modules/wctype: Likewise.
32313         * modules/sys_stat: Change maintainer to "all".
32314         * modules/unistd: Likewise.
32315
32316 2007-06-20  Karl Berry  <karl@gnu.org>
32317
32318         * config/srclist.txt: track www changes in license files.
32319
32320 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
32321
32322         * build-aux/bootstrap: Remove stray dot.
32323         Make sure build_aux settings are honored when linking
32324         gnulib_extra_files.
32325
32326 2007-06-19  Eric Blake  <ebb9@byu.net>
32327
32328         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
32329         Allow compilation on cygwin.
32330
32331 2007-06-19  Jim Meyering  <jim@meyering.net>
32332
32333         xreadlink-with-size: Remove module.  No longer used.
32334         Ex-callers now use xreadlink or mreadlink-with-size.
32335         * modules/xreadlink-with-size: Remove module.
32336         * lib/xreadlink-with-size.c: Remove file.
32337         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
32338         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
32339         just before the function definition *is* accurate.
32340
32341         Eliminate one way canonicalize_filename_mode could exit.
32342         * lib/canonicalize.c (canonicalize_filename_mode):
32343         Use mreadlink_with_size, not xreadlink_with_size.
32344
32345 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
32346
32347         Detect porting problems to FreeBSD/arm, which has time_t wider than
32348         long int.  Original problem reported for GNU diff by Xin Li in
32349         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
32350         * modules/getdate (Depends-on): Add intprops, verify.
32351         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
32352         is an integer type no wider than long int.
32353
32354 2007-06-18  Jim Meyering  <jim@meyering.net>
32355
32356         New module: mreadlink-with-size.
32357         * MODULES.html.sh: Add mreadlink-with-size.
32358         * modules/mreadlink-with-size: New module
32359         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
32360         not xreadlink-with-size.
32361         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
32362
32363 2007-06-16  Bruno Haible  <bruno@clisp.org>
32364
32365         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
32366         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
32367         Reported by Gary V. Vaughan <gary@gnu.org>.
32368
32369 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
32370
32371         Revamp lchown so that it lives in unistd.h where it belongs.
32372         * lib/lchown.h: Remove.
32373         * lib/dirchownmod.c: Don't include lib/lchown.h.
32374         * lib/fchownat.c: Likewise.
32375         * lib/openat.c: Likewise.
32376         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
32377         does not follow symlinks.
32378         (EOPNOTSUPP): Define if not defined.
32379         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
32380         is defined to 0.
32381         (lchown): New decl.
32382         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
32383         Do not check for lchown decl.
32384         Set REPLACE_LCHOWN.
32385         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
32386         REPLACE_LCHOWN.
32387         * modules/chown: Make it clear it follows symlinks.
32388         * modules/lchown: Make it clear it doesn't follow symlinks.
32389         (Files): Remove lib/lchown.h
32390         (Depends-on): Add unistd.
32391         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
32392         (Include): Include <unistd.h>, not "lchown.h".
32393         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
32394         REPLACE_LCHOWN.
32395
32396 2007-06-15  Jim Meyering  <jim@meyering.net>
32397
32398         Change license (GPL to LGPL) of fsusage and dependents.
32399         * modules/fsusage (License): Change to LGPL.
32400         * modules/full-read (License): Likewise.
32401         * modules/full-write (License): Likewise.
32402         * modules/safe-read (License): Likewise.
32403         * modules/safe-write (License): Likewise.
32404
32405 2007-06-14  Ben Pfaff  <blp@gnu.org>
32406
32407         Missing part of allocsa -> malloca transition.
32408         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
32409         gl_MALLOCA.
32410
32411 2007-06-12  Bruno Haible  <bruno@clisp.org>
32412
32413         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
32414         to ia64, x86_64, i386.
32415         Reported by Eric Blake.
32416
32417 2007-06-12  Bruno Haible  <bruno@clisp.org>
32418
32419         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
32420         cross-compiling to x86_64.
32421
32422 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
32423
32424         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
32425         glitch reported by Ralf Wildenhues in
32426         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
32427
32428         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
32429         Vin Shelton.
32430
32431 2007-06-11  Bruno Haible  <bruno@clisp.org>
32432
32433         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
32434         replacement string.
32435         Reported by Eric Blake.
32436
32437 2007-06-10  Bruno Haible  <bruno@clisp.org>
32438
32439         Prepare vasnprintf code for use with Unicode strings.
32440         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
32441         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
32442         TYPE_U32_STRING.
32443         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
32444         a_u32_string variants.
32445         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
32446         * lib/printf-args.c: Don't include config.h and the specification
32447         header if PRINTF_FETCHARGS is already defined.
32448         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
32449         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
32450         TYPE_U16_STRING, TYPE_U32_STRING.
32451         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
32452         u16_directive, u16_directives, u32_directive, u32_directives): New
32453         types.
32454         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
32455         New declarations.
32456         * lib/printf-parse.c: Don't include config.h and the specification
32457         header if PRINTF_PARSE is already defined. Eliminate the set of
32458         parameters for WIDE_CHAR_VERSION; the user of this file must provide
32459         them now. Include c-ctype.h.
32460         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
32461         directive and CHAR_T_ONLY_ASCII.
32462         * lib/vasnprintf.c: Don't include config.h and the specification header
32463         if VASNPRINTF is already defined.
32464         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
32465         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
32466         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
32467         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
32468         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
32469         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
32470         code accordingly.
32471         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
32472         pad_ourselves also in this case, with the 'c' and 's' directives, and
32473         with a different notion of "width".
32474         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
32475
32476 2007-06-10  Bruno Haible  <bruno@clisp.org>
32477
32478         * modules/unistr/u32-mbsnlen: New file.
32479         * lib/unistr/u32-mbsnlen.c: New file.
32480
32481         * modules/unistr/u16-mbsnlen: New file.
32482         * lib/unistr/u16-mbsnlen.c: New file.
32483
32484         * modules/unistr/u8-mbsnlen: New file.
32485         * lib/unistr/u8-mbsnlen.c: New file.
32486
32487         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
32488         declarations.
32489
32490 2007-06-10  Bruno Haible  <bruno@clisp.org>
32491
32492         * lib/string_.h (mbsnlen): New declaration.
32493         * lib/mbsnlen.c: New file.
32494         * m4/mbsnlen.m4: New file.
32495         * modules/mbsnlen: New file.
32496         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
32497         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
32498         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
32499
32500 2007-06-10  Bruno Haible  <bruno@clisp.org>
32501
32502         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
32503
32504 2007-06-10  Bruno Haible  <bruno@clisp.org>
32505
32506         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
32507         * lib/mbuiter.h: Likewise.
32508
32509 2007-06-10  Bruno Haible  <bruno@clisp.org>
32510
32511         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
32512         declaration.
32513
32514 2007-06-10  Karl Berry  <karl@gnu.org>
32515
32516         * config/srclist.txt: remove gettext entries, Bruno prefers
32517         to update individually.
32518
32519 2007-06-10  Bruno Haible  <bruno@clisp.org>
32520
32521         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
32522         'maxlen'. Ensure only length + width bytes are allocated, not
32523         length + 1 + width.
32524
32525 2007-06-09  Bruno Haible  <bruno@clisp.org>
32526
32527         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
32528         (CHAR_T): Remove macro.
32529         (VASNPRINTF): Update.
32530
32531 2007-06-09  Bruno Haible  <bruno@clisp.org>
32532
32533         * MODULES.html.sh (Unicode string functions): Add the new modules.
32534
32535         * modules/uniconv/u32-conv-to-enc: New file.
32536         * lib/uniconv/u32-conv-to-enc.c: New file.
32537         * modules/uniconv/u32-conv-to-enc-tests: New file.
32538         * tests/uniconv/test-u32-conv-to-enc.c: New file.
32539
32540         * modules/uniconv/u16-conv-to-enc: New file.
32541         * lib/uniconv/u16-conv-to-enc.c: New file.
32542         * lib/uniconv/u-conv-to-enc.h: New file.
32543         * modules/uniconv/u16-conv-to-enc-tests: New file.
32544         * tests/uniconv/test-u16-conv-to-enc.c: New file.
32545
32546         * modules/uniconv/u8-conv-to-enc: New file.
32547         * lib/uniconv/u8-conv-to-enc.c: New file.
32548         * modules/uniconv/u8-conv-to-enc-tests: New file.
32549         * tests/uniconv/test-u8-conv-to-enc.c: New file.
32550
32551         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
32552         u32_conv_to_encoding): New declarations.
32553
32554 2007-06-09  Bruno Haible  <bruno@clisp.org>
32555
32556         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
32557
32558 2007-06-09  Bruno Haible  <bruno@clisp.org>
32559
32560         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
32561         * modules/malloca: Renamed from modules/allocsa, updated.
32562         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
32563         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
32564         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
32565         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
32566         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
32567         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
32568         * modules/xmalloca: Renamed from modules/xallocsa, updated.
32569         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
32570         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
32571         * modules/c-strcasestr (Depends-on): Update.
32572         * lib/c-strcasestr.c: Update.
32573         * modules/c-strstr (Depends-on): Update.
32574         * lib/c-strstr.c: Update.
32575         * modules/canonicalize-lgpl (Depends-on): Update.
32576         * lib/canonicalize-lgpl.c: Update.
32577         * modules/clean-temp (Depends-on): Update.
32578         * lib/clean-temp.c: Update.
32579         * modules/csharpcomp (Depends-on): Update.
32580         * lib/csharpcomp.c: Update.
32581         * modules/csharpexec (Depends-on): Update.
32582         * lib/csharpexec.c: Update.
32583         * modules/javacomp (Depends-on): Update.
32584         * lib/javacomp.c: Update.
32585         * modules/javaexec (Depends-on): Update.
32586         * lib/javaexec.c: Update.
32587         * modules/mbscasestr (Depends-on): Update.
32588         * lib/mbscasestr.c: Update.
32589         * modules/mbsstr (Depends-on): Update.
32590         * lib/mbsstr.c: Update.
32591         * modules/setenv (Depends-on): Update.
32592         * lib/setenv.c: Update.
32593         * modules/strcasestr (Depends-on): Update.
32594         * lib/strcasestr.c: Update.
32595         * modules/striconveha (Depends-on): Update.
32596         * lib/striconveha.c: Update.
32597         * modules/relocatable-prog-wrapper (Files): Update.
32598         * lib/relocwrapper.c: Update.
32599         * build-aux/install-reloc: Update.
32600         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
32601
32602 2007-06-08  Bruno Haible  <bruno@clisp.org>
32603
32604         Port to uClibc.
32605         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
32606         * lib/fpurge.c (fpurge): Likewise.
32607         * lib/freading.c (freading): Likewise.
32608         * lib/fseeko.c (rpl_fseeko): Likewise.
32609         * lib/fseterr.c (fseterr): Likewise.
32610         * lib/fwriting.c (fwriting): Likewise.
32611         * tests/test-fflush.c (main): Avoid a failure on uClibc.
32612
32613 2007-06-08  Bruno Haible  <bruno@clisp.org>
32614
32615         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
32616         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
32617         * modules/gettext (Files): Add m4/intlmacosx.m4.
32618
32619 2007-06-07  Bruno Haible  <bruno@clisp.org>
32620
32621         * modules/localename-tests: New file.
32622         * tests/test-localename.c: New file.
32623
32624         New module 'localename'.
32625         * lib/localename.h: New file.
32626         * lib/localename.c: New file, from GNU gettext.
32627         * m4/localename.m4: New file.
32628         * modules/localename: New file.
32629
32630 2007-06-07  Bruno Haible  <bruno@clisp.org>
32631
32632         Work around the lack of <wchar.h> on some builds of uClibc.
32633         * doc/headers/wchar.texi: Update.
32634         * lib/wchar_.h: Include <wchar.h> only if it exists.
32635         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
32636         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
32637         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
32638         doesn't exist.
32639         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
32640         * modules/mbfile (Depends-on): Add wchar.
32641         * modules/mbiter (Depends-on): Likewise.
32642         * modules/mbuiter (Depends-on): Likewise.
32643         Reported by Simon Josefsson.
32644
32645 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
32646
32647         Work around problem reported by Steven M. Schweda in
32648         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
32649         Tru64 5.1B with the Compaq compiler environment installed declares
32650         an 'isblank' function but does not define it in the C library.
32651         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
32652         * lib/regex_internal.h (isblank): Likewise.
32653         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
32654         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
32655
32656 2007-06-05  Bruno Haible  <bruno@clisp.org>
32657
32658         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
32659         ia64.
32660         * modules/printf-safe: New file.
32661         * modules/fprintf-posix (Depends-on): Add printf-safe.
32662         * modules/printf-posix (Depends-on): Likewise.
32663         * modules/snprintf-posix (Depends-on): Likewise.
32664         * modules/sprintf-posix (Depends-on): Likewise.
32665         * modules/vasnprintf-posix (Depends-on): Likewise.
32666         * modules/vasprintf-posix (Depends-on): Likewise.
32667         * modules/vfprintf-posix (Depends-on): Likewise.
32668         * modules/vprintf-posix (Depends-on): Likewise.
32669         * modules/vsnprintf-posix (Depends-on): Likewise.
32670         * modules/vsprintf-posix (Depends-on): Likewise.
32671         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
32672         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
32673         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
32674         "no" on i386, x86_64, ia64.
32675         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
32676         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
32677         on i386, x86_64, ia64.
32678         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
32679         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
32680         on i386, x86_64, ia64.
32681         * tests/test-vasnprintf-posix.c: Include float.h.
32682         (LDBL80_WORDS): New macro.
32683         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
32684         on i386, x86_64, ia64.
32685         * tests/test-vasprintf-posix.c: Include float.h.
32686         (LDBL80_WORDS): New macro.
32687         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
32688         on i386, x86_64, ia64.
32689         * tests/test-snprintf-posix.c: Include float.h.
32690         * tests/test-sprintf-posix.c: Likewise.
32691         * tests/test-vsnprintf-posix.c: Likewise.
32692         * tests/test-vsprintf-posix.c: Likewise.
32693
32694 2007-06-05  Bruno Haible  <bruno@clisp.org>
32695
32696         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
32697         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
32698         non-IEEE numbers on i386, x86_64, ia64.
32699         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
32700         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
32701         * tests/test-isnanl.h: Include float.h.
32702         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
32703
32704 2007-06-05  Bruno Haible  <bruno@clisp.org>
32705
32706         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
32707         also the %a / %A. Handle the %a / %A code before this extra handling.
32708
32709 2007-06-05  Bruno Haible  <bruno@clisp.org>
32710
32711         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
32712         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
32713
32714 2007-06-05  Bruno Haible  <bruno@clisp.org>
32715
32716         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
32717         typo in variable name.
32718
32719 2007-06-05  Eric Blake  <ebb9@byu.net>
32720
32721         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
32722         Reported by Simon Josefsson.
32723
32724 2007-06-04  Bruno Haible  <bruno@clisp.org>
32725
32726         Avoid test failures on some PowerPC platforms.
32727         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
32728         Define differently for PowerPC.
32729         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
32730         Reported by Gary V. Vaughan <gary@gnu.org>.
32731
32732 2007-06-02  Bruno Haible  <bruno@clisp.org>
32733
32734         Fix test-stdint failure on FreeBSD/ia64.
32735         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
32736         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
32737         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
32738         * doc/headers/stdint.texi: Update.
32739
32740 2007-06-01  Bruno Haible  <bruno@clisp.org>
32741
32742         * tests/test-binary-io.c (main): Pass a third argument to open().
32743         Reported by Gary V. Vaughan <gary@gnu.org>.
32744
32745 2007-06-01  Bruno Haible  <bruno@clisp.org>
32746
32747         * doc/functions/frexpl.texi: Update for mingw.
32748
32749 2007-06-01  Bruno Haible  <bruno@clisp.org>
32750
32751         * tests/test-lseek.c (main): Disable test of errno for invalid third
32752         argument.
32753         * doc/functions/lseek.texi: Update.
32754         Reported by Gary V. Vaughan <gary@gnu.org>.
32755
32756 2007-05-28  Bruno Haible  <bruno@clisp.org>
32757
32758         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
32759
32760 2007-05-31  Eric Blake  <ebb9@byu.net>
32761
32762         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
32763         cross compiling.
32764
32765 2007-05-30  Eric Blake  <ebb9@byu.net>
32766         and Bruno Haible  <bruno@clisp.org>
32767
32768         Work around mingw test failures exposed by m4-1.4.9b.
32769         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
32770         * tests/test-unistd.c: Disable uid_t and git_t tests for the
32771         moment.
32772
32773 2007-05-30  Bruno Haible  <bruno@clisp.org>
32774
32775         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
32776         assuming that they are closed. Needed on HP-UX 11.
32777
32778 2007-05-29  Bruno Haible  <bruno@clisp.org>
32779
32780         Fix a problem with #include_next.
32781         * lib/dirent_.h: Split the double-inclusion guard.
32782         * lib/fcntl_.h: Likewise.
32783         * lib/float_.h: Likewise.
32784         * lib/iconv_.h: Likewise.
32785         * lib/inttypes_.h: Likewise.
32786         * lib/locale_.h: Likewise.
32787         * lib/math_.h: Likewise.
32788         * lib/netinet_in_.h: Likewise.
32789         * lib/search_.h: Likewise.
32790         * lib/signal_.h: Likewise.
32791         * lib/stdint_.h: Likewise.
32792         * lib/stdio_.h: Likewise.
32793         * lib/stdlib_.h: Likewise.
32794         * lib/string_.h: Likewise.
32795         * lib/sys_select_.h: Likewise.
32796         * lib/sys_socket_.h: Likewise.
32797         * lib/sys_stat_.h: Likewise.
32798         * lib/sys_time_.h: Likewise.
32799         * lib/sysexits_.h: Likewise.
32800         * lib/time_.h: Likewise.
32801         * lib/unistd_.h: Likewise.
32802         * lib/wchar_.h: Likewise.
32803         * lib/wctype_.h: Likewise.
32804
32805 2007-05-29  Bruno Haible  <bruno@clisp.org>
32806
32807         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
32808         for the moment.
32809
32810 2007-05-29  Bruno Haible  <bruno@clisp.org>
32811
32812         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
32813         invocation.
32814         Reported by Eric Blake.
32815
32816 2007-05-29  Bruno Haible  <bruno@clisp.org>
32817
32818         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
32819         compiling case.
32820
32821 2007-05-29  Eric Blake  <ebb9@byu.net>
32822             Bruno Haible  <bruno@clisp.org>
32823
32824         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
32825         cross compiles.
32826
32827 2007-05-28  Eric Blake  <ebb9@byu.net>
32828
32829         * modules/closein-tests (test_closein_LDADD): Support test on
32830         cygwin with libtool.
32831
32832 2007-05-28  Bruno Haible  <bruno@clisp.org>
32833
32834         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
32835         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
32836         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
32837         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
32838         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
32839         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
32840         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
32841         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
32842         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
32843
32844 2007-05-28  Eric Blake  <ebb9@byu.net>
32845
32846         Unconditionally include <config.h> in unit tests.
32847         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
32848         * tests/test-allocsa.c, tests/test-arcfour.c,
32849         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
32850         tests/test-array_list.c, tests/test-array_oset.c,
32851         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
32852         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
32853         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
32854         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
32855         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
32856         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
32857         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
32858         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
32859         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
32860         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
32861         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
32862         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
32863         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
32864         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
32865         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
32866         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
32867         test-md5.c, test-memmem.c, test-printf-posix.c,
32868         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
32869         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
32870         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
32871         test-strcasestr.c, test-striconv.c, test-striconveh.c,
32872         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
32873         test-vasnprintf-posix2.c, test-vasnprintf.c,
32874         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
32875         test-vfprintf-posix.c, test-vprintf-posix.c,
32876         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
32877         test-xvasprintf.c: Likewise.
32878
32879 2007-05-28  Bruno Haible  <bruno@clisp.org>
32880
32881         * gnulib-tool (func_import): Remember the --with-tests command-line
32882         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
32883         Reported by Eric Blake.
32884
32885 2007-05-28  Bruno Haible  <bruno@clisp.org>
32886
32887         * modules/ftell-tests: New file.
32888         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
32889         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
32890
32891         * lib/ftell.c: New file.
32892         * modules/ftell: New file.
32893         * m4/ftell.m4: New file.
32894         * doc/functions/ftell.texi: Update.
32895         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
32896         REPLACE_FTELL.
32897         * lib/stdio_.h (rpl_ftell): New declaration.
32898         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
32899         REPLACE_FTELL.
32900
32901 2007-05-28  Eric Blake  <ebb9@byu.net>
32902
32903         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
32904
32905 2007-05-28  Bruno Haible  <bruno@clisp.org>
32906
32907         * modules/fseek-tests: New file.
32908         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
32909         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
32910
32911         * lib/fseek.c: New file.
32912         * modules/fseek: New file.
32913         * m4/fseek.m4: New file.
32914         * doc/functions/fseek.texi: Update.
32915         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
32916         REPLACE_FSEEK.
32917         * lib/stdio_.h (rpl_fseek): New declaration.
32918         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
32919         REPLACE_FSEEK.
32920
32921 2007-05-28  Bruno Haible  <bruno@clisp.org>
32922
32923         * lib/stdio_.h (fflush): More comments.
32924
32925 2007-05-28  Bruno Haible  <bruno@clisp.org>
32926
32927         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
32928         runtime test.
32929
32930 2007-05-28  Eric Blake  <ebb9@byu.net>
32931
32932         Improve lseek module.
32933         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
32934         * lib/unistd_.h (lseek): Scale back link warning message.
32935         * tests/test-lseek.c: Beef up test.
32936         * tests/test-lseek.sh: Exercise more facets of lseek.
32937         Reported by Bruno Haible.
32938
32939 2007-05-28  Bruno Haible  <bruno@clisp.org>
32940
32941         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
32942         to define.
32943
32944 2007-05-27  Bruno Haible  <bruno@clisp.org>
32945
32946         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
32947
32948 2007-05-27  Bruno Haible  <bruno@clisp.org>
32949
32950         * modules/openmp: New file.
32951         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
32952         Noah Misch.
32953
32954 2007-05-26  Bruno Haible  <bruno@clisp.org>
32955
32956         * modules/chdir-long (Depends-on): Add fchdir.
32957         * modules/chdir-safer (Depends-on): Likewise.
32958         * modules/fts (Depends-on): Likewise.
32959         * modules/fts-lgpl (Depends-on): Likewise.
32960         * modules/openat (Depends-on): Likewise.
32961         * modules/savewd (Depends-on): Likewise.
32962
32963 2007-05-24  Eric Blake  <ebb9@byu.net>
32964
32965         Fix lseek on mingw.
32966         * modules/lseek: New module.
32967         * m4/lseek.m4: New file.
32968         * lib/lseek.c: New file.
32969         * modules/lseek-tests: New file.
32970         * tests/test-lseek.c: New file.
32971         * tests/test-lseek.sh: New file.
32972         * MODULES.html.sh: Document lseek module.
32973         * modules/fflush (Depends-on): Add lseek, fseeko.
32974         * modules/fseeko (Depends-on): Likewise.
32975         * modules/ftello (Depends-on): Likewise.
32976         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
32977         broken.
32978         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
32979         broken.
32980         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
32981         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
32982         * lib/ftello.c (rpl_ftello): Likewise.
32983         * tests/test-fseeko.c (main): Test this.
32984         * tests/test-fseeko.sh: Likewise.
32985         * tests/test-ftello.c (main): Likewise.
32986         * tests/test-ftello.sh: Likewise.
32987         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
32988         implies replacing fseek.
32989         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
32990         HAVE_FTELLO.
32991         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
32992         * modules/unistd (Makefile.am): Likewise.
32993         * lib/unistd_.h (lseek): Declare a replacement.
32994         * doc/functions/lseek.texi (lseek): Document this fix.
32995         * doc/functions/fseek.texi (fseek): Likewise.
32996         * doc/functions/ftell.texi (ftell): Likewise.
32997
32998 2007-05-24  Bruno Haible  <bruno@clisp.org>
32999
33000         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
33001         in the printed representation of a NaN.
33002         * tests/test-vasprintf-posix.c (test_function): Likewise.
33003         * tests/test-snprintf-posix.h (test_function): Likewise.
33004         * tests/test-sprintf-posix.h (test_function): Likewise.
33005         Reported by Eric Blake.
33006
33007 2007-05-23  Eric Blake  <ebb9@byu.net>
33008
33009         Fix fseeko/ftello on cygwin 1.5.24.
33010         * doc/functions/fseeko.texi (fseeko): Document the fix.
33011         * doc/functions/ftello.texi (ftello): Document the fix.
33012         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
33013         * doc/functions/stdout.text (stdout): New file.
33014         * doc/functions/stderr.text (stderr): New file.
33015         * doc/gnulib.texi (Function Substitutes): Use new files.
33016         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
33017         prior to 1.7.0.
33018         * tests/test-ftello.c (main): Likewise for ftello.
33019         * tests/test-fseeko.sh: New file.
33020         * tests/test-ftello.sh: New file.
33021         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
33022         with seekable stdin.
33023         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
33024         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
33025         (gl_REPLACE_FSEEKO): New macro.
33026         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
33027         * modules/fseeko (Files): Distribute fseeko.c.
33028         * modules/ftello (Files): Distribute ftello.c.
33029         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
33030         mode.
33031         * lib/ftello.c (rpl_ftello): New file.
33032         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
33033         fseeko, ftello.
33034         (gl_STDIN_LARGE_OFFSET): New macro.
33035         * modules/stdio (Makefile.am): Perform the replacement.
33036         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
33037
33038 2007-05-23  Bruno Haible  <bruno@clisp.org>
33039
33040         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
33041         GNULIB_POSIXCHECK is defined.
33042
33043 2007-05-21  Bruno Haible  <bruno@clisp.org>
33044
33045         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
33046         Check also the output for NaN arguments. When cross-compiling, guess
33047         no on IRIX.
33048         * lib/vasnprintf.c: Update comments.
33049         * tests/test-vasnprintf-posix.c (strisnan): New function.
33050         (test_function): Use it.
33051         * tests/test-vasprintf-posix.c (strisnan): New function.
33052         (test_function): Use it.
33053         * tests/test-snprintf-posix.h (strisnan): New function.
33054         (test_function): Use it.
33055         * tests/test-sprintf-posix.h (strisnan): New function.
33056         (test_function): Use it.
33057         Reported by Eric Blake.
33058
33059 2007-05-20  Bruno Haible  <bruno@clisp.org>
33060
33061         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
33062         numbers that fails on BeOS.
33063         * doc/functions/frexpl.texi: Update.
33064
33065 2007-05-20  Jim Meyering  <jim@meyering.net>
33066
33067         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
33068         forced upon us by glibc-2.6.
33069
33070 2007-05-20  Bruno Haible  <bruno@clisp.org>
33071
33072         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
33073         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
33074         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
33075         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
33076         NEED_PRINTF_INFINITE.
33077         (is_infinitel): New function.
33078         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
33079         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
33080         gl_PREREQ_VASNPRINTF_INFINITE.
33081         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
33082         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
33083         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
33084         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
33085         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
33086         gl_PREREQ_VASNPRINTF_INFINITE.
33087         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
33088         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33089         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33090         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33091         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33092         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33093         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33094         * doc/functions/fprintf.texi: Update.
33095         * doc/functions/printf.texi: Update.
33096         * doc/functions/snprintf.texi: Update.
33097         * doc/functions/sprintf.texi: Update.
33098         * doc/functions/vfprintf.texi: Update.
33099         * doc/functions/vprintf.texi: Update.
33100         * doc/functions/vsnprintf.texi: Update.
33101         * doc/functions/vsprintf.texi: Update.
33102
33103 2007-05-20  Bruno Haible  <bruno@clisp.org>
33104
33105         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
33106         was not found in libc.
33107         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
33108
33109 2007-05-20  Bruno Haible  <bruno@clisp.org>
33110
33111         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
33112         printed as "-nan" instead of "nan".
33113         * tests/test-vasprintf-posix.c (test_function): Likewise.
33114         * tests/test-snprintf-posix.h (test_function): Likewise.
33115         * tests/test-sprintf-posix.h (test_function): Likewise.
33116         Needed for HP-UX 11.
33117
33118 2007-05-20  Jim Meyering  <jim@meyering.net>
33119
33120         Fix buggy test for the fchownat-deref bug.
33121         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
33122         symlink required for the run-test.  Without it, this test would
33123         always declare that fchownat doesn't work, and client code would
33124         unnecessarily use the replacement function with fixed libc.
33125         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
33126         Reported by Greg Schafer.
33127
33128 2007-05-19  Bruno Haible  <bruno@clisp.org>
33129
33130         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
33131         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
33132         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
33133         Needed for IRIX 6.5 and Solaris 2.5.1.
33134
33135 2007-05-19  Bruno Haible  <bruno@clisp.org>
33136
33137         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
33138         (test_function): Skip tests involving -0.0 on platforms where
33139         -0.0 = 0.0.
33140         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
33141         (test_function): Skip tests involving -0.0 on platforms where
33142         -0.0 = 0.0.
33143         * tests/test-snprintf-posix.h (have_minus_zero): New function.
33144         (test_function): Skip tests involving -0.0 on platforms where
33145         -0.0 = 0.0.
33146         * tests/test-sprintf-posix.h (have_minus_zero): New function.
33147         (test_function): Skip tests involving -0.0 on platforms where
33148         -0.0 = 0.0.
33149         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
33150         tests.
33151         * tests/test-printf-posix.h (test_function): Likewise.
33152         * tests/test-printf-posix.output: Remove all -0.0 related results.
33153         Needed for IRIX 6.5.
33154
33155 2007-05-19  Bruno Haible  <bruno@clisp.org>
33156
33157         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
33158         printed as "nan0x7fffffff" instead of "nan".
33159         * tests/test-vasprintf-posix.c (test_function): Likewise.
33160         * tests/test-snprintf-posix.h (test_function): Likewise.
33161         * tests/test-sprintf-posix.h (test_function): Likewise.
33162         * tests/test-fprintf-posix.h (NaN): Remove macro.
33163         (test_function): Remove all NaN related tests.
33164         * tests/test-printf-posix.h (NaN): Remove macro.
33165         (test_function): Remove all NaN related tests.
33166         * tests/test-printf-posix.output: Remove all NaN related results.
33167         Needed for IRIX 6.5.
33168
33169 2007-05-19  Bruno Haible  <bruno@clisp.org>
33170
33171         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
33172         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
33173
33174 2007-05-19  Bruno Haible  <bruno@clisp.org>
33175
33176         * lib/float_.h: New file.
33177         * m4/float_h.m4: New file.
33178         * modules/float: New file.
33179         * modules/isnanl (Dependencies): Add float.
33180         * modules/isnanl-nolibm (Dependencies): Likewise.
33181         * modules/mathl (Dependencies): Likewise.
33182         * modules/printf-frexpl (Dependencies): Likewise.
33183         * modules/signbit (Dependencies): Likewise.
33184         * modules/vasnprintf (Dependencies): Likewise.
33185         * doc/headers/float.texi: Update.
33186
33187 2007-05-19  Jim Meyering  <jim@meyering.net>
33188
33189         * lib/utimens.c (gl_futimens): Rename from futimens,
33190         now that glibc-2.6 declares futimens.
33191         * lib/utimens.h: Likewise.
33192
33193 2007-05-19  Bruno Haible  <bruno@clisp.org>
33194
33195         Avoid test failures on mingw.
33196         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
33197         * tests/test-printf-posix.sh: Likewise.
33198         * tests/test-vfprintf-posix.sh: Likewise.
33199         * tests/test-vprintf-posix.sh: Likewise.
33200
33201 2007-05-19  Bruno Haible  <bruno@clisp.org>
33202
33203         Fix *printf result for NaN, Inf, -0.0 on mingw.
33204         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
33205         * lib/vasnprintf.c: Include math.h and isnan.h.
33206         (is_infinite_or_zero): New function.
33207         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
33208         values in the %f, %F, %e, %E, %g, %G directives.
33209         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
33210         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
33211         gl_PRINTF_INFINITE and test its result. Invoke
33212         gl_PREREQ_VASNPRINTF_INFINITE.
33213         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
33214         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33215         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33216         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33217         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33218         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33219         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33220         * doc/functions/fprintf.texi: Update.
33221         * doc/functions/printf.texi: Update.
33222         * doc/functions/snprintf.texi: Update.
33223         * doc/functions/sprintf.texi: Update.
33224         * doc/functions/vfprintf.texi: Update.
33225         * doc/functions/vprintf.texi: Update.
33226         * doc/functions/vsnprintf.texi: Update.
33227         * doc/functions/vsprintf.texi: Update.
33228
33229 2007-05-19  Bruno Haible  <bruno@clisp.org>
33230
33231         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
33232         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
33233         Instead of multiplying with 10^k, set extra_zeroes to k.
33234         (scale10_round_long_double): Remove function.
33235
33236 2007-05-18  Bruno Haible  <bruno@clisp.org>
33237
33238         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
33239         introduced on 2007-05-06.
33240
33241 2007-05-18  Bruno Haible  <bruno@clisp.org>
33242
33243         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
33244         %g directives.
33245         * tests/test-vasprintf-posix.c (test_function): Likewise.
33246         * tests/test-snprintf-posix.h (test_function): Likewise.
33247         * tests/test-sprintf-posix.h (test_function): Likewise.
33248
33249 2007-05-18  Bruno Haible  <bruno@clisp.org>
33250
33251         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
33252         (strmatch): New function.
33253         (test_function): Test the %f directive on numbers of various exponents.
33254         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
33255         (strmatch): New function.
33256         (test_function): Test the %f directive on numbers of various exponents.
33257         * tests/test-snprintf-posix.h (strmatch): New function.
33258         (test_function): Test the %f directive on numbers of various exponents.
33259         * tests/test-sprintf-posix.h (strmatch): New function.
33260         (test_function): Test the %f directive on numbers of various exponents.
33261         * tests/test-snprintf-posix.c (SIZEOF): New macro.
33262         * tests/test-sprintf-posix.c (SIZEOF): New macro.
33263         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
33264         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
33265
33266 2007-05-18  Bruno Haible  <bruno@clisp.org>
33267
33268         Add support for 'long double' number output.
33269         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
33270         * lib/vasnprintf.c: Include math.h and float+.h.
33271         (mp_limb_t): New type.
33272         (GMP_LIMB_BITS): New macro.
33273         (mp_twolimb_t): New type.
33274         (GMP_TWOLIMB_BITS): New macro.
33275         (mpn_t): New type.
33276         (multiply, divide, convert_to_decimal, decode_long_double,
33277         scale10_round_long_double, scale10_round_decimal_long_double,
33278         floorlog10l): New functions.
33279         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
33280         for the %f, %F, %e, %E, %g, %G directives.
33281         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
33282         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
33283         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
33284         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
33285         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
33286         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33287         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33288         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33289         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33290         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33291         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33292         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
33293         * modules/snprintf-posix (Depends-on): Likewise.
33294         * modules/sprintf-posix (Depends-on): Likewise.
33295         * modules/vasnprintf-posix (Depends-on): Likewise.
33296         * modules/vasprintf-posix (Depends-on): Likewise.
33297         * modules/vfprintf-posix (Depends-on): Likewise.
33298         * modules/vsnprintf-posix (Depends-on): Likewise.
33299         * modules/vsprintf-posix (Depends-on): Likewise.
33300         * modules/vasnprintf (Files): Add lib/float+.h.
33301         * doc/functions/fprintf.texi: Update.
33302         * doc/functions/printf.texi: Update.
33303         * doc/functions/snprintf.texi: Update.
33304         * doc/functions/sprintf.texi: Update.
33305         * doc/functions/vfprintf.texi: Update.
33306         * doc/functions/vprintf.texi: Update.
33307         * doc/functions/vsnprintf.texi: Update.
33308         * doc/functions/vsprintf.texi: Update.
33309
33310 2007-05-18  Bruno Haible  <bruno@clisp.org>
33311
33312         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
33313
33314 2007-05-18  Bruno Haible  <bruno@clisp.org>
33315
33316         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
33317         for printing 64-bit integers. Needed for mingw.
33318
33319 2007-05-18  Bruno Haible  <bruno@clisp.org>
33320
33321         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
33322         gl_FUNC_FREXPL_WORKS.
33323         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
33324
33325 2007-05-18  Bruno Haible  <bruno@clisp.org>
33326
33327         * modules/frexpl-nolibm-tests: New file.
33328
33329         * modules/frexpl-nolibm: New file.
33330         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
33331
33332 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
33333
33334         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
33335         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
33336         GCC 4.2, which otherwise issues a lot of warnings.
33337         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
33338         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
33339         Likewise.
33340         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
33341         * modules/iconv_open (iconv.h): Likewise.
33342         * modules/locale (locale.h): Likewise.
33343         * modules/netinet_in (netinet/in.h): Likewise.
33344         * modules/sys_select (sys_select.h): Likewise.
33345         * modules/sys_socket (sys/socket.h): Likewise.
33346         * modules/sys_stat (sys/stat.h): Likewise.
33347         * modules/sysexits (sysexits.h): Likewise.
33348         * modules/unistd (unistd.h): Likewise.
33349
33350 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33351
33352         * modules/closein-tests (Makefile.am): Distribute
33353         `test-closein.sh'.
33354
33355 2007-05-17  Bruno Haible  <bruno@clisp.org>
33356
33357         * tests/test-printf-posix.output: Renamed from
33358         tests/test-fprintf-posix.out.
33359         * modules/fprintf-posix-tests: Update.
33360         * modules/printf-posix-tests: Update.
33361         * modules/vfprintf-posix-tests: Update.
33362         * modules/vprintf-posix-tests: Update.
33363         * tests/test-fprintf-posix.sh: Update.
33364         * tests/test-printf-posix.sh: Update.
33365         * tests/test-vfprintf-posix.sh: Update.
33366         * tests/test-vprintf-posix.sh: Update.
33367         Reported by Ralf Wildenhues.
33368
33369 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
33370
33371         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
33372         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
33373         GCC 4.2, which otherwise issues a lot of warnings.
33374         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
33375         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
33376         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
33377         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
33378         it should no longer be needed.
33379         * lib/string_.h: Likewise.
33380         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
33381         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
33382         * modules/inttypes (inttypes.h): Likewise.
33383         * modules/math (math.h): Likewise.
33384         * modules/search (search.h): Likewise.
33385         * modules/signal (signal.h): Likewise.
33386         * modules/stdint (stdint.h): Likewise.
33387         * modules/stdio (stdio.h): Likewise.
33388         * modules/stdlib (stdlib.h): Likewise.
33389         * modules/string (string.h): Likewise.
33390         * modules/sys_time (sys/time.h): Likewise.
33391         * modules/time (time.h): Likewise.
33392         * modules/wchar (wchar.h): Likewise.
33393         * modules/wctype (wtype.h): Likewise.
33394
33395 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
33396
33397         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
33398
33399 2007-05-13  Bruno Haible  <bruno@clisp.org>
33400
33401         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
33402         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
33403         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
33404         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
33405         (gl_PREREQ_STRTOK_R): Don't require it here.
33406
33407 2007-05-13  Bruno Haible  <bruno@clisp.org>
33408
33409         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
33410         when used in C++ mode.
33411
33412 2007-05-12  Bruno Haible  <bruno@clisp.org>
33413
33414         * lib/linebuffer.h: Tweak doc.
33415         * lib/linebuffer.c: Likewise.
33416
33417 2007-05-12  James Youngman  <jay@gnu.org>
33418
33419         * lib/linebuffer.c (readlinebuffer_delim): New function,
33420         like readlinebuffer, but use a caller-specified delimiter.
33421         (readlinebuffer): Just call readlinebuffer_delim with '\n'
33422         as the delimiter.
33423         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
33424
33425 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
33426
33427         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
33428         * modules/openat (Files): Remove openat-die.c.
33429         (Depends-on): Add openat-die.
33430         * modules/openat-die: New module.
33431
33432 2007-05-06  Bruno Haible  <bruno@clisp.org>
33433
33434         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
33435         Update with info about Cygwin.
33436         * doc/functions/fprintf.texi: Update.
33437         * doc/functions/printf.texi: Update.
33438         * doc/functions/snprintf.texi: Update.
33439         * doc/functions/sprintf.texi: Update.
33440         * doc/functions/vfprintf.texi: Update.
33441         * doc/functions/vprintf.texi: Update.
33442         * doc/functions/vsnprintf.texi: Update.
33443         * doc/functions/vsprintf.texi: Update.
33444         Reported by Eric Blake.
33445
33446 2007-05-06  Bruno Haible  <bruno@clisp.org>
33447
33448         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
33449         padding ourselves for the floating-point directives.
33450         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
33451         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
33452         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
33453         gl_PRINTF_FLAG_ZERO and test its result. Invoke
33454         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
33455         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33456         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
33457         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33458         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33459         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33460         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33461         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33462         * tests/test-snprintf-posix.h (test_function): Also check the width
33463         and some flags in the %f directive.
33464         * tests/test-sprintf-posix.h (test_function): Likewise.
33465         * tests/test-vasnprintf-posix.c (test_function): Likewise.
33466         * tests/test-vasprintf-posix.c (test_function): Likewise.
33467         * doc/functions/fprintf.texi: Update.
33468         * doc/functions/printf.texi: Update.
33469         * doc/functions/snprintf.texi: Update.
33470         * doc/functions/sprintf.texi: Update.
33471         * doc/functions/vfprintf.texi: Update.
33472         * doc/functions/vprintf.texi: Update.
33473         * doc/functions/vsnprintf.texi: Update.
33474         * doc/functions/vsprintf.texi: Update.
33475
33476 2007-05-06  Bruno Haible  <bruno@clisp.org>
33477
33478         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
33479         pass the ' flag character to sprintf or snprintf.
33480         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
33481         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
33482         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
33483         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
33484         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
33485         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33486         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
33487         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33488         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33489         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33490         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33491         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33492         * tests/test-snprintf-posix.h (test_function): Also check the grouping
33493         flag.
33494         * tests/test-sprintf-posix.h (test_function): Likewise.
33495         * tests/test-vasnprintf-posix.c (test_function): Likewise.
33496         * tests/test-vasprintf-posix.c (test_function): Likewise.
33497         * doc/functions/fprintf.texi: Update.
33498         * doc/functions/printf.texi: Update.
33499         * doc/functions/snprintf.texi: Update.
33500         * doc/functions/sprintf.texi: Update.
33501         * doc/functions/vfprintf.texi: Update.
33502         * doc/functions/vprintf.texi: Update.
33503         * doc/functions/vsnprintf.texi: Update.
33504         * doc/functions/vsprintf.texi: Update.
33505
33506 2007-05-01  Bruno Haible  <bruno@clisp.org>
33507
33508         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
33509
33510 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
33511
33512         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
33513         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
33514
33515 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
33516
33517         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
33518         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
33519         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
33520
33521 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
33522
33523         * lib/argp-help.c (struct hol_entry): New member `ord'.
33524         (HOL_ENTRY_PTRCMP): Use ord for comparison
33525         (hol_sort): Initialize ord.
33526
33527 2007-05-01  Bruno Haible  <bruno@clisp.org>
33528
33529         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
33530         Reported by Eric Blake.
33531         * doc/gnulib.texi (Function Substitutes): Update.
33532
33533 2007-05-01  Bruno Haible  <bruno@clisp.org>
33534
33535         * doc/functions.texi: Remove file, now redundant through
33536         doc/functions/*.texi.
33537
33538 2007-05-01  Bruno Haible  <bruno@clisp.org>
33539
33540         * modules/argp (Depends-on): Add sleep.
33541
33542 2007-05-01  Bruno Haible  <bruno@clisp.org>
33543
33544         * modules/sleep-tests: New file.
33545         * tests/test-sleep.c: New file.
33546
33547         * modules/sleep: New file.
33548         * lib/sleep.c: New file.
33549         * m4/sleep.m4: New file.
33550         * lib/unistd_.h (sleep): New declaration.
33551         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
33552         HAVE_SLEEP.
33553         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
33554         * doc/functions/sleep.texi: Document the sleep module.
33555
33556 2007-05-01  Bruno Haible  <bruno@clisp.org>
33557
33558         * lib/sigprocmask.h: Remove file.
33559         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
33560         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
33561         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
33562         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
33563         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
33564         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
33565         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
33566         HAVE_SIGSET_T as a shell variable.
33567         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
33568         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
33569         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
33570         (Depends-on): Add signal. Remove verify.
33571         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
33572         (Include): Mention <signal.h> instead of sigprocmask.h.
33573         * NEWS: Mention the change.
33574         * lib/fatal-signal.c: Don't include sigprocmask.h.
33575
33576 2007-05-01  Bruno Haible  <bruno@clisp.org>
33577
33578         * modules/signal: New file.
33579         * lib/signal_.h: New file.
33580         * m4/signal_h.m4: New file.
33581
33582 2007-05-01  Bruno Haible  <bruno@clisp.org>
33583
33584         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
33585         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
33586         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
33587         HAVE_WCTYPE_CTMP_BUG into wctype.h.
33588
33589 2007-05-01  Bruno Haible  <bruno@clisp.org>
33590
33591         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
33592         configure time.
33593         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
33594         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
33595         * modules/sys_stat (Makefile.am): Substitute their values into
33596         sys/stat.h.
33597
33598 2007-05-01  Bruno Haible  <bruno@clisp.org>
33599
33600         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
33601         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
33602         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
33603
33604 2007-05-01  Bruno Haible  <bruno@clisp.org>
33605
33606         * doc/header/assert.texi: Undo last change: don't mention the gnulib
33607         'assert' module here.
33608
33609 2007-05-01  Bruno Haible  <bruno@clisp.org>
33610
33611         * doc/functions/*.texi: New files.
33612         * doc/functions/google-ranking.txt: New file.
33613         * doc/gnulib.texi (Function Substitutes): New chapter.
33614         (ctime, inet_ntoa): Remove sections.
33615         * doc/ctime.texi: Remove file.
33616         * doc/inet_ntoa.texi: Remove file.
33617         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
33618         dependencies.
33619         (%.info): New rule, specifying a --reference-limit.
33620
33621 2007-05-01  Bruno Haible  <bruno@clisp.org>
33622
33623         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
33624
33625 2007-05-01  Bruno Haible  <bruno@clisp.org>
33626
33627         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
33628         the portability of 'mkdir' to mingw systems.
33629
33630 2007-05-01  Bruno Haible  <bruno@clisp.org>
33631
33632         * doc/headers/google-ranking.txt: New file.
33633
33634 2007-04-30  Eric Blake  <ebb9@byu.net>
33635
33636         Prefer fseeko to fseek.
33637         * modules/getpass (Depends-on): Add fseeko.
33638         * lib/getpass.c (getpass): Use fseeko, not fseek.
33639
33640 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
33641
33642         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
33643         assumes the sorting is stable, while most qsort implementations
33644         are not.  Use argument addresses to ensure they never compare as
33645         equal.
33646
33647         * tests/test-argp-2.sh (usage-indent test): Fix output
33648         (func_compare): Restore diff options
33649         * tests/test-argp.c: Restore #include "progname.h"
33650
33651 2007-04-29  Bruno Haible  <bruno@clisp.org>
33652
33653         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
33654         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
33655         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
33656         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33657         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
33658         (configure.ac): Define CHECK_SNPRINTF_POSIX.
33659         (TESTS, check_PROGRAMS): Add test-snprintf.
33660         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
33661         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
33662         (TESTS, check_PROGRAMS): Add test-vsnprintf.
33663         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
33664         assertions that fail on HP-UX, OSF/1, or IRIX.
33665         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
33666
33667 2007-04-29  Bruno Haible  <bruno@clisp.org>
33668
33669         * MODULES.html.sh (posix_functions): Remove 'contents'.
33670
33671 2007-04-29  Karl Berry  <karl@gnu.org>
33672
33673         * config/srclist.txt (gendocs_template_min): new entry.
33674
33675 2007-04-29  Bruno Haible  <bruno@clisp.org>
33676
33677         Work around fpurge bug on BSD systems.
33678         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
33679         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
33680         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
33681         fpurge to rpl_fpurge if the system already has this function.
33682         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
33683         the case where the system already has this function. Correct invariants
33684         on BSD systems.
33685         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
33686         BSD systems.
33687
33688 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
33689
33690         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
33691         proposed by Sven Verdoolaege.
33692
33693         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
33694         options.
33695         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
33696         (usage and help tests): Update
33697
33698 2007-04-29  Bruno Haible  <bruno@clisp.org>
33699
33700         * tests/test-fflush.c (main): Use a file of size 17, not 10.
33701         Print more information in case of failure. Disable a test on BeOS.
33702
33703 2007-04-29  Bruno Haible  <bruno@clisp.org>
33704
33705         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
33706         This helps debugging on systems on which no gdb is available.
33707
33708 2007-04-29  Bruno Haible  <bruno@clisp.org>
33709
33710         * lib/freading.h: Improve comments.
33711         * lib/fwriting.h: Likewise.
33712         * tests/test-freading.c (main): Don't check freading immediately after
33713         repositioning. Needed for glibc.
33714
33715 2007-04-29  Bruno Haible  <bruno@clisp.org>
33716
33717         * lib/freading.c (freading): Trivial simplification.
33718
33719 2007-04-28  Bruno Haible  <bruno@clisp.org>
33720
33721         * tests/test-fwriting.c (main): Also test the interaction between
33722         fflush and fwriting.
33723         * modules/fwriting-tests (Depends-on): Add fflush.
33724
33725         * tests/test-freading.c (main): Also test the interaction between
33726         fflush and freading.
33727         * modules/freading-tests (Depends-on): Add fflush.
33728
33729 2007-04-28  Bruno Haible  <bruno@clisp.org>
33730
33731         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
33732         fseeko and ftello.
33733         Suggested by Eric Blake.
33734
33735 2007-04-28  Jim Meyering  <jim@meyering.net>
33736
33737         Avoid false-negative in gl_STDINT_H's C99 conformance test.
33738         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
33739         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
33740
33741 2007-04-27  Eric Blake  <ebb9@byu.net>
33742
33743         * doc/headers/assert.texi (assert.h): Document assert module use.
33744
33745 2007-04-27  Bruno Haible  <bruno@clisp.org>
33746
33747         * doc/headers/*.texi: New files.
33748         * doc/gnulib.texi (Header File Substitutes): New chapter.
33749         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
33750         dependencies.
33751         (standards.info ,standards.html, standards.dvi): Update dependencies.
33752         (mostlyclean, clean): New targets.
33753
33754 2007-04-27  Bruno Haible  <bruno@clisp.org>
33755
33756         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
33757         * modules/sysexits (Files, Makefile.am): Update.
33758
33759         * lib/sys_socket_.h: Renamed from lib/socket_.h.
33760         * modules/sys_socket (Files, Makefile.am): Update.
33761
33762         * lib/sys_stat_.h: Renamed from lib/stat_.h.
33763         * modules/sys_stat (Files, Makefile.am): Update.
33764
33765 2007-04-27  Eric Blake  <ebb9@byu.net>
33766
33767         * lib/freading.h: Improve comments.
33768         * lib/fwriting.h: Likewise.
33769         * lib/fflush.c: Likewise.
33770
33771         Fix closein for mingw.
33772         * modules/closein-tests: Add tests for closein.
33773         * tests/test-closein.c: New file.
33774         * tests/test-closein.sh: Likewise.
33775         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
33776         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
33777
33778 2007-04-27  Bruno Haible  <bruno@clisp.org>
33779
33780         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
33781         version is < 6.
33782         * lib/math_.h [__DECC]: Likewise.
33783         * lib/stdio_.h [__DECC]: Likewise.
33784         * lib/stdlib_.h [__DECC]: Likewise.
33785         * lib/string_.h [__DECC]: Likewise.
33786         * lib/time_.h [__DECC]: Likewise.
33787         * lib/wchar_.h [__DECC]: Likewise.
33788         * lib/wctype_.h [__DECC]: Likewise.
33789
33790 2007-04-27  Bruno Haible  <bruno@clisp.org>
33791
33792         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
33793
33794 2007-04-27  Bruno Haible  <bruno@clisp.org>
33795
33796         * lib/fflush.c: Add comments.
33797         * modules/fpurge-tests (Depends-on): Add fflush.
33798         * modules/freadable-tests (Depends-on): Likewise.
33799         * modules/fwritable-tests (Depends-on): Likewise.
33800
33801 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
33802
33803         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
33804         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
33805         Report by Bruno Haible <bruno@clisp.org>.
33806
33807 2007-04-26  Eric Blake  <ebb9@byu.net>
33808
33809         Fix fflush on mingw.
33810         * modules/fflush (Depends-on): Add freading.
33811         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
33812         but unread data.
33813
33814 2007-04-26  Eric Blake  <ebb9@byu.net>
33815         and Bruno Haible  <bruno@clisp.org>
33816
33817         Implement freading and fwriting.
33818         * lib/freading.c: New file.
33819         * lib/freading.h: Likewise.
33820         * m4/freading.m4: Likewise.
33821         * modules/freading: Likewise.
33822         * modules/freading-tests: Likewise.
33823         * tests/test-freading.c: Likewise.
33824         * lib/fwriting.c: New file.
33825         * lib/fwriting.h: Likewise.
33826         * m4/fwriting.m4: Likewise.
33827         * modules/fwriting: Likewise.
33828         * modules/fwriting-tests: Likewise.
33829         * tests/test-fwriting.c: Likewise.
33830         * MODULES.html.sh (File stream based Input/Output): Mention them.
33831
33832 2007-04-26  Bruno Haible  <bruno@clisp.org>
33833
33834         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
33835         'long' when we assume it.
33836         Suggested by Eric Blake.
33837
33838 2007-04-26  Bruno Haible  <bruno@clisp.org>
33839
33840         Ensure fseeko, ftello are declared on glibc systems.
33841         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
33842         * modules/fseeko (configure.ac-early): Likewise.
33843         * modules/ftello (configure.ac-early): Likewise.
33844         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
33845         AC_FUNC_FSEEKO for this.
33846         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
33847         (gl_CHECK_FSEEKO): Remove macro.
33848
33849 2007-04-26  Bruno Haible  <bruno@clisp.org>
33850
33851         * tests/test-fflush.c (main): Also check the ftell result after
33852         fflush and fseek/fseeko.
33853         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
33854         file descriptor position cache in the stream.
33855         * lib/fseeko.c (rpl_fseeko): Likewise.
33856
33857 2007-04-26  Bruno Haible  <bruno@clisp.org>
33858
33859         * modules/fflush-tests (Depends-on): Add fseeko.
33860
33861 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
33862             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33863
33864         * lib/argz_.h: ensure error_t definition is obtained in same
33865         mechanism system argz.h would have.
33866         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
33867         argz facilities are known bad.  Err on the side of caution if
33868         cross-compiling.
33869
33870 2007-04-25  Eric Blake  <ebb9@byu.net>
33871
33872         * lib/fpurge.c (includes): Use stdlib.h for free.
33873         * tests/test-fflush.c (main): Also test fflush-fseeko.
33874
33875 2007-04-25  Bruno Haible  <bruno@clisp.org>
33876
33877         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
33878         * lib/fseeko.c: New file.
33879         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
33880         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
33881         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
33882         gl_FUNC_FSEEKO.
33883         (gl_FUNC_FSEEKO): Invoke it.
33884         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
33885         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
33886         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
33887
33888 2007-04-25  Bruno Haible  <bruno@clisp.org>
33889
33890         * modules/fflush (Depends-on): Add ftello.
33891
33892 2007-04-25  Bruno Haible  <bruno@clisp.org>
33893
33894         * modules/ftello-tests: New file.
33895         * tests/test-ftello.c: New file.
33896
33897         * modules/ftello: New file.
33898         * m4/ftello.m4: New file.
33899         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
33900         HAVE_FTELLO.
33901         * lib/stdio_.h (ftello): New declaration.
33902         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
33903         HAVE_FTELLO.
33904
33905 2007-04-25  Bruno Haible  <bruno@clisp.org>
33906
33907         * modules/fseeko-tests: New file.
33908         * tests/test-fseeko.c: New file.
33909
33910         * modules/fseeko: New file.
33911         * m4/fseeko.m4: New file.
33912         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
33913         HAVE_FSEEKO.
33914         * lib/stdio_.h (fseeko): New declaration.
33915         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
33916         HAVE_FSEEKO.
33917
33918 2007-04-25  Bruno Haible  <bruno@clisp.org>
33919
33920         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
33921
33922 2007-04-25  Bruno Haible  <bruno@clisp.org>
33923
33924         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
33925         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
33926         * tests/test-unistd.c: Likewise.
33927         * tests/test-fcntl.c: Likewise.
33928
33929 2007-04-23  Eric Blake  <ebb9@byu.net>
33930
33931         * lib/fflush.c: Fix missing include.
33932         Reported by Bruno Haible.
33933
33934 2007-04-23  Bruno Haible  <bruno@clisp.org>
33935
33936         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
33937         Reported by Eric Blake.
33938
33939 2007-04-23  Bruno Haible  <bruno@clisp.org>
33940
33941         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
33942
33943 2007-04-23  Bruno Haible  <bruno@clisp.org>
33944
33945         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
33946
33947 2007-04-23  Bruno Haible  <bruno@clisp.org>
33948
33949         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
33950         Needed on HP-UX 11.
33951
33952 2007-04-16  Eric Blake  <ebb9@byu.net>
33953
33954         Make fflush rely on fpurge.
33955         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
33956         open coding all variants.
33957         * modules/fflush (Depends-on): Add fpurge and unistd.
33958         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
33959         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
33960
33961         Fix --with-tests compilation on cygwin.
33962         * modules/argmatch-tests (Makefile.am): List gnulib library first
33963         in LDADD.
33964         * modules/argp-tests (Makefile.am): Likewise.
33965         * modules/array-list-tests (Makefile.am): Likewise.
33966         * modules/array-oset-tests (Makefile.am): Likewise.
33967         * modules/avltree-list-tests (Makefile.am): Likewise.
33968         * modules/avltree-oset-tests (Makefile.am): Likewise.
33969         * modules/avltreehash-list-tests (Makefile.am): Likewise.
33970         * modules/carray-list-tests (Makefile.am): Likewise.
33971         * modules/dirname-tests (Makefile.am): Likewise.
33972         * modules/frexp-tests (Makefile.am): Likewise.
33973         * modules/isnanl-tests (Makefile.am): Likewise.
33974         * modules/linked-list-tests (Makefile.am): Likewise.
33975         * modules/linkedhash-list-tests (Makefile.am): Likewise.
33976         * modules/lock-tests (Makefile.am): Likewise.
33977         * modules/rbtree-list-tests (Makefile.am): Likewise.
33978         * modules/rbtree-oset-tests (Makefile.am): Likewise.
33979         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
33980         * modules/tls-tests (Makefile.am): Likewise.
33981         * modules/tsearch-tests (Makefile.am): Likewise.
33982         * modules/xvasprintf-tests (Makefile.am): Likewise.
33983
33984         Fix fpurge for cygwin.
33985         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
33986         value.
33987         * modules/fpurge-tests (Depends-on): Clean up trash.
33988
33989 2007-04-16  Simon Josefsson  <simon@josefsson.org>
33990
33991         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
33992
33993         * m4/autobuild.m4: Re-indent.
33994
33995 2007-04-13  Bruno Haible  <bruno@clisp.org>
33996
33997         * modules/fpurge-tests: New file.
33998         * tests/test-fpurge.c: New file.
33999
34000         * modules/fpurge: New file.
34001         * lib/fpurge.h: New file.
34002         * lib/fpurge.c: New file.
34003         * m4/fpurge.m4: New file.
34004
34005 2007-04-13  Bruno Haible  <bruno@clisp.org>
34006
34007         * modules/fbufmode-tests: New file.
34008         * tests/test-fbufmode.c: New file.
34009
34010         * modules/fbufmode: New file.
34011         * lib/fbufmode.h: New file.
34012         * lib/fbufmode.c: New file.
34013         * m4/fbufmode.m4: New file.
34014
34015 2007-04-13  Bruno Haible  <bruno@clisp.org>
34016
34017         * modules/fwritable-tests: New file.
34018         * tests/test-fwritable.c: New file.
34019
34020         * modules/fwritable: New file.
34021         * lib/fwritable.h: New file.
34022         * lib/fwritable.c: New file.
34023         * m4/fwritable.m4: New file.
34024
34025 2007-04-13  Bruno Haible  <bruno@clisp.org>
34026
34027         * modules/freadable-tests: New file.
34028         * tests/test-freadable.c: New file.
34029
34030         * modules/freadable: New file.
34031         * lib/freadable.h: New file.
34032         * lib/freadable.c: New file.
34033         * m4/freadable.m4: New file.
34034
34035 2007-04-13  Bruno Haible  <bruno@clisp.org>
34036
34037         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
34038         MOSTLYCLEANFILES.
34039
34040 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
34041
34042         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
34043         gzip bootstrap.conf to avoid dragging in i18n machinery.
34044         (gnulib_tool_option): Use it.
34045
34046 2007-04-13  Bruno Haible  <bruno@clisp.org>
34047
34048         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
34049         %F directives.
34050         * tests/test-vasprintf-posix.c (test_function): Likewise.
34051         * tests/test-snprintf-posix.h (test_function): Likewise.
34052         * tests/test-sprintf-posix.h (test_function): Likewise.
34053         * tests/test-fprintf-posix.h (test_function): Likewise.
34054         * tests/test-printf-posix.h (test_function): Likewise.
34055         * tests/test-fprintf-posix.out: Likewise.
34056
34057 2007-04-13  Bruno Haible  <bruno@clisp.org>
34058
34059         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
34060         * modules/tls-tests (configure.ac): Likewise.
34061         Reported by Arto C. Nirkko <anirkko@insel.ch>.
34062
34063 2007-04-13  Bruno Haible  <bruno@clisp.org>
34064
34065         * lib/tls.c (glthread_tls_get): Fix return type.
34066         Patch by Arto C. Nirkko <anirkko@insel.ch>.
34067
34068 2007-04-12  Eric Blake  <ebb9@byu.net>
34069
34070         * modules/gettime (Depends-on): Remove gettime.
34071         Reported by Dmitry V. Levin.
34072
34073 2007-04-12  Bruno Haible  <bruno@clisp.org>
34074
34075         * modules/fflush (Include): Mention <stdio.h>.
34076         * modules/strtoimax (Include): Mention <inttypes.h>.
34077         * modules/strtoumax (Include): Likewise.
34078
34079 2007-04-12  Eric Blake  <ebb9@byu.net>
34080
34081         * .cvsignore: New file.
34082         * .gitignore: Likewise.
34083
34084 2007-04-12  Bruno Haible  <bruno@clisp.org>
34085
34086         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
34087         not before, since $(LDADD) often contains libgnu.a.
34088         * modules/striconv-tests (test_striconv_LDADD): Likewise.
34089         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
34090         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
34091         Needed on Cygwin.
34092
34093 2007-04-12  Eric Blake  <ebb9@byu.net>
34094
34095         Work around glibc's failure to flush stdin on fclose.
34096         * lib/closein.c (close_stdin): Flush stdin before closing.
34097
34098         Work around glibc's failure to reset seekable stdin on exit.
34099         * modules/closein: New module.
34100         * lib/closein.c: New file.
34101         * lib/closein.h: Likewise.
34102         * m4/closein.m4: Likewise.
34103         * MODULES.html.sh (File stream based Input/Output): Document it.
34104
34105 2007-04-12  Simon Josefsson  <simon@josefsson.org>
34106
34107         * gnulib-tool: Rename generated 'autobuild' script to
34108         'do-autobuild' in --create-megatestdir output.
34109
34110         * doc/gnulib.texi (Build robot for gnulib): Fix.
34111
34112 2007-04-12  Simon Josefsson  <simon@josefsson.org>
34113
34114         * modules/sysexits (Depends-on): Add absolute-header.
34115
34116 2007-04-12  Eric Blake  <ebb9@byu.net>
34117
34118         No need to preserve errno on success.
34119         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
34120         Reported by Bruno Haible.
34121
34122 2007-04-12  Simon Josefsson  <simon@josefsson.org>
34123
34124         * MODULES.html.sh (Support for maintaining and releasing
34125         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
34126
34127 2007-04-12  Simon Josefsson  <simon@josefsson.org>
34128
34129         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
34130
34131 2007-04-12  Simon Josefsson  <simon@josefsson.org>
34132
34133         * modules/autobuild: New module.
34134
34135         * m4/autobuild.m4: New file.
34136
34137 2007-04-11  Bruno Haible  <bruno@clisp.org>
34138
34139         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
34140         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
34141         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
34142         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
34143         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34144         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34145         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34146         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
34147         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34148         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34149         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
34150         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34151         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34152         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
34153         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34154         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34155         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
34156         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34157         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34158         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
34159         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34160         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34161         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
34162         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34163         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34164         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
34165         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34166         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34167         Reported by Eric Blake.
34168
34169 2007-04-11  Bruno Haible  <bruno@clisp.org>
34170
34171         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
34172
34173 2007-04-10  Bruno Haible  <bruno@clisp.org>
34174
34175         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
34176         for NaN and Infinity. Needed on FreeBSD 6.1.
34177         * tests/test-vasnprintf-posix.c (test_function): Undo last change
34178         regarding results for "%010a" of Infinity and NaN.
34179         * tests/test-vasprintf-posix.c (test_function): Likewise.
34180         * tests/test-snprintf-posix.h (test_function): Likewise.
34181         * tests/test-sprintf-posix.h (test_function): Likewise.
34182         * tests/test-fprintf-posix.h (test_function): Likewise.
34183         * tests/test-printf-posix.h (test_function): Likewise.
34184         * tests/test-fprintf-posix.out: Likewise.
34185
34186 2007-04-10  Bruno Haible  <bruno@clisp.org>
34187
34188         * modules/locale-tests: New file.
34189         * tests/test-locale.c: New file.
34190
34191         * modules/locale: New file.
34192         * lib/locale_.h: New file.
34193         * m4/locale_h.m4: New file.
34194
34195 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
34196             Bruno Haible  <bruno@clisp.org>
34197
34198         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
34199         be determined, test for availability of the copysignf, copysign,
34200         copysignl functions.
34201         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
34202         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
34203         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
34204
34205 2007-04-09  Eric Blake  <ebb9@byu.net>
34206
34207         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
34208         * modules/stdio (Makefile.am): Support fflush.
34209         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
34210         * modules/fflush: New file.
34211         * lib/fflush.c: Likewise.
34212         * m4/fflush.m4: Likewise.
34213         * modules/fflush-tests: New test.
34214         * tests/test-fflush.c: Likewise.
34215         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
34216
34217 2007-04-06  Bruno Haible  <bruno@clisp.org>
34218
34219         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
34220         (VASNPRINTF): Use signbit for faster determination whether to print a
34221         minus sign.
34222         * modules/vasnprintf (Files): Remove lib/float+.h.
34223         * modules/fprintf-posix (Depends-on): Add signbit.
34224         * modules/snprintf-posix (Depends-on): Likewise.
34225         * modules/sprintf-posix (Depends-on): Likewise.
34226         * modules/vasnprintf-posix (Depends-on): Likewise.
34227         * modules/vasprintf-posix (Depends-on): Likewise.
34228         * modules/vfprintf-posix (Depends-on): Likewise.
34229         * modules/vsnprintf-posix (Depends-on): Likewise.
34230         * modules/vsprintf-posix (Depends-on): Likewise.
34231
34232 2007-04-06  Bruno Haible  <bruno@clisp.org>
34233
34234         * tests/test-frexp.c (main): Test also the sign bit of zero results.
34235         * tests/test-frexpl.c (main): Likewise.
34236         * tests/test-ldexpl.c (main): Likewise.
34237         * modules/frexp-tests (Depends-on): Add signbit.
34238         * modules/frexpl-tests (Depdends-on): Likewise.
34239         * modules/ldexpl-tests (Depdends-on): Likewise.
34240
34241 2007-04-06  Bruno Haible  <bruno@clisp.org>
34242
34243         * modules/signbit-tests: New file.
34244         * tests/test-signbit.c: New file.
34245
34246         * modules/signbit: New file.
34247         * lib/signbitf.c: New file.
34248         * lib/signbitd.c: New file.
34249         * lib/signbitl.c: New file.
34250         * m4/signbit.m4: New file.
34251         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
34252         (signbit): New macro.
34253         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
34254         REPLACE_SIGNBIT.
34255         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
34256         REPLACE_FREXPL into math.h.
34257
34258 2007-04-06  Bruno Haible  <bruno@clisp.org>
34259
34260         * modules/isnanf-nolibm-tests: New file.
34261         * tests/test-isnanf.c: New file.
34262
34263         * modules/isnanf-nolibm: New file.
34264         * lib/isnanf.h: New file.
34265         * lib/isnanf.c: New file.
34266         * lib/isnan.c: Consider the USE_FLOAT macro.
34267         * m4/isnanf.m4: New file.
34268
34269 2007-04-06  Bruno Haible  <bruno@clisp.org>
34270
34271         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
34272         (Link): New section.
34273
34274         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
34275
34276 2007-04-06  Bruno Haible  <bruno@clisp.org>
34277
34278         Assume the 'long double' type.
34279         * m4/longdouble.m4: Remove file.
34280         * config/srclist.txt: Don't mention longdouble.m4.
34281         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
34282         * lib/float+.h: Likewise.
34283         * lib/frexp.c: Likewise.
34284         * lib/printf-args.h: Likewise.
34285         * lib/printf-args.c: Likewise.
34286         * lib/printf-frexp.c: Likewise.
34287         * lib/printf-parse.c: Likewise.
34288         * lib/vasnprintf.c: Likewise.
34289         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
34290         * m4/intl.m4: Likewise.
34291         * m4/isnanl.m4: Likewise.
34292         * m4/printf.m4: Likewise.
34293         * m4/printf-frexpl.m4: Likewise.
34294         * m4/vasnprintf.m4: Likewise.
34295         * modules/allocsa (Files): Remove m4/longdouble.m4.
34296         * modules/gettext (Files): Likewise.
34297         * modules/relocatable-prog-wrapper (Files): Likewise.
34298         * modules/vasnprintf (Files): Likewise.
34299         * modules/isnanl (Files): Likewise.
34300         (Include): Simplify.
34301         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
34302         (Include): Simplify.
34303         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
34304         (Include): Simplify.
34305         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
34306         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
34307         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
34308         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
34309         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
34310         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
34311         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
34312         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
34313         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
34314         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
34315         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
34316         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
34317         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
34318         * tests/test-isnanl.c: Likewise.
34319         * tests/test-snprintf-posix.h: Likewise.
34320         * tests/test-sprintf-posix.h: Likewise.
34321         * tests/test-vasnprintf-posix.c: Likewise.
34322         * tests/test-vasnprintf-posix2.c: Likewise.
34323         * tests/test-vasprintf-posix.c: Likewise.
34324
34325 2007-04-06  Bruno Haible  <bruno@clisp.org>
34326
34327         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
34328         * lib/math_.h [__DECC]: Include the overridden include file through
34329         #include_next, outside the double-inclusion guard.
34330         * lib/stdio_.h [__DECC]: Likewise.
34331         * lib/stdlib_.h [__DECC]: Likewise.
34332         * lib/string_.h [__DECC]: Likewise.
34333         * lib/time_.h [__DECC]: Likewise.
34334         * lib/wchar_.h [__DECC]: Likewise.
34335         * lib/wctype_.h [__DECC]: Likewise.
34336         * lib/inttypes_.h [__DECC]: Likewise.
34337         Reported by Albert Chin <china@thewrittenword.com> in
34338         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
34339
34340 2007-04-04  Eric Blake  <ebb9@byu.net>
34341
34342         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
34343         1.5.x.
34344
34345 2007-04-04  Bruno Haible  <bruno@clisp.org>
34346
34347         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
34348         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
34349
34350 2007-04-04  Bruno Haible  <bruno@clisp.org>
34351
34352         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
34353         results for "%010a" of Infinity and NaN.
34354         * tests/test-vasprintf-posix.c (test_function): Likewise.
34355         * tests/test-snprintf-posix.h (test_function): Likewise.
34356         * tests/test-sprintf-posix.h (test_function): Likewise.
34357         * tests/test-fprintf-posix.h (test_function): Remove these tests.
34358         * tests/test-printf-posix.h (test_function): Likewise.
34359         * tests/test-fprintf-posix.out: Update.
34360         Needed for FreeBSD 6.1.
34361
34362 2007-04-04  Bruno Haible  <bruno@clisp.org>
34363
34364         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
34365         directly used by the gnulib modules nor by gnulib-tool.
34366
34367 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
34368
34369         * DEPENDENCIES: Give overall description of version dependency
34370         desirability.  Use more-typical names for apps.
34371         Add shell, coreutils, diffutils, grep, tar, gzip.
34372
34373 2007-04-04  Simon Josefsson  <simon@josefsson.org>
34374
34375         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
34376
34377 2007-04-04  Karl Berry  <karl@gnu.org>
34378
34379         * MODULES.html.sh (func_module): missing '.
34380
34381 2007-04-03  Bruno Haible  <bruno@clisp.org>
34382
34383         * modules/argmatch-tests (Makefile.am): New variable
34384         test_argmatch_LDADD.
34385         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
34386         * modules/array-list-tests (Makefile.am): New variable
34387         test_array_list_LDADD.
34388         * modules/array-oset-tests (Makefile.am): New variable
34389         test_array_oset_LDADD.
34390         * modules/avltree-list-tests (Makefile.am): New variable
34391         test_avltree_list_LDADD.
34392         * modules/avltree-oset-tests (Makefile.am): New variable
34393         test_avltree_oset_LDADD.
34394         * modules/avltreehash-list-tests (Makefile.am): New variable
34395         test_avltreehash_list_LDADD.
34396         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
34397         test_canonicalize_lgpl_LDADD.
34398         * modules/carray-list-tests (Makefile.am): New variable
34399         test_carray_list_LDADD.
34400         * modules/dirname-tests (Makefile.am): New variable
34401         test_dirname_LDADD.
34402         * modules/linked-list-tests (Makefile.am): New variable
34403         test_linked_list_LDADD.
34404         * modules/linkedhash-list-tests (Makefile.am): New variable
34405         test_linkedhash_list_LDADD.
34406         * modules/rbtree-list-tests (Makefile.am): New variable
34407         test_rbtree_list_LDADD.
34408         * modules/rbtree-oset-tests (Makefile.am): New variable
34409         test_rbtree_oset_LDADD.
34410         * modules/rbtreehash-list-tests (Makefile.am): New variable
34411         test_rbtreehash_list_LDADD.
34412         * modules/xvasprintf-tests (Makefile.am): New variable
34413         test_xvasprintf_LDADD.
34414         Reported by Eric Blake.
34415
34416 2007-04-03  Eric Blake  <ebb9@byu.net>
34417
34418         * DEPENDENCIES: Weaken m4 requirements.
34419
34420 2007-04-03  Bruno Haible  <bruno@clisp.org>
34421
34422         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
34423         * modules/isnanl-tests (configure.ac): Likewise.
34424
34425 2007-04-03  Ben Pfaff  <blp@gnu.org>
34426
34427         * modules/iconv_open: Add $(srcdir)/ to source directory
34428         references in Makefile fragments that call gperf, to fix VPATH
34429         builds.
34430
34431 2007-04-03  Bruno Haible  <bruno@clisp.org>
34432
34433         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
34434         * lib/ldexpl.c: Undo last change.
34435
34436 2007-04-03  Bruno Haible  <bruno@clisp.org>
34437
34438         * modules/printf-frexpl (Depends-on): Undo last change.
34439         (Files): Add m4/ldexpl.m4.
34440
34441 2007-04-03  Bruno Haible  <bruno@clisp.org>
34442
34443         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
34444         * modules/isnanl (Link): New section.
34445
34446         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
34447         * modules/frexp (Link): New section.
34448
34449         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
34450         * modules/frexpl (Link): New section.
34451
34452         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
34453         * modules/ldexpl (Link): New section.
34454
34455 2007-04-03  Bruno Haible  <bruno@clisp.org>
34456
34457         * modules/TEMPLATE-EXTENDED: New file.
34458         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
34459
34460 2007-04-03  Bruno Haible  <bruno@clisp.org>
34461
34462         * DEPENDENCIES: New file.
34463         Suggested by Simon Josefsson.
34464
34465 2007-04-03  Bruno Haible  <bruno@clisp.org>
34466
34467         * doc/gnulib.texi: Escape @.
34468
34469 2007-04-03  James Youngman  <jay@gnu.org>
34470         and Paul Eggert  <eggert@cs.ucla.edu>
34471
34472         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
34473         birthtime on all systems that have birthtime, not just those which
34474         use st_birthtimensec rather than st_birthtim.  Putting zero in
34475         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
34476         that the birth time is not available for files on an NFS mount.
34477
34478 2007-04-03  Simon Josefsson  <simon@josefsson.org>
34479
34480         * modules/memxor: Move back from crypto/, suggested by Bruno.
34481         * modules/crypto/hmac-sha1: Fix memxor dependency.
34482
34483         * modules/crypto/gc: Moved from ../.
34484
34485 2007-04-02  Eric Blake  <ebb9@byu.net>
34486
34487         * lib/ldexpl.c (includes): Avoid libm.
34488
34489         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
34490
34491 2007-04-02  Bruno Haible  <bruno@clisp.org>
34492
34493         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
34494         on IRIX.
34495
34496 2007-04-02  Bruno Haible  <bruno@clisp.org>
34497
34498         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
34499         x86 or x86_64 platforms running MacOS X.
34500         Reported by Ryan Schmidt <@ryandesign.com>.
34501
34502 2007-04-02  Bruno Haible  <bruno@clisp.org>
34503
34504         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
34505         i386.
34506
34507 2007-04-01  Simon Josefsson  <simon@josefsson.org>
34508
34509         * modules/crypto/arcfour: Moved from ../.
34510         * modules/crypto/arcfour-tests: Moved from ../.
34511         * modules/crypto/arctwo: Moved from ../.
34512         * modules/crypto/arctwo-tests: Moved from ../.
34513         * modules/crypto/des: Moved from ../.
34514         * modules/crypto/des-tests: Moved from ../.
34515         * modules/crypto/gc-arcfour: Moved from ../.
34516         * modules/crypto/gc-arcfour-tests: Moved from ../.
34517         * modules/crypto/gc-arctwo: Moved from ../.
34518         * modules/crypto/gc-arctwo-tests: Moved from ../.
34519         * modules/crypto/gc-des: Moved from ../.
34520         * modules/crypto/gc-des-tests: Moved from ../.
34521         * modules/crypto/gc-hmac-md5: Moved from ../.
34522         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
34523         * modules/crypto/gc-hmac-sha1: Moved from ../.
34524         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
34525         * modules/crypto/gc-md2: Moved from ../.
34526         * modules/crypto/gc-md2-tests: Moved from ../.
34527         * modules/crypto/gc-md4: Moved from ../.
34528         * modules/crypto/gc-md4-tests: Moved from ../.
34529         * modules/crypto/gc-md5: Moved from ../.
34530         * modules/crypto/gc-md5-tests: Moved from ../.
34531         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
34532         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
34533         * modules/crypto/gc-random: Moved from ../.
34534         * modules/crypto/gc-rijndael: Moved from ../.
34535         * modules/crypto/gc-rijndael-tests: Moved from ../.
34536         * modules/crypto/gc-sha1: Moved from ../.
34537         * modules/crypto/gc-sha1-tests: Moved from ../.
34538         * modules/crypto/gc-tests: Moved from ../.
34539         * modules/crypto/hmac-md5: Moved from ../.
34540         * modules/crypto/hmac-md5-tests: Moved from ../.
34541         * modules/crypto/hmac-sha1: Moved from ../.
34542         * modules/crypto/hmac-sha1-tests: Moved from ../.
34543         * modules/crypto/md2: Moved from ../.
34544         * modules/crypto/md2-tests: Moved from ../.
34545         * modules/crypto/md4: Moved from ../.
34546         * modules/crypto/md4-tests: Moved from ../.
34547         * modules/crypto/md5: Moved from ../.
34548         * modules/crypto/md5-tests: Moved from ../.
34549         * modules/crypto/memxor: Moved from ../.
34550         * modules/crypto/rijndael: Moved from ../.
34551         * modules/crypto/rijndael-tests: Moved from ../.
34552         * modules/crypto/sha1: Moved from ../.
34553
34554 2007-03-30  James Youngman  <jay@gnu.org>
34555
34556         * tests/test-stat-time.c (prepare_test): use chmod() rather than
34557         rename() to change the ctime of a file (because ctime is unaffected
34558         by rename on jfs2 on AIX 5.1).
34559         (main): Start by doing cleanup, in case a previous run failed leaving
34560         test files behind.
34561
34562 2007-03-31  Bruno Haible  <bruno@clisp.org>
34563
34564         Support old proprietary implementations of iconv.
34565         * modules/iconv_open: New file.
34566         * lib/iconv_.h: New file.
34567         * m4/iconv_h.m4: New file.
34568         * lib/iconv_open.c: New file.
34569         * lib/iconv_open-aix.gperf: New file.
34570         * lib/iconv_open-hpux.gperf: New file.
34571         * lib/iconv_open-irix.gperf: New file.
34572         * lib/iconv_open-osf.gperf: New file.
34573         * m4/iconv_open.m4: New file.
34574         * modules/linebreak (Depends-on): Add iconv_open.
34575         * modules/striconv (Depends-on): Likewise.
34576         * modules/striconveh (Depends-on): Likewise.
34577         * modules/unicodeio (Depends-on): Likewise.
34578         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
34579         (iconv_t)(-1).
34580         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
34581         conversion if cd is (iconv_t)(-1).
34582         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
34583         is not possible.
34584
34585 2007-03-31  Bruno Haible  <bruno@clisp.org>
34586
34587         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
34588         work on Solaris either. Protect also second use of "autodetect_jp".
34589
34590 2007-03-31  Bruno Haible  <bruno@clisp.org>
34591
34592         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
34593         the function is not present.
34594
34595 2007-03-31  Bruno Haible  <bruno@clisp.org>
34596
34597         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
34598         the function is not present.
34599
34600 2007-03-31  Bruno Haible  <bruno@clisp.org>
34601
34602         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
34603         a bug in HP-UX iconv_open().
34604
34605 2007-03-31  Bruno Haible  <bruno@clisp.org>
34606
34607         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
34608         (Mathematics <math.h>): New section, add fpieee.
34609         (Input/output <stdio.h>): Add fseterr.
34610         (Mathematics <math.h>): New section, add printf-frexp.
34611         (Container data structures): Add sublist.
34612         (Core language properties): Add fpucw, inline.
34613         (Functions for greatest-width integer types <inttypes.h>): Add
34614         imaxabs, imaxdiv, inttypes.
34615         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
34616         isnanl-nolibm, ldexp.
34617         (Mathematics <math.h>): New section, add printf-frexpl.
34618         (Support for systems lacking POSIX:2001): Add fprintf-posix,
34619         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
34620         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
34621         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
34622         (Unicode string functions): Add unistr/u*-mbtoucr.
34623         (Java): Add javacomp-script, javaexec-script.
34624         (C#): Add csharpcomp-script, csharpexec-script.
34625         (Support for building libraries and executables): Add havelib,
34626         relocatable-*.
34627         (Support for maintaining and releasing projects): Renamed from
34628         'Support for maintaining and release projects'. Add announce-gen.
34629
34630 2007-03-31  Bruno Haible  <bruno@clisp.org>
34631
34632         * README: Talk primarily about git.
34633         (git and CVS): Renamed from CVS.
34634         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
34635         gnulib is available through git.
34636         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
34637
34638 2007-03-30  Bruno Haible  <bruno@clisp.org>
34639
34640         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
34641         * lib/poll_.h: Likewise.
34642         * lib/stat_.h: Likewise.
34643         * lib/sys_time_.h: Likewise.
34644         * lib/sysexit_.h: Likewise.
34645         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
34646         * lib/stdbool_.h: Likewise.
34647         * lib/byteswap_.h: Add double-inclusion guard.
34648
34649 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
34650
34651         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
34652
34653 2007-03-30  Karl Berry  <karl@gnu.org>
34654
34655         * config/srclist-update: double space after USA in the license
34656         substitution, since that's how it's usually (?) written.
34657
34658 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
34659
34660         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
34661         reported by Bruno Haible.
34662
34663 2007-03-29  Bruno Haible  <bruno@clisp.org>
34664
34665         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
34666         a bug in AIX iconv().
34667
34668 2007-03-29  Bruno Haible  <bruno@clisp.org>
34669
34670         * modules/ldexpl-tests: New file.
34671         * tests/test-ldexpl.c: New file.
34672
34673 2007-03-29  Bruno Haible  <bruno@clisp.org>
34674
34675         * lib/ldexpl.c: Include fpucw.h.
34676         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
34677         multiplication.
34678         * modules/ldexpl (Depends-on): Add fpucw.
34679
34680 2007-03-29  Bruno Haible  <bruno@clisp.org>
34681
34682         * modules/ldexpl: New file.
34683         * m4/ldexpl.m4: New file.
34684         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
34685         set.
34686         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
34687         REPLACE_LDEXPL.
34688         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
34689         REPLACE_LDEXPL.
34690         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
34691         gl_FUNC_LDEXPL_WORKS.
34692         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
34693         * modules/mathl (Files): Remove lib/ldexpl.c.
34694         (Depends-on): Add ldexpl.
34695
34696 2007-03-29  Bruno Haible  <bruno@clisp.org>
34697
34698         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
34699
34700 2007-03-29  Bruno Haible  <bruno@clisp.org>
34701
34702         * tests/test-striconveh.c (main): Don't assume that a direct conversion
34703         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
34704         and possibly also HP-UX.
34705         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
34706         work on AIX, IRIX, HP-UX, OSF/1.
34707         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
34708         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
34709         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
34710         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
34711         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
34712         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
34713
34714 2007-03-29  Bruno Haible  <bruno@clisp.org>
34715
34716         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
34717
34718 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
34719
34720         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
34721         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
34722
34723 2007-03-29  Eric Blake  <ebb9@byu.net>
34724
34725         * lib/acl-internal.h: Remove redundant include.
34726         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
34727         Cygwin when a file is locked.
34728
34729 2007-03-29  Bruno Haible  <bruno@clisp.org>
34730
34731         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
34732         file.
34733         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
34734
34735 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
34736
34737         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
34738         try to remove a parent directory if the child couldn't be removed
34739         (except for the first rmdir, which could fail because the child
34740         doesn't exist).  Problem reported by Jeff Blaine in
34741         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
34742
34743 2007-03-28  Bruno Haible  <bruno@clisp.org>
34744
34745         * lib/striconveh.c (utf8conv_carefully): New function.
34746         (mem_cd_iconveh_internal): Invoke it.
34747
34748 2007-03-28  Bruno Haible  <bruno@clisp.org>
34749
34750         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
34751         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
34752         input.
34753         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
34754         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
34755         unistr/u8-uctomb.
34756
34757 2007-03-28  Bruno Haible  <bruno@clisp.org>
34758
34759         * modules/unistr/u8-mbtoucr: New file.
34760         * lib/unistr/u8-mbtoucr.c: New file.
34761         * modules/unistr/u16-mbtoucr: New file.
34762         * lib/unistr/u16-mbtoucr.c: New file.
34763         * modules/unistr/u16-mbtoucr: New file.
34764         * lib/unistr/u16-mbtoucr.c: New file.
34765         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
34766
34767 2007-03-27  Simon Josefsson  <simon@josefsson.org>
34768             Bruno Haible  <bruno@clisp.org>
34769
34770         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
34771         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
34772         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
34773
34774         * m4/stdio_h.m4: Add stubs for vasprintf too.
34775
34776         * modules/stdio: Support vasprintf in sed command.
34777
34778         * modules/vasprintf: Depend on stdio for prototypes.  Remove
34779         vasprintf.h.  Add stdio module indicator.
34780
34781         * lib/stdio_.h: Declare asprintf and vasprintf, based on
34782         vasprintf.h.
34783
34784         * lib/vasprintf.h: File removed.
34785
34786         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
34787         * lib/vasprintf.c: Ditto.
34788         * lib/xvasprintf.c: Ditto.
34789         * tests/test-vasprintf-posix.c: Ditto.
34790         * tests/test-vasprintf.c: Ditto.
34791
34792 2007-03-27  Bruno Haible  <bruno@clisp.org>
34793
34794         Make vasnprintf multithread-safe.
34795         * lib/vasnprintf.c (decimal_point_char): New function.
34796         (VASNPRINTF): Use it.
34797         Suggested by Simon Josefsson.
34798
34799 2007-03-27  Eric Blake  <ebb9@byu.net>
34800
34801         Support sub-second birthtime on cygwin.
34802         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
34803         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
34804         (get_stat_birthtime): Also work with st_birthtim.
34805
34806 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
34807
34808         * lib/stat-time.h (USE_BIRTHTIME): Remove.
34809         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
34810         (get_stat_birthtime_ns): Do not try to use "spare" fields.
34811         (get_stat_birthtime_ns): Simplify compile-time tests.
34812         (get_stat_birthtime): Change the API to look like
34813         get_stat_mtime etc., except return a negative tv_nsec on error.
34814         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
34815         Don't check for "spare" fields.
34816         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
34817         or for struct stat.st_birthtime, as these tests aren't used.
34818         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
34819
34820 2007-03-27  Bruno Haible  <bruno@clisp.org>
34821
34822         * lib/stat-time.h: Include <sys/stat.h>.
34823
34824 2007-03-27  James Youngman  <jay@gnu.org>
34825
34826         * lib/stat-time.h (get_stat_birthtime): New function for
34827           retrieving st_birthtime as provided by UFS2 (hence *BSD).
34828         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
34829           and its variants.
34830         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
34831         * modules/stat-time-test: New file.
34832         * tests/test-stat-time.c: New test, devised by Bruno Haible.
34833
34834 2007-03-26  Bruno Haible  <bruno@clisp.org>
34835
34836         Better support of signalling NaNs.
34837         * lib/atanl.c: Include isnanl.h.
34838         (atanl): Perform test for NaN at the beginning of the function and
34839         through a call to isnanl.
34840         * lib/cosl.c: Include isnanl.h.
34841         (cosl): Perform test for NaN at the beginning of the function and
34842         through a call to isnanl.
34843         * lib/ldexpl.c: Include isnanl.h.
34844         (ldexpl): Perform test for NaN through a call to isnanl.
34845         * lib/logl.c: Include isnanl.h.
34846         (logl): Perform test for NaN at the beginning of the function and
34847         through a call to isnanl.
34848         * lib/sinl.c: Include isnanl.h.
34849         (sinl): Perform test for NaN at the beginning of the function and
34850         through a call to isnanl.
34851         * lib/sqrtl.c: Include isnanl.h.
34852         (sqrtl): Perform test for NaN at the beginning of the function and
34853         through a call to isnanl.
34854         * lib/tanl.c: Include isnanl.h.
34855         (tanl): Perform test for NaN at the beginning of the function and
34856         through a call to isnanl.
34857         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
34858         * modules/mathl (Depends-on): Add isnanl.
34859
34860 2007-03-26  Eric Blake  <ebb9@byu.net>
34861
34862         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
34863         regression in logic sense of previous patch.
34864
34865 2007-03-26  Bruno Haible  <bruno@clisp.org>
34866
34867         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
34868         unportable shell command "if ! ...".
34869         Reported by Ralf Wildenhues.
34870
34871 2007-03-25  Bruno Haible  <bruno@clisp.org>
34872
34873         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
34874         <sysexits.h> file, and only add EX_CONFIG.
34875         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
34876         absolute file name and whether it is sufficient. Substitute also
34877         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
34878         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
34879         ABSOLUTE_SYSEXITS_H into sysexits.h.
34880
34881 2007-03-25  Bruno Haible  <bruno@clisp.org>
34882
34883         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
34884         hints is NULL.
34885
34886 2007-03-25  Bruno Haible  <bruno@clisp.org>
34887
34888         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
34889         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
34890
34891 2007-03-25  Bruno Haible  <bruno@clisp.org>
34892
34893         * lib/vasnprintf.c: Include langinfo.h.
34894         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
34895         multithread-safe.
34896         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
34897         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
34898         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34899         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34900         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34901         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34902         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34903         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
34904         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34905         Reported by Simon Josefsson.
34906
34907 2007-03-25  Bruno Haible  <bruno@clisp.org>
34908
34909         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
34910         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
34911         * modules/vasnprintf (Depends-on): Add stdint.
34912
34913 2007-03-25  Bruno Haible  <bruno@clisp.org>
34914
34915         * modules/fpieee: New file.
34916         * m4/fpieee.m4: New file.
34917         * modules/isnan-nolibm (Depends-on): Add fpieee.
34918         * modules/isnanl-nolibm (Depends-on): Add fpieee.
34919         * modules/isnanl (Depends-on): Add fpieee.
34920
34921 2007-03-25  Bruno Haible  <bruno@clisp.org>
34922
34923         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
34924
34925 2007-03-25  Bruno Haible  <bruno@clisp.org>
34926
34927         Avoid test failures on IRIX 6.5.
34928         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
34929         (main): Use it.
34930         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
34931         macros.
34932         (main): Use them.
34933
34934 2007-03-25  Bruno Haible  <bruno@clisp.org>
34935
34936         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
34937         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
34938         exists but doesn't work.
34939         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
34940         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
34941         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
34942         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
34943
34944 2007-03-25  Bruno Haible  <bruno@clisp.org>
34945
34946         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
34947         returns inf. Needed on IRIX 6.5.
34948
34949 2007-03-25  Bruno Haible  <bruno@clisp.org>
34950
34951         * tests/test-frexpl.c: Include isnanl-nolibm.h.
34952         (main): Use isnanl instead of x != x idiom.
34953         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
34954
34955         * tests/test-frexp.c: Include isnan.h.
34956         (main): Use isnan instead of x != x idiom.
34957         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
34958
34959 2007-03-25  Bruno Haible  <bruno@clisp.org>
34960
34961         * tests/test-frexp.c (NaN): New function/macro.
34962         (main): Use it instead of 0.0 / 0.0.
34963         * tests/test-isnan.c (NaN): New function/macro.
34964         (main): Use it instead of 0.0 / 0.0.
34965         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
34966         (test_function): Use it instead of 0.0 / 0.0.
34967         * tests/test-vasprintf-posix.c (NaN): New function/macro.
34968         (test_function): Use it instead of 0.0 / 0.0.
34969         * tests/test-snprintf-posix.h (NaN): New function/macro.
34970         (test_function): Use it instead of 0.0 / 0.0.
34971         * tests/test-sprintf-posix.h (NaN): New function/macro.
34972         (test_function): Use it instead of 0.0 / 0.0.
34973         * tests/test-fprintf-posix.h (NaN): New function/macro.
34974         (test_function): Use it instead of 0.0 / 0.0.
34975         * tests/test-printf-posix.h (NaN): New function/macro.
34976         (test_function): Use it instead of 0.0 / 0.0.
34977
34978         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
34979
34980 2007-03-25  Bruno Haible  <bruno@clisp.org>
34981
34982         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
34983
34984 2007-03-25  Bruno Haible  <bruno@clisp.org>
34985
34986         * lib/regexec.c (merge_state_with_log): Make static.
34987
34988 2007-03-25  Bruno Haible  <bruno@clisp.org>
34989
34990         * lib/trigl.c (kernel_rem_pio2): Make static.
34991
34992 2007-03-25  Bruno Haible  <bruno@clisp.org>
34993
34994         * lib/sincosl.c (sincosl_table): Make static.
34995
34996 2007-03-25  Bruno Haible  <bruno@clisp.org>
34997
34998         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
34999         if the compiler does not support C99.
35000
35001 2007-03-25  Bruno Haible  <bruno@clisp.org>
35002
35003         * modules/time (Makefile.am): Ensure all rule action lines start with a
35004         tab.
35005
35006 2007-03-24  Bruno Haible  <bruno@clisp.org>
35007
35008         * modules/tsearch-tests: New file.
35009         * tests/test-tsearch.sh: New file.
35010         * tests/test-tsearch.c: New file, mostly copied from glibc.
35011
35012         * modules/search-tests: New file.
35013         * tests/test-search.c: New file.
35014
35015         * modules/search: New file.
35016         * lib/search_.h: New file, incorporating lib/tsearch.h.
35017         * m4/search_h.m4: New file.
35018         * lib/tsearch.h: Remove file.
35019         * lib/tsearch.c: Include search.h instead of tsearch.h.
35020         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
35021         HAVE_TSEARCH.
35022         * modules/tsearch (Files): Remove lib/tsearch.h.
35023         (Depends-on): Add search.
35024         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
35025         (Include): Change tsearch.h into search.h.
35026
35027 2007-03-24  Bruno Haible  <bruno@clisp.org>
35028
35029         * modules/fpucw: New file.
35030         * lib/fpucw.h: New file.
35031         * lib/frexp.c: Include fpucw.h.
35032         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
35033         (FUNC): Use them.
35034         * lib/printf-frexp.c: Include fpucw.h.
35035         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
35036         (FUNC): Use them.
35037         * lib/vasnprintf.c: Include fpucw.h.
35038         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
35039         'long double' calculations.
35040         * tests/test-frexpl.c: Include fpucw.h.
35041         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
35042         * tests/test-printf-frexpl.c: Include fpucw.h.
35043         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
35044         * modules/frexpl (Depends-on): Add fpucw.
35045         * modules/printf-frexpl (Depends-on): Likewise.
35046         * modules/fprintf-posix (Depends-on): Likewise.
35047         * modules/snprintf-posix (Depends-on): Likewise.
35048         * modules/sprintf-posix (Depends-on): Likewise.
35049         * modules/vasnprintf-posix (Depends-on): Likewise.
35050         * modules/vasprintf-posix (Depends-on): Likewise.
35051         * modules/vfprintf-posix (Depends-on): Likewise.
35052         * modules/vsnprintf-posix (Depends-on): Likewise.
35053         * modules/vsprintf-posix (Depends-on): Likewise.
35054         * modules/frexpl-tests (Depends-on): Likewise.
35055         * modules/printf-frexpl-tests (Depends-on): Likewise.
35056
35057 2007-03-24  Bruno Haible  <bruno@clisp.org>
35058
35059         * lib/float+.h: New file.
35060         * lib/isnan.c: Include float+.h.
35061         (SIZE): New macro.
35062         (FUNC): Compare only SIZE bytes of the value.
35063         * lib/vasnprintf.c: Include float+.h.
35064         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
35065         SIZEOF_LDBL or SIZEOF_DBL bytes.
35066         * modules/isnan-nolibm (Files): Add lib/float+.h.
35067         * modules/isnanl-nolibm (Files): Add lib/float+.h.
35068         * modules/isnanl (Files): Add lib/float+.h.
35069         * modules/vasnprintf (Files): Add lib/float+.h.
35070
35071 2007-03-24  Bruno Haible  <bruno@clisp.org>
35072
35073         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
35074         include isnanl-nolibm.h.
35075
35076 2007-03-24  Bruno Haible  <bruno@clisp.org>
35077
35078         * tests/test-read-file.c (main): Don't produce spurious output for
35079         expected situations. Make the test fail if it encountered unexpected
35080         results.
35081
35082 2007-03-24  Bruno Haible  <bruno@clisp.org>
35083
35084         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
35085         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
35086
35087 2007-03-24  Bruno Haible  <bruno@clisp.org>
35088
35089         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
35090
35091 2007-03-24  Bruno Haible  <bruno@clisp.org>
35092
35093         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
35094         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
35095
35096         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
35097         * modules/utf8-ucs4: Turn into a symbolic link to module
35098         unistr/u8-mbtouc.
35099
35100         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
35101         utf8-ucs4-unsafe.
35102         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
35103         unistr/u8-mbtouc-unsafe.
35104
35105         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
35106         * modules/utf16-ucs4: Turn into a symbolic link to module
35107         unistr/u16-mbtouc.
35108
35109         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
35110         utf16-ucs4-unsafe.
35111         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
35112         unistr/u16-mbtouc-unsafe.
35113
35114         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
35115         * modules/ucs4-utf8: Turn into a symbolic link to module
35116         unistr/u8-ubtomb.
35117
35118         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
35119         * modules/ucs4-utf16: Turn into a symbolic link to module
35120         unistr/u16-ubtomb.
35121
35122 2007-03-24  Bruno Haible  <bruno@clisp.org>
35123
35124         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
35125         Enable the function only if HAVE_INLINE.
35126         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
35127         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
35128         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
35129         Enable the function only if HAVE_INLINE.
35130         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
35131         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
35132         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
35133         Enable the function only if HAVE_INLINE.
35134         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
35135         Enable the function only if HAVE_INLINE.
35136         * modules/utf8-ucs4: Update.
35137         * modules/utf8-ucs4-unsafe: Update.
35138         * modules/utf16-ucs4: Update.
35139         * modules/utf16-ucs4-unsafe: Update.
35140         * modules/ucs4-utf8: Update.
35141         * modules/ucs4-utf16: Update.
35142
35143 2007-03-24  Bruno Haible  <bruno@clisp.org>
35144
35145         * lib/utf8-ucs4.h: Remove file.
35146         * lib/utf8-ucs4-unsafe.h: Remove file.
35147         * lib/utf16-ucs4.h: Remove file.
35148         * lib/utf16-ucs4-unsafe.h: Remove file.
35149         * lib/ucs4-utf8.h: Remove file.
35150         * lib/ucs4-utf16.h: Remove file.
35151         * lib/unistr.h: Include their previous contents.
35152         * m4/utf-ucs4.m4: Remove file.
35153         * m4/ucs4-utf.m4: Remove file.
35154         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
35155         (Depends-on): Add unistr/base.
35156         (configure.ac): Remove gl_UTF_UCS4.
35157         (Makefile.am): Update.
35158         (Include): Change to unistr.h.
35159         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
35160         (Depends-on): Add unistr/base.
35161         (configure.ac): Remove gl_UTF_UCS4.
35162         (Makefile.am): Update.
35163         (Include): Change to unistr.h.
35164         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
35165         (Depends-on): Add unistr/base.
35166         (configure.ac): Remove gl_UTF_UCS4.
35167         (Makefile.am): Update.
35168         (Include): Change to unistr.h.
35169         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
35170         (Depends-on): Add unistr/base.
35171         (configure.ac): Remove gl_UTF_UCS4.
35172         (Makefile.am): Update.
35173         (Include): Change to unistr.h.
35174         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
35175         (Depends-on): Add unistr/base.
35176         (configure.ac): Remove gl_UCS4_UTF.
35177         (Makefile.am): Update.
35178         (Include): Change to unistr.h.
35179         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
35180         (Depends-on): Add unistr/base.
35181         (configure.ac): Remove gl_UCS4_UTF.
35182         (Makefile.am): Update.
35183         (Include): Change to unistr.h.
35184         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
35185         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
35186         utf8-ucs4-unsafe.h.
35187         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
35188         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
35189         utf16-ucs4-unsafe.h.
35190         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
35191         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
35192         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
35193         * lib/unistr/u8-strchr.c: Likewise.
35194         * lib/unistr/u8-strrchr.c: Likewise.
35195         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
35196         * lib/unistr/u16-strchr.c: Likewise.
35197         * lib/unistr/u16-strrchr.c: Likewise.
35198         * lib/striconveh.c: Update.
35199         * lib/linebreak.c: Update.
35200
35201 2007-03-24  Bruno Haible  <bruno@clisp.org>
35202
35203         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
35204         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
35205
35206 2007-03-22  Bruno Haible  <bruno@clisp.org>
35207
35208         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
35209
35210 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
35211
35212         * MODULES.html.sh (File system functions): New module write-any-file.
35213         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
35214         * m4/write-any-file.m4: New files.
35215
35216 2007-03-23  Eric Blake  <ebb9@byu.net>
35217
35218         * gnulib-tool: Rearrange space-tab sequences, since some editors
35219         like to eat them.
35220
35221 2007-03-23  Eric Blake  <ebb9@byu.net>
35222
35223         * lib/version-etc.c (version_etc_va): Update license wording to
35224         be more concise.  Recommended by Richard Stallman.
35225
35226 2007-03-22  Bruno Haible  <bruno@clisp.org>
35227
35228         * lib/poll.c (MSG_PEEK): New fallback definition.
35229
35230 2007-03-22  Bruno Haible  <bruno@clisp.org>
35231
35232         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
35233         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
35234         (main): Update.
35235         Fixes a compilation error on BeOS.
35236
35237 2007-03-22  Bruno Haible  <bruno@clisp.org>
35238
35239         * modules/frexpl-tests: New file.
35240         * tests/test-frexpl.c: New file.
35241
35242         * modules/frexpl: New file.
35243         * m4/frexpl.m4: New file.
35244         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
35245         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
35246         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
35247         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
35248         (Depends-on): Add frexpl. Remove isnanl-nolibm.
35249         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
35250
35251 2007-03-22  Bruno Haible  <bruno@clisp.org>
35252
35253         * lib/frexpl.c: Share code with lib/frexp.c.
35254         * modules/mathl (Files): Add lib/frexp.c.
35255         (Depends-on): Add isnanl-nolibm.
35256
35257 2007-03-22  Bruno Haible  <bruno@clisp.org>
35258
35259         * modules/printf-frexp (Files): Add m4/frexp.m4.
35260         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
35261         only if the found frexp function actually works.
35262
35263 2007-03-22  Bruno Haible  <bruno@clisp.org>
35264
35265         * lib/frexp.c: Remove older implementation that uses divisions.
35266
35267 2007-03-21  Bruno Haible  <bruno@clisp.org>
35268
35269         * modules/frexp-tests: New file.
35270         * tests/test-frexp.c: New file.
35271
35272         * modules/frexp: New file.
35273         * lib/frexp.c: New file.
35274         * m4/frexp.m4: New file.
35275         * lib/math_.h (frexp): New declaration.
35276         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
35277         REPLACE_FREXP.
35278         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
35279
35280 2007-03-21  Bruno Haible  <bruno@clisp.org>
35281
35282         * modules/isnanl-tests: New file.
35283         * tests/test-isnanl.c: New file.
35284
35285         * modules/isnanl: New file.
35286         * lib/isnanl.h: New file.
35287         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
35288         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
35289         gl_FUNC_ISNANL_WORKS.
35290         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
35291         New macros.
35292
35293 2007-03-21  Bruno Haible  <bruno@clisp.org>
35294
35295         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
35296         lib/isnanl.h.
35297         (Include): Update.
35298         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
35299         * lib/vasnprintf.c: Update.
35300         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
35301         tests/test-isnanl.h, remove tests/test-isnanl.c.
35302         (Makefile.am): Update.
35303         * tests/test-isnanl-nolibm.c: New file.
35304         * tests/test-isnanl.h: New file.
35305         * tests/test-isnanl.c: Remove file.
35306
35307 2007-03-21  Jim Meyering  <jim@meyering.net>
35308
35309         When trying to open ".", treat ESTALE like EACCES.
35310         * lib/savewd.c (savewd_save): Resort to forking not just upon
35311         failure with EACCES, but also when errno is ESTALE.
35312
35313 2007-03-20  Bruno Haible  <bruno@clisp.org>
35314
35315         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
35316         Needed on AIX 5.1. Reported by Matthew Woehlke.
35317
35318 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
35319
35320         Suggestions by Bruno Haible:
35321         * lib/acl-internal.h: Include "gettext.h" rather than rolling
35322         our own.
35323         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
35324         * modules/acl (Depends-on): Add gettext.
35325
35326 2007-03-19  Bruno Haible  <bruno@clisp.org>
35327
35328         * modules/iconvme: Remove file.
35329         * lib/iconvme.h: Remove file.
35330         * lib/iconvme.c: Remove file.
35331         * m4/iconvme.m4: Remove file.
35332
35333 2007-03-19  Bruno Haible  <bruno@clisp.org>
35334
35335         * doc/relocatable-maint.texi: Break long shell script line.
35336         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
35337
35338 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
35339
35340         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
35341         handle file_has_acl.
35342         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
35343         * lib/acl.c: Move header inclusions and related macro defns into
35344         lib/acl-internal.h.
35345         (S_ISLNK): Remove defn, since that's now done for us.
35346         (file_has_acl): Move to lib/file-has-acl.c.
35347         Call acl_trivial if available.  This is the crucial part of the fix.
35348         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
35349         shared within the library.  Rewrite a bit, partly to make it compatible
35350         with the GNU coding style.
35351         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
35352         Remove unnecessary double-quotes.
35353         Don't test for acl_to_text; the build will catch that.
35354         Replace acl_entries if it doesn't exist and it is needed.
35355         Check for -lsec and acl_trivial (as used on Solaris 10).
35356         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
35357         lib/file-has-acl.c.
35358         (Depends-on): Add sys_stat, for S_ISLNK.
35359
35360 2007-03-19  Ben Pfaff  <blp@gnu.org>
35361
35362         * doc/gnulib.texi: Fix typos.
35363         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
35364
35365 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
35366
35367         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
35368         If size is zero here, buf must be zero.
35369
35370 2007-03-19  Simon Josefsson  <simon@josefsson.org>
35371
35372         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
35373         <bruno@clisp.org>.
35374
35375 2007-03-18  Bruno Haible  <bruno@clisp.org>
35376
35377         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
35378         Suggested by Eric Blake.
35379
35380 2007-03-18  Ben Pfaff  <blp@gnu.org>
35381
35382         * doc/relocatable.texi: Recommend using as prefix a directory
35383         that does not exist and will never be created.  Based on
35384         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
35385         and others.
35386
35387 2007-03-17  Bruno Haible  <bruno@clisp.org>
35388
35389         * lib/fchownat.c: Include lchown.h.
35390
35391 2007-03-17  Bruno Haible  <bruno@clisp.org>
35392
35393         Fix endless loop when the given allocated size was > INT_MAX.
35394         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
35395         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
35396         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
35397         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
35398         * lib/sprintf.c (sprintf): Likewise.
35399
35400 2007-03-17  Bruno Haible  <bruno@clisp.org>
35401
35402         * tests/test-argp-2.sh (func_compare): Output a context diff.
35403
35404 2007-03-17  Bruno Haible  <bruno@clisp.org>
35405
35406         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
35407         locale's decimal-point character.
35408
35409 2007-03-17  Bruno Haible  <bruno@clisp.org>
35410
35411         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
35412         before comparing it. Needed because on some platforms (e.g. x86) a
35413         'long double' occupies less bytes than sizeof (long double).
35414
35415 2007-03-17  Bruno Haible  <bruno@clisp.org>
35416
35417         * tests/test-crc.c (main): Make printf statements 64-bit clean.
35418         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
35419         * tests/test-getaddrinfo.c (simple): Likewise.
35420         * tests/test-read-file.c (main): Likewise.
35421
35422 2007-03-17  Bruno Haible  <bruno@clisp.org>
35423
35424         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
35425
35426 2007-03-17  Bruno Haible  <bruno@clisp.org>
35427
35428         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
35429         unused variable.
35430
35431 2007-03-17  Bruno Haible  <bruno@clisp.org>
35432
35433         * tests/test-c-strcasecmp.c: Include c-strcase.h.
35434         * tests/test-c-strncasecmp.c: Likewise.
35435
35436 2007-03-17  Bruno Haible  <bruno@clisp.org>
35437
35438         * modules/stdlib (Depends-on): Add unistd.
35439         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
35440         Needed for MacOS X 10.3.
35441
35442 2007-03-17  Bruno Haible  <bruno@clisp.org>
35443
35444         * lib/unistr/u-strdup.h: Include <stdlib.h>.
35445
35446 2007-03-17  Bruno Haible  <bruno@clisp.org>
35447
35448         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
35449
35450 2007-03-17  Bruno Haible  <bruno@clisp.org>
35451
35452         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
35453         to reflect files copied from gnulib (with or without modifications).
35454         Suggested by Jim Meyering.
35455
35456 2007-03-17  Eric Blake  <ebb9@byu.net>
35457
35458         * NEWS: Document stdlib change from 2007-02-18.
35459
35460 2007-03-17  Jim Meyering  <jim@meyering.net>
35461
35462         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
35463         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
35464         someone uses a name containing shell meta-characters.
35465         Reported by Alfred M. Szmidt.
35466
35467         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
35468
35469 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
35470
35471         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
35472         and copy gettext configuration files only if configure.ac contains
35473         a use of AM_GNU_GETTEXT_VERSION.
35474
35475 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
35476
35477         * build-aux/bootstrap (gnulib_name): New variable.
35478         (gnulib_tool_options): Use it.
35479
35480 2007-03-13  Simon Josefsson  <simon@josefsson.org>
35481
35482         * tests/test-des.c: Use new namespace.
35483
35484 2007-03-15  Bruno Haible  <bruno@clisp.org>
35485
35486         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
35487         Reported by James Youngman <jay@gnu.org>.
35488
35489 2007-03-15  Bruno Haible  <bruno@clisp.org>
35490
35491         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
35492         declared prototype. Needed with cc on OSF/1 5.1.
35493
35494 2007-03-15  Bruno Haible  <bruno@clisp.org>
35495
35496         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
35497         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
35498         (struct gl_list_implementation): Add dispose_fn argument to the
35499         'create_empty', 'create' methods.
35500         (struct gl_list_impl_base): Add field 'dispose_fn'.
35501         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
35502         argument.
35503         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
35504         dispose_fn argument.
35505         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
35506         dispose_fn on the dropped values.
35507         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
35508         dispose_fn argument.
35509         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
35510         dropped values.
35511         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
35512         (gl_tree_remove_node): Call dispose_fn on the dropped value.
35513         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
35514         (gl_tree_remove_node): Call dispose_fn on the dropped value.
35515         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
35516         argument.
35517         (gl_tree_list_free): Call dispose_fn on the dropped values.
35518         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
35519         the dropped values.
35520         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
35521         Add dispose_fn argument.
35522         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
35523         Call dispose_fn on the dropped values.
35524         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
35525         Add dispose_fn argument.
35526         (gl_sublist_create): Initialize the 'dispose_fn' field.
35527         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
35528         * tests/test-array_list.c (main): Update.
35529         * tests/test-carray_list.c (main): Update.
35530         * tests/test-avltree_list.c (main): Update.
35531         * tests/test-rbtree_list.c (main): Update.
35532         * tests/test-avltreehash_list.c (main): Update.
35533         * tests/test-rbtreehash_list.c (main): Update.
35534         * tests/test-linked_list.c (main): Update.
35535         * tests/test-linkedhash_list.c (main): Update.
35536         * tests/test-array_oset.c (main): Update.
35537
35538 2007-03-15  Bruno Haible  <bruno@clisp.org>
35539
35540         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
35541         (gl_oset_create_empty): Add dispose_fn argument.
35542         (struct gl_oset_implementation): Add dispose_fn argument to
35543         'create_empty' method.
35544         (struct gl_oset_impl_base): Add dispose_fn field.
35545         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
35546         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
35547         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
35548         values.
35549         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
35550         (gl_tree_oset_free): Call dispose_fn on the dropped values.
35551         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
35552         dropped value.
35553         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
35554         dropped value.
35555         * tests/test-array_oset.c (main): Update.
35556         * tests/test-avltree_oset.c (main): Update.
35557         * tests/test-rbtree_oset.c (main): Update.
35558         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
35559
35560 2007-03-13  Bruno Haible  <bruno@clisp.org>
35561
35562         * tests/test-stdbool.c (i): Update after last patch.
35563
35564 2007-03-12  Bruno Haible  <bruno@clisp.org>
35565
35566         * lib/quotearg.c: Include <wctype.h> early, before the definition of
35567         the iswprint macro. Needed on Solaris 2.5.1.
35568
35569 2007-03-12  Bruno Haible  <bruno@clisp.org>
35570
35571         * tests/test-printf-frexp.c (main): Declare x as volatile.
35572
35573 2007-03-12  Simon Josefsson  <simon@josefsson.org>
35574
35575         * doc/gnulib.texi (Build robot for gnulib): New section.
35576
35577 2007-03-12  Jim Meyering  <jim@meyering.net>
35578
35579         * build-aux/bootstrap: New file.
35580         * build-aux/bootstrap.conf: New file, from coreutils.
35581
35582 2007-03-11  Bruno Haible  <bruno@clisp.org>
35583
35584         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
35585
35586 2007-03-12  Simon Josefsson  <simon@josefsson.org>
35587
35588         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
35589         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
35590         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
35591
35592 2007-03-11  Bruno Haible  <bruno@clisp.org>
35593
35594         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
35595         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
35596
35597 2007-03-11  Bruno Haible  <bruno@clisp.org>
35598
35599         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
35600         formula. Needed for SunPRO C 5.0.
35601
35602 2007-03-11  Bruno Haible  <bruno@clisp.org>
35603
35604         * modules/long-options (Depends-on): Add getopt.
35605
35606 2007-03-11  Bruno Haible  <bruno@clisp.org>
35607
35608         * modules/modechange (Depends-on): Add stdbool.
35609
35610 2007-03-11  Bruno Haible  <bruno@clisp.org>
35611
35612         * modules/i-ring (Depends-on): Add stdbool.
35613
35614 2007-03-11  Bruno Haible  <bruno@clisp.org>
35615
35616         * modules/gc-des (Depends-on): Add stdbool.
35617
35618 2007-03-11  Bruno Haible  <bruno@clisp.org>
35619
35620         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
35621
35622 2007-03-11  Bruno Haible  <bruno@clisp.org>
35623
35624         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
35625
35626 2007-03-11  Bruno Haible  <bruno@clisp.org>
35627
35628         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
35629
35630 2007-03-11  Bruno Haible  <bruno@clisp.org>
35631
35632         * lib/vasnprintf.c (sprintf): Undefine.
35633
35634 2007-03-11  Bruno Haible  <bruno@clisp.org>
35635
35636         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
35637         initializers in SunPRO C and Compaq C compilers.
35638
35639 2007-03-11  Bruno Haible  <bruno@clisp.org>
35640
35641         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
35642         decrementing code ANSI C compliant.
35643
35644 2007-03-11  Bruno Haible  <bruno@clisp.org>
35645
35646         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
35647         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
35648
35649 2007-03-11  Bruno Haible  <bruno@clisp.org>
35650
35651         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
35652         <stdbool.h> substitute doesn't pass.
35653
35654 2007-03-11  Bruno Haible  <bruno@clisp.org>
35655
35656         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
35657
35658 2007-03-11  Bruno Haible  <bruno@clisp.org>
35659
35660         * gnulib-tool (func_create_megatestdir): Create also an autobuild
35661         script, for submission to autobuild.josefsson.org.
35662
35663 2007-03-10  Bruno Haible  <bruno@clisp.org>
35664
35665         * modules/canonicalize-lgpl-tests: New file.
35666         * tests/test-canonicalize-lgpl.sh: New file.
35667         * tests/test-canonicalize-lgpl.c: New file.
35668
35669         * modules/c-strcase-tests: New file.
35670         * tests/test-c-strcase.sh: New file.
35671         * tests/test-c-strcasecmp.c: New file.
35672         * tests/test-c-strncasecmp.c: New file.
35673
35674         * modules/atexit-tests: New file.
35675         * tests/test-atexit.sh: New file.
35676         * tests/test-atexit.c: New file.
35677
35678 2007-03-10  Bruno Haible  <bruno@clisp.org>
35679
35680         * tests/test-binary-io.sh: Use temporary filenames that are not so
35681         likely to clash with those of other tests (in a parallel make).
35682         * tests/test-binary-io.c: Likewise.
35683
35684 2007-03-10  Bruno Haible  <bruno@clisp.org>
35685
35686         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
35687         fallback; use #error instead.
35688         Suggested by Simon Josefsson.
35689
35690 2007-03-10  Bruno Haible  <bruno@clisp.org>
35691
35692         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
35693         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
35694         first and the last.
35695
35696 2007-03-10  Bruno Haible  <bruno@clisp.org>
35697
35698         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
35699
35700 2007-03-10  Bruno Haible  <bruno@clisp.org>
35701
35702         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
35703         "make distcheck".
35704         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
35705         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
35706         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
35707
35708 2007-03-10  Bruno Haible  <bruno@clisp.org>
35709
35710         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
35711         variable.
35712         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
35713         variable.
35714
35715 2007-03-09  Eric Blake  <ebb9@byu.net>
35716         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
35717
35718         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
35719         types are not being provided by gnulib.
35720         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
35721         types are supported.
35722
35723 2007-03-10  Bruno Haible  <bruno@clisp.org>
35724
35725         * lib/stdio_.h (__attribute__): New macro.
35726         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
35727         vsprintf): Specify __attribute__ __format__ for GCC.
35728         Suggested by Eric Blake.
35729
35730 2007-03-09  Bruno Haible  <bruno@clisp.org>
35731
35732         * modules/printf-posix-tests: New file.
35733         * tests/test-printf-posix.sh: New file.
35734         * tests/test-printf-posix.c: New file.
35735
35736         * modules/printf-posix: New file.
35737         * lib/printf.c: New file.
35738         * m4/printf-posix-rpl.m4: New file.
35739         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
35740         REPLACE_PRINTF.
35741         * lib/stdio_.h (printf): New declaration.
35742         (format, __format__, ____printf____, ____scanf____, ____strftime____,
35743         ____strfmon____): New macros.
35744         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
35745         REPLACE_PRINTF.
35746
35747 2007-03-09  Bruno Haible  <bruno@clisp.org>
35748
35749         * tests/test-vasnprintf-posix2.sh: New file.
35750         * tests/test-vasnprintf-posix2.c: New file.
35751         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
35752         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
35753         (Makefile.am): Activate test-vasnprintf-posix2.sh.
35754
35755         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
35756         a locale dependent decimal point, rather than always '.'.
35757
35758 2007-03-09  Eric Blake  <ebb9@byu.net>
35759
35760         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
35761         spite of platforms like Tandem/NSK that define it to -1.
35762
35763 2007-03-08  Bruno Haible  <bruno@clisp.org>
35764
35765         * modules/vprintf-posix-tests: New file.
35766         * tests/test-vprintf-posix.sh: New file.
35767         * tests/test-vprintf-posix.c: New file.
35768         * tests/test-printf-posix.h: New file.
35769
35770         * modules/vprintf-posix: New file.
35771         * lib/vprintf.c: New file.
35772         * m4/vprintf-posix.m4: New file.
35773         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
35774         REPLACE_VPRINTF.
35775         * lib/stdio_.h (vprintf): New declaration.
35776         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
35777         REPLACE_VPRINTF.
35778
35779 2007-03-08  Bruno Haible  <bruno@clisp.org>
35780
35781         * modules/fprintf-posix-tests: New file.
35782         * tests/test-fprintf-posix.sh: New file.
35783         * tests/test-fprintf-posix.c: New file.
35784
35785         * modules/fprintf-posix: New file.
35786         * lib/fprintf.c: New file.
35787         * m4/fprintf-posix.m4: New file.
35788         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
35789         REPLACE_FPRINTF.
35790         * lib/stdio_.h (fprintf): New declaration.
35791         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
35792         REPLACE_FPRINTF.
35793
35794 2007-03-08  Bruno Haible  <bruno@clisp.org>
35795
35796         * modules/vfprintf-posix-tests: New file.
35797         * tests/test-vfprintf-posix.sh: New file.
35798         * tests/test-vfprintf-posix.c: New file.
35799         * tests/test-fprintf-posix.h: New file.
35800         * tests/test-fprintf-posix.out: New file.
35801
35802         * modules/vfprintf-posix: New file.
35803         * lib/vfprintf.c: New file.
35804         * m4/vfprintf-posix.m4: New file.
35805         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
35806         REPLACE_VFPRINTF.
35807         * lib/stdio_.h (vfprintf): New declaration.
35808         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
35809         REPLACE_VFPRINTF.
35810
35811 2007-03-08  Bruno Haible  <bruno@clisp.org>
35812
35813         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
35814
35815 2007-03-08  Bruno Haible  <bruno@clisp.org>
35816
35817         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
35818         instead of 'expr' invocations.
35819         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35820         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35821         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35822         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35823         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35824         Suggested by Paul Eggert.
35825
35826 2007-03-08  Bruno Haible  <bruno@clisp.org>
35827
35828         * modules/fseterr-tests: New file.
35829         * tests/test-fseterr.c: New file.
35830
35831         * modules/fseterr: New file.
35832         * lib/fseterr.h: New file.
35833         * lib/fseterr.c: New file.
35834
35835 2007-03-08  Bruno Haible  <bruno@clisp.org>
35836
35837         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
35838         * lib/getopt_.h: Likewise.
35839         * lib/mbswidth.h: Likewise.
35840         * lib/setenv.h: Likewise.
35841         * lib/vasnprintf.h: Likewise.
35842         * lib/vasprintf.h: Likewise.
35843         * lib/verror.h: Likewise.
35844         * lib/xsetenv.h: Likewise.
35845         * lib/xvasprintf.h: Likewise.
35846
35847 2007-03-08  Jim Meyering  <jim@meyering.net>
35848
35849         * users.txt: Add parted.
35850
35851         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
35852
35853 2007-03-07  Bruno Haible  <bruno@clisp.org>
35854
35855         * m4/printf.m4: Make the shell script snippets copy&pastable.
35856
35857 2007-03-02  Bruno Haible  <bruno@clisp.org>
35858
35859         * lib/netinet_in_.h: New file.
35860         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
35861         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
35862         * modules/netinet_in (Files): Add lib/netinet_in_.h.
35863         (Depends-on): Add absolute-header.
35864         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
35865         into netinet/in.h.
35866
35867 2007-03-03  Bruno Haible  <bruno@clisp.org>
35868
35869         * lib/sys_select_.h: New file.
35870         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
35871         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
35872         * modules/sys_select (Files): Add lib/sys_select_.h.
35873         (Depends-on): Add absolute-header.
35874         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
35875         into sys/select.h.
35876
35877 2007-03-02  Bruno Haible  <bruno@clisp.org>
35878
35879         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
35880         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
35881         values.
35882         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
35883         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
35884         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
35885         * modules/sys_socket (Depends-on): Add absolute-header.
35886         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
35887         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
35888         (Include): Remove requirement of inclusion of <sys/types.h>.
35889
35890 2007-03-02  Bruno Haible  <bruno@clisp.org>
35891
35892         * lib/byteswap_.h (bswap_32): Fix formula.
35893
35894 2007-03-06  Bruno Haible  <bruno@clisp.org>
35895
35896         * modules/sprintf-posix-tests: New file.
35897         * tests/test-sprintf-posix.c: New file.
35898
35899         * modules/sprintf-posix: New file.
35900         * lib/sprintf.c: New file.
35901         * m4/sprintf-posix.m4: New file.
35902         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
35903         REPLACE_SPRINTF.
35904         * lib/stdio_.h (sprintf): New declaration.
35905         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
35906         REPLACE_SPRINTF.
35907
35908 2007-03-06  Bruno Haible  <bruno@clisp.org>
35909
35910         * modules/vsprintf-posix-tests: New file.
35911         * tests/test-vsprintf-posix.c: New file.
35912         * tests/test-sprintf-posix.h: New file.
35913
35914         * modules/vsprintf-posix: New file.
35915         * lib/vsprintf.c: New file.
35916         * m4/vsprintf-posix.m4: New file.
35917         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
35918         REPLACE_VSPRINTF.
35919         * lib/stdio_.h (vsprintf): New declaration.
35920         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
35921         REPLACE_VSPRINTF.
35922
35923 2007-03-06  Bruno Haible  <bruno@clisp.org>
35924
35925         * modules/vsnprintf (Depend-on): Remove minmax.
35926
35927 2007-03-06  Bruno Haible  <bruno@clisp.org>
35928
35929         * modules/snprintf-posix-tests: New file.
35930         * tests/test-snprintf-posix.c: New file.
35931
35932         * modules/snprintf-posix: New file.
35933         * m4/snprintf-posix.m4: New file.
35934         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
35935         gl_FUNC_SNPRINTF.
35936         (gl_FUNC_SNPRINTF): Invoke it.
35937         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
35938         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
35939         is set.
35940         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
35941
35942 2007-03-06  Bruno Haible  <bruno@clisp.org>
35943
35944         * modules/vsnprintf-posix-tests: New file.
35945         * tests/test-vsnprintf-posix.c: New file.
35946         * tests/test-snprintf-posix.h: New file.
35947
35948         * modules/vsnprintf-posix: New file.
35949         * m4/vsnprintf-posix.m4: New file.
35950         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
35951         gl_FUNC_VSNPRINTF.
35952         (gl_FUNC_VSNPRINTF): Invoke it.
35953         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
35954         * lib/stdio_.h (vsnprintf): Define as a replacement if
35955         REPLACE_VSNPRINTF is set.
35956         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
35957
35958 2007-03-06  Bruno Haible  <bruno@clisp.org>
35959
35960         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
35961         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
35962
35963 2007-03-06  Bruno Haible  <bruno@clisp.org>
35964
35965         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
35966         (asinl): Declare also if HAVE_DECL_ASINL is set.
35967         (atanl): Declare also if HAVE_DECL_ATANL is set.
35968         (ceill): Declare also if HAVE_DECL_CEILL is set.
35969         (cosl): Declare also if HAVE_DECL_COSL is set.
35970         (expl): Declare also if HAVE_DECL_EXPL is set.
35971         (floorl): Declare also if HAVE_DECL_FLOORL is set.
35972         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
35973         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
35974         (logl): Declare also if HAVE_DECL_LOGL is set.
35975         (sinl): Declare also if HAVE_DECL_SINL is set.
35976         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
35977         (tanl): Declare also if HAVE_DECL_TANL is set.
35978         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
35979         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
35980         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
35981         declaration of frexpl, ldexpl.
35982         * modules/printf-frexpl (Depends-on): Add math.
35983         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
35984
35985 2007-03-05  Bruno Haible  <bruno@clisp.org>
35986
35987         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
35988         frexpl and ldexpl are declared.
35989         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
35990
35991 2007-03-05  Bruno Haible  <bruno@clisp.org>
35992
35993         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
35994         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
35995
35996 2007-03-05  Bruno Haible  <bruno@clisp.org>
35997
35998         * lib/stdio_.h: Include <stddef.h>.
35999
36000 2007-03-05  Bruno Haible  <bruno@clisp.org>
36001
36002         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
36003
36004 2007-03-05  Bruno Haible  <bruno@clisp.org>
36005
36006         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
36007         NetBSD 4, from Ralf Wildenhues.
36008
36009 2007-03-04  Bruno Haible  <bruno@clisp.org>
36010
36011         * lib/vasprintf.h: Update #if logic for the case when the functions
36012         exist but are overridden.
36013
36014 2007-03-04  Bruno Haible  <bruno@clisp.org>
36015
36016         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
36017         implementations: glibc-2.4 and MacOS X 10.3.
36018         * tests/test-vasnprintf-posix.c (test_function): Test also the case
36019         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
36020         * tests/test-vasprintf-posix.c (test_function): Likewise.
36021
36022 2007-03-04  Bruno Haible  <bruno@clisp.org>
36023
36024         * modules/vasprintf-posix-tests: New file.
36025         * tests/test-vasprintf-posix.c: New file.
36026
36027         * modules/vasprintf-posix: New file.
36028         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
36029         defined.
36030         * m4/vasprintf-posix.m4: New file.
36031         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
36032         gl_FUNC_VASPRINTF.
36033         (gl_FUNC_VASPRINTF): Invoke it.
36034         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
36035         here.
36036         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
36037
36038 2007-03-04  Bruno Haible  <bruno@clisp.org>
36039
36040         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
36041         REPLACE_GETTIMEOFDAY.
36042         * modules/sys_time (Makefile.am): Likewise.
36043         * m4/sys_time_h.m4: Likewise.
36044         * m4/gettimeofday.m4: Likewise.
36045
36046 2007-03-04  Bruno Haible  <bruno@clisp.org>
36047
36048         * modules/vasnprintf-posix-tests: New file.
36049         * tests/test-vasnprintf-posix.c: New file.
36050
36051         * modules/vasnprintf-posix: New file.
36052         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
36053         printf-frexpl.h.
36054         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
36055         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
36056         REPLACE_VASNPRINTF is defined.
36057         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
36058         gl_FUNC_VASNPRINTF.
36059         (gl_FUNC_VASNPRINTF): Invoke it.
36060         * m4/vasnprintf-posix.m4: New file.
36061         * m4/printf.m4: New file.
36062
36063 2007-03-04  Bruno Haible  <bruno@clisp.org>
36064
36065         Compile progreloc.c only if --enable-relocatable is specified.
36066         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
36067         if --enable-relocatable was specified.
36068         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
36069         lib_SOURCES.
36070
36071 2007-03-04  Jim Meyering  <jim@meyering.net>
36072
36073         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
36074         Use it consistently, rather than enumerating errno constants.
36075
36076 2007-03-04  Bruno Haible  <bruno@clisp.org>
36077
36078         * modules/xvasprintf-tests: New file.
36079         * tests/test-xvasprintf.c: New file.
36080
36081         * modules/vasprintf-tests: New file.
36082         * tests/test-vasprintf.c: New file.
36083
36084         * modules/vasnprintf-tests: New file.
36085         * tests/test-vasnprintf.c: New file.
36086
36087         * modules/vsnprintf-tests: New file.
36088         * tests/test-vsnprintf.c: New file.
36089
36090         * modules/snprintf-tests: New file.
36091         * tests/test-snprintf.c: New file.
36092
36093 2007-03-04  Bruno Haible  <bruno@clisp.org>
36094
36095         Compile relocatable.c only if --enable-relocatable is specified.
36096         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
36097         gl_RELOCATABLE_LIBRARY.
36098         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
36099         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
36100         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
36101         gl_RELOCATABLE_LIBRARY.
36102         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
36103         (Makefile.am): Remove lib_SOURCES.
36104         * modules/relocatable-lib-lgpl (configure.ac): Invoke
36105         gl_RELOCATABLE_LIBRARY.
36106         (Makefile.am): Remove lib_SOURCES.
36107         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
36108         always.
36109         * modules/relocatable-prog-wrapper (configure.ac): Invoke
36110         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
36111
36112 2007-03-04  Bruno Haible  <bruno@clisp.org>
36113
36114         * modules/argmatch-tests: New file.
36115         * tests/test-argmatch.c: New file.
36116
36117         * tests/test-allocsa.c (main): Halve the number of loop runs.
36118
36119         * modules/alloca-opt-tests: New file.
36120         * tests/test-alloca-opt.c: New file.
36121
36122 2007-03-04  Jim Meyering  <jim@meyering.net>
36123
36124         Work around difference between Linux ACLs and Solaris 10 ZFS.
36125         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
36126         for EINVAL.
36127
36128 2007-03-03  Bruno Haible  <bruno@clisp.org>
36129
36130         * modules/relocatable-prog (Depends-on): Add back progreloc's
36131         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
36132
36133 2007-03-03  Bruno Haible  <bruno@clisp.org>
36134
36135         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
36136         * modules/relocatable-lib: New file.
36137
36138 2007-03-03  Bruno Haible  <bruno@clisp.org>
36139
36140         * modules/relocatable-prog: Renamed from modules/relocatable.
36141         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
36142
36143 2007-03-03  Bruno Haible  <bruno@clisp.org>
36144
36145         * modules/relocatable-script (Files): Add doc/relocatable.texi,
36146         m4/relocatable-lib.m4.
36147         (Depends-on): Remove 'relocatable'.
36148         (configure.ac): Add gl_RELOCATABLE_NOP.
36149
36150 2007-03-03  Bruno Haible  <bruno@clisp.org>
36151
36152         * modules/relocatable-prog-wrapper: New file.
36153         * modules/relocatable (Depends-on): Add it. Remove all other
36154         dependencies except progname.
36155         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
36156
36157         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
36158         (gl_FUNC_STRERROR): Nop.
36159         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
36160
36161         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
36162         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
36163
36164         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
36165         (gl_FUNC_READLINK): Update.
36166
36167         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
36168
36169 2007-03-03  Bruno Haible  <bruno@clisp.org>
36170
36171         * lib/xreadlink.c: Include <unistd.h> unconditionally.
36172         * modules/xreadlink (Depends-on): Add unistd.
36173         * modules/xreadlink-with-size (Depends-on): Likewise.
36174
36175 2007-03-03  Bruno Haible  <bruno@clisp.org>
36176
36177         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
36178         extracted from gt_FUNC_SETENV.
36179         (gt_FUNC_SETENV): Remove macro.
36180         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
36181         remove gt_FUNC_SETENV.
36182
36183 2007-03-03  Bruno Haible  <bruno@clisp.org>
36184
36185         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
36186         ENABLE_RELOCATABLE here.
36187         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
36188
36189 2007-03-03  Bruno Haible  <bruno@clisp.org>
36190
36191         * modules/rbtreehash-list-tests (Depends-on): Add progname.
36192         * tests/test-rbtreehash_list.c: Include progname.h.
36193         (main): Call set_program_name.
36194
36195         * modules/rbtree-oset-tests (Depends-on): Add progname.
36196         * tests/test-rbtree_oset.c: Include progname.h.
36197         (main): Call set_program_name.
36198
36199         * modules/rbtree-list-tests (Depends-on): Add progname.
36200         * tests/test-rbtree_list.c: Include progname.h.
36201         (main): Call set_program_name.
36202
36203         * modules/linked-list-tests (Depends-on): Add progname.
36204         * tests/test-linked_list.c: Include progname.h.
36205         (main): Call set_program_name.
36206
36207 2007-03-03  Bruno Haible  <bruno@clisp.org>
36208
36209         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
36210         All uses of __restrict changed to _Restrict_.
36211         * lib/glob_.h (__restrict): Remove macro.
36212
36213 2007-03-02  Bruno Haible  <bruno@clisp.org>
36214
36215         * modules/gettext (configure.ac): Require gettext infrastructure
36216         from version 0.16.1.
36217
36218 2007-03-02  Bruno Haible  <bruno@clisp.org>
36219
36220         * modules/linkedhash-list-tests (Depends-on): Add progname.
36221         * tests/test-linkedhash_list.c: Include progname.h.
36222         (main): Call set_program_name.
36223
36224         * modules/carray-list-tests (Depends-on): Add progname.
36225         * tests/test-carray_list.c: Include progname.h.
36226         (main): Call set_program_name.
36227
36228         * modules/avltreehash-list-tests (Depends-on): Add progname.
36229         * tests/test-avltreehash_list.c: Include progname.h.
36230         (main): Call set_program_name.
36231
36232         * modules/avltree-oset-tests (Depends-on): Add progname.
36233         * tests/test-avltree_oset.c: Include progname.h.
36234         (main): Call set_program_name.
36235
36236         * modules/avltree-list-tests (Depends-on): Add progname.
36237         * tests/test-avltree_list.c: Include progname.h.
36238         (main): Call set_program_name.
36239
36240         * modules/array-oset-tests (Depends-on): Add progname.
36241         * tests/test-array_oset.c: Include progname.h.
36242         (main): Call set_program_name.
36243
36244         * modules/array-list-tests (Depends-on): Add progname.
36245         * tests/test-array_list.c: Include progname.h.
36246         (main): Call set_program_name.
36247
36248         * modules/argp-tests (Depends-on): Add progname.
36249         * tests/test-argp.c: Include argp.h first. Include progname.h.
36250         (main): Call set_program_name.
36251
36252 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
36253
36254         * doc/gnulib-tool.texi (Initial import): Reword description of
36255         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
36256         limited effect even if defined after the first system include.
36257
36258 2007-03-01  Bruno Haible  <bruno@clisp.org>
36259
36260         * build-aux/config.libpath: Update to libtool-1.5.22.
36261         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
36262
36263 2007-03-01  Bruno Haible  <bruno@clisp.org>
36264
36265         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
36266         foo_CFLAGS.
36267         Reported by Ralf Wildenhues.
36268
36269 2007-03-01  Bruno Haible  <bruno@clisp.org>
36270
36271         * build-aux/install-reloc: Remove object files left over by some
36272         compilers.
36273         Reported by Ralf Wildenhues.
36274
36275 2007-03-01  Bruno Haible  <bruno@clisp.org>
36276
36277         * build-aux/install-reloc: Break long lines.
36278
36279 2007-03-01  Bruno Haible  <bruno@clisp.org>
36280
36281         * doc/relocatable.texi: Document that it may not work on OpenBSD.
36282         Reported by Ralf Wildenhues.
36283
36284 2007-03-01  Bruno Haible  <bruno@clisp.org>
36285
36286         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
36287         include ordering constraints.
36288
36289 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
36290
36291         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
36292         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
36293         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
36294         as another example.
36295         * lib/time_.h: Fix misspelling.
36296         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
36297         Require gl_HEADER_TIME_H_DEFAULTS.
36298         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
36299         * m4/time_r.m4 (gl_TIME_R): Likewise.
36300         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
36301
36302 2007-03-01  Bruno Haible  <bruno@clisp.org>
36303
36304         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
36305         * m4/utimens.m4 (gl_UTIMENS): Likewise.
36306
36307 2007-03-01  Jim Meyering  <jim@meyering.net>
36308
36309         * modules/xreadlink (Maintainer): Add my name.
36310         * modules/xreadlink-with-size (Depends-on): Alphabetize.
36311
36312 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
36313             Bruno Haible  <bruno@clisp.org>
36314
36315         * build-aux/install-reloc: Compile also c-ctype.c.
36316         * build-aux/relocatable.sh.in: New file.
36317         * doc/relocatable.texi: New file.
36318         * doc/relocatable-maint.texi: New file.
36319         * doc/gnulib.texi: Include relocatable-maint.texi.
36320         * lib/progreloc.c: Include unistd.h unconditionally.
36321         * lib/relocwrapper.c: Include unistd.h unconditionally.
36322         Include c-ctype.h.
36323         (add_dotbin): Use c_tolower.
36324         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
36325         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
36326         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
36327         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
36328         to m4/relocatable-lib.m4.
36329         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
36330         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
36331         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
36332         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
36333         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
36334         * modules/relocatable: New file.
36335         * modules/relocatable-lib: New file.
36336         * modules/relocatable-script: New file.
36337
36338 2007-02-28  Bruno Haible  <bruno@clisp.org>
36339
36340         Import --enable-relocatable infrastructure.
36341         * build-aux/config.libpath: New file, from GNU gettext.
36342         * build-aux/install-reloc: New file, from GNU gettext.
36343         * build-aux/reloc-ldflags: New file, from GNU gettext.
36344         * lib/relocatable.h: New file, from GNU gettext.
36345         * lib/relocatable.c: New file, from GNU gettext.
36346         * lib/relocwrapper.c: New file, from GNU gettext.
36347         * m4/relocatable.m4: New file, from GNU gettext.
36348
36349 2007-02-28  Bruno Haible  <bruno@clisp.org>
36350
36351         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
36352
36353         * modules/xreadlink: New file, from GNU gettext with modifications.
36354         * lib/xreadlink.c: New file, from GNU gettext.
36355         * lib/xreadlink.h: Add comments.
36356         (xreadlink): New declaration.
36357
36358         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
36359         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
36360         lib/xreadlink-with-size.c.
36361         (configure.ac): Remove gl_XREADLINK invocation.
36362         (Makefile.am): Augment lib_SOURCES.
36363         * m4/xreadlink.m4: Remove file.
36364         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
36365         (xreadlink_with_size): Renamed from xreadink.
36366         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
36367         * modules/canonicalize (Depends-on): Replace xreadlink with
36368         xreadlink-with-size.
36369         * lib/canonicalize.c (canonicalize_filename_mode): Update.
36370
36371 2007-02-25  Jim Meyering  <jim@meyering.net>
36372
36373         * build-aux/announce-gen: When complaining about excess arguments,
36374         list them.
36375
36376 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
36377
36378         * README: Document signed integer overflow situation more
36379         accurately.
36380
36381 2007-02-25  Bruno Haible  <bruno@clisp.org>
36382
36383         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
36384         'a' or 'A' conversion.
36385
36386 2007-02-25  Bruno Haible  <bruno@clisp.org>
36387
36388         * modules/filename: Renamed from modules/pathname.
36389         (Files): Replace lib/pathname.h with lib/filename.h. Replace
36390         lib/concatpath.c with lib/concat-filename.c.
36391         (Makefile.am): Update.
36392         (Include): Replace pathname.h with filename.h.
36393         * lib/filename.h: Renamed from lib/pathname.h.
36394         (concatenated_filename): Renamed from concatenated_pathname.
36395         * lib/concat-filename.c: Renamed from lib/concatpath.c.
36396         (concatenated_filename): Renamed from concatenated_pathname.
36397         * lib/findprog.c: Include filename.h instead of pathname.h.
36398         (find_in_path): Update.
36399         * lib/javacomp.c: Include filename.h instead of pathname.h.
36400         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
36401         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
36402         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
36403         is_oldgcj_14_13_usable, is_javac_usable): Update.
36404         * lib/javaexec.c: Include filename.h instead of pathname.h.
36405         (execute_java_class): Update.
36406         * modules/findprog: Update.
36407         * modules/javacomp: Update.
36408         * modules/javaexec: Update.
36409         * MODULES.html.sh (File system functions): Add 'filename', remove
36410         'pathname'.
36411
36412 2007-02-25  Bruno Haible  <bruno@clisp.org>
36413
36414         * modules/printf-frexpl-tests: New file.
36415         * tests/test-printf-frexpl.c: New file.
36416
36417         * modules/printf-frexpl: New file.
36418         * lib/printf-frexpl.h: New file.
36419         * lib/printf-frexpl.c: New file.
36420         * m4/printf-frexpl.m4: New file.
36421
36422 2007-02-25  Bruno Haible  <bruno@clisp.org>
36423
36424         * modules/printf-frexp-tests: New file.
36425         * tests/test-printf-frexp.c: New file.
36426
36427         * modules/printf-frexp: New file.
36428         * lib/printf-frexp.h: New file.
36429         * lib/printf-frexp.c: New file.
36430         * m4/printf-frexp.m4: New file.
36431
36432 2007-02-25  Bruno Haible  <bruno@clisp.org>
36433
36434         Assume automake >= 1.10 for the tests.
36435         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
36436         * modules/arctwo-tests: Likewise.
36437         * modules/argp-tests: Likewise.
36438         * modules/avltree-list-tests: Likewise.
36439         * modules/avltree-oset-tests: Likewise.
36440         * modules/avltreehash-list-tests: Likewise.
36441         * modules/carray-list-tests: Likewise.
36442         * modules/crc-tests: Likewise.
36443         * modules/des-tests: Likewise.
36444         * modules/gc-arcfour-tests: Likewise.
36445         * modules/gc-arctwo-tests: Likewise.
36446         * modules/gc-des-tests: Likewise.
36447         * modules/gc-hmac-md5-tests: Likewise.
36448         * modules/gc-hmac-sha1-tests: Likewise.
36449         * modules/gc-md2-tests: Likewise.
36450         * modules/gc-md4-tests: Likewise.
36451         * modules/gc-md5-tests: Likewise.
36452         * modules/gc-pbkdf2-sha1-tests: Likewise.
36453         * modules/gc-rijndael-tests: Likewise.
36454         * modules/gc-sha1-tests: Likewise.
36455         * modules/gc-tests: Likewise.
36456         * modules/getaddrinfo-tests: Likewise.
36457         * modules/hmac-md5-tests: Likewise.
36458         * modules/hmac-sha1-tests: Likewise.
36459         * modules/linked-list-tests: Likewise.
36460         * modules/linkedhash-list-tests: Likewise.
36461         * modules/lock-tests: Likewise.
36462         * modules/md2-tests: Likewise.
36463         * modules/md4-tests: Likewise.
36464         * modules/md5-tests: Likewise.
36465         * modules/rbtree-list-tests: Likewise.
36466         * modules/rbtree-oset-tests: Likewise.
36467         * modules/rbtreehash-list-tests: Likewise.
36468         * modules/read-file-tests: Likewise.
36469         * modules/rijndael-tests: Likewise.
36470         * modules/stdint-tests: Likewise.
36471         * modules/tls-tests: Likewise.
36472
36473 2007-02-24  Bruno Haible  <bruno@clisp.org>
36474
36475         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
36476         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
36477         function; instead check whether isnan with a double argument links.
36478         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
36479         function; instead check whether isnan with a 'long double' argument
36480         links.
36481         Reported by Eric Blake <ebb9@byu.net>.
36482
36483 2007-02-24  Bruno Haible  <bruno@clisp.org>
36484
36485         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
36486         defined.
36487         * lib/isnanl.c: Remove all code. Just include isnan.c.
36488         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
36489
36490 2007-02-25  Jim Meyering  <jim@meyering.net>
36491
36492         Avoid conflicting types for 'unsetenv' on FreeBSD.
36493         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
36494         conflicting with FreeBSD's (5.0 and 6.1) function declaration
36495         in stdlib.h.
36496
36497 2007-02-24  Bruno Haible  <bruno@clisp.org>
36498
36499         * modules/isnanl-nolibm-tests: New file.
36500         * tests/test-isnanl.c: New file.
36501
36502         * modules/isnanl-nolibm: New file.
36503         * lib/isnanl.h: New file.
36504         * lib/isnanl.c: New file.
36505         * m4/isnanl.m4: New file.
36506
36507 2007-02-24  Bruno Haible  <bruno@clisp.org>
36508
36509         * modules/isnan-nolibm-tests: New file.
36510         * tests/test-isnan.c: New file.
36511
36512         * modules/isnan-nolibm: New file.
36513         * lib/isnan.h: New file.
36514         * lib/isnan.c: New file.
36515         * m4/isnan.m4: New file.
36516
36517 2007-02-24  Bruno Haible  <bruno@clisp.org>
36518
36519         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
36520         assume that an exponent fits in 20 bits.
36521
36522 2007-02-24  Jim Meyering  <jim@meyering.net>
36523
36524         * m4/regex.m4: Update the description of the configure-time option,
36525         --without-included-regex, to state accurately what the defaults are,
36526         and perhaps to give people an idea why using this option is risky.
36527
36528 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
36529
36530         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
36531         loops on small arguments.  This attempts to avoid the problem
36532         Bruno Haible reported for AIX 4.3.2 in
36533         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
36534
36535 2007-02-23  Bruno Haible  <bruno@clisp.org>
36536
36537         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
36538         Needed for help2man.
36539
36540 2007-02-23  Karl Berry  <karl@gnu.org>
36541
36542         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
36543         exists, foo.h should be cvs-ignored, not committed.
36544
36545 2007-02-23  Eric Blake  <ebb9@byu.net>
36546
36547         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
36548         * lib/stat-time.h (includes): Likewise.
36549         * lib/utimecmp.c (includes): Likewise.
36550         * lib/utimens.h (includes): Likewise.
36551         * lib/getdate.y (includes): Also include "timespec.h" for use
36552         internal to the module.
36553         * modules/utimens (Depends-on): Revert yesterday's patch.
36554         * modules/nanosleep (Depends-on): Add missing dependency.
36555
36556 2007-02-22  Bruno Haible  <bruno@clisp.org>
36557
36558         * lib/glob.c: Don't include getlogin_r.h.
36559
36560 2007-02-22  Jim Meyering  <jim@meyering.net>
36561
36562         * modules/utimens (Depends-on): Add timespec, required for
36563         utimens.h's inclusion of timespec.h.
36564
36565 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
36566
36567         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
36568         long unreadable paths in GNU/Linux.  Problem reported by Andreas
36569         Schwab in
36570         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
36571         I'll try to think of a better way to fix the Solaris problem.
36572
36573         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
36574         like glibc; on Solaris 10, it fails with errno == EINVAL.
36575         POSIX says the behavior is unspecified if the first argument is NULL,
36576         so play it safe and never pass NULL to the system getcwd.
36577
36578 2007-02-21  Jim Meyering  <jim@meyering.net>
36579
36580         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
36581         of gettimeofday.  It would conflict with the one now always
36582         provided via sys_time_.h.  Reported by Matthew Woehlke, as
36583         an IRIX 6.5 build failure.
36584
36585 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
36586
36587         Minor fixups to port to Solaris 10 with Sun C 5.8.
36588         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
36589         * modules/getcwd (Depends-on): Add dirfd.
36590         * lib/putenv.c (putenv): #undef it.
36591         (rpl_putenv): New decl.
36592         (malloc, free): Include <stdlib.h> rather than prototyping separately.
36593
36594 2007-02-20  Bruno Haible  <bruno@clisp.org>
36595
36596         * modules/stdio-tests: New file.
36597         * tests/test-stdio.c: New file.
36598
36599         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
36600         (Depends-on): Add stdio.
36601         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
36602         (Include): Use <stdio.h> instead of vsnprintf.h.
36603         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
36604         HAVE_DECL_VSNPRINTF.
36605         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
36606
36607         * modules/snprintf (Files): Remove lib/snprintf.h.
36608         (Depends-on): Add stdio.
36609         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
36610         (Include): Use <stdio.h> instead of snprintf.h.
36611         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
36612         HAVE_DECL_SNPRINTF.
36613         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
36614         * lib/getaddrinfo.c: Likewise.
36615
36616         * modules/stdio: New file.
36617         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
36618         * lib/snprintf.h: Remove file.
36619         * lib/vsnprintf.h: Remove file.
36620         * lib/.cppi-disable: Remove snprintf.h.
36621         * m4/stdio_h.m4: New file.
36622         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
36623
36624 2007-02-20  Jim Meyering  <jim@meyering.net>
36625
36626         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
36627         used by e.g., mingw.  From Bruno Haible.
36628
36629 2007-02-19  Bruno Haible  <bruno@clisp.org>
36630
36631         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
36632         warnings.
36633         Reported by Ben Pfaff <blp@cs.stanford.edu>.
36634
36635 2007-02-19  Bruno Haible  <bruno@clisp.org>
36636
36637         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
36638         from mingw users.
36639
36640 2007-02-19  Bruno Haible  <bruno@clisp.org>
36641
36642         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
36643         warnings.
36644         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
36645
36646 2007-02-19  Jim Meyering  <jim@meyering.net>
36647
36648         Don't use FD after a successful "fdopendir (fd)".
36649         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
36650         Reset it by calling dirfd on the just-obtained DIR*.
36651
36652         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
36653         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
36654
36655 2007-02-18  Bruno Haible  <bruno@clisp.org>
36656
36657         * lib/readlink.c: Include <unistd.h>.
36658         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
36659         HAVE_READLINK.
36660         * modules/readlink (Depends-on): Add unistd.
36661         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36662         (Include): Add <unistd.h>.
36663
36664         * lib/getlogin_r.h: Remove file.
36665         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
36666         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
36667         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
36668         HAVE_DECL_GETLOGIN_R.
36669         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
36670         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36671         (Include): Use <unistd.h> instead of getlogin_r.h.
36672
36673         * lib/getcwd.h: Remove file.
36674         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
36675         * lib/xgetcwd.c: Likewise.
36676         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
36677         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
36678         * modules/getcwd (Files): Remove lib/getcwd.h.
36679         (Depends-on): Add unistd.
36680         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36681         (Include): Use <unistd.h> instad of getcwd.h.
36682
36683         * lib/ftruncate.c: Include <unistd.h> first.
36684         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
36685         Set HAVE_FTRUNCATE.
36686         * modules/ftruncate (Depends-on): Add unistd.
36687         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36688
36689         * lib/fchdir.c: Include <unistd.h> first.
36690         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
36691         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
36692         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
36693         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36694         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
36695
36696         * lib/dup2.c: Include <unistd.h> first.
36697         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
36698         HAVE_DUP2.
36699         * modules/dup2 (Depends-on): Add unistd.
36700         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36701
36702         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
36703         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
36704         REPLACE_CHOWN. Don't define chown as a macro here.
36705         * modules/chown (Depends-on): Add unistd.
36706         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36707
36708         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
36709         Add definition for GL_LINK_WARNING.
36710         (chown, dup2): New declarations.
36711         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
36712         link warning.
36713         (ftruncate): New declaration.
36714         (getcwd): New declaration, taken from old getcwd.h.
36715         (getlogin_r): New declaration, taken from old getlogin_r.h.
36716         (readlink): New declaration.
36717         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
36718         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
36719         (gl_PREREQ_UNISTD): Remove macro.
36720         (gl_UNISTD_MODULE_INDICATOR): New macro.
36721         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
36722         many new variables. Don't set UNISTD_H.
36723         * modules/unistd (Description): Change.
36724         (Depends-on): Add link-warning.
36725         (configure.ac): Update.
36726         (Makefile.am): Create unistd.h always. Substitute many new variables
36727         into it.
36728
36729 2007-02-18  Bruno Haible  <bruno@clisp.org>
36730
36731         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
36732         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
36733         HAVE_GETSUBOPT.
36734         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
36735         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
36736         * lib/getsubopt.h: Remove file.
36737         * modules/getsubopt (Files): Remove lib/getsubopt.h.
36738         (Depends-on): Add stdlib.
36739         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
36740         (Includes): Use <stdlib.h> instead of getsubopt.h.
36741         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
36742         Set HAVE_GETSUBOPT.
36743         * lib/getsubopt.c: Don't include getsubopt.h.
36744
36745 2007-02-18  Bruno Haible  <bruno@clisp.org>
36746
36747         * modules/fchdir (Depends-on): Add dup2.
36748
36749 2007-02-18  Bruno Haible  <bruno@clisp.org>
36750
36751         * lib/stdlib_.h: Handle glibc's special invocation convention
36752         specially.
36753
36754 2007-02-18  Bruno Haible  <bruno@clisp.org>
36755
36756         * modules/stdlib-tests: New file.
36757         * tests/test-stdlib.c: New file.
36758
36759         * modules/mkstemp (Files): Remove lib/mkstemp.h.
36760         (Depends-on): Add stdlib.
36761         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
36762         (Includes): Use <stdlib.h> instead of mkstemp.h.
36763         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
36764         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
36765         * lib/mkstemp.c: Don't include mkstemp.h.
36766         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
36767         * lib/stdlib--.h: Don't include mkstemp.h.
36768
36769         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
36770         (Depends-on): Add stdlib.
36771         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
36772         (Includes): Use <stdlib.h> instead of mkdtemp.h.
36773         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
36774         HAVE_MKDTEMP.
36775         * lib/mkdtemp.c: Don't include mkdtemp.h.
36776         * lib/clean-temp.c: Don't include mkdtemp.h.
36777
36778         * modules/exit (Files): Remove lib/exit.h.
36779         (Depends-on): Add stdlib.
36780         (Makefile.am): Remove lib_SOURCES.
36781         (Include): Use <stdlib.h> instead of exit.h.
36782         * lib/argmatch.c: Don't include exit.h.
36783         * lib/execute.c: Likewise.
36784         * lib/pagealign_alloc.c: Likewise.
36785         * lib/pipe.c: Likewise.
36786         * lib/wait-process.c: Likewise.
36787         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
36788         * lib/exitfail.c: Likewise.
36789         * lib/savewd.c: Likewise.
36790         * lib/xsetenv.c: Likewise.
36791
36792         * modules/stdlib: New file.
36793         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
36794         and extra comments about mkstemp().
36795         * lib/exit.h: Remove file.
36796         * lib/mkdtemp.h: Remove file.
36797         * lib/mkstemp.h: Remove file.
36798         * m4/stdlib_h.m4: New file.
36799         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
36800
36801 2007-02-18  Bruno Haible  <bruno@clisp.org>
36802
36803         * modules/math-tests: New file.
36804         * tests/test-math.c: New file.
36805
36806         * modules/math: New file.
36807         * modules/mathl (Files): Remove lib/mathl.h.
36808         (Depends-on): Add math.
36809         (Makefile.am): Don't mention mathl.h.
36810         (Include): Use <math.h> instead of mathl.h.
36811         * lib/math_.h: New file.
36812         * lib/mathl.h: Remove file.
36813         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
36814         mathl.h.
36815         * lib/asinl.c: Likewise.
36816         * lib/atanl.c: Likewise.
36817         * lib/ceill.c: Likewise.
36818         * lib/cosl.c: Likewise.
36819         * lib/expl.c: Likewise.
36820         * lib/floorl.c: Likewise.
36821         * lib/frexpl.c: Likewise.
36822         * lib/ldexpl.c: Likewise.
36823         * lib/logl.c: Likewise.
36824         * lib/sincosl.c: Likewise.
36825         * lib/sinl.c: Likewise.
36826         * lib/sqrtl.c: Likewise.
36827         * lib/tanl.c: Likewise.
36828         * lib/trigl.c: Likewise.
36829         * m4/math_h.m4: New file.
36830         * MODULES.html.sh (Mathematics): Add math.
36831
36832 2007-02-17  Bruno Haible  <bruno@clisp.org>
36833
36834         * modules/wctype-tests: New file.
36835         * tests/test-wctype.c: New file.
36836
36837         * modules/wchar-tests: New file.
36838         * tests/test-wchar.c: New file.
36839
36840         * modules/unistd-tests: New file.
36841         * tests/test-unistd.c: New file.
36842
36843         * modules/time-tests: New file.
36844         * tests/test-time.c: New file.
36845
36846         * modules/sysexits-tests: New file.
36847         * tests/test-sysexits.c: New file.
36848
36849         * modules/sys_time-tests: New file.
36850         * tests/test-sys_time.c: New file.
36851
36852         * modules/sys_stat-tests: New file.
36853         * tests/test-sys_stat.c: New file.
36854
36855         * modules/sys_socket-tests: New file.
36856         * tests/test-sys_socket.c: New file.
36857
36858         * modules/sys_select-tests: New file.
36859         * tests/test-sys_select.c: New file.
36860
36861         * modules/string-tests: New file.
36862         * tests/test-string.c: New file.
36863
36864         * modules/stdbool-tests: New file.
36865         * tests/test-stdbool.c: New file.
36866
36867         * modules/netinet_in-tests: New file.
36868         * tests/test-netinet_in.c: New file.
36869
36870         * modules/inttypes-tests: New file.
36871         * tests/test-inttypes.c: New file.
36872
36873         * modules/fcntl-tests: New file.
36874         * tests/test-fcntl.c: New file.
36875
36876         * modules/byteswap-tests: New file.
36877         * tests/test-byteswap.c: New file.
36878
36879         * modules/arpa_inet-tests: New file.
36880         * tests/test-arpa_inet.c: New file.
36881
36882 2007-02-17  Bruno Haible  <bruno@clisp.org>
36883
36884         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
36885         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
36886         if the corresponding module is not enabled. Emit link warnings if
36887         the function is used nevertheless.
36888         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
36889         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
36890         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
36891         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
36892         * modules/inttypes (Depends-on): Add link-warning.
36893         (Makefile.am): Copy the contents of build-aux/link-warning.h into
36894         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
36895         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
36896         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
36897         * modules/imaxdiv (configure.ac): Likewise.
36898         * modules/strtoimax (configure.ac): Likewise.
36899         * modules/strtoumax (configure.ac): Likewise.
36900
36901 2007-02-17  Bruno Haible  <bruno@clisp.org>
36902
36903         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
36904         gl_STRING_MODULE_INDICATOR_DEFAULTS.
36905         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
36906         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
36907
36908 2007-02-17  Bruno Haible  <bruno@clisp.org>
36909
36910         * modules/link-warning: New file.
36911         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
36912         * lib/string_.h (GL_LINK_WARNING): Remove definition.
36913         * modules/string (Depends-on): Add link-warning.
36914         (Makefile.am): Copy the contents of build-aux/link-warning.h into
36915         string.h.
36916         * MODULES.html.sh (Support for building libraries and executables): Add
36917         link-warning.
36918
36919 2007-02-17  Bruno Haible  <bruno@clisp.org>
36920
36921         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
36922         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
36923         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
36924         long lines.
36925
36926 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
36927             Bruno Haible  <bruno@clisp.org>
36928
36929         * modules/tmpfile: New file.
36930         * lib/tmpfile.c: New file.
36931         * m4/tmpfile.m4: New file.
36932         * MODULES.html.sh (func_all_modules): New section "Input/output".
36933
36934 2007-02-15  Bruno Haible  <bruno@clisp.org>
36935
36936         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
36937         (supports_delete_on_close): New function.
36938         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
36939
36940 2007-02-14  Bruno Haible  <bruno@clisp.org>
36941
36942         * modules/mbspcasecmp-tests: New file.
36943         * tests/test-mbspcasecmp.sh: New file.
36944         * tests/test-mbspcasecmp.c: New file.
36945
36946         New module mbspcasecmp.
36947         * modules/mbspcasecmp: New file.
36948         * lib/mbspcasecmp.c: New file.
36949         * lib/string_.h (strncasecmp): Change warning message.
36950         (mbspcasecmp): New declaration.
36951         * m4/mbspcasecmp.m4: New file.
36952         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
36953         GNULIB_MBSPCASECMP.
36954         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
36955         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
36956
36957 2007-02-14  Bruno Haible  <bruno@clisp.org>
36958
36959         * modules/mbsncasecmp-tests: New file.
36960         * tests/test-mbsncasecmp.sh: New file.
36961         * tests/test-mbsncasecmp.c: New file.
36962
36963         New module mbsncasecmp.
36964         * modules/mbsncasecmp: New file.
36965         * lib/mbsncasecmp.c: New file.
36966         * lib/string_.h (mbsncasecmp): New declaration.
36967         * m4/mbsncasecmp.m4: New file.
36968         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
36969         GNULIB_MBSNCASECMP.
36970         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
36971         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
36972
36973 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
36974
36975         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
36976         Verify that it doesn't overlap with our flags.
36977         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
36978         do not have the desired effect in multibyte locales; instead, use
36979         mbscasecmp.
36980         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
36981         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
36982         we don't require GNU fnmatch ourselves (if our users require it, they
36983         should do so explicitly).
36984
36985         Fix regex code so it doesn't rely on strcasecmp.
36986         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
36987         Otherwise, include gnulib's langinfo.h.
36988         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
36989         undesirable behavior in non-C locales.  Instead, rely on localecharset.
36990         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
36991         * modules/regex (FILES): Remove m4/codeset.m4.
36992         (Depends-on): Add localcharset.  Remove strcase.
36993
36994 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36995
36996         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
36997         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
36998
36999 2007-02-13  Bruno Haible  <bruno@clisp.org>
37000
37001         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
37002         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37003
37004 2007-02-12  Bruno Haible  <bruno@clisp.org>
37005
37006         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
37007         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
37008         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
37009         time warning rather than a link error.
37010
37011 2007-02-12  Bruno Haible  <bruno@clisp.org>
37012
37013         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
37014         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
37015         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37016
37017 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
37018
37019         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
37020         args, not 2.
37021
37022 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
37023
37024         New module 'time', so that apps can include <time.h> as per
37025         POSIX and GNU instead of separate include files like time_r.h
37026         and timegm.h.  This implementation tries out a simpler approach
37027         for replacing decls in standard include files (as compared to
37028         the string module), somewhat as an experiment.
37029
37030         * config/srclist.txt: Comment out mktime.c for now.
37031         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
37032         since it doesn't apply any more.  Use generic wording instead.
37033         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
37034         'time'.
37035         * lib/time_.h, m4/time_h.m4, modules/time: New files.
37036         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
37037         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
37038         Don't include <sys/types.h>; no longer needed since we assume C89.
37039         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
37040         * lib/strftime.c: Likewise.
37041         * lib/time_r.c: Likewise.
37042         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
37043         * lib/nanosleep.c: Include <time.h> first, to check interface.
37044         * lib/strptime.c: Likewise.
37045         * lib/time_r.c: Likewise.
37046         * lib/timegm.c: Likewise.
37047         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
37048         needed.
37049         * lib/timegm.c: Don't include timegm.h; no longer needed.
37050         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
37051         time.h now handles any problems in that area.
37052         (struct timespec, nanosleep): Remove; time.h now arranges for these.
37053         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
37054         that time.h defines struct timespec.
37055         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
37056         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
37057         handles that.
37058         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
37059         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
37060         needed.  Set REPLACE_LOCALTIME.
37061         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
37062         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
37063         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
37064         nanosleep; time_h.m4 now does that.  Don't require
37065         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
37066         module handles this now.
37067         * modules/getdate (Depends-on): Remove timespec.  Add time.
37068         * modules/nanosleep (Depends-on): Likewise.
37069         * modules/stat-time (Depends-on): Likewise.
37070         * modules/nanosleep (Include): Include time.h, not timespec.h.
37071         * modules/strptime (Files): Remove lib/strptime.h.
37072         (Depends-on): Add extensions, time.
37073         (Include): Include time.h, not strptime.h.
37074         * modules/time_r (Files): Remove lib/time_r.h.
37075         (Depends-on): Add time.
37076         (Include): Include time.h, not time_r.h.
37077         * modules/timegm: Likewise.
37078         * modules/timespec (Description): Now does timespec-related decls
37079         of our own, instead of struct timespec itself.
37080         (Depends-on): Add time; remove extensions.
37081         (Maintainer): Add self.
37082         * modules/utimecmp (Depends-on): Add time; remove timespec.
37083         * modules/utimens (Depends-on): Likewise.
37084         * modules/xnanosleep (Depends-on): Likewise.
37085
37086 2007-02-11  Bruno Haible  <bruno@clisp.org>
37087
37088         * lib/c-strstr.c: Include allocsa.h.
37089         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
37090         * lib/c-strcasestr.c: Include allocsa.h.
37091         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
37092         * lib/strcasestr.c: Include allocsa.h.
37093         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
37094         * lib/mbsstr.c: Include allocsa.h.
37095         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
37096         allocsa/freesa instead of malloc/free.
37097         * lib/mbscasestr.c: Include allocsa.h.
37098         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
37099         allocsa/freesa instead of malloc/free.
37100         * modules/c-strstr (Depends-on): Add allocsa.
37101         * modules/c-strcasestr (Depends-on): Likewise.
37102         * modules/strcasestr (Depends-on): Likewise.
37103         * modules/mbsstr (Depends-on): Likewise.
37104         * modules/mbscasestr (Depends-on): Likewise.
37105
37106 2007-02-11  Bruno Haible  <bruno@clisp.org>
37107
37108         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
37109
37110         * modules/mbsspn-tests: New file.
37111         * tests/test-mbsspn.sh: New file.
37112         * tests/test-mbsspn.c: New file.
37113
37114 2007-02-11  Bruno Haible  <bruno@clisp.org>
37115
37116         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
37117
37118         * modules/mbspbrk-tests: New file.
37119         * tests/test-mbspbrk.sh: New file.
37120         * tests/test-mbspbrk.c: New file.
37121
37122 2007-02-11  Bruno Haible  <bruno@clisp.org>
37123
37124         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
37125         unneeded cast.
37126
37127         * modules/mbscspn-tests: New file.
37128         * tests/test-mbscspn.sh: New file.
37129         * tests/test-mbscspn.c: New file.
37130
37131 2007-02-11  Bruno Haible  <bruno@clisp.org>
37132
37133         * modules/mbscasecmp-tests: New file.
37134         * tests/test-mbscasecmp.sh: New file.
37135         * tests/test-mbscasecmp.c: New file.
37136
37137 2007-02-11  Bruno Haible  <bruno@clisp.org>
37138
37139         Ensure O(n) worst-case complexity of mbscasestr.
37140         * lib/mbscasestr.c: Include stdbool.h.
37141         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
37142         functions.
37143         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
37144         the bookkeeping indicates that it's worth it.
37145         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
37146
37147         * modules/mbscasestr-tests: New file.
37148         * tests/test-mbscasestr1.c: New file.
37149         * tests/test-mbscasestr2.sh: New file.
37150         * tests/test-mbscasestr2.c: New file.
37151         * tests/test-mbscasestr3.sh: New file.
37152         * tests/test-mbscasestr3.c: New file.
37153         * tests/test-mbscasestr4.sh: New file.
37154         * tests/test-mbscasestr4.c: New file.
37155         * m4/locale-tr.m4: New file.
37156
37157 2007-02-11  Bruno Haible  <bruno@clisp.org>
37158
37159         Ensure O(n) worst-case complexity of mbsstr.
37160         * lib/mbsstr.c: Include stdbool.h.
37161         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
37162         functions.
37163         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
37164         bookkeeping indicates that it's worth it.
37165         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
37166
37167         * modules/mbsstr-tests: New file.
37168         * tests/test-mbsstr1.c: New file.
37169         * tests/test-mbsstr2.sh: New file.
37170         * tests/test-mbsstr2.c: New file.
37171         * tests/test-mbsstr3.sh: New file.
37172         * tests/test-mbsstr3.c: New file.
37173         * m4/locale-fr.m4: New file.
37174
37175 2007-02-11  Bruno Haible  <bruno@clisp.org>
37176
37177         * lib/mbsrchr.c (mbsrchr): Fix bug.
37178
37179         * modules/mbsrchr-tests: New file.
37180         * tests/test-mbsrchr.sh: New file.
37181         * tests/test-mbsrchr.c: New file.
37182
37183 2007-02-11  Bruno Haible  <bruno@clisp.org>
37184
37185         * lib/mbschr.c (mbschr): Fix bug.
37186
37187         * modules/mbschr-tests: New file.
37188         * tests/test-mbschr.sh: New file.
37189         * tests/test-mbschr.c: New file.
37190         * m4/locale-zh.m4: New file.
37191
37192 2007-02-11  Bruno Haible  <bruno@clisp.org>
37193
37194         Support for copying multibyte string iterators.
37195         * lib/mbiter.h: Include <string.h>.
37196         (mbiter_multi_copy): New function.
37197         (mbi_copy): New macro.
37198         * lib/mbuiter.h: Include <string.h>.
37199         (mbuiter_multi_copy): New function.
37200         (mbui_copy): New macro.
37201
37202 2007-02-11  Bruno Haible  <bruno@clisp.org>
37203
37204         New module mbslen.
37205         * modules/mbslen: New file.
37206         * lib/mbslen.c: New file.
37207         * lib/string_.h (mbslen): New declaration.
37208         * m4/mbslen.m4: New file.
37209         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37210         GNULIB_MBSLEN.
37211         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
37212         * MODULES.html.sh (Internationalization functions): Add mbslen.
37213
37214 2007-02-11  Bruno Haible  <bruno@clisp.org>
37215
37216         Ensure O(n) worst-case complexity of strcasestr substitute.
37217         * lib/strcasestr.c: Include stdbool.h.
37218         (knuth_morris_pratt): New function.
37219         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
37220         bookkeeping indicates that it's worth it.
37221         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
37222
37223         * modules/strcasestr-tests: New file.
37224         * tests/test-strcasestr.c: New file.
37225
37226 2007-02-11  Bruno Haible  <bruno@clisp.org>
37227
37228         Ensure O(n) worst-case complexity of c_strcasestr.
37229         * lib/c-strcasestr.c: Include stdbool.h, string.h.
37230         (knuth_morris_pratt): New function.
37231         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
37232         the bookkeeping indicates that it's worth it.
37233         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
37234
37235         * modules/c-strcasestr-tests: New file.
37236         * tests/test-c-strcasestr.c: New file.
37237
37238 2007-02-11  Bruno Haible  <bruno@clisp.org>
37239
37240         Ensure O(n) worst-case complexity of c_strstr.
37241         * lib/c-strstr.c: Include stdbool.h, string.h.
37242         (knuth_morris_pratt): New function.
37243         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
37244         bookkeeping indicates that it's worth it.
37245         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
37246
37247         * lib/c-strstr.c: Complete rewrite for maintainability.
37248
37249         * modules/c-strstr-tests: New file.
37250         * tests/test-c-strstr.c: New file.
37251
37252 2007-02-11  Bruno Haible  <bruno@clisp.org>
37253
37254         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
37255         5.2.1 and earlier, whereby \055 was treated just like the range
37256         delimiter '-'.
37257         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
37258
37259 2007-02-08  Bruno Haible  <bruno@clisp.org>
37260
37261         * modules/regex (Depends-on): Add stdbool.
37262         Reported by Dalibor Topic <robilad@kaffe.org>.
37263
37264 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
37265
37266         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
37267         Prefer returning from main to exiting from it.
37268         Remove unnecessary parens after sizeof.
37269
37270 2007-02-05  Bruno Haible  <bruno@clisp.org>
37271
37272         New module mbssep.
37273         * modules/mbssep: New file.
37274         * lib/mbssep.c: New file.
37275         * lib/string_.h (strsep): Add a conditional link warning.
37276         (mbssep): New declaration.
37277         * m4/mbssep.m4: New file.
37278         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37279         GNULIB_MBSSEP.
37280         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
37281         * MODULES.html.sh (Internationalization functions): Add mbssep.
37282
37283 2007-02-05  Bruno Haible  <bruno@clisp.org>
37284
37285         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
37286         Optimize search in case of 1 delimiter.
37287
37288 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
37289
37290         * lib/acl.h: Include sys/types.h before sys/acl.h.
37291
37292 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
37293
37294         Merge upstream fix for glibc bugzilla #3957:
37295
37296         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
37297
37298         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
37299         bit for RE_HAT_LISTS_NOT_NEWLINE.
37300         (build_charclass_op): Remove bogus comment.
37301
37302 2007-02-05  Simon Josefsson  <simon@josefsson.org>
37303
37304         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
37305
37306 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
37307
37308         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
37309         * lib/memmem.c [!defined _LIBC]: Include config.h.
37310
37311 2007-02-04  Bruno Haible  <bruno@clisp.org>
37312
37313         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
37314         warning message.
37315
37316 2007-02-04  Bruno Haible  <bruno@clisp.org>
37317
37318         New module mbstok_r.
37319         * modules/mbstok_r: New file.
37320         * lib/mbstok_r.c: New file.
37321         * lib/string_.h (strtok_r): Change argument names to match the
37322         comments. Add a conditional link warning.
37323         (mbstok_r): New declaration.
37324         * m4/mbstok_r.m4: New file.
37325         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37326         GNULIB_MBSTOK_R.
37327         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
37328         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
37329
37330 2007-02-04  Bruno Haible  <bruno@clisp.org>
37331
37332         New module mbsspn.
37333         * modules/mbsspn: New file.
37334         * lib/mbsspn.c: New file.
37335         * lib/string_.h (strspn): Add a conditional link warning.
37336         (mbsspn): New declaration.
37337         * m4/mbsspn.m4: New file.
37338         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37339         GNULIB_MBSSPN.
37340         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
37341         * MODULES.html.sh (Internationalization functions): Add mbsspn.
37342
37343 2007-02-04  Bruno Haible  <bruno@clisp.org>
37344
37345         New module mbspbrk.
37346         * modules/mbspbrk: New file.
37347         * lib/mbspbrk.c: New file.
37348         * lib/string_.h (strpbrk): Add a conditional link warning.
37349         (mbspbrk): New declaration.
37350         * m4/mbspbrk.m4: New file.
37351         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37352         GNULIB_MBSPBRK.
37353         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
37354         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
37355
37356 2007-02-04  Bruno Haible  <bruno@clisp.org>
37357
37358         New module mbscspn.
37359         * modules/mbscspn: New file.
37360         * lib/mbscspn.c: New file.
37361         * lib/string_.h (strcspn): Add a conditional link warning.
37362         (mbscspn): New declaration.
37363         * m4/mbscspn.m4: New file.
37364         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37365         GNULIB_MBSCSPN.
37366         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
37367         * MODULES.html.sh (Internationalization functions): Add mbscspn.
37368
37369 2007-02-04  Bruno Haible  <bruno@clisp.org>
37370
37371         New module mbscasestr, reduced goal of strcasestr.
37372         * modules/mbscasestr: New file.
37373         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
37374         (mbscasestr): Renamed from strcasestr.
37375         * lib/strcasestr.c: Don't include mbuiter.h.
37376         (strcasestr): Remove support for multibyte locales.
37377         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
37378         Change the conditional link warning.
37379         (mbscasestr): New declaration.
37380         * m4/mbscasestr.m4: New file.
37381         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
37382         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
37383         REPLACE_STRCASESTR.
37384         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
37385         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
37386         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
37387         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
37388         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
37389         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
37390         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
37391         (Depends-on): Remove mbuiter.
37392         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
37393
37394 2007-02-04  Bruno Haible  <bruno@clisp.org>
37395
37396         Simplify handling of strncasecmp.
37397         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
37398         the conditional link warning.
37399         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
37400         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
37401         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
37402         * modules/strcase (configure.ac): Don't invoke
37403         gl_STRING_MODULE_INDICATOR.
37404         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
37405
37406 2007-02-04  Bruno Haible  <bruno@clisp.org>
37407
37408         New module mbscasecmp, reduced goal of strcasecmp.
37409         * modules/mbscasecmp: New file.
37410         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
37411         (mbscasecmp): Renamed from strcasecmp.
37412         * lib/strcasecmp.c: Don't include mbuiter.h.
37413         (strcasecmp): Remove support for multibyte locales.
37414         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
37415         Change the conditional link warning.
37416         (mbscasecmp): New declaration.
37417         * m4/mbscasecmp.m4: New file.
37418         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
37419         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
37420         REPLACE_STRCASECMP.
37421         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
37422         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37423         GNULIB_MBSCASECMP.
37424         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
37425         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
37426         * modules/strcase (Files): Remove m4/mbrtowc.m4.
37427         (Depends-on): Remove mbuiter.
37428         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
37429
37430 2007-02-04  Bruno Haible  <bruno@clisp.org>
37431
37432         New module mbsstr. Remove module strstr.
37433         * modules/mbsstr: New file.
37434         * modules/strstr: Remove file.
37435         * lib/mbsstr.c: Renamed from lib/strstr.c.
37436         (mbsstr): Renamed from strstr.
37437         * lib/string_.h (strstr): Remove declaration. Change the conditional
37438         link warning.
37439         (mbsstr): New declaration.
37440         * m4/mbsstr.m4: New file.
37441         * m4/strstr.m4: Remove file.
37442         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
37443         REPLACE_STRSTR.
37444         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
37445         Don't initialize GNULIB_STRSTR.
37446         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
37447         substitute GNULIB_STRSTR and REPLACE_STRSTR.
37448         * MODULES.html.sh (Internationalization functions): Add mbsstr.
37449         (Support for systems lacking ANSI C 89): Remove strstr.
37450
37451 2007-02-04  Bruno Haible  <bruno@clisp.org>
37452
37453         New module mbsrchr.
37454         * modules/mbsrchr: New file.
37455         * lib/mbsrchr.c: New file.
37456         * lib/string_.h (strrchr): Add a conditional link warning.
37457         (mbsrchr): New declaration.
37458         * m4/mbsrchr.m4: New file.
37459         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37460         GNULIB_MBSRCHR.
37461         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
37462         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
37463
37464 2007-02-04  Bruno Haible  <bruno@clisp.org>
37465
37466         New module mbschr.
37467         * modules/mbschr: New file.
37468         * lib/mbschr.c: New file.
37469         * lib/string_.h (strchr): Add a conditional link warning.
37470         (mbschr): New declaration.
37471         * m4/mbschr.m4: New file.
37472         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37473         GNULIB_MBSCHR.
37474         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
37475         * MODULES.html.sh (Internationalization functions): Add mbschr.
37476
37477 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
37478
37479         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
37480
37481         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
37482
37483 2007-02-04  Bruno Haible  <bruno@clisp.org>
37484
37485         New module description section 'configure.ac-early'.
37486         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
37487         (func_get_autoconf_early_snippet): New function.
37488         (func_import, func_create_testdir): Use it. Remove special cases for
37489         modules 'extensions' and 'lock'.
37490         * modules/extensions (configure.ac-early): Require
37491         gl_USE_SYSTEM_EXTENSIONS.
37492         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
37493
37494 2007-02-04  Bruno Haible  <bruno@clisp.org>
37495
37496         Make use of gcj-4.3's -fsource and -ftarget option.
37497         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
37498         and if so try the options -fsource and -ftarget.
37499         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
37500         source_version, ftarget_option, target_version arguments.
37501         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
37502         (is_envjavac_oldgcj_14_14_usable): Renamed from
37503         is_envjavac_gcj_14_14_usable.
37504         (is_envjavac_oldgcj_14_13_usable): Renamed from
37505         is_envjavac_gcj_14_13_usable.
37506         (is_gcj_present): Update.
37507         (is_gcj_43, is_gcj43_usable): New functions.
37508         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
37509         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
37510         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
37511         try the options -fsource and -ftarget.
37512
37513 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
37514
37515         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
37516         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
37517         larger value.
37518
37519 2007-02-03  Jim Meyering  <jim@meyering.net>
37520
37521         Give tools a better chance to allocate space for very large buffers.
37522         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
37523
37524         Make pwd and readlink work also when run with an unreadable parent dir
37525         on systems with openat support.
37526         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
37527         provided getcwd function, even when we have openat support.
37528         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
37529
37530 2007-02-02  Bruno Haible  <bruno@clisp.org>
37531
37532         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
37533         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
37534         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
37535         portability problems if one of these functions is only used on specific
37536         platforms.
37537         Reported by Paul Eggert.
37538
37539 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
37540
37541         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
37542         is causing more trouble than it's curing.
37543         * lib/regex_internal.h (__mempcpy): Remove.
37544         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
37545         (and make the code a tad smaller to boot).
37546         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
37547
37548 2007-02-02  Jim Meyering  <jim@meyering.net>
37549
37550         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
37551         section, not in the Makefile.am: one.
37552
37553 2007-02-02  Eric Blake  <ebb9@byu.net>
37554
37555         * lib/strchrnul.c: Always include config.h first.
37556
37557         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
37558         gnulib strstr is not necessary here.
37559
37560 2007-02-02  Simon Josefsson  <simon@josefsson.org>
37561
37562         * m4/socklen.m4: Fix typo.
37563
37564 2007-02-02  Eric Blake  <ebb9@byu.net>
37565
37566         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
37567         * modules/netinet_in (Makefile.am): Likewise.
37568
37569 2007-02-01  Bruno Haible  <bruno@clisp.org>
37570
37571         * lib/string_.h (GL_LINK_WARNING): New macro.
37572         (strcasecmp, strstr, strcasestr): If provided by the system,
37573         conditionally define as a macro that leads to a warning instead of to
37574         an error.
37575         (strncasecmp): Conditionally define as a macro that leads to a warning.
37576
37577 2007-02-01  Karl Berry  <karl@gnu.org>
37578
37579         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
37580
37581 2007-02-01  Bruno Haible  <bruno@clisp.org>
37582
37583         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
37584         renamings.
37585
37586 2007-02-01  Eric Blake  <ebb9@byu.net>
37587
37588         * modules/regex (Depends-on): Revert dependence on mempcpy.
37589         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
37590         module's definition of mempcpy.
37591         Reported by Paul Eggert.
37592
37593 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
37594
37595         * lib/string_.h: If the gnulib module XYZ is not present, undefine
37596         the symbol XYZ before redefining it.  This fixes a problem with
37597         programs that don't use XYZ, when compiled on systems that define
37598         XYZ to something else.
37599
37600 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
37601
37602         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
37603         occurs when "mkdir -m foo" creates a setgid directory that is (1)
37604         writeable to group or other and (2) is intended to have a special
37605         mode bit that is set or cleared.  In such a case, the directory
37606         should be neither group- nor other-writeable until the special
37607         mode bits are right.
37608
37609 2007-01-31  Eric Blake  <ebb9@byu.net>
37610
37611         * modules/mountlist (Depends-on): Add strstr.
37612
37613         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
37614         bug.
37615         * modules/string (Makefile.am): Remove redundant replacement.
37616         * modules/regex (Depends-on): Add mempcpy.
37617
37618 2007-01-31  Bruno Haible  <bruno@clisp.org>
37619
37620         New module description field 'Link'.
37621         * gnulib-tool (func_usage): Document --extract-link-directive.
37622         (sed_extract_prog): Recognize 'Link' directive.
37623         (func_get_link_directive): New function.
37624         (func_import): Show summary of link directives.
37625         Handle --extract-link-directive option.
37626         * modules/acl (Link): New section.
37627         * modules/clock-time (Link): New section.
37628         * modules/euidaccess (Link): New section.
37629         * modules/gettext (Link): New section.
37630         * modules/iconv (Link): New section.
37631         * modules/lock (Link): New section.
37632         * modules/nanosleep (Link): New section.
37633         * modules/readline (Link): New section.
37634
37635 2007-01-27  Bruno Haible  <bruno@clisp.org>
37636
37637         Enforce the use of gnulib modules for unportable <string.h> functions.
37638         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
37639         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
37640         (gl_HEADER_STRING_H_BODY): Require it.
37641         * lib/string_.h: If the gnulib module XYZ is not present, redefine
37642         the symbol XYZ to one that gives a link error.
37643         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
37644         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
37645         * modules/mempcpy (configure.ac): Likewise.
37646         * modules/memrchr (configure.ac): Likewise.
37647         * modules/stpcpy (configure.ac): Likewise.
37648         * modules/stpncpy (configure.ac): Likewise.
37649         * modules/strcase (configure.ac): Likewise.
37650         * modules/strcasestr (configure.ac): Likewise.
37651         * modules/strchrnul (configure.ac): Likewise.
37652         * modules/strdup (configure.ac): Likewise.
37653         * modules/strndup (configure.ac): Likewise.
37654         * modules/strnlen (configure.ac): Likewise.
37655         * modules/strpbrk (configure.ac): Likewise.
37656         * modules/strsep (configure.ac): Likewise.
37657         * modules/strstr (configure.ac): Likewise.
37658         * modules/strtok_r (configure.ac): Likewise.
37659
37660 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
37661
37662         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
37663
37664 2007-01-30  Jim Meyering  <jim@meyering.net>
37665
37666         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
37667
37668 2007-01-29  Bruno Haible  <bruno@clisp.org>
37669
37670         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
37671         * lib/execute.c: Likewise.
37672         * lib/pipe.c: Likewise.
37673         * lib/printf-args.h: Likewise.
37674         * lib/printf-args.c: Likewise.
37675         * lib/printf-parse.c: Likewise.
37676         * lib/vasnprintf.c: Likewise.
37677
37678 2007-01-29  Eric Blake  <ebb9@byu.net>
37679
37680         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
37681         declaration.
37682
37683 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
37684
37685         * lib/strptime.h (strptime): Use 'restrict' for args where
37686         POSIX requires this.
37687         * lib/strptime.c (strptime): Likewise.
37688         Change license notice from LGPL to GPL, since gnulib-tool will
37689         change this as needed.
37690         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
37691         defined.
37692         Include "strptime.h" first, to check interface.
37693         Do not #undef _LIBC and _NL_CURRENT.
37694         Do not include <stdlib.h>; no longer needed.
37695         Include "time_r.h" and declare ptime_locale_status
37696         only if _LIBC is not defined.
37697         (__P): Remove unused macro.
37698         (match_string): Bring back glibc version, but use it only if _LIBC
37699         is defined.
37700         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
37701         Remove unnecessary assertion and abort() call.
37702         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
37703         * m4/strptime.m4: Fix serial number comment.
37704         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
37705         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
37706         (Depends-on): Add time_r.
37707
37708 2007-01-29  Bruno Haible  <bruno@clisp.org>
37709
37710         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
37711         strptime.
37712         * modules/strptime (Depends-on): Add stdbool.
37713         * lib/strptime.h: Include <time.h> always. Add comments.
37714
37715 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
37716
37717         * modules/strptime: New file.
37718         * lib/strptime.h: New file.
37719         * lib/strptime.c: New file.
37720         * m4/strptime.m4: New file.
37721
37722 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
37723
37724         * MODULES.html.sh: New module mpsort.
37725         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
37726
37727         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
37728         a circularity problem with HP-UX ia64 reported by Bob Proulx in
37729         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
37730         All uses changed.
37731         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
37732         All uses changed.
37733         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
37734         to _Restrict_.
37735         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
37736         the parameter matches the prototype.
37737
37738 2007-01-28  Jim Meyering  <jim@meyering.net>
37739
37740         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
37741         sys/time.h here, reverting that part of the previous patch:
37742         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
37743
37744 2007-01-28  Bruno Haible  <bruno@clisp.org>
37745
37746         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
37747         value of $(SYS_TIME_H).
37748         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
37749         remove it conditionally, too. [added by Jim Meyering]
37750         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
37751         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
37752         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
37753         GETTIMEOFDAY_REPLACEMENT to 1.
37754
37755 2007-01-28  Bruno Haible  <bruno@clisp.org>
37756
37757         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
37758         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
37759         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
37760         Set UNISTD_H instead of UNISTD_H2.
37761         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
37762
37763 2007-01-28  Bruno Haible  <bruno@clisp.org>
37764
37765         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
37766         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
37767
37768 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37769
37770         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
37771         (func_create_testdir): Ensure C locale for `grep' and `tr'
37772         character ranges.
37773         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
37774         ACLOCAL_AMFLAGS parsing state machine.
37775
37776 2007-01-27  Bruno Haible  <bruno@clisp.org>
37777
37778         * modules/unistr/base: Update.
37779
37780 2007-01-27  Bruno Haible  <bruno@clisp.org>
37781
37782         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
37783         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
37784         * modules/unistr/u32-mbtouc-unsafe: Renamed from
37785         modules/unistr/u32-mbtouc.
37786         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
37787         * lib/unistr.h: Update.
37788         * lib/linebreak.c: Update.
37789         * modules/unistr/u32-mbtouc: Renamed from
37790         modules/unistr/u32-mbtouc-safe.
37791         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
37792         * lib/unistr.h: Update.
37793         * lib/unistr/u32-to-u8.c: Update.
37794         * lib/unistr/u32-to-u16.c: Update.
37795
37796 2007-01-27  Bruno Haible  <bruno@clisp.org>
37797
37798         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
37799         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
37800         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
37801         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
37802         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
37803         * modules/unistr/u16-mbtouc-unsafe: Renamed from
37804         modules/unistr/u16-mbtouc.
37805         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
37806         * lib/unistr.h: Update.
37807         * lib/linebreak.c: Update.
37808         * modules/linebreak: Update.
37809         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
37810         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
37811         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
37812         * modules/unistr/u16-mbtouc: Renamed from
37813         modules/unistr/u16-mbtouc-safe.
37814         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
37815         * lib/unistr.h: Update.
37816         * lib/unistr/u16-to-u8.c: Update.
37817         * modules/unistr/u16-to-u8: Update.
37818         * lib/unistr/u16-to-u32.c: Update.
37819         * modules/unistr/u16-to-u32: Update.
37820
37821 2007-01-27  Bruno Haible  <bruno@clisp.org>
37822
37823         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
37824         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
37825         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
37826         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
37827         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
37828         * modules/unistr/u8-mbtouc-unsafe: Renamed from
37829         modules/unistr/u8-mbtouc.
37830         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
37831         * lib/unistr.h: Update.
37832         * lib/striconveh.c: Update.
37833         * modules/striconveh: Update.
37834         * lib/linebreak.c: Update.
37835         * modules/linebreak: Update.
37836         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
37837         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
37838         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
37839         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
37840         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
37841         * lib/unistr.h: Update.
37842         * lib/striconveh.c: Update.
37843         * modules/striconveh: Update.
37844         * lib/unistr/u8-to-u16.c: Update.
37845         * modules/unistr/u8-to-u16: Update.
37846         * lib/unistr/u8-to-u32.c: Update.
37847         * modules/unistr/u8-to-u32: Update.
37848
37849 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37850
37851         Sync from Libtool.
37852         * lib/argz.c: Do not include strings.h nor memory.h, include
37853         string.h unconditionally.  Patch by Simon Josefsson.
37854
37855 2007-01-27  Bruno Haible  <bruno@clisp.org>
37856
37857         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
37858         from gl_HEADER_STRING_H_BODY.
37859         (gl_HEADER_STRING_H_BODY): Require it.
37860         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
37861         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
37862         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
37863         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
37864         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
37865         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
37866         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
37867         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
37868         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
37869         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
37870         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
37871         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
37872         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
37873         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
37874         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
37875
37876 2007-01-27  Bruno Haible  <bruno@clisp.org>
37877
37878         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
37879         check_PROGRAMS into noinst_PROGRAMS.
37880         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
37881         check_PROGRAMS in this case.
37882         (func_import): Set for_test to false.
37883         (func_create_testdir): Set for_test to true.
37884
37885 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
37886             Bruno Haible  <bruno@clisp.org>
37887
37888         * modules/strcasestr (Files): Remove lib/strcasestr.h.
37889         (Depends-on): Add string.
37890         (Includes): Use <string.h> instead of strcasestr.h.
37891         * modules/string (Makefile.am): Also substitute the value of
37892         REPLACE_STRCASESTR.
37893         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
37894         assume strcasestr is declared in <string.h> not <strings.h>. Also
37895         set REPLACE_STRCASESTR.
37896         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
37897         REPLACE_STRCASESTR.
37898         * lib/strcasestr.h: Remove file.
37899         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
37900         * lib/string_.h (strcasestr): New declaration.
37901
37902 2007-01-27  Bruno Haible  <bruno@clisp.org>
37903
37904         * lib/string_.h: Use 'extern'.
37905
37906 2007-01-27  Jim Meyering  <jim@meyering.net>
37907
37908         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
37909         of set-but-not-used local, "q".
37910
37911         * lib/mempcpy.c: Include <config.h> before <string.h>.
37912         This fixes a compilation error on HP-UX, due to the system's
37913         "restrict"-using mempcpy prototype.
37914
37915 2007-01-26  Bruno Haible  <bruno@clisp.org>
37916
37917         Small optimization.
37918         * lib/javacomp.c: Include c-strstr.h.
37919          (is_envjavac_gcj): Use c_strstr instead of strstr.
37920         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
37921
37922 2007-01-26  Bruno Haible  <bruno@clisp.org>
37923
37924         * MODULES.html.sh (Unicode string functions): Add the new modules.
37925
37926         * modules/uniconv/u32-strconv-to-locale: New file.
37927         * lib/uniconv/u32-strconv-to-locale.c: New file.
37928
37929         * modules/uniconv/u16-strconv-to-locale: New file.
37930         * lib/uniconv/u16-strconv-to-locale.c: New file.
37931
37932         * modules/uniconv/u8-strconv-to-locale: New file.
37933         * lib/uniconv/u8-strconv-to-locale.c: New file.
37934
37935         * modules/uniconv/u32-strconv-from-locale: New file.
37936         * lib/uniconv/u32-strconv-from-locale.c: New file.
37937
37938         * modules/uniconv/u16-strconv-from-locale: New file.
37939         * lib/uniconv/u16-strconv-from-locale.c: New file.
37940
37941         * modules/uniconv/u8-strconv-from-locale: New file.
37942         * lib/uniconv/u8-strconv-from-locale.c: New file.
37943
37944         * modules/uniconv/u32-strconv-to-enc: New file.
37945         * lib/uniconv/u32-strconv-to-enc.c: New file.
37946         * modules/uniconv/u32-strconv-to-enc-tests: New file.
37947         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
37948
37949         * modules/uniconv/u16-strconv-to-enc: New file.
37950         * lib/uniconv/u16-strconv-to-enc.c: New file.
37951         * lib/uniconv/u-strconv-to-enc.h: New file.
37952         * modules/uniconv/u16-strconv-to-enc-tests: New file.
37953         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
37954
37955         * modules/uniconv/u8-strconv-to-enc: New file.
37956         * lib/uniconv/u8-strconv-to-enc.c: New file.
37957         * modules/uniconv/u8-strconv-to-enc-tests: New file.
37958         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
37959
37960         * modules/uniconv/u32-strconv-from-enc: New file.
37961         * lib/uniconv/u32-strconv-from-enc.c: New file.
37962         * modules/uniconv/u32-strconv-from-enc-tests: New file.
37963         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
37964
37965         * modules/uniconv/u16-strconv-from-enc: New file.
37966         * lib/uniconv/u16-strconv-from-enc.c: New file.
37967         * modules/uniconv/u16-strconv-from-enc-tests: New file.
37968         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
37969
37970         * modules/uniconv/u8-strconv-from-enc: New file.
37971         * lib/uniconv/u8-strconv-from-enc.c: New file.
37972         * lib/uniconv/u-strconv-from-enc.h: New file.
37973         * modules/uniconv/u8-strconv-from-enc-tests: New file.
37974         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
37975
37976         * modules/uniconv/u32-conv-from-enc: New file.
37977         * lib/uniconv/u32-conv-from-enc.c: New file.
37978         * modules/uniconv/u32-conv-from-enc-tests: New file.
37979         * tests/uniconv/test-u32-conv-from-enc.c: New file.
37980
37981         * modules/uniconv/u16-conv-from-enc: New file.
37982         * lib/uniconv/u16-conv-from-enc.c: New file.
37983         * lib/uniconv/u-conv-from-enc.h: New file.
37984         * modules/uniconv/u16-conv-from-enc-tests: New file.
37985         * tests/uniconv/test-u16-conv-from-enc.c: New file.
37986
37987         * modules/uniconv/u8-conv-from-enc: New file.
37988         * lib/uniconv/u8-conv-from-enc.c: New file.
37989         * modules/uniconv/u8-conv-from-enc-tests: New file.
37990         * tests/uniconv/test-u8-conv-from-enc.c: New file.
37991
37992         * modules/uniconv/base: New file.
37993         * lib/uniconv.h: New file.
37994
37995 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
37996
37997         * doc/gnulib-tool.texi (Initial import): Update to match current
37998         behavior with strdup module.
37999         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
38000         * lib/memmem.h: Remove; all uses removed.  This is now done
38001         by <string.h>.
38002         * lib/mempcpy.h: Likewise.
38003         * lib/memrchr.h: Likewise.
38004         * lib/stpcpy.h: Likewise.
38005         * lib/stpncpy.h: Likewise.
38006         * lib/strcase.h: Likewise.
38007         * lib/strchrnul.h: Likewise.
38008         * lib/strdup.h: Likewise.
38009         * lib/strndup.h: Likewise.
38010         * lib/strnlen.h: Likewise.
38011         * lib/strpbrk.h: Likewise.
38012         * lib/strsep.h: Likewise.
38013         * lib/strstr.h: Likewise.
38014         * lib/strtok_r.h: Likewise.
38015         * lib/string_.h: New file.
38016         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
38017         Rely on <string.h> instead.
38018         * lib/canon-host.c: Likewise.
38019         * lib/chdir-long.c: Likewise.
38020         * lib/concatpath.c: Likewise.
38021         * lib/exclude.c: Likewise.
38022         * lib/fchdir.c: Likewise.
38023         * lib/getaddrinfo.c: Likewise.
38024         * lib/getcwd.c: Likewise.
38025         * lib/getsubopt.c: Likewise.
38026         * lib/glob.c: Likewise.
38027         * lib/hard-locale.c: Likewise.
38028         * lib/iconvme.c: Likewise.
38029         * lib/javacomp.c: Likewise.
38030         * lib/mempcpy.c: Likewise.
38031         * lib/memrchr.c: Likewise.
38032         * lib/regex_internal.h: Likewise.
38033         * lib/stpncpy.c: Likewise.
38034         * lib/strcasecmp.c: Likewise.
38035         * lib/strchrnul.c: Likewise.
38036         * lib/strdup.c: Likewise.
38037         * lib/striconv.c: Likewise.
38038         * lib/striconveh.c: Likewise.
38039         * lib/striconveha.c: Likewise.
38040         * lib/strncasecmp.c: Likewise.
38041         * lib/strndup.c: Likewise.
38042         * lib/strnlen.c: Likewise.
38043         * lib/strsep.c: Likewise.
38044         * lib/strstr.c: Likewise.
38045         * lib/strtok_r.c: Likewise.
38046         * lib/userspec.c: Likewise.
38047         * lib/w32spawn.h: Likewise.
38048         * lib/xstrndup.c: Likewise.
38049         * lib/mountlist.c (strstr): Remove decl.
38050         * m4/string_h.m4: New file.
38051         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
38052         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
38053         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
38054         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
38055         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
38056         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
38057         Set REPLACE_STRCASECMP if necessary.
38058         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
38059         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
38060         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
38061         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
38062         HAVE_DECL_STRDUP if necessary.
38063         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
38064         since gl_FUNC_STRNDUP does that now.
38065         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
38066         Check for decl here...
38067         (gl_PREREQ_STRNLEN): ... not here.
38068         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
38069         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
38070         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
38071         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
38072         necessary.
38073         * modules/string: New file.
38074         * modules/memmem (Files): Remove special-purpose include file.
38075         (Depends-on): Add string.
38076         (Include): Include <string.h>, not the removed file.
38077         * modules/mempcpy: Likewise.
38078         * modules/memrchr: Likewise.
38079         * modules/stpcpy: Likewise.
38080         * modules/stpncpy: Likewise.
38081         * modules/strcase: Likewise.
38082         * modules/strchrnul: Likewise.
38083         * modules/strdup: Likewise.
38084         * modules/strndup: Likewise.
38085         * modules/strnlen: Likewise.
38086         * modules/strpbrk: Likewise.
38087         * modules/strsep: Likewise.
38088         * modules/strstr: Likewise.
38089         * modules/strtok_r: Likewise.
38090         * tests/test-dirname.c: Don't include "strdup.h", since
38091         <string.h> now suffices.
38092         * tests/test-memmem.c: Don't include "memmem.h", since
38093         <string.h> now suffices.
38094
38095 2007-01-25  Bruno Haible  <bruno@clisp.org>
38096
38097         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
38098         *resultp is 0.
38099
38100         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
38101         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
38102         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
38103         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
38104
38105         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
38106         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
38107         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
38108         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
38109         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
38110         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
38111
38112 2007-01-24  Bruno Haible  <bruno@clisp.org>
38113
38114         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
38115         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
38116         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
38117         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
38118         gl_FUNC_FTS_CORE.
38119         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
38120         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
38121         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
38122         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
38123         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
38124         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
38125         gl_FUNC_FCHOWNAT.
38126         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
38127         gl_FUNC_STRFTIME.
38128         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
38129         Reported by Ralf Wildenhues.
38130
38131 2007-01-24  Bruno Haible  <bruno@clisp.org>
38132
38133         Drop AC_REQUIRE calls that are redundant with the module dependencies.
38134         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
38135         gl_GETADDRINFO.
38136         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
38137         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
38138         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
38139
38140 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
38141
38142         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
38143         Don't use 'exit'; just return from 'main'.
38144         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
38145
38146         * lib/fnmatch_.h: Readjust white space and comments to match
38147         glibc, to avoid spurious diffs.
38148
38149 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
38150
38151         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
38152         2004-12-01 change by Jakub Jelinek, since this code won't compile
38153         if !LIBC.  Problem reported by Bob Proulx.
38154
38155 2007-01-23  Bruno Haible  <bruno@clisp.org>
38156
38157         * lib/striconveh.c: Include c-strcaseeq.h.
38158         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
38159         * modules/striconveh (Depends-on): Add c-strcaseeq.
38160
38161 2007-01-23  Bruno Haible  <bruno@clisp.org>
38162
38163         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
38164
38165         * modules/c-strcaseeq: New file.
38166         * lib/c-strcaseeq.h: New file.
38167
38168         * modules/streq: New file.
38169         * lib/streq.h: New file.
38170
38171 2007-01-23  Bruno Haible  <bruno@clisp.org>
38172
38173         * modules/striconveha-tests: New file.
38174         * tests/test-striconveha.c: New file.
38175
38176         * lib/striconveha.h: Include <stdbool.h>.
38177         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
38178         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
38179         (mem_iconveha_notranslit): Renamed from mem_iconveha.
38180         (mem_iconveha): New function.
38181         (str_iconveha_notranslit): Renamed from str_iconveha.
38182         (str_iconveha): New function.
38183         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
38184         c-strcase.
38185
38186 2007-01-23  Bruno Haible  <bruno@clisp.org>
38187
38188         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
38189         encodings without forgiving before trying any encoding with handler.
38190         (str_iconveha): Try all encodings without forgiving before trying any
38191         encoding with handler.
38192
38193 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
38194
38195         Import the following changes from libc.
38196
38197         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
38198
38199         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
38200
38201         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
38202
38203         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
38204         normal_bracket label.
38205
38206         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
38207
38208         [BZ #361]
38209         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
38210         to normal_bracket after fetching the next character.
38211
38212 2007-01-22  Bruno Haible  <bruno@clisp.org>
38213
38214         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
38215         argument.
38216         * lib/striconveh.c (iconv_carefully_1): New function.
38217         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
38218         argument.
38219         (str_cd_iconveh): Update.
38220         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
38221         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
38222         * tests/test-striconveh.c (MAGIC): New macro.
38223         (new_offsets): New function.
38224         (main): Test call with and without offsets.
38225
38226 2007-01-22  Bruno Haible  <bruno@clisp.org>
38227
38228         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
38229         * modules/sys_select (Makefile.am): Likewise.
38230         * modules/sys_socket (Makefile.am): Likewise.
38231         * modules/sys_time (Makefile.am): Likewise.
38232
38233 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
38234
38235         * modules/gettimeofday (License): Change from GPL to LGPL, since
38236         gettimeofday is a library function.
38237
38238 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38239
38240         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
38241
38242 2007-01-21  Bruno Haible  <bruno@clisp.org>
38243
38244         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
38245
38246 2007-01-21  Bruno Haible  <bruno@clisp.org>
38247
38248         * modules/striconveha: New file.
38249         * lib/striconveha.h: New file.
38250         * lib/striconveha.c: New file.
38251         * MODULES.html.sh (Internationalization functions): Add striconveha.
38252         * lib/striconv.c (str_iconv): Optimize the case of an empty input
38253         string.
38254         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
38255
38256 2007-01-21  Bruno Haible  <bruno@clisp.org>
38257
38258         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
38259         * lib/striconveh.c (str_iconveh): Likewise.
38260
38261 2007-01-21  Bruno Haible  <bruno@clisp.org>
38262
38263         * lib/striconveh.h (mem_iconveh): New declaration.
38264         * lib/striconveh.c (mem_iconveh): New function.
38265         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
38266
38267 2007-01-21  Bruno Haible  <bruno@clisp.org>
38268
38269         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
38270
38271         * lib/striconveh.h (mem_cd_iconveh): Change specification.
38272         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
38273         original result buffer.
38274         (str_cd_iconveh): Update.
38275         * tests/test-striconveh.c (main): Update.
38276
38277         * lib/striconv.h (mem_cd_iconv): Change specification.
38278         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
38279         result buffer.
38280         (str_cd_iconv): Update.
38281         * tests/test-striconv.c (main): Update.
38282
38283 2007-01-21  Bruno Haible  <bruno@clisp.org>
38284
38285         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
38286
38287 2007-01-20  Jim Meyering  <jim@meyering.net>
38288
38289         * lib/userspec.c (parse_with_separator): If a user or group string
38290         starts with "+", skip the corresponding name-to-ID look-up, since
38291         such a look-up must fail: user and group names may not include "+".
38292
38293 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
38294
38295         * lib/poll.c: Include sys/time.h and time.h unconditionally,
38296         since we now assume the sys_time module.
38297         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
38298         check for sys/time.h; no longer needed.
38299         * modules/poll (Depends-on): Depend on sys_time.
38300
38301 2007-01-18  Bruno Haible  <bruno@clisp.org>
38302
38303         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
38304         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
38305
38306         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
38307         gettimeofday.
38308
38309         * tests/test-gettimeofday.c: Include <time.h>.
38310         (dummy): Remove variable.
38311
38312         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
38313         gl_HEADER_SYS_TIME_H.
38314         (gl_HEADER_SYS_TIME_H): New macro.
38315
38316         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
38317         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
38318         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
38319         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
38320         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
38321         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
38322         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
38323         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
38324         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
38325         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
38326         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
38327
38328         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
38329         last change; it caused a compilation error when cross-compiling to
38330         Cygwin.
38331
38332 2007-01-18  Jim Meyering  <jim@meyering.net>
38333
38334         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
38335         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
38336         than the race-prone "test -d sys || mkdir sys".
38337         (configure.ac): Use AC_PROG_MKDIR_P.
38338         * modules/sys_select: Likewise.
38339         * modules/sys_socket: Likewise.
38340         * modules/sys_time: Likewise.
38341
38342 2007-01-18  Eric Blake  <ebb9@byu.net>
38343
38344         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
38345         replace gettimeofday.
38346         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
38347         name, to avoid infinite recursion.
38348
38349 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
38350
38351         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
38352         module sys_time.
38353         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
38354         assume timespec.h defines struct timeval.
38355         * lib/settime.c: Likewise.
38356         * lib/utimens.c: Likewise.
38357         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
38358         since we now assume the gettimeofday module.
38359         * lib/tempname.c (__gen_tempname): Likewise.
38360         * lib/gettimeofday.h: Remove.
38361         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
38362         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
38363         Include <time.h>, for 'time()'.
38364         (localtime_buffer_addr): Also use this workaround if
38365         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
38366         to simplify the uses.  All uses changed.
38367         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
38368         that #undef is inside {}, and 'const' follows type name consistently.
38369         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
38370         (gettimeofday): Do not use the maximum possible value for
38371         tv->tv_usec, since that might break usages other than ls.c.
38372         Instead, we'll leave ls.c alone.  This undoes today's patch
38373         by Bruno.  Add a compile-time warning for 1s-clock resolution;
38374         we've never observed the problem but might as well keep the
38375         canary.
38376         * lib/nanosleep.c: Include timespec.h first, for interface check.
38377         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
38378         now assume the sys_time module.
38379         * lib/tempname.c: Likewise.
38380         * lib/timespec.h: Likewise.
38381         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
38382         needed.
38383         * lib/strftime.c: Likewise.
38384         * lib/timespec.h: Likewise.
38385         * lib/posixtm.c: Include posixtm.h first, for interface check.
38386         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
38387         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
38388         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
38389         * lib/sys_time_.h: New file.
38390         * lib/timespec.h (struct timespec): Use long int, not long.
38391         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
38392         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
38393         Remove obsolescent call to AC_HEADER_TIME.
38394         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
38395         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
38396         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
38397         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
38398         Likewise.
38399         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
38400         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
38401         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
38402         into the sys_time module.  Check for gettimeofday just once.
38403         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
38404         for gettimeofday signature to just check the signature.  Merely
38405         compile it, since linking doesn't test signature.  Improve test for
38406         whether gettimeofday.o is actually needed.
38407         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
38408         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
38409         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
38410         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
38411         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
38412         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
38413         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
38414         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
38415         than worrying about sys/time.h.
38416         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
38417         Don't bother worrying about TIME_WITH_SYS_TIME.
38418         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
38419         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
38420         * m4/sys_time_h.m4: New file.
38421         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
38422         Don't include sys/time.h.  Return from main rather than exiting.
38423         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
38424         all uses changed.
38425         * modules/gethrxtime (Depends-on): Add sys_time.
38426         * modules/gettime (Depends-on): Likewise.
38427         * modules/gettimeofday (Depends-on): Likewise.
38428         * modules/nanosleep (Depends-on): Likewise.
38429         * modules/settime (Depends-on): Likewise.
38430         * modules/tempname (Depends-on): Likewise.
38431         * modules/utimens (Depends-on): Likewise.
38432         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
38433         (Include:) Change back to <sys/time.h>.
38434         (Maintainer:) Add self.
38435         * modules/sys_time: New file.
38436         * modules/tempname (Depends-on): Add gettimeofday.
38437         * tests/test-gettimeofday.c: Include <sys/time.h>
38438         rather than gettimeofday.h.
38439
38440 2007-01-17  Bruno Haible  <bruno@clisp.org>
38441
38442         * gnulib-tool (func_get_license): Revert last patch. Instead, let
38443         the license default to GPL.
38444         (func_create_testdir): Don't complain if a module is LGPL and its
38445         tests module depends on GPLed modules.
38446
38447 2007-01-17  Bruno Haible  <bruno@clisp.org>
38448
38449         * lib/gettimeofday.c (gettimeofday): Add code for the case
38450         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
38451         maximum possible value for tv->tv_usec, rather than the minimum one.
38452
38453 2005-10-08  Martin Lambers  <marlam@marlam.de>
38454 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
38455 2007-01-16  Bruno Haible  <bruno@clisp.org>
38456
38457         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
38458         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
38459         gl_FUNC_GETTIMEOFDAY.
38460         (Include): Add gettimeofday.h.
38461         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
38462         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
38463         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
38464         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
38465         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
38466         * lib/gettimeofday.h: New file.
38467         * lib/gettimeofday.c: Include <sys/timeb.h>.
38468         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
38469         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
38470         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
38471         fall back on time().
38472
38473         * tests/test-gettimeofday.c: New file.
38474         * modules/gettimeofday-tests: New file.
38475
38476 2007-01-16  Eric Blake  <ebb9@byu.net>
38477
38478         * modules/fnmatch (Depends-on): Depend on wchar.
38479         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
38480         * m4/fnmatch.m4: Likewise.
38481         * modules/mbchar (Makefile.am): Assume <wchar.h>.
38482         * m4/mbchar.m4: Likewise.
38483         * modules/mbswidth (Depends-on): Depend on wchar.
38484         * lib/mbswidth.c: Assume <wchar.h>.
38485         * m4/mbswidth.m4: Likewise.
38486         * modules/quotearg (Depends-on): Depend on wchar.
38487         * lib/quotearg.c: Assume <wchar.h>.
38488         * m4/quotearg.m4: Likewise.
38489         * modules/regex (Depends-on): Depend on wchar.
38490         * lib/regex_internal.h: Assume <wchar.h>.
38491         * m4/regex.m4: Likewise.
38492         * modules/stdint (Depends-on): Depend on wchar.
38493         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
38494         * m4/stdint.m4: Likewise.
38495         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
38496         * modules/strftime (Depends-on): Depend on wchar.
38497         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
38498         * modules/strtol (Depends-on): Depend on wchar.
38499         * lib/strtol.c: Assume <wchar.h>.
38500         * modules/wcwidth (Depends-on): Depend on wchar.
38501         * lib/wcwidth.h: Assume <wchar.h>.
38502         * m4/wcwidth.m4: Likewise.
38503
38504 2007-01-16  Bruno Haible  <bruno@clisp.org>
38505
38506         * modules/csharpexec-script: New, created from...
38507         * modules/csharpexec: ... this.
38508
38509 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
38510
38511         * modules/javaexec-script: New, created from...
38512         * modules/javaexec: ... this.
38513
38514 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38515
38516         * modules/poll (Dependencies): Add sys_select.
38517
38518 2007-01-15  Jim Meyering  <jim@meyering.net>
38519
38520         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
38521         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
38522         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
38523         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
38524
38525 2007-01-15  Bruno Haible  <bruno@clisp.org>
38526
38527         * modules/striconveh: New file.
38528         * lib/striconveh.h: New file.
38529         * lib/striconveh.c: New file.
38530         * MODULES.html.sh (Internationalization functions): Add striconveh.
38531
38532         * modules/striconveh-tests: New file.
38533         * tests/test-striconveh.c: New file.
38534
38535 2007-01-15  Bruno Haible  <bruno@clisp.org>
38536
38537         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
38538         not from GNU libiconv or GNU libc.
38539
38540 2007-01-15  Bruno Haible  <bruno@clisp.org>
38541
38542         * doc/gnulib-intro.texi (Copyright): Explain the different license
38543         terms for module descriptions, autoconf macros, tests, documentation.
38544
38545 2007-01-14  Bruno Haible  <bruno@clisp.org>
38546
38547         * modules/striconv-tests: New file.
38548         * tests/test-striconv.c: New file.
38549
38550 2007-01-14  Bruno Haible  <bruno@clisp.org>
38551
38552         * modules/iconv-tests: New file.
38553         * tests/test-iconv.c: New file.
38554
38555 2007-01-14  Bruno Haible  <bruno@clisp.org>
38556
38557         * gnulib-tool (func_get_license): For test modules, use the license of
38558         the main module.
38559
38560 2007-01-14  Bruno Haible  <bruno@clisp.org>
38561
38562         * modules/iconv (Include): Clarify that <iconv.h> can only be included
38563         if iconv is found to exist.
38564
38565 2007-01-14  Bruno Haible  <bruno@clisp.org>
38566
38567         * modules/c-ctype-tests: New file.
38568         * tests/test-c-ctype.c: New file.
38569
38570 2007-01-14  Bruno Haible  <bruno@clisp.org>
38571
38572         * modules/binary-io-tests: New file.
38573         * tests/test-binary-io.sh: New file.
38574         * tests/test-binary-io.c: New file.
38575
38576 2007-01-14  Bruno Haible  <bruno@clisp.org>
38577
38578         * modules/array-oset-tests: New file.
38579         * tests/test-array_oset.c: New file.
38580
38581 2007-01-14  Bruno Haible  <bruno@clisp.org>
38582
38583         * modules/array-list-tests: New file.
38584         * tests/test-array_list.c: New file.
38585
38586 2007-01-14  Bruno Haible  <bruno@clisp.org>
38587
38588         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
38589         and make.
38590         Reported by Simon Josefsson in
38591         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
38592
38593 2007-01-14  Bruno Haible  <bruno@clisp.org>
38594
38595         * modules/allocsa-tests: New file.
38596         * tests/test-allocsa.c: New file.
38597
38598 2007-01-14  Bruno Haible  <bruno@clisp.org>
38599
38600         * modules/fchdir (Depends-on): Add absolute-header.
38601         * modules/unistd (Depends-on): Likewise.
38602
38603 2006-12-30  Bruno Haible  <bruno@clisp.org>
38604
38605         * modules/fchdir: New file.
38606         * modules/unistd (Files): Add lib/unistd_.h.
38607         (Makefile.am): Generate unistd.h from unistd_.h.
38608         * lib/fchdir.c: New file.
38609         * lib/dirent_.h: New file.
38610         * lib/unistd_.h: New file.
38611         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
38612         * m4/fchdir.m4: New file.
38613         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
38614         (gl_HEADER_UNISTD): Invoke it.
38615         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
38616         function.
38617         * lib/backupfile.c (opendir, closedir): Undefine.
38618         * lib/chown.c (open, close): Undefine.
38619         * lib/clean-temp.c (open, close): Undefine.
38620         * lib/copy-file.c (open, close): Undefine.
38621         * lib/execute.c (open, close): Undefine.
38622         * lib/fsusage.c (open, close): Undefine.
38623         * lib/gc-gnulib.c (open, close): Undefine.
38624         * lib/getcwd.c (opendir, closedir): Undefine.
38625         * lib/glob.c (opendir, closedir): Undefine.
38626         * lib/javacomp.c (open, close): Undefine.
38627         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
38628         * lib/openat-proc.c (open, close): Undefine.
38629         * lib/pagealign_alloc.c (open, close): Undefine.
38630         * lib/pipe.c (open, close): Undefine.
38631         * lib/progreloc.c (open, close): Undefine.
38632         * lib/savedir.c (opendir, closedir): Undefine.
38633         * lib/utime.c (open, close): Undefine.
38634         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
38635
38636 2007-01-10  Bruno Haible  <bruno@clisp.org>
38637
38638         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
38639
38640 2007-01-12  Eric Blake  <ebb9@byu.net>
38641
38642         Provide a robust <wchar.h>.  Further simplifications are now
38643         possible in other modules, but not included here.
38644         * modules/wchar: New module.
38645         * m4/wchar.m4: New file.
38646         * lib/wchar_.h: Likewise.
38647         * modules/mbchar (Depends-on): Depend on wchar, as the first use
38648         of the new module.
38649         * MODULES.html.sh (Extended multibyte and wide character utilities):
38650         New section.
38651
38652 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
38653
38654         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
38655         to a reasonable default for memory allocation.
38656         (xreadlink): Don't allocate a huge buffer, to work around a buggy
38657         file system that reports garbage st_size values for symlinks.
38658         Problem reported by Liyang Hu.
38659
38660 2007-01-11  Simon Josefsson  <simon@josefsson.org>
38661
38662         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
38663         Emacs .#* auto-save files).
38664
38665 2007-01-11  Bruno Haible  <bruno@clisp.org>
38666
38667         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
38668         directory.
38669
38670 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
38671
38672         Use @...@ consistently in lib/wctype_.h.
38673         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
38674         on it being set to 1 or 0.
38675         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
38676         go back to AC_SUBSTing it.
38677         * modules/wctype (Makefile.am): Undo previous change.
38678
38679 2007-01-10  Eric Blake  <ebb9@byu.net>
38680
38681         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
38682         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
38683         * modules/wctype (Makefile.am): Likewise.
38684         Reported by Chris McGuire.
38685
38686 2007-01-10  Jim Meyering  <jim@meyering.net>
38687
38688         fts.c: a small readability/maintainability improvement
38689         * lib/fts.c (fts_read): Make this code slightly more readable and
38690         maintainable by hoisting the "sp->fts_cur = p" assignments to
38691         immediately follow the statements that set P.  Derived from
38692         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
38693
38694 2007-01-10  Eric Blake  <ebb9@byu.net>
38695
38696         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
38697         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
38698         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
38699         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
38700         Reported by Chris McGuire.
38701
38702 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38703
38704         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
38705         in sed script.
38706
38707 2007-01-09  Bruno Haible  <bruno@clisp.org>
38708
38709         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
38710         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
38711         variables.
38712         (func_module): Use them.
38713
38714 2007-01-09  Bruno Haible  <bruno@clisp.org>
38715
38716         * modules/unistr/base: New file.
38717         * lib/unistr.h: New file.
38718
38719         * modules/unistr/u8-to-u16: New file.
38720         * lib/unistr/u8-to-u16.c: New file.
38721
38722         * modules/unistr/u8-to-u32: New file.
38723         * lib/unistr/u8-to-u32.c: New file.
38724
38725         * modules/unistr/u16-to-u8: New file.
38726         * lib/unistr/u16-to-u8.c: New file.
38727
38728         * modules/unistr/u16-to-u32: New file.
38729         * lib/unistr/u16-to-u32.c: New file.
38730
38731         * modules/unistr/u32-to-u8: New file.
38732         * lib/unistr/u32-to-u8.c: New file.
38733
38734         * modules/unistr/u32-to-u16: New file.
38735         * lib/unistr/u32-to-u16.c: New file.
38736
38737         * modules/unistr/u8-check: New file.
38738         * modules/unistr/u16-check: New file.
38739         * modules/unistr/u32-check: New file.
38740         * lib/unistr/u8-check.c: New file.
38741         * lib/unistr/u16-check.c: New file.
38742         * lib/unistr/u32-check.c: New file.
38743
38744         * modules/unistr/u8-chr: New file.
38745         * modules/unistr/u16-chr: New file.
38746         * modules/unistr/u32-chr: New file.
38747         * lib/unistr/u8-chr.c: New file.
38748         * lib/unistr/u16-chr.c: New file.
38749         * lib/unistr/u32-chr.c: New file.
38750
38751         * modules/unistr/u8-cmp: New file.
38752         * modules/unistr/u16-cmp: New file.
38753         * modules/unistr/u32-cmp: New file.
38754         * lib/unistr/u8-cmp.c: New file.
38755         * lib/unistr/u16-cmp.c: New file.
38756         * lib/unistr/u32-cmp.c: New file.
38757
38758         * modules/unistr/u8-cpy: New file.
38759         * modules/unistr/u16-cpy: New file.
38760         * modules/unistr/u32-cpy: New file.
38761         * lib/unistr/u8-cpy.c: New file.
38762         * lib/unistr/u16-cpy.c: New file.
38763         * lib/unistr/u32-cpy.c: New file.
38764         * lib/unistr/u-cpy.h: New file.
38765
38766         * modules/unistr/u8-cpy-alloc: New file.
38767         * modules/unistr/u16-cpy-alloc: New file.
38768         * modules/unistr/u32-cpy-alloc: New file.
38769         * lib/unistr/u8-cpy-alloc.c: New file.
38770         * lib/unistr/u16-cpy-alloc.c: New file.
38771         * lib/unistr/u32-cpy-alloc.c: New file.
38772         * lib/unistr/u-cpy-alloc.h: New file.
38773
38774         * modules/unistr/u8-endswith: New file.
38775         * modules/unistr/u16-endswith: New file.
38776         * modules/unistr/u32-endswith: New file.
38777         * lib/unistr/u8-endswith.c: New file.
38778         * lib/unistr/u16-endswith.c: New file.
38779         * lib/unistr/u32-endswith.c: New file.
38780         * lib/unistr/u-endswith.h: New file.
38781
38782         * modules/unistr/u8-mblen: New file.
38783         * modules/unistr/u16-mblen: New file.
38784         * modules/unistr/u32-mblen: New file.
38785         * lib/unistr/u8-mblen.c: New file.
38786         * lib/unistr/u16-mblen.c: New file.
38787         * lib/unistr/u32-mblen.c: New file.
38788
38789         * modules/unistr/u8-mbtouc: New file.
38790         * modules/unistr/u16-mbtouc: New file.
38791         * modules/unistr/u32-mbtouc: New file.
38792         * lib/unistr/u8-mbtouc.c: New file.
38793         * lib/unistr/u16-mbtouc.c: New file.
38794         * lib/unistr/u32-mbtouc.c: New file.
38795
38796         * modules/unistr/u8-mbtouc-safe: New file.
38797         * modules/unistr/u16-mbtouc-safe: New file.
38798         * modules/unistr/u32-mbtouc-safe: New file.
38799         * lib/unistr/u8-mbtouc-safe.c: New file.
38800         * lib/unistr/u16-mbtouc-safe.c: New file.
38801         * lib/unistr/u32-mbtouc-safe.c: New file.
38802
38803         * modules/unistr/u8-move: New file.
38804         * modules/unistr/u16-move: New file.
38805         * modules/unistr/u32-move: New file.
38806         * lib/unistr/u8-move.c: New file.
38807         * lib/unistr/u16-move.c: New file.
38808         * lib/unistr/u32-move.c: New file.
38809         * lib/unistr/u-move.h: New file.
38810
38811         * modules/unistr/u8-next: New file.
38812         * modules/unistr/u16-next: New file.
38813         * modules/unistr/u32-next: New file.
38814         * lib/unistr/u8-next.c: New file.
38815         * lib/unistr/u16-next.c: New file.
38816         * lib/unistr/u32-next.c: New file.
38817
38818         * modules/unistr/u8-prev: New file.
38819         * modules/unistr/u16-prev: New file.
38820         * modules/unistr/u32-prev: New file.
38821         * lib/unistr/u8-prev.c: New file.
38822         * lib/unistr/u16-prev.c: New file.
38823         * lib/unistr/u32-prev.c: New file.
38824
38825         * modules/unistr/u8-set: New file.
38826         * modules/unistr/u16-set: New file.
38827         * modules/unistr/u32-set: New file.
38828         * lib/unistr/u8-set.c: New file.
38829         * lib/unistr/u16-set.c: New file.
38830         * lib/unistr/u32-set.c: New file.
38831         * lib/unistr/u-set.h: New file.
38832
38833         * modules/unistr/u8-startswith: New file.
38834         * modules/unistr/u16-startswith: New file.
38835         * modules/unistr/u32-startswith: New file.
38836         * lib/unistr/u8-startswith.c: New file.
38837         * lib/unistr/u16-startswith.c: New file.
38838         * lib/unistr/u32-startswith.c: New file.
38839         * lib/unistr/u-startswith.h: New file.
38840
38841         * modules/unistr/u8-stpcpy: New file.
38842         * modules/unistr/u16-stpcpy: New file.
38843         * modules/unistr/u32-stpcpy: New file.
38844         * lib/unistr/u8-stpcpy.c: New file.
38845         * lib/unistr/u16-stpcpy.c: New file.
38846         * lib/unistr/u32-stpcpy.c: New file.
38847         * lib/unistr/u-stpcpy.h: New file.
38848
38849         * modules/unistr/u8-stpncpy: New file.
38850         * modules/unistr/u16-stpncpy: New file.
38851         * modules/unistr/u32-stpncpy: New file.
38852         * lib/unistr/u8-stpncpy.c: New file.
38853         * lib/unistr/u16-stpncpy.c: New file.
38854         * lib/unistr/u32-stpncpy.c: New file.
38855         * lib/unistr/u-stpncpy.h: New file.
38856
38857         * modules/unistr/u8-strcat: New file.
38858         * modules/unistr/u16-strcat: New file.
38859         * modules/unistr/u32-strcat: New file.
38860         * lib/unistr/u8-strcat.c: New file.
38861         * lib/unistr/u16-strcat.c: New file.
38862         * lib/unistr/u32-strcat.c: New file.
38863         * lib/unistr/u-strcat.h: New file.
38864
38865         * modules/unistr/u8-strchr: New file.
38866         * modules/unistr/u16-strchr: New file.
38867         * modules/unistr/u32-strchr: New file.
38868         * lib/unistr/u8-strchr.c: New file.
38869         * lib/unistr/u16-strchr.c: New file.
38870         * lib/unistr/u32-strchr.c: New file.
38871
38872         * modules/unistr/u8-strcmp: New file.
38873         * modules/unistr/u16-strcmp: New file.
38874         * modules/unistr/u32-strcmp: New file.
38875         * lib/unistr/u8-strcmp.c: New file.
38876         * lib/unistr/u16-strcmp.c: New file.
38877         * lib/unistr/u32-strcmp.c: New file.
38878
38879         * modules/unistr/u8-strcpy: New file.
38880         * modules/unistr/u16-strcpy: New file.
38881         * modules/unistr/u32-strcpy: New file.
38882         * lib/unistr/u8-strcpy.c: New file.
38883         * lib/unistr/u16-strcpy.c: New file.
38884         * lib/unistr/u32-strcpy.c: New file.
38885         * lib/unistr/u-strcpy.h: New file.
38886
38887         * modules/unistr/u8-strcspn: New file.
38888         * modules/unistr/u16-strcspn: New file.
38889         * modules/unistr/u32-strcspn: New file.
38890         * lib/unistr/u8-strcspn.c: New file.
38891         * lib/unistr/u16-strcspn.c: New file.
38892         * lib/unistr/u32-strcspn.c: New file.
38893         * lib/unistr/u-strcspn.h: New file.
38894
38895         * modules/unistr/u8-strdup: New file.
38896         * modules/unistr/u16-strdup: New file.
38897         * modules/unistr/u32-strdup: New file.
38898         * lib/unistr/u8-strdup.c: New file.
38899         * lib/unistr/u16-strdup.c: New file.
38900         * lib/unistr/u32-strdup.c: New file.
38901         * lib/unistr/u-strdup.h: New file.
38902
38903         * modules/unistr/u8-strlen: New file.
38904         * modules/unistr/u16-strlen: New file.
38905         * modules/unistr/u32-strlen: New file.
38906         * lib/unistr/u8-strlen.c: New file.
38907         * lib/unistr/u16-strlen.c: New file.
38908         * lib/unistr/u32-strlen.c: New file.
38909         * lib/unistr/u-strlen.h: New file.
38910
38911         * modules/unistr/u8-strmblen: New file.
38912         * modules/unistr/u16-strmblen: New file.
38913         * modules/unistr/u32-strmblen: New file.
38914         * lib/unistr/u8-strmblen.c: New file.
38915         * lib/unistr/u16-strmblen.c: New file.
38916         * lib/unistr/u32-strmblen.c: New file.
38917
38918         * modules/unistr/u8-strmbtouc: New file.
38919         * modules/unistr/u16-strmbtouc: New file.
38920         * modules/unistr/u32-strmbtouc: New file.
38921         * lib/unistr/u8-strmbtouc.c: New file.
38922         * lib/unistr/u16-strmbtouc.c: New file.
38923         * lib/unistr/u32-strmbtouc.c: New file.
38924
38925         * modules/unistr/u8-strncat: New file.
38926         * modules/unistr/u16-strncat: New file.
38927         * modules/unistr/u32-strncat: New file.
38928         * lib/unistr/u8-strncat.c: New file.
38929         * lib/unistr/u16-strncat.c: New file.
38930         * lib/unistr/u32-strncat.c: New file.
38931         * lib/unistr/u-strncat.h: New file.
38932
38933         * modules/unistr/u8-strncmp: New file.
38934         * modules/unistr/u16-strncmp: New file.
38935         * modules/unistr/u32-strncmp: New file.
38936         * lib/unistr/u8-strncmp.c: New file.
38937         * lib/unistr/u16-strncmp.c: New file.
38938         * lib/unistr/u32-strncmp.c: New file.
38939
38940         * modules/unistr/u8-strncpy: New file.
38941         * modules/unistr/u16-strncpy: New file.
38942         * modules/unistr/u32-strncpy: New file.
38943         * lib/unistr/u8-strncpy.c: New file.
38944         * lib/unistr/u16-strncpy.c: New file.
38945         * lib/unistr/u32-strncpy.c: New file.
38946         * lib/unistr/u-strncpy.h: New file.
38947
38948         * modules/unistr/u8-strnlen: New file.
38949         * modules/unistr/u16-strnlen: New file.
38950         * modules/unistr/u32-strnlen: New file.
38951         * lib/unistr/u8-strnlen.c: New file.
38952         * lib/unistr/u16-strnlen.c: New file.
38953         * lib/unistr/u32-strnlen.c: New file.
38954         * lib/unistr/u-strnlen.h: New file.
38955
38956         * modules/unistr/u8-strpbrk: New file.
38957         * modules/unistr/u16-strpbrk: New file.
38958         * modules/unistr/u32-strpbrk: New file.
38959         * lib/unistr/u8-strpbrk.c: New file.
38960         * lib/unistr/u16-strpbrk.c: New file.
38961         * lib/unistr/u32-strpbrk.c: New file.
38962         * lib/unistr/u-strpbrk.h: New file.
38963
38964         * modules/unistr/u8-strrchr: New file.
38965         * modules/unistr/u16-strrchr: New file.
38966         * modules/unistr/u32-strrchr: New file.
38967         * lib/unistr/u8-strrchr.c: New file.
38968         * lib/unistr/u16-strrchr.c: New file.
38969         * lib/unistr/u32-strrchr.c: New file.
38970
38971         * modules/unistr/u8-strspn: New file.
38972         * modules/unistr/u16-strspn: New file.
38973         * modules/unistr/u32-strspn: New file.
38974         * lib/unistr/u8-strspn.c: New file.
38975         * lib/unistr/u16-strspn.c: New file.
38976         * lib/unistr/u32-strspn.c: New file.
38977         * lib/unistr/u-strspn.h: New file.
38978
38979         * modules/unistr/u8-strstr: New file.
38980         * modules/unistr/u16-strstr: New file.
38981         * modules/unistr/u32-strstr: New file.
38982         * lib/unistr/u8-strstr.c: New file.
38983         * lib/unistr/u16-strstr.c: New file.
38984         * lib/unistr/u32-strstr.c: New file.
38985         * lib/unistr/u-strstr.h: New file.
38986
38987         * modules/unistr/u8-strtok: New file.
38988         * modules/unistr/u16-strtok: New file.
38989         * modules/unistr/u32-strtok: New file.
38990         * lib/unistr/u8-strtok.c: New file.
38991         * lib/unistr/u16-strtok.c: New file.
38992         * lib/unistr/u32-strtok.c: New file.
38993         * lib/unistr/u-strtok.h: New file.
38994
38995         * modules/unistr/u8-uctomb: New file.
38996         * modules/unistr/u16-uctomb: New file.
38997         * modules/unistr/u32-uctomb: New file.
38998         * lib/unistr/u8-uctomb.c: New file.
38999         * lib/unistr/u16-uctomb.c: New file.
39000         * lib/unistr/u32-uctomb.c: New file.
39001
39002         * MODULES.html.sh (Unicode string functions): Add the new modules.
39003
39004 2007-01-08  Bruno Haible  <bruno@clisp.org>
39005
39006         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
39007         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
39008         subdirectories.
39009
39010 2007-01-08  Karl Berry  <karl@gnu.org>
39011
39012         * doc/error.texi: mention that main() fns must set program_name
39013         when progname is used.
39014
39015 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
39016
39017         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
39018         WCTYPE_H is empty, for the benefit of builds from non-distclean
39019         directories.  Problem reported by Eric Blake in
39020         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
39021
39022 2007-01-08  Bruno Haible  <bruno@clisp.org>
39023
39024         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
39025         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
39026         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
39027         PROVIDE_CANONICALIZE_FILENAME_MODE.
39028         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
39029
39030 2007-01-08  Bruno Haible  <bruno@clisp.org>
39031
39032         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
39033         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
39034         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
39035         * lib/fts.c: Likewise.
39036         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
39037
39038 2006-12-25  Bruno Haible  <bruno@clisp.org>
39039
39040         * modules/utf8-ucs4-safe: New file.
39041         * lib/utf8-ucs4-safe.h: New file.
39042         * lib/unistr/utf8-ucs4-safe.c: New file.
39043
39044         * modules/utf16-ucs4-safe: New file.
39045         * lib/utf16-ucs4-safe.h: New file.
39046         * lib/unistr/utf16-ucs4-safe.c: New file.
39047
39048         * MODULES.html.sh (Unicode string functions): Add the new modules.
39049
39050 2007-01-08  Bruno Haible  <bruno@clisp.org>
39051
39052         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
39053         (Depends-on): Add unitypes.
39054         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
39055         (u8_mbtouc_aux): Move out to separate file.
39056         (u8_mbtouc): Use ucs4_t, uint8_t types.
39057         * lib/unistr/utf8-ucs4.c: New file.
39058
39059         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
39060         (Depends-on): Add unitypes.
39061         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
39062         (u16_mbtouc_aux): Move out to separate file.
39063         (u16_mbtouc): Use ucs4_t, uint16_t types.
39064         * lib/unistr/utf16-ucs4.c: New file.
39065
39066         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
39067         (Depends-on): Add unitypes.
39068         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
39069         (u8_uctomb_aux): Move out to separate file.
39070         (u8_uctomb): Use ucs4_t, uint8_t types.
39071         * lib/unistr/ucs4-utf8.c: New file.
39072
39073         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
39074         (Depends-on): Add unitypes.
39075         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
39076         (u16_uctomb_aux): Move out to separate file.
39077         (u16_uctomb): Use ucs4_t, uint16_t types.
39078         * lib/unistr/ucs4-utf16.c: New file.
39079
39080 2006-12-25  Bruno Haible  <bruno@clisp.org>
39081
39082         * modules/unitypes: New file.
39083         * lib/unitypes.h: New file.
39084         * MODULES.html.sh (func_all_modules): New section "Unicode string
39085         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
39086         this section. Add unitypes.
39087
39088 2007-01-08  Bruno Haible  <bruno@clisp.org>
39089
39090         Avoid variable names that conflict with those from libtool.
39091         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
39092         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
39093         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
39094         library_names_spec to acl_library_names_spec, hardcode_* to
39095         acl_hardcode_*.
39096         Reported by Ralf Wildenhues.
39097
39098 2007-01-08  Bruno Haible  <bruno@clisp.org>
39099
39100         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
39101         definition.
39102         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
39103         definition.
39104         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
39105         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
39106         definition.
39107         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
39108         definition.
39109         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
39110         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
39111         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
39112         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
39113         definition.
39114         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
39115         definition.
39116         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
39117         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
39118         GC_USE_<algorithm>.
39119         * lib/gc-libgcrypt.c: Likewise.
39120         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
39121         * modules/gc-arctwo (configure.ac): Likewise.
39122         * modules/gc-des (configure.ac): Likewise.
39123         * modules/gc-hmac-md5 (configure.ac): Likewise.
39124         * modules/gc-hmac-sha1 (configure.ac): Likewise.
39125         * modules/gc-md2 (configure.ac): Likewise.
39126         * modules/gc-md4 (configure.ac): Likewise.
39127         * modules/gc-md5 (configure.ac): Likewise.
39128         * modules/gc-random (configure.ac): Likewise.
39129         * modules/gc-rijndael (configure.ac): Likewise.
39130         * modules/gc-sha1 (configure.ac): Likewise.
39131
39132 2007-01-08  Bruno Haible  <bruno@clisp.org>
39133
39134         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
39135         macro definition.
39136         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
39137         definition.
39138         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
39139         definition.
39140         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
39141         * modules/fcntl-safer (configure.ac): Likewise.
39142         * modules/fopen-safer (configure.ac): Likewise.
39143         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
39144         GNULIB_FWRITEERROR macro definition.
39145
39146 2007-01-08  Bruno Haible  <bruno@clisp.org>
39147
39148         * m4/gnulib-common.m4: New file.
39149         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
39150         (func_get_filelist): Add m4/gnulib-common.m4.
39151
39152 2007-01-08  Bruno Haible  <bruno@clisp.org>
39153
39154         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
39155         command.
39156
39157 2007-01-08  Jim Meyering  <jim@meyering.net>
39158
39159         Use a more robust test for a "can't happen" condition.
39160         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
39161         narrowed the st_size value.  Presuming the "can't happen" condition
39162         is true, that narrowing could conceivably convert an invalid st_size
39163         value into a valid one.  Instead, use a change based on Matthew
39164         Woehlke's original patch.
39165
39166         Slight readability improvement: use an assert-like macro
39167         in place of literal "abort ()" uses.
39168         * lib/fts.c (fts_assert): Define.
39169         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
39170         Use this macro instead of a bare 'abort'.
39171
39172 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
39173
39174         Don't worry about using IRIX 5.3's wctype.h broken definitions;
39175         simply work around them.
39176         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
39177         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
39178         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
39179         declaring.
39180         Don't bother to define as macros, since the standard doesn't require it.
39181         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
39182         longer worry about IRIX 5.3.
39183         (HAVE_WCTYPE_CTMP_BUG): Remove.
39184
39185 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
39186
39187         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
39188         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
39189         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
39190         Problems reported by Georg Schwarz for IRIX 5.3.
39191
39192         * gnulib-tool (autoconf_minversion): Take the maximum version number
39193         found, not the minimum.  Problem reported by James Youngman.
39194
39195 2007-01-03  Karl Berry  <karl@gnu.org>
39196
39197         * doc/error.texi: new file, explaining interaction with progname.
39198         * doc/gnulib.texi: include it.  Update copyright.
39199
39200 2007-01-03  Simon Josefsson  <simon@josefsson.org>
39201
39202         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
39203         AC_CANONICAL_HOST, to improve autobuild outputs.
39204
39205 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
39206             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
39207
39208         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
39209         sockets, server sockets, and other file descriptors.  Count errors
39210         to compute the return value.  Reorder the code a bit to be easier
39211         to follow.  Don't set event bits that were not requested (except
39212         POLLERR and POLLHUP).
39213
39214 2007-01-01  Bruno Haible  <bruno@clisp.org>
39215
39216         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
39217
39218 2007-01-03  Jim Meyering  <jim@meyering.net>
39219
39220         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
39221
39222 2007-01-02  Bruno Haible  <bruno@clisp.org>
39223
39224         * modules/settime (Include): Require timespec.h.
39225         * modules/nanosleep (Include): Likewise.
39226
39227 2007-01-01  Bruno Haible  <bruno@clisp.org>
39228
39229         * gnulib-tool (func_emit_copyright_notice): Bump year.
39230         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
39231
39232 2007-01-01  Bruno Haible  <bruno@clisp.org>
39233
39234         Improve support for OpenBSD.
39235         * build-aux/config.rpath (libname_spec): Export.
39236         (library_names_spec): New variable. Export.
39237         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
39238         library_names_spec from the config.rpath output. Locate shared library
39239         through the name pattern in library_names_spec.
39240
39241 2007-01-01  Eric Blake  <ebb9@byu.net>
39242
39243         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
39244
39245 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
39246
39247         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
39248         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
39249         assume the C locale, and avoid an "eval" that could cause trouble.
39250         Problem with SORT reported by Bob Proulx.
39251
39252         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
39253         Define.  Trivial patch from Henning Nielsen Lund, originally
39254         sent to bug-grep@gnu.org today.
39255
39256 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
39257
39258         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
39259         struct stat.  Problem reported by Henning Nielsen Lund.
39260         * lib/acl.c: Include acl.h first, to check interface.  Don't
39261         bother to include sys/types.h and sys/stat.h again.
39262
39263 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
39264
39265         Import the following change from libc; problem reported by
39266         Sven Verdoolaege.
39267
39268         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
39269
39270         [BZ #1373]
39271         * lib/argp.h: Remove __NTH for __argp_usage inline function.
39272
39273 2006-12-28  Jim Meyering  <jim@meyering.net>
39274
39275         * build-aux/announce-gen: Do not assume that the package
39276         builds any of tar.gz, tar.bz2, and .xdelta files.
39277         Suggestion from Simon Josefsson.
39278
39279 2006-12-28  Simon Josefsson  <simon@josefsson.org>
39280
39281         * modules/announce-gen: New file.
39282
39283 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
39284
39285         * lib/mbchar.h: Just include <wctype.h>; the wctype module
39286         handles its gotchas now.
39287         * lib/mbswidth.c: Likewise.
39288         * lib/wcwidth.h: Likewise.
39289         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
39290         and iswcntrl; the wctype module does this stuff now.
39291         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
39292         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
39293         * modules/mbchar (Depends-on): Add wctype.
39294         * modules/mbswidth (Depends-on): Likewise.
39295         * modules/wcwidth (Depends-on): Likewise.
39296
39297 2006-12-27  Eric Blake  <ebb9@byu.net>
39298
39299         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
39300         module uses more than what <wctype.h> is required to provide.
39301
39302 2006-12-26  Eric Blake  <ebb9@byu.net>
39303
39304         * gnulib-tool (sed_extract_prog): Avoid space-tab.
39305
39306 2006-12-26  Eric Blake  <ebb9@byu.net>
39307
39308         * modules/absolute-header: New module.
39309         * modules/fcntl (Depends-on): Depend on it.
39310         * modules/inttypes (Depends-on): Likewise.
39311         * modules/stdint (Depends-on): Likewise.
39312         * modules/sys_stat (Depends-on): Likewise.
39313         * modules/wctype (Depends-on): Likewise.
39314         * MODULES.html.sh (Support for building libraries and
39315         executables): Document it.
39316
39317 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
39318
39319         * gnulib-tool (SED): Remove, undoing previous change.
39320         The problem was that it broke coreutils on Solaris, because
39321         "sed --posix" leaked into a makefile.
39322         (sed): New alias, if 'alias' and GNU sed.
39323
39324 2006-12-24  Jim Meyering  <jim@meyering.net>
39325
39326         Work around an fchownat bug in glibc-2.4:
39327         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
39328         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
39329         in spite of the -P option.
39330         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
39331         New macros.
39332         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
39333         * modules/openat (Files): Add lib/fchownat.c.
39334         * lib/openat.c (fchownat): Don't define here.  Move to...
39335         * lib/fchownat.c: ...this new file.
39336
39337 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
39338
39339         Fix bug reported by Bruno Haible in
39340         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
39341         where quotearg.c didn't compile on Mac OS X 10.2 because it
39342         lacks <wchar.h> and wint_t.
39343         * lib/wctype_.h (__wctype_wint_t): New type.
39344         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
39345         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
39346         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
39347         Arg is now of type __wctype_wint_t, not wint_t.
39348         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
39349         substitute HAVE_WINT_T.
39350         * modules/wctype (Files): Add m4/wint_t.m4.
39351         (wctype.h): Substitute HAVE_WINT_T.
39352
39353 2006-12-23  Bruno Haible  <bruno@clisp.org>
39354
39355         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
39356
39357 2006-12-23  Bruno Haible  <bruno@clisp.org>
39358
39359         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
39360         S_ISLNK.
39361         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
39362         mingw.
39363
39364 2006-12-22  Bruno Haible  <bruno@clisp.org>
39365
39366         * lib/copy-file.c: Include acl.h.
39367         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
39368         Close the file descriptors only after being done with copy_acl.
39369         * modules/copy-file (Depends-on): Add acl.
39370
39371 2006-12-22  Bruno Haible  <bruno@clisp.org>
39372
39373         * gnulib-tool (SED): New variable.
39374         Use $SED instead of sed everywhere.
39375
39376 2006-12-22  Bruno Haible  <bruno@clisp.org>
39377
39378         * modules/no-c++: New file.
39379         * m4/no-c++.m4: New file.
39380         * MODULES.html.sh (Support for building libraries and executables):
39381         Add no-c++.
39382
39383 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
39384
39385         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
39386         Include <limits.h>, and use its INT_MAX to rewrite the
39387         j loop so that it does not overflow 'int'.  Problem reported by
39388         Ralf Wildenhues in
39389         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
39390         Play it safe by shifting left by 1 rather than multiplying by 2,
39391         as GCC is less likely to optimize this away when the value
39392         is signed (when it assumes overflow leads to undefined behavior).
39393         Also, don't assume time_t uses two's complement.
39394
39395 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
39396
39397         * MODULES.html.sh: New module wctype.
39398         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
39399         * lib/fnmatch.c: Don't bother to include <wchar.h> before
39400         <wctype.h>, since the new wctype module should fix this.
39401         * lib/quotearg.c: Include <wctype.h> unconditionally, since
39402         the wctype module should arrange for it.
39403         * lib/regex_internal.h: Likewise.
39404         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
39405         since the wctype module should handle this now.
39406         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
39407         * modules/fnmatch (Depends-on): Add wctype.
39408         * modules/quotearg (Depends-on): Likewise.
39409         * modules/regex (Depends-on): Likewise.
39410
39411 2006-12-19  Bruno Haible  <bruno@clisp.org>
39412
39413         * lib/strdup.h [C++]: Wrap definitions in extern "C".
39414         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
39415
39416 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39417
39418         * modules/savewd (Depends-on): Fix dependency on fcntl.
39419
39420 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
39421
39422         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
39423         conforms to C99, rather than relying on the user's environment
39424         setting of STDINT_H.
39425
39426 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
39427         and Eric Blake  <ebb9@byu.net>
39428
39429         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
39430         This is more consistent with the other defines here.
39431         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
39432         Port to z/OS.  Problem reported by Paul Gilmartin.
39433         Change local vars to use gl_ prefix rather than ac_.
39434         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
39435         with other defines.
39436         * modules/double-slash-root: New module.
39437         * modules/dirname (Files): Remove m4/double-slash-root.m4.
39438         (Depends-on): Add double-slash-root.
39439         * MODULES.html.sh (File system functions): Mention new module.
39440
39441 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
39442
39443         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
39444         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
39445         This is for the benefit of gzip, which doesn't do i18n.
39446
39447 2006-12-12  Jim Meyering  <jim@meyering.net>
39448
39449         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
39450         Reported by Andreas Schwab <schwab@suse.de>.
39451
39452 2006-12-12  Bruno Haible  <bruno@clisp.org>
39453
39454         Merge these changes.
39455         2006-09-05  Bruno Haible  <bruno@clisp.org>
39456         * lib/iconvme.c (iconv_string): No need to save and restore errno when
39457         iconv_alloc succeeded.
39458         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
39459         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
39460         test for " && dest " at the end - dest is always != NULL there. Call
39461         iconv with 4xNULL arguments initially, to reset the state. Call iconv
39462         with 2xNULL arguments, also to flush the state storage. Handle the
39463         IRIX iconv behaviour. Realloc the final result, to throw away unused
39464         memory.
39465
39466 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
39467
39468         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
39469         and fchmodat unconditionally, since glibc 2.4 has them.
39470         Problem reported by Arkadiusz Miskiewicz.
39471
39472 2006-12-10  Bruno Haible  <bruno@clisp.org>
39473
39474         * gnulib-tool (func_import): Show the include files only for those
39475         modules that are copied and specified.
39476         Reported by Karl Berry.
39477
39478 2006-12-08  Jim Meyering  <jim@meyering.net>
39479
39480         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
39481         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
39482
39483         * build-aux/announce-gen: Add two new options, both optional:
39484         --bootstrap-tools=TOOL_LIST
39485               a comma-separated list of tools, e.g.,
39486               autoconf,automake,bison,gnulib
39487         --gnulib-snapshot-date=DATE
39488               if gnulib is in the bootstrap tool list,
39489               then report this as the snapshot date.
39490               If not specified, use the current date/time.
39491               If you specify a date here, be sure it's UTC.
39492
39493 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39494
39495         * tests/test-argp-2.sh: Fix test to match actual output.
39496         (func_compare): Fix sed script to be portable.
39497
39498 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
39499
39500         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
39501         workaround for this case.  It is not autoconfigured now; offhand
39502         it's hard to see how to autoconfigure it.
39503
39504 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
39505
39506         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
39507         a directory that is about to be chowned.  Such a directory's
39508         initial file permissions should permit the owner only and this
39509         should not be changed until after the chown, since the group and
39510         other bits would be incorrect if they granted permission before
39511         the chown.
39512
39513         Fix porting problem for iswctype reported by Georg Schwarz in:
39514         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
39515         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
39516         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
39517         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
39518         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
39519
39520 2006-12-03  Jim Meyering  <jim@meyering.net>
39521
39522         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
39523         p->fts_statp may not yet be defined.
39524         (fts_read): Instead, set it in the caller, once p->fts_statp is
39525         sure to be defined, and corresponds to a top-level directory.
39526         This bug made du -x fail.  Here's the coreutils test case:
39527         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
39528         Reported by Mike Frysinger.
39529
39530 2006-12-01  Jim Meyering  <jim@meyering.net>
39531
39532         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
39533         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
39534         Reported by Simon Josefsson.
39535
39536 2006-11-30  Jim Meyering  <jim@meyering.net>
39537
39538         * m4/warning.m4: Use the all-permissive copyright notice
39539         recommended by RMS (rather than LGPL).
39540         * m4/vararrays.m4: Likewise.
39541         * m4/flexmember.m4: Likewise.
39542
39543 2006-11-29  Bruno Haible  <bruno@clisp.org>
39544
39545         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
39546         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
39547         using +=.
39548         Reported by Simon Josefsson <simon@josefsson.org>.
39549
39550 2006-11-28  James Youngman <jay@gnu.org>
39551
39552         * README: Advise users that they might find the bug-gnulib@gnu.org
39553         and autotools-announce@gnu.org mailing lists useful.
39554
39555 2006-11-28  Bruno Haible  <bruno@clisp.org>
39556
39557         * m4/ptrdiff_max.m4: Remove file.
39558
39559 2006-11-21  Bruno Haible  <bruno@clisp.org>
39560
39561         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
39562         _AC_COMPUTE_INT.
39563         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
39564         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
39565         _AC_COMPUTE_INT.
39566         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
39567         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
39568         _AC_COMPUTE_INT.
39569         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
39570
39571 2006-11-28  Jim Meyering  <jim@meyering.net>
39572
39573         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
39574         warning from "gcc -Wshadow" about shadowing the builtin.
39575
39576 2006-11-27  Bruno Haible  <bruno@clisp.org>
39577
39578         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
39579         _AC_COMPUTE_INT.
39580         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
39581
39582 2006-11-27  Bruno Haible  <bruno@clisp.org>
39583             Paul Eggert  <eggert@cs.ucla.edu>
39584
39585         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
39586
39587 2006-11-26  Bruno Haible  <bruno@clisp.org>
39588
39589         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
39590         noinst_LTLIBRARIES.
39591
39592 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
39593             Bruno Haible  <bruno@clisp.org>
39594
39595         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
39596         if compiling with "gcc -ansi".
39597
39598 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
39599
39600         Fix some incompatibilities with gcc -ansi -pedantic.
39601         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
39602         if compiling pedantically with GCC, unless it's C99 or later.
39603         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
39604         it mishandles gcc -ansi -pedantic as well.
39605         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
39606         if gcc -pedantic.
39607         * lib/regexec.c (check_node_accept_bytes): Don't use auto
39608         initializers for struct if -pedantic, unless it's C99 or later.
39609
39610 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
39611
39612         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
39613         Don't close an fd more than once. Identical atimes indicate
39614         success, not failure.
39615
39616 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
39617
39618         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
39619
39620 2006-11-23  Jim Meyering  <jim@meyering.net>
39621
39622         * build-aux/announce-gen: New file.  From coreutils.
39623
39624 2006-11-22  Jim Meyering  <jim@meyering.net>
39625
39626         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
39627         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
39628         (fts_read): Use a temporary to narrow the overused st_size member
39629         before using it in a switch statement.  Reported by Matthew Woehlke.
39630
39631         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
39632         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
39633
39634 2006-11-20  Bruno Haible  <bruno@clisp.org>
39635
39636         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
39637         changequote instead of pairs of brackets.
39638         Reported by Andreas Schwab <schwab@suse.de>.
39639
39640 2006-11-21  Jim Meyering  <jim@meyering.net>
39641
39642         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
39643         so as to remain compatible with older compilers.
39644         Patch from Michael Deutschmann.
39645
39646 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
39647
39648         * MODULES.html.sh (File system functions): Add openat.
39649
39650         * lib/openat.h (rpl_fstatat): New macro, if
39651         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
39652         (fstatat): Define to rpl_fstatat under the same conditions,
39653         unless COMPILING_FSTATAT.
39654         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
39655         seems to have the bug.
39656         * lib/fstatat.c: New file.
39657         * modules/openat (Files): Add it.
39658
39659 2006-11-20  Bruno Haible  <bruno@clisp.org>
39660
39661         * Makefile: New file.
39662
39663 2006-11-20  Jim Meyering  <jim@meyering.net>
39664
39665         The beginnings of syntax-related checks for gnulib.
39666         * lib/Makefile: New file.
39667         * lib/t-idcache: New script.  Ensure that the two halves of
39668         idcache.c stay in sync.
39669
39670         * lib/idcache.c: Adjust comments in user- and group- portions to
39671         be more accurate, and to be consistent with one another.
39672
39673 2006-11-20  Jim Meyering  <jim@meyering.net>
39674
39675         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
39676         continue using the flexible array member (thus, this module performs
39677         half as many malloc calls), with the addition that...
39678         (getgroup, getuser): Consistently record a non-match via an empty
39679         "name" string, and map an empty string match to a NULL return value.
39680         * modules/idcache (Depends-on): Re-add flexmember.
39681
39682         * lib/idcache.c (getuser): Remove all uses of the register keyword.
39683         (getuidbyname, getgroup, getgidbyname): Likewise.
39684
39685         Use cleaner syntax: NULL rather than 0.
39686         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
39687
39688 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
39689
39690         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
39691         It mishandled the case where the group was missing.
39692         Problem reported by Greg Schafer.
39693         * modules/idcache: Likewise.
39694
39695 2006-11-18  Jim Meyering  <jim@meyering.net>
39696
39697         * check-module (%exempt_header): Add exception for some
39698         conditionally-included headers.
39699
39700         * modules/i-ring (Depends-on): Add verify.
39701         (License): Change to LGPL.
39702
39703 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
39704
39705         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
39706         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
39707         and inttostr.h.  Use snprintf rather than uinttostr, so that
39708         LGPLed code doesn't depend on GPLed.
39709
39710 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
39711
39712         * modules/inline (License): Change from GPL to LGPL.
39713
39714 2006-11-17  Jim Meyering  <jim@meyering.net>
39715
39716         * modules/d-type (License): Switch to LGPL.
39717
39718 2006-11-15  Bruno Haible  <bruno@clisp.org>
39719
39720         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
39721
39722 2006-11-15  Eric Blake  <ebb9@byu.net>
39723
39724         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
39725         the module dependency.
39726
39727 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39728             Bruno Haible  <bruno@clisp.org>
39729
39730         * gnulib-tool (func_create_testdir): Add license consistency check.
39731
39732 2006-11-15  Eric Blake  <ebb9@byu.net>
39733
39734         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
39735         random "(cached)" in configure output.
39736
39737 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39738
39739         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
39740         test for conforming inttypes.h is both announced and cached.
39741
39742         * MODULES.html.sh (seen_modules, seen_files): New variables.
39743         (func_module): Rewrite to use a few less gnulib-tool and sed
39744         invocations.  Avoid a couple of quadratic algorithms for ...
39745         (missed_modules, missed_files): ... these, with ...
39746         (func_append, func_tmpdir): ... these new functions, from
39747         gnulib-tool.  Analogously, install traps for cleanup.
39748
39749         * tests/test-gc.c (main): Remove unused variables.
39750         * tests/test-read-file.c: Include stdlib.h, for 'free'.
39751
39752 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
39753
39754         * modules/inttostr (License): Change to LGPL.
39755
39756 2006-11-14  Eric Blake  <ebb9@byu.net>
39757
39758         * modules/tempname (License): Change to LGPL.
39759
39760 2006-11-14  Eric Blake  <ebb9@byu.net>
39761
39762         * doc/functions.texi (Function Portability): *printf functions on
39763         Cygwin now understand all POSIX size specifiers.
39764
39765 2006-11-14  Bruno Haible  <bruno@clisp.org>
39766
39767         * modules/c-ctype (License): Change to LGPL.
39768
39769 2006-11-12  Bruno Haible  <bruno@clisp.org>
39770
39771         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
39772         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
39773         for GNOME libraries, for which the include files are installed in
39774         subdirectories of $prefix/include.
39775
39776 2006-11-12  Bruno Haible  <bruno@clisp.org>
39777
39778         * m4/lib-link.m4: Require at least autoconf-2.54.
39779         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
39780         name to underscores for the --with option.
39781
39782 2006-11-13  Bruno Haible  <bruno@clisp.org>
39783
39784         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
39785         the tests directory.
39786         Reported by Ralf Wildenhues.
39787
39788 2006-11-13  Bruno Haible  <bruno@clisp.org>
39789
39790         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
39791         (func_emit_initmacro_end): Undo the override here.
39792         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
39793         Works around the famous automake error in coreutils.
39794
39795 2006-11-13  Eric Blake  <ebb9@byu.net>
39796
39797         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
39798         element, not its node.
39799
39800 2006-11-12  Bruno Haible  <bruno@clisp.org>
39801
39802         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
39803         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
39804
39805 2006-11-12  Bruno Haible  <bruno@clisp.org>
39806
39807         * gnulib-tool: New option --local-symlink.
39808         (func_usage): Document it.
39809         (lsymbolic): New variable.
39810         (func_import, func_create_testdir): If --symlink was not specified,
39811         test whether --local-symlink was specified and the file comes from
39812         the local_gnulib_dir.
39813
39814 2006-11-12  Bruno Haible  <bruno@clisp.org>
39815
39816         * gnulib-tool (func_ln): New function.
39817         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
39818
39819 2006-11-12  Bruno Haible  <bruno@clisp.org>
39820
39821         Finish support for source files in subdirectories.
39822         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
39823         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
39824         AUTOMAKE_OPTIONS.
39825         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
39826
39827 2006-11-12  Bruno Haible  <bruno@clisp.org>
39828
39829         * gnulib-tool (func_get_automake_snippet): Synthesize also an
39830         EXTRA_lib_SOURCES augmentation.
39831         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
39832
39833 2006-11-12  Jim Meyering  <jim@meyering.net>
39834
39835         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
39836         file descriptors.  This also averts a failure on systems with
39837         native openat support when a traversed directory lacks "x" access.
39838         * lib/fts_.h: Include "i-ring.h"
39839         (struct FTS) [fts_fd_ring]: New member.
39840         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
39841         (FCHDIR): Add parentheses.
39842         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
39843         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
39844         When descending, rather than simply closing the previous
39845         fts_cwd_fd value, push that file descriptor onto the ring.
39846         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
39847         (fts_open): Initialize the new fd_ring member.
39848         (fts_close): Clear the ring.
39849         (fts_safe_changedir): When possible, use our new fd_ring to skip
39850         the diropen and fstat and dev/ino comparison that would normally
39851         accompany a virtual `chdir ("..")'.
39852
39853         * modules/fts (Depends-on): Add i-ring.
39854         * modules/i-ring: New module.
39855         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
39856         * m4/i-ring.m4: New file.
39857
39858 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39859
39860         * gnulib-tool (func_create_testdir): Fix replacement of
39861         `build-aux' in configure.ac.  Run autotools in gltests
39862         subdirectory.
39863         (func_create_testdir, func_create_megatestdir, test): There is
39864         no need for '--force' in most autotool invocations in a new
39865         tree.  Actually fail the whole test if any of the tools, or the
39866         configure or make stages fail.
39867
39868         Sync from Automake.
39869         * build-aux/gnupload: Revert last change.  Add pointer to upload
39870         instructions of the GNU Maintenance Instructions.
39871         Suggestion by Karl Berry.
39872
39873 2006-11-10  Jim Meyering  <jim@meyering.net>
39874
39875         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
39876
39877 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
39878
39879         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
39880         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
39881         (bind_textdomain_codeset) [! ENABLE_NLS]:
39882         Evaluate all the arguments.  That way, callers get compatible behavior
39883         if the arguments have side effects.  Also, it avoids some GCC
39884         diagnostics in some cases; Joel E. Denny reported problems when Bison
39885         was configured with --enable-gcc-warnigs.
39886
39887 2006-11-10  Jim Meyering  <jim@meyering.net>
39888
39889         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
39890         relevant options in CFLAGS (like -O, -fno-inline) are taken into
39891         account.
39892
39893 2006-11-10  Jim Meyering  <jim@meyering.net>
39894
39895         * modules/inline: New file/module.
39896         * modules/xalloc (Files): Remove m4/inline.m4.
39897         (Depends-on): Add inline, instead.
39898         * modules/oset: Likewise.
39899         * modules/list: Likewise.
39900
39901 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
39902
39903         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
39904         Problem reported by Matthew Woehlke.
39905
39906 2006-11-09  Bruno Haible  <bruno@clisp.org>
39907
39908         * lib/tempname.c (gen_tempname): Remove variant that invokes
39909         __gen_tempname.
39910         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
39911         __gen_tempname.
39912
39913 2006-11-08  Bruno Haible  <bruno@clisp.org>
39914
39915         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
39916         to 'yes' instead of 'cross-compiling'.
39917
39918 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
39919
39920         * lib/quotearg.h (quotearg_free): New decl.
39921         * lib/quotearg.c (quotearg_free): New function.
39922         (slot0, nslots, slotvec0, slotvec):
39923         Now file-scope so that quotearg_free can get at them.
39924
39925 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39926
39927         Sync from Automake.
39928         * build-aux/gnupload: Add missing 'gnu' to example URL.
39929         Report by Karl Berry.
39930
39931 2006-11-08  Bruno Haible  <bruno@clisp.org>
39932
39933         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
39934         Suggested by Paul Eggert.
39935
39936 2006-11-08  Jim Meyering  <jim@meyering.net>
39937
39938         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
39939         It's already included if !_LIBC.
39940         (fts_safe_changedir): Add a comment.
39941
39942 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
39943
39944         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
39945         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
39946         Matthew Woehlke.
39947
39948         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
39949         definitions up, to avoid colliding with change below.
39950         (static_inline) [HAVE_INLINE]: New macro.
39951         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
39952         Provide extern decls when !HAVE_INLINE.  Do not define unless
39953         static_inline is defined, either by us or by xmalloc.c.  Use
39954         static_inline rather than static inline.
39955         (XCALLOC): Optimize sizeof(T) = 1 case.
39956         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
39957
39958 2006-11-07  Bruno Haible  <bruno@clisp.org>
39959
39960         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
39961         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
39962         AC_C_INLINE.
39963         * modules/xalloc (Files): Add m4/inline.m4.
39964
39965 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39966
39967         * README: Fix typo.
39968         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
39969         (Miscellanous Notes): ...from this.
39970
39971 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
39972
39973         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
39974         Mention that offsetof should be used instead of sizeof.
39975         From Bruno Haible.
39976
39977 2006-11-07  Bruno Haible  <bruno@clisp.org>
39978
39979         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
39980
39981 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
39982
39983         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
39984         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
39985         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
39986         (gl_tree_add_before, gl_tree_add_after):
39987         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
39988         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
39989         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
39990         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
39991         (gl_linked_add_after, gl_linked_add_at): Likewise.
39992         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
39993         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
39994         (gl_tree_add_before, gl_tree_add_after): Likewise.
39995         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
39996         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
39997         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
39998
39999 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40000
40001         * lib/gl_oset.h: Use C comment style, not C++ comment style.
40002
40003 2006-11-06  Bruno Haible  <bruno@clisp.org>
40004
40005         * m4/inline.m4: New file.
40006         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
40007         * modules/list (Files): Add m4/inline.m4.
40008         * modules/oset (Files): Likewise.
40009
40010 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
40011
40012         * lib/idcache.c: Include <stddef.h>, for offsetof.
40013         (struct userid.name): Change from char * to a flexible array member.
40014         All uses changed.
40015         * modules/idcache (Depends-on): Add flexmember.
40016
40017         * MODULES.html.sh (Core language properties): New module flexmember.
40018         * modules/flexmember, m4/flexmember.m4: New files.
40019
40020         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
40021         inline functions that are identical with the old xnmalloc_inline,
40022         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
40023         that we can avoid some unnecessary integer multiplications and
40024         divisions in the common case where the element size is known at
40025         compile time.
40026         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
40027         needed.
40028         (xnboundedmalloc): Remove.
40029         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
40030         arguments, for consistency with rest of this header.
40031         (xcharalloc): Rewrite using XNMALLOC.
40032         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
40033         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
40034         versions have been moved to lib/xalloc.h and renamed to be the
40035         non-*_inline versions.
40036         (xmalloc, xrealloc): Implement without reference to the xnmalloc
40037         and xnrealloc functions, since those functions are now inline and
40038         now call us.
40039         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
40040         renaming described above.
40041         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
40042         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
40043         captures the dependency in AC_C_INLINE.
40044
40045         New module canonicalize-lgpl, proposed by Charles Wilson in
40046         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
40047         with a few small changes afterwards.
40048         * MODULES.html.sh (File system functions): New module
40049         canonicalize-lgpl.
40050         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
40051         and canonicalize_file_name.
40052         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
40053         * modules/canonicalize-lgpl: New files.
40054
40055 2006-11-05  Bruno Haible  <bruno@clisp.org>
40056
40057         * gnulib-tool (func_import, func_create_testdir): Create directories
40058         also for files in subdirectories of lib/.
40059
40060 2006-11-05  Bruno Haible  <bruno@clisp.org>
40061
40062         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
40063         ANSI C compliant.
40064
40065 2006-11-03  Bruno Haible  <bruno@clisp.org>
40066
40067         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
40068         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
40069         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
40070         (xnboundedmalloc): New inline function.
40071         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
40072         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
40073         xmalloc.
40074         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
40075         xmalloc.
40076         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
40077         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
40078         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
40079         xmalloc.
40080         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
40081         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
40082         xmalloc.
40083         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
40084         gl_tree_add_after): Use XMALLOC instead of xmalloc.
40085         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
40086         xmalloc.
40087         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
40088         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
40089         gl_tree_add_after): Use XMALLOC instead of xmalloc.
40090         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
40091         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
40092         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
40093         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
40094
40095 2006-11-03  Bruno Haible  <bruno@clisp.org>
40096
40097         * lib/c-ctype.h [C++]: Define functions without name mangling.
40098         * lib/fwriteerror.h [C++]: Likewise.
40099         * lib/gcd.h [C++]: Likewise.
40100         * lib/linebreak.h [C++]: Likewise.
40101
40102 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
40103
40104         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
40105         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
40106         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
40107         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
40108         Check for functions and headers just once.
40109         Check for declaration of canonicalize_file_name.
40110         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
40111
40112 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
40113
40114         * gnulib-tool (func_import): Fix typo in actioncmd.
40115
40116 2006-11-02  Bruno Haible  <bruno@clisp.org>
40117
40118         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
40119         newline sequence in the Makefile.am snippet as a space, like "make"
40120         does.
40121         Reported by Roger Persson <perrog@gmail.com>.
40122
40123 2006-11-01  Bruno Haible  <bruno@clisp.org>
40124
40125         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
40126         already declared in <string.h>.
40127         * lib/strcase.h (strncasecmp): Don't declare it if yes.
40128
40129 2006-11-01  Bruno Haible  <bruno@clisp.org>
40130
40131         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
40132         * lib/strcase.h: Include <string.h>.
40133         (strcasecmp): Define to rpl_strcasecmp here.
40134
40135 2006-11-01  Bruno Haible  <bruno@clisp.org>
40136
40137         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
40138
40139 2006-11-01  Eric Blake  <ebb9@byu.net>
40140
40141         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
40142
40143         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
40144
40145 2006-10-29  Bruno Haible  <bruno@clisp.org>
40146
40147         Make it compile in C++ mode.
40148         * lib/full-write.c (full_rw): Add a cast.
40149
40150 2006-11-01  Bruno Haible  <bruno@clisp.org>
40151
40152         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
40153         be POSIX compliant.
40154         Reported by Roger Persson <perrog@gmail.com>.
40155
40156 2006-11-01  Eric Blake  <ebb9@byu.net>
40157
40158         * lib/getopt_.h: Fix comments.
40159
40160 2006-10-31  Eric Blake  <ebb9@byu.net>
40161
40162         * modules/tmpdir (Depends-on): Add sys_stat.
40163         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
40164         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
40165         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
40166         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
40167         tempname.
40168
40169 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
40170
40171         Avoid some C++ diagnostics reported by Bruno Haible.
40172         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
40173         xmalloc.
40174         (quotearg_alloc): Use xcharalloc rather than xmalloc.
40175         (struct slotvec): Move to top level.
40176         (quotearg_n_options): Rewrite to avoid xmalloc.
40177         * lib/xalloc.h (xcharalloc): New function.
40178         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
40179         [defined __cplusplus]: Add function template that provides result
40180         type propagation.  This part of the change is from Bruno Haible.
40181
40182 2006-10-29  Bruno Haible  <bruno@clisp.org>
40183
40184         Make it compile in C++ mode.
40185         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
40186         * lib/strnlen1.c (strnlen1): Cast memchr result.
40187         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
40188         * lib/clean-temp.c (string_equals, string_hash): Add casts.
40189         (create_temp_dir): Rename local variable 'template'.
40190         (compile_csharp_using_sscli): Add cast.
40191         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
40192         * lib/findprog.c (find_in_path): Likewise.
40193         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
40194         * lib/wait-process.c (register_slave_subprocess): Likewise.
40195
40196 2006-10-22  Bruno Haible  <bruno@clisp.org>
40197
40198         * modules/tsearch: New file.
40199         * lib/tsearch.h: New file.
40200         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
40201         * m4/tsearch.m4: New file.
40202         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
40203
40204 2006-10-29  Eric Blake  <ebb9@byu.net>
40205
40206         * lib/arcfour.c: Assume config.h.
40207         * lib/arctwo.c: Likewise.
40208         * lib/base64.c: Likewise.
40209         * lib/check-version.c: Likewise.
40210         * lib/crc.c: Likewise.
40211         * lib/des.c: Likewise.
40212         * lib/gc-gnulib.c: Likewise.
40213         * lib/gc-libgcrypt.c: Likewise.
40214         * lib/gc-pbkdf2-sha1.c: Likewise.
40215         * lib/getaddrinfo.c: Likewise.
40216         * lib/getdelim.c: Likewise.
40217         * lib/getline.c: Likewise.
40218         * lib/hmac-md5.c: Likewise.
40219         * lib/hmac-sha1.c: Likewise.
40220         * lib/iconvme.c: Likewise.
40221         * lib/md2.c: Likewise.
40222         * lib/md4.c: Likewise.
40223         * lib/memxor.c: Likewise.
40224         * lib/read-file.c: Likewise.
40225         * lib/readline.c: Likewise.
40226         * lib/rijndael-alg-fst.c: Likewise.
40227         * lib/rijndael-api-fst.c: Likewise.
40228         * lib/xgetdomainname.c: Likewise.
40229
40230 2006-10-28  Eric Blake  <ebb9@byu.net>
40231
40232         * lib/xstrndup.c: Assume config.h.
40233
40234 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
40235
40236         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
40237         stat-macros.h is now for our own macros, whereas stat_h is for
40238         macros in the <sys/stat.h> name space.
40239         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
40240         (STAT_MACROS_H): Remove.
40241         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
40242         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
40243         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
40244         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
40245         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
40246         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
40247         Move these macros to ...
40248         * lib/stat_.h: here.  Don't include stat-macros.h.
40249         * lib/canonicalize.c: Don't include stat-macros.h.
40250         * lib/chown.c: Likewise.
40251         * lib/euidaccess.c: Likewise.
40252         * lib/file-type.c: Likewise.
40253         * lib/filemode.c: Likewise.
40254         * lib/glob.c: Likewise.
40255         * lib/isapipe.c: Likewise.
40256         * lib/lchown.c: Likewise.
40257         * lib/lstat.c: Likewise.
40258         * lib/mkdir-p.c: Likewise.
40259         * lib/rmdir.c: Likewise.
40260         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
40261         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
40262         unless mkdir isn't declared, to speed up 'configure'.
40263         Always create sys/stat.h, since it's unlikely any real sys/stat.h
40264         would define all the S_* symbols.
40265         * modules/canonicalize (Depends-on):
40266         Depend on sys_stat, not stat-macros.
40267         * modules/chown: Likewise.
40268         * modules/euidaccess: Likewise.
40269         * modules/filemode: Likewise.
40270         * modules/file-type: Likewise.
40271         * modules/glob: Likewise.
40272         * modules/isapipe: Likewise.
40273         * modules/lchown: Likewise.
40274         * modules/lstat: Likewise.
40275         * modules/mkancesdirs: Likewise.
40276         * modules/rmdir: Likewise.
40277         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
40278         * modules/modechange: Likewise.
40279         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
40280         (configure.ac): Remove gl_STAT_MACROS.
40281         * modules/sys_stat (Depends-on): Remove stat-macros.
40282
40283 2006-10-27  Bruno Haible  <bruno@clisp.org>
40284
40285         * m4/signed.m4: Remove file.
40286         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
40287         invocation.
40288         * modules/vasnprintf (Files): Remove m4/signed.m4.
40289
40290 2006-10-27  Bruno Haible  <bruno@clisp.org>
40291
40292         Update to GNU gettext 0.16.
40293         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
40294         m4/inttypes-h.m4, m4/signed.m4.
40295         * m4/gettext.m4: Update to GNU gettext 0.16.
40296         * m4/intl.m4: New file, from GNU gettext.
40297         * m4/intldir.m4: New file, from GNU gettext.
40298         * config/srclist.txt: Update
40299
40300 2006-10-27  Eric Blake  <ebb9@byu.net>
40301
40302         * MODULES.html.sh: Document tempname.
40303         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
40304         dependencies.
40305         (Files): Move lib/tempname.c...
40306         * modules/tempname: ...to this new module.
40307         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
40308         (gl_PREREQ_TEMPNAME): Move...
40309         * m4/tempname.m4: ...to this new file.
40310         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
40311         * modules/sys_stat (Depends-on): Add stat-macros.
40312         * lib/stat_.h (includes): Pick up stat macros.
40313         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
40314         if stat macros are broken.
40315         * lib/tempname.c (includes): No need to include "stat-macros.h".
40316         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
40317         (direxists, __path_search) [!_LIBC]: Don't compile these in
40318         gnulib; the tmpdir module covers that.
40319         * lib/tempname.h: New file.
40320
40321 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
40322
40323         * COPYING: Explain how gnulib-tool converts licence headers.
40324         Almost all wording by Eric Blake.
40325
40326 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
40327
40328         * lib/mbchar.h (is_basic_table): Make read-only.
40329         * lib/mbchar.c (is_basic_table): Likewise.
40330         Reported by John Darrington.
40331
40332 2006-10-25  Bruno Haible  <bruno@clisp.org>
40333
40334         * lib/progname.h (set_program_name): Undefine before defining.
40335
40336 2006-10-25  Bruno Haible  <bruno@clisp.org>
40337
40338         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
40339         false for non-gcc C++ compilers.
40340         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
40341
40342 2006-10-24  Bruno Haible  <bruno@clisp.org>
40343
40344         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
40345         iconv implementations like Irix iconv.
40346
40347 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
40348
40349         * modules/vararrays: New file.
40350         * m4/vararrays.m4: New file, taken from diffutils.
40351         * MODULES.html.sh: New module vararrays.
40352
40353 2006-10-24  Karl Berry  <karl@gnu.org>
40354
40355         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
40356         Don't call GNU Unix.
40357
40358 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40359
40360         * users.txt: Add Libtool.
40361
40362         Sync from Libtool:
40363
40364         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
40365
40366         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
40367         to gnulib's policy of including config.h unconditionally.
40368
40369 2006-10-24  Bruno Haible  <bruno@clisp.org>
40370
40371         * modules/wcwidth (Files): Add m4/wint_t.m4.
40372         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
40373         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
40374
40375 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
40376
40377         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
40378         to pacify GCC with some -W flags enabled.  Problem reported by
40379         Bruno Haible.
40380
40381 2006-10-24  Jim Meyering  <jim@meyering.net>
40382
40383         * MODULES.html.sh: Remove uinttostr.  It's not a module.
40384         Reported by Karl Berry.
40385
40386 2006-10-23  Bruno Haible  <bruno@clisp.org>
40387
40388         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
40389
40390 2006-10-24  Bruno Haible  <bruno@clisp.org>
40391
40392         * lib/gl_list.h: Use C comment style, not C++ comment style.
40393
40394 2006-10-23  Eric Blake  <ebb9@byu.net>
40395
40396         * lib/getaddrinfo.c (includes): Add missing include.
40397
40398 2006-10-23  Bruno Haible  <bruno@clisp.org>
40399             Paul Eggert  <eggert@cs.ucla.edu>
40400
40401         Ability to rename obstack_free.
40402         * lib/obstack.h (__obstack_free): New macro. Declare instead of
40403         obstack_free.
40404         (obstack_free): Invoke the __obstack_free macro.
40405         * lib/obstack.c (obstack_free): Use __obstack_free macro.
40406
40407 2006-10-23  Bruno Haible  <bruno@clisp.org>
40408             Paul Eggert  <eggert@cs.ucla.edu>
40409
40410         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
40411         __argc, __argv from the declaration. (They are defined as macros on
40412         mingw.)
40413
40414 2006-10-22  Bruno Haible  <bruno@clisp.org>
40415
40416         * doc/gnulib-intro.texi: New file.
40417         * doc/gnulib.texi: Include it.
40418
40419 2006-10-21  Bruno Haible  <bruno@clisp.org>
40420
40421         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
40422         "Introduction", "Miscellanous Notes", "Particular Modules".
40423
40424 2006-10-21  Bruno Haible  <bruno@clisp.org>
40425
40426         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
40427         Change mostlyclean-local rule to avoid sh syntax error from bash
40428         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
40429
40430 2006-10-23  Jim Meyering  <jim@meyering.net>
40431
40432         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
40433         in place of snprintf.
40434
40435         * modules/inttostr (Files): Add lib/uinttostr.c.
40436         * lib/uinttostr.c (inttostr): New file/function.
40437         * lib/inttostr.h (uinttostr): Declare.
40438         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
40439         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
40440         Add uinttostr.
40441         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
40442
40443 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
40444
40445         * lib/canonicalize.c (ELOOP): Define if not already defined.
40446         Problem reported by Bruno Haible in
40447         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
40448
40449 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
40450
40451         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
40452         Problem reported by Perry Smith and Ville Laurikari.
40453
40454         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
40455         uses.
40456
40457 2006-10-19  Bruno Haible  <bruno@clisp.org>
40458
40459         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
40460         for mingw.
40461
40462 2006-10-19  Bruno Haible  <bruno@clisp.org>
40463
40464         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
40465         Needed for mingw.
40466
40467 2006-10-19  Bruno Haible  <bruno@clisp.org>
40468
40469         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
40470
40471 2006-10-19  Bruno Haible  <bruno@clisp.org>
40472
40473         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
40474         it.
40475
40476 2006-10-19  Bruno Haible  <bruno@clisp.org>
40477
40478         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
40479         invocation.
40480
40481 2006-10-19  Bruno Haible  <bruno@clisp.org>
40482
40483         * gnulib-tool (func_create_testdir): Don't include ftruncate and
40484         mountlist by default.
40485
40486 2006-10-16  Bruno Haible  <bruno@clisp.org>
40487
40488         * lib/c-strstr.c: Include c-strstr.h.
40489
40490 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
40491
40492         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
40493         in a slash.
40494
40495 2006-10-18  Bruno Haible  <bruno@clisp.org>
40496
40497         * lib/lock.h [C++]: Wrap definitions in extern "C".
40498
40499 2006-10-18  Bruno Haible  <bruno@clisp.org>
40500
40501         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
40502         gl_LIBOBJS list.
40503
40504 2006-10-18  Bruno Haible  <bruno@clisp.org>
40505
40506         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
40507
40508 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
40509
40510         * lib/xstrtol.h: Include gettext.h.
40511         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
40512         Problem reported by Eric Blake.
40513         * modules/xstrtol (Depends-on): Add gettext-h.
40514
40515 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
40516
40517         * lib/strftime.c (advance): New macro.
40518         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
40519         incomplete type, so you can't add 0 to it.  Problem and patch
40520         reported by Eelco Dolstra for dietlibc.
40521
40522 2006-10-18  Jim Meyering  <jim@meyering.net>
40523
40524         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
40525         type for a local, and rename it: s/up/user_proc/.
40526
40527 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
40528
40529         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
40530         READ_UTMP_USER_PROCESS.
40531         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
40532
40533 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
40534
40535         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
40536         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
40537
40538 2006-10-17  Eric Blake  <ebb9@byu.net>
40539
40540         * lib/sigprocmask.c (sigprocmask): Fix typo.
40541
40542         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
40543
40544         * modules/clean-temp (Makefile.am): Don't add to make output...
40545         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
40546         config.h.
40547
40548 2006-10-17  Bruno Haible  <bruno@clisp.org>
40549
40550         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
40551         differently if DEFAULT_TEXT_DOMAIN is set.
40552
40553 2006-10-16  Bruno Haible  <bruno@clisp.org>
40554
40555         * lib/clean-temp.c: Include fwriteerror.h.
40556
40557 2006-10-16  Bruno Haible  <bruno@clisp.org>
40558
40559         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
40560
40561 2006-10-16  Bruno Haible  <bruno@clisp.org>
40562
40563         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
40564         * lib/sigprocmask.h: Include <sys/types.h>.
40565         (sigset_t): Use the system's definition if present.
40566
40567 2006-10-17  Eric Blake  <ebb9@byu.net>
40568
40569         * lib/xvasprintf.c (includes): Assume config.h.
40570         * lib/xasprintf.c (includes): Likewise.
40571
40572 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
40573
40574         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
40575         at least as wide as intmax_t.
40576
40577 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
40578
40579         (Imported from Automake.)
40580         * build-aux/gnupload: Update to version 1.1 of directive file.
40581
40582 2006-10-16  Eric Blake  <ebb9@byu.net>
40583
40584         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
40585         match Automake 1.10a.
40586
40587 2006-10-14  Bruno Haible  <bruno@clisp.org>
40588
40589         * modules/sigprocmask: New file.
40590         * lib/sigprocmask.h: New file.
40591         * lib/sigprocmask.c: New file.
40592         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
40593         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
40594         request sigprocmask.o.
40595         (gl_PREREQ_SIGPROCMASK): New macro.
40596         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
40597         (Depends-on): Add sigprocmask.
40598         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
40599         gt_SIGNALBLOCKING. Test for 'raise' only once.
40600         * lib/fatal-signal.c: Include sigprocmask.h.
40601         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
40602         unblock_fatal_signals): Define always.
40603         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
40604         sigprocmask.
40605
40606 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
40607
40608         Sync from Automake.
40609         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
40610         which incorrectly sets the mode of an existing destination
40611         directory.  In some cases the unpatched install-sh could do the
40612         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
40613         system.  We hope this is rare in practice, but it's clearly worth
40614         fixing.  Problem reported by Alex Unleashed in
40615         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
40616         Also, don't bother to check for -m bugs unless we're using -m;
40617         suggested by Stepan Kasal.
40618
40619 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40620
40621         Sync from Automake.
40622         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
40623         `-c' flag, so they appear at the same position as in %FASTDEP%
40624         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
40625         which ignores unknown options only after the first non-option.
40626         Bug report against M4 by Nelson H. F. Beebe.
40627
40628 2006-10-13  Jim Meyering  <jim@meyering.net>
40629
40630         Fix a bug in yesterday's change.
40631         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
40632         p->fts_statp->st_dev would be used uninitialized.
40633         Ensures that we always call fts_stat on the very first entry.
40634         Miklos Szeredi reported that find -xdev stopped working.
40635
40636 2006-10-12  Bruno Haible  <bruno@clisp.org>
40637
40638         * gnulib-tool (func_get_automake_snippet): Append an automatically
40639         computed EXTRA_DIST augmentation.
40640         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
40641         * modules/alloca-opt (Makefile.am): Likewise.
40642         * modules/allocsa (Makefile.am): Likewise.
40643         * modules/arcfour (Makefile.am): Likewise.
40644         * modules/arctwo (Makefile.am): Likewise.
40645         * modules/argmatch (Makefile.am): Likewise.
40646         * modules/argz (Makefile.am): Likewise.
40647         * modules/atexit (Makefile.am): Likewise.
40648         * modules/backupfile (Makefile.am): Likewise.
40649         * modules/byteswap (Makefile.am): Likewise.
40650         * modules/c-strtod (Makefile.am): Likewise.
40651         * modules/c-strtold (Makefile.am): Likewise.
40652         * modules/calloc (Makefile.am): Likewise.
40653         * modules/canon-host (Makefile.am): Likewise.
40654         * modules/canonicalize (Makefile.am): Likewise.
40655         * modules/chdir-long (Makefile.am): Likewise.
40656         * modules/chdir-safer (Makefile.am): Likewise.
40657         * modules/check-version (Makefile.am): Likewise.
40658         * modules/chown (Makefile.am): Likewise.
40659         * modules/cloexec (Makefile.am): Likewise.
40660         * modules/close-stream (Makefile.am): Likewise.
40661         * modules/closeout (Makefile.am): Likewise.
40662         * modules/crc (Makefile.am): Likewise.
40663         * modules/csharpexec (Makefile.am): Likewise.
40664         * modules/cycle-check (Makefile.am): Likewise.
40665         * modules/des (Makefile.am): Likewise.
40666         * modules/dev-ino (Makefile.am): Likewise.
40667         * modules/dirfd (Makefile.am): Likewise.
40668         * modules/dirname (Makefile.am): Likewise.
40669         * modules/dup2 (Makefile.am): Likewise.
40670         * modules/eealloc (Makefile.am): Likewise.
40671         * modules/error (Makefile.am): Likewise.
40672         * modules/euidaccess (Makefile.am): Likewise.
40673         * modules/exclude (Makefile.am): Likewise.
40674         * modules/exitfail (Makefile.am): Likewise.
40675         * modules/fcntl-safer (Makefile.am): Likewise.
40676         * modules/fcntl (Makefile.am): Likewise.
40677         * modules/file-type (Makefile.am): Likewise.
40678         * modules/fileblocks (Makefile.am): Likewise.
40679         * modules/filemode (Makefile.am): Likewise.
40680         * modules/filenamecat (Makefile.am): Likewise.
40681         * modules/fnmatch (Makefile.am): Likewise.
40682         * modules/fopen-safer (Makefile.am): Likewise.
40683         * modules/fpending (Makefile.am): Likewise.
40684         * modules/fprintftime (Makefile.am): Likewise.
40685         * modules/free (Makefile.am): Likewise.
40686         * modules/fsusage (Makefile.am): Likewise.
40687         * modules/ftruncate (Makefile.am): Likewise.
40688         * modules/fts (Makefile.am): Likewise.
40689         * modules/gc-arcfour (Makefile.am): Likewise.
40690         * modules/gc-des (Makefile.am): Likewise.
40691         * modules/gc-hmac-md5 (Makefile.am): Likewise.
40692         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
40693         * modules/gc-md4 (Makefile.am): Likewise.
40694         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
40695         * modules/gc-sha1 (Makefile.am): Likewise.
40696         * modules/gc (Makefile.am): Likewise.
40697         * modules/getaddrinfo (Makefile.am): Likewise.
40698         * modules/getcwd (Makefile.am): Likewise.
40699         * modules/getdelim (Makefile.am): Likewise.
40700         * modules/getdomainname (Makefile.am): Likewise.
40701         * modules/getgroups (Makefile.am): Likewise.
40702         * modules/gethostname (Makefile.am): Likewise.
40703         * modules/gethrxtime (Makefile.am): Likewise.
40704         * modules/getline (Makefile.am): Likewise.
40705         * modules/getloadavg (Makefile.am): Likewise.
40706         * modules/getlogin_r (Makefile.am): Likewise.
40707         * modules/getndelim2 (Makefile.am): Likewise.
40708         * modules/getopt (Makefile.am): Likewise.
40709         * modules/getpagesize (Makefile.am): Likewise.
40710         * modules/getpass-gnu (Makefile.am): Likewise.
40711         * modules/getpass (Makefile.am): Likewise.
40712         * modules/getsubopt (Makefile.am): Likewise.
40713         * modules/gettime (Makefile.am): Likewise.
40714         * modules/gettimeofday (Makefile.am): Likewise.
40715         * modules/getugroups (Makefile.am): Likewise.
40716         * modules/getusershell (Makefile.am): Likewise.
40717         * modules/glob (Makefile.am): Likewise.
40718         * modules/group-member (Makefile.am): Likewise.
40719         * modules/hard-locale (Makefile.am): Likewise.
40720         * modules/hash (Makefile.am): Likewise.
40721         * modules/hmac-md5 (Makefile.am): Likewise.
40722         * modules/hmac-sha1 (Makefile.am): Likewise.
40723         * modules/human (Makefile.am): Likewise.
40724         * modules/idcache (Makefile.am): Likewise.
40725         * modules/imaxabs (Makefile.am): Likewise.
40726         * modules/imaxdiv (Makefile.am): Likewise.
40727         * modules/inet_ntop (Makefile.am): Likewise.
40728         * modules/inet_pton (Makefile.am): Likewise.
40729         * modules/intprops (Makefile.am): Likewise.
40730         * modules/inttostr (Makefile.am): Likewise.
40731         * modules/inttypes (Makefile.am): Likewise.
40732         * modules/isapipe (Makefile.am): Likewise.
40733         * modules/javaversion (Makefile.am): Likewise.
40734         * modules/lchmod (Makefile.am): Likewise.
40735         * modules/lchown (Makefile.am): Likewise.
40736         * modules/localcharset (Makefile.am): Likewise.
40737         * modules/long-options (Makefile.am): Likewise.
40738         * modules/lstat (Makefile.am): Likewise.
40739         * modules/malloc (Makefile.am): Likewise.
40740         * modules/mathl (Makefile.am): Likewise.
40741         * modules/mbchar (Makefile.am): Likewise.
40742         * modules/md2 (Makefile.am): Likewise.
40743         * modules/md4 (Makefile.am): Likewise.
40744         * modules/md5 (Makefile.am): Likewise.
40745         * modules/memcasecmp (Makefile.am): Likewise.
40746         * modules/memchr (Makefile.am): Likewise.
40747         * modules/memcmp (Makefile.am): Likewise.
40748         * modules/memcoll (Makefile.am): Likewise.
40749         * modules/memcpy (Makefile.am): Likewise.
40750         * modules/memmem (Makefile.am): Likewise.
40751         * modules/memmove (Makefile.am): Likewise.
40752         * modules/mempcpy (Makefile.am): Likewise.
40753         * modules/memrchr (Makefile.am): Likewise.
40754         * modules/memset (Makefile.am): Likewise.
40755         * modules/memxor (Makefile.am): Likewise.
40756         * modules/mkancesdirs (Makefile.am): Likewise.
40757         * modules/mkdir-p (Makefile.am): Likewise.
40758         * modules/mkdir (Makefile.am): Likewise.
40759         * modules/mkdtemp (Makefile.am): Likewise.
40760         * modules/mkstemp (Makefile.am): Likewise.
40761         * modules/mktime (Makefile.am): Likewise.
40762         * modules/modechange (Makefile.am): Likewise.
40763         * modules/mountlist (Makefile.am): Likewise.
40764         * modules/nanosleep (Makefile.am): Likewise.
40765         * modules/obstack (Makefile.am): Likewise.
40766         * modules/openat (Makefile.am): Likewise.
40767         * modules/pagealign_alloc (Makefile.am): Likewise.
40768         * modules/pathmax (Makefile.am): Likewise.
40769         * modules/physmem (Makefile.am): Likewise.
40770         * modules/poll (Makefile.am): Likewise.
40771         * modules/posixtm (Makefile.am): Likewise.
40772         * modules/posixver (Makefile.am): Likewise.
40773         * modules/putenv (Makefile.am): Likewise.
40774         * modules/quote (Makefile.am): Likewise.
40775         * modules/quotearg (Makefile.am): Likewise.
40776         * modules/raise (Makefile.am): Likewise.
40777         * modules/read-file (Makefile.am): Likewise.
40778         * modules/readline (Makefile.am): Likewise.
40779         * modules/readlink (Makefile.am): Likewise.
40780         * modules/readtokens (Makefile.am): Likewise.
40781         * modules/readutmp (Makefile.am): Likewise.
40782         * modules/realloc (Makefile.am): Likewise.
40783         * modules/regex (Makefile.am): Likewise.
40784         * modules/rename-dest-slash (Makefile.am): Likewise.
40785         * modules/rename (Makefile.am): Likewise.
40786         * modules/rijndael (Makefile.am): Likewise.
40787         * modules/rmdir (Makefile.am): Likewise.
40788         * modules/rpmatch (Makefile.am): Likewise.
40789         * modules/safe-read (Makefile.am): Likewise.
40790         * modules/safe-write (Makefile.am): Likewise.
40791         * modules/same-inode (Makefile.am): Likewise.
40792         * modules/same (Makefile.am): Likewise.
40793         * modules/save-cwd (Makefile.am): Likewise.
40794         * modules/savedir (Makefile.am): Likewise.
40795         * modules/setenv (Makefile.am): Likewise.
40796         * modules/settime (Makefile.am): Likewise.
40797         * modules/sha1 (Makefile.am): Likewise.
40798         * modules/sig2str (Makefile.am): Likewise.
40799         * modules/snprintf (Makefile.am): Likewise.
40800         * modules/stat-macros (Makefile.am): Likewise.
40801         * modules/stat-time (Makefile.am): Likewise.
40802         * modules/stdbool (Makefile.am): Likewise.
40803         * modules/stdint (Makefile.am): Likewise.
40804         * modules/stdlib-safer (Makefile.am): Likewise.
40805         * modules/stpcpy (Makefile.am): Likewise.
40806         * modules/stpncpy (Makefile.am): Likewise.
40807         * modules/strcase (Makefile.am): Likewise.
40808         * modules/strcasestr (Makefile.am): Likewise.
40809         * modules/strchrnul (Makefile.am): Likewise.
40810         * modules/strcspn (Makefile.am): Likewise.
40811         * modules/strdup (Makefile.am): Likewise.
40812         * modules/strerror (Makefile.am): Likewise.
40813         * modules/strftime (Makefile.am): Likewise.
40814         * modules/strndup (Makefile.am): Likewise.
40815         * modules/strnlen (Makefile.am): Likewise.
40816         * modules/strpbrk (Makefile.am): Likewise.
40817         * modules/strsep (Makefile.am): Likewise.
40818         * modules/strstr (Makefile.am): Likewise.
40819         * modules/strtod (Makefile.am): Likewise.
40820         * modules/strtoimax (Makefile.am): Likewise.
40821         * modules/strtok_r (Makefile.am): Likewise.
40822         * modules/strtol (Makefile.am): Likewise.
40823         * modules/strtoll (Makefile.am): Likewise.
40824         * modules/strtoul (Makefile.am): Likewise.
40825         * modules/strtoull (Makefile.am): Likewise.
40826         * modules/strtoumax (Makefile.am): Likewise.
40827         * modules/strverscmp (Makefile.am): Likewise.
40828         * modules/sys_socket (Makefile.am): Likewise.
40829         * modules/sys_stat (Makefile.am): Likewise.
40830         * modules/sysexits (Makefile.am): Likewise.
40831         * modules/time_r (Makefile.am): Likewise.
40832         * modules/timegm (Makefile.am): Likewise.
40833         * modules/timespec (Makefile.am): Likewise.
40834         * modules/tmpfile-safer (Makefile.am): Likewise.
40835         * modules/trim (Makefile.am): Likewise.
40836         * modules/unistd-safer (Makefile.am): Likewise.
40837         * modules/unlinkdir (Makefile.am): Likewise.
40838         * modules/unlocked-io (Makefile.am): Likewise.
40839         * modules/userspec (Makefile.am): Likewise.
40840         * modules/utime (Makefile.am): Likewise.
40841         * modules/utimecmp (Makefile.am): Likewise.
40842         * modules/utimens (Makefile.am): Likewise.
40843         * modules/vasnprintf (Makefile.am): Likewise.
40844         * modules/vasprintf (Makefile.am): Likewise.
40845         * modules/vsnprintf (Makefile.am): Likewise.
40846         * modules/xalloc (Makefile.am): Likewise.
40847         * modules/xgetcwd (Makefile.am): Likewise.
40848         * modules/xnanosleep (Makefile.am): Likewise.
40849         * modules/xreadlink (Makefile.am): Likewise.
40850         * modules/xstrtod (Makefile.am): Likewise.
40851         * modules/xstrtol (Makefile.am): Likewise.
40852         * modules/xstrtold (Makefile.am): Likewise.
40853         * modules/yesno (Makefile.am): Likewise.
40854         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
40855
40856 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
40857
40858         * modules/error (Makefile.am): Distribute files through
40859         EXTRA_DIST, not lib_SOURCES.
40860
40861 2006-10-12  Eric Blake  <ebb9@byu.net>
40862
40863         * modules/error (Makefile.am): Distribute files in /lib.
40864         * modules/obstack (Makefile.am): Likewise.
40865
40866 2006-10-12  Bruno Haible  <bruno@clisp.org>
40867
40868         * modules/acl (Makefile.am): Distribute all files in lib/ through
40869         EXTRA_DIST.
40870         * modules/arcfour (Makefile.am): Likewise.
40871         * modules/arctwo (Makefile.am): Likewise.
40872         * modules/argmatch (Makefile.am): Likewise.
40873         * modules/argz (Makefile.am): Likewise.
40874         * modules/atexit (Makefile.am): Likewise.
40875         * modules/backupfile (Makefile.am): Likewise.
40876         * modules/c-strtod (Makefile.am): Likewise.
40877         * modules/c-strtold (Makefile.am): Likewise.
40878         * modules/calloc (Makefile.am): Likewise.
40879         * modules/canon-host (Makefile.am): Likewise.
40880         * modules/canonicalize (Makefile.am): Likewise.
40881         * modules/chdir-long (Makefile.am): Likewise.
40882         * modules/chdir-safer (Makefile.am): Likewise.
40883         * modules/check-version (Makefile.am): Likewise.
40884         * modules/chown (Makefile.am): Likewise.
40885         * modules/cloexec (Makefile.am): Likewise.
40886         * modules/close-stream (Makefile.am): Likewise.
40887         * modules/closeout (Makefile.am): Likewise.
40888         * modules/crc (Makefile.am): Likewise.
40889         * modules/cycle-check (Makefile.am): Likewise.
40890         * modules/des (Makefile.am): Likewise.
40891         * modules/dirfd (Makefile.am): Likewise.
40892         * modules/dirname (Makefile.am): Likewise.
40893         * modules/dup2 (Makefile.am): Likewise.
40894         * modules/euidaccess (Makefile.am): Likewise.
40895         * modules/exclude (Makefile.am): Likewise.
40896         * modules/exitfail (Makefile.am): Likewise.
40897         * modules/fcntl-safer (Makefile.am): Likewise.
40898         * modules/file-type (Makefile.am): Likewise.
40899         * modules/fileblocks (Makefile.am): Likewise.
40900         * modules/filemode (Makefile.am): Likewise.
40901         * modules/filenamecat (Makefile.am): Likewise.
40902         * modules/fnmatch (Makefile.am): Likewise.
40903         * modules/fopen-safer (Makefile.am): Likewise.
40904         * modules/fpending (Makefile.am): Likewise.
40905         * modules/fprintftime (Makefile.am): Likewise.
40906         * modules/free (Makefile.am): Likewise.
40907         * modules/fsusage (Makefile.am): Likewise.
40908         * modules/ftruncate (Makefile.am): Likewise.
40909         * modules/fts (Makefile.am): Likewise.
40910         * modules/gc (Makefile.am): Likewise.
40911         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
40912         * modules/getaddrinfo (Makefile.am): Likewise.
40913         * modules/getcwd (Makefile.am): Likewise.
40914         * modules/getdelim (Makefile.am): Likewise.
40915         * modules/getdomainname (Makefile.am): Likewise.
40916         * modules/getgroups (Makefile.am): Likewise.
40917         * modules/gethostname (Makefile.am): Likewise.
40918         * modules/gethrxtime (Makefile.am): Likewise.
40919         * modules/getline (Makefile.am): Likewise.
40920         * modules/getloadavg (Makefile.am): Likewise.
40921         * modules/getlogin_r (Makefile.am): Likewise.
40922         * modules/getopt (Makefile.am): Likewise.
40923         * modules/getpass (Makefile.am): Likewise.
40924         * modules/getpass-gnu (Makefile.am): Likewise.
40925         * modules/getsubopt (Makefile.am): Likewise.
40926         * modules/gettime (Makefile.am): Likewise.
40927         * modules/gettimeofday (Makefile.am): Likewise.
40928         * modules/getugroups (Makefile.am): Likewise.
40929         * modules/getusershell (Makefile.am): Likewise.
40930         * modules/glob (Makefile.am): Likewise.
40931         * modules/group-member (Makefile.am): Likewise.
40932         * modules/hard-locale (Makefile.am): Likewise.
40933         * modules/hash (Makefile.am): Likewise.
40934         * modules/hmac-md5 (Makefile.am): Likewise.
40935         * modules/hmac-sha1 (Makefile.am): Likewise.
40936         * modules/human (Makefile.am): Likewise.
40937         * modules/idcache (Makefile.am): Likewise.
40938         * modules/imaxabs (Makefile.am): Likewise.
40939         * modules/imaxdiv (Makefile.am): Likewise.
40940         * modules/inet_ntop (Makefile.am): Likewise.
40941         * modules/inet_pton (Makefile.am): Likewise.
40942         * modules/inttostr (Makefile.am): Likewise.
40943         * modules/isapipe (Makefile.am): Likewise.
40944         * modules/lchown (Makefile.am): Likewise.
40945         * modules/long-options (Makefile.am): Likewise.
40946         * modules/lstat (Makefile.am): Likewise.
40947         * modules/malloc (Makefile.am): Likewise.
40948         * modules/mathl (Makefile.am): Likewise.
40949         * modules/mbchar (Makefile.am): Likewise.
40950         * modules/md2 (Makefile.am): Likewise.
40951         * modules/md4 (Makefile.am): Likewise.
40952         * modules/md5 (Makefile.am): Likewise.
40953         * modules/memcasecmp (Makefile.am): Likewise.
40954         * modules/memchr (Makefile.am): Likewise.
40955         * modules/memcmp (Makefile.am): Likewise.
40956         * modules/memcoll (Makefile.am): Likewise.
40957         * modules/memcpy (Makefile.am): Likewise.
40958         * modules/memmem (Makefile.am): Likewise.
40959         * modules/memmove (Makefile.am): Likewise.
40960         * modules/mempcpy (Makefile.am): Likewise.
40961         * modules/memrchr (Makefile.am): Likewise.
40962         * modules/memset (Makefile.am): Likewise.
40963         * modules/memxor (Makefile.am): Likewise.
40964         * modules/mkancesdirs (Makefile.am): Likewise.
40965         * modules/mkdir (Makefile.am): Likewise.
40966         * modules/mkdir-p (Makefile.am): Likewise.
40967         * modules/mkdtemp (Makefile.am): Likewise.
40968         * modules/mkstemp (Makefile.am): Likewise.
40969         * modules/mktime (Makefile.am): Likewise.
40970         * modules/modechange (Makefile.am): Likewise.
40971         * modules/mountlist (Makefile.am): Likewise.
40972         * modules/nanosleep (Makefile.am): Likewise.
40973         * modules/openat (Makefile.am): Likewise.
40974         * modules/pagealign_alloc (Makefile.am): Likewise.
40975         * modules/physmem (Makefile.am): Likewise.
40976         * modules/poll (Makefile.am): Likewise.
40977         * modules/posixtm (Makefile.am): Likewise.
40978         * modules/posixver (Makefile.am): Likewise.
40979         * modules/putenv (Makefile.am): Likewise.
40980         * modules/quote (Makefile.am): Likewise.
40981         * modules/quotearg (Makefile.am): Likewise.
40982         * modules/raise (Makefile.am): Likewise.
40983         * modules/read-file (Makefile.am): Likewise.
40984         * modules/readline (Makefile.am): Likewise.
40985         * modules/readlink (Makefile.am): Likewise.
40986         * modules/readtokens (Makefile.am): Likewise.
40987         * modules/readutmp (Makefile.am): Likewise.
40988         * modules/realloc (Makefile.am): Likewise.
40989         * modules/regex (Makefile.am): Likewise.
40990         * modules/rename (Makefile.am): Likewise.
40991         * modules/rename-dest-slash (Makefile.am): Likewise.
40992         * modules/rijndael (Makefile.am): Likewise.
40993         * modules/rmdir (Makefile.am): Likewise.
40994         * modules/rpmatch (Makefile.am): Likewise.
40995         * modules/safe-read (Makefile.am): Likewise.
40996         * modules/safe-write (Makefile.am): Likewise.
40997         * modules/same (Makefile.am): Likewise.
40998         * modules/save-cwd (Makefile.am): Likewise.
40999         * modules/savedir (Makefile.am): Likewise.
41000         * modules/setenv (Makefile.am): Likewise.
41001         * modules/settime (Makefile.am): Likewise.
41002         * modules/sha1 (Makefile.am): Likewise.
41003         * modules/sig2str (Makefile.am): Likewise.
41004         * modules/snprintf (Makefile.am): Likewise.
41005         * modules/stdlib-safer (Makefile.am): Likewise.
41006         * modules/stpcpy (Makefile.am): Likewise.
41007         * modules/stpncpy (Makefile.am): Likewise.
41008         * modules/strcase (Makefile.am): Likewise.
41009         * modules/strcasestr (Makefile.am): Likewise.
41010         * modules/strchrnul (Makefile.am): Likewise.
41011         * modules/strcspn (Makefile.am): Likewise.
41012         * modules/strdup (Makefile.am): Likewise.
41013         * modules/strerror (Makefile.am): Likewise.
41014         * modules/strftime (Makefile.am): Likewise.
41015         * modules/strndup (Makefile.am): Likewise.
41016         * modules/strnlen (Makefile.am): Likewise.
41017         * modules/strpbrk (Makefile.am): Likewise.
41018         * modules/strsep (Makefile.am): Likewise.
41019         * modules/strstr (Makefile.am): Likewise.
41020         * modules/strtod (Makefile.am): Likewise.
41021         * modules/strtoimax (Makefile.am): Likewise.
41022         * modules/strtok_r (Makefile.am): Likewise.
41023         * modules/strtol (Makefile.am): Likewise.
41024         * modules/strtoll (Makefile.am): Likewise.
41025         * modules/strtoul (Makefile.am): Likewise.
41026         * modules/strtoull (Makefile.am): Likewise.
41027         * modules/strtoumax (Makefile.am): Likewise.
41028         * modules/strverscmp (Makefile.am): Likewise.
41029         * modules/time_r (Makefile.am): Likewise.
41030         * modules/timegm (Makefile.am): Likewise.
41031         * modules/tmpfile-safer (Makefile.am): Likewise.
41032         * modules/unistd-safer (Makefile.am): Likewise.
41033         * modules/unlinkdir (Makefile.am): Likewise.
41034         * modules/userspec (Makefile.am): Likewise.
41035         * modules/utime (Makefile.am): Likewise.
41036         * modules/utimecmp (Makefile.am): Likewise.
41037         * modules/utimens (Makefile.am): Likewise.
41038         * modules/vasnprintf (Makefile.am): Likewise.
41039         * modules/vasprintf (Makefile.am): Likewise.
41040         * modules/vsnprintf (Makefile.am): Likewise.
41041         * modules/xalloc (Makefile.am): Likewise.
41042         * modules/xgetcwd (Makefile.am): Likewise.
41043         * modules/xnanosleep (Makefile.am): Likewise.
41044         * modules/xreadlink (Makefile.am): Likewise.
41045         * modules/xstrtod (Makefile.am): Likewise.
41046         * modules/xstrtol (Makefile.am): Likewise.
41047         * modules/xstrtold (Makefile.am): Likewise.
41048         * modules/yesno (Makefile.am): Likewise.
41049
41050 2006-10-12  Jim Meyering  <jim@meyering.net>
41051
41052         * m4/getloadavg.m4: Revert the change below.
41053
41054         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
41055         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
41056         fail with a symlink, which is what coreutils' ./bootstrap now
41057         creates by default.
41058
41059 2006-10-12  Bruno Haible  <bruno@clisp.org>
41060
41061         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
41062         mingw.
41063         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
41064         MSVC and mingw explicitly.
41065
41066 2006-10-11  Simon Josefsson  <jas@extundo.com>
41067             Bruno Haible  <bruno@clisp.org>
41068
41069         Add support for multiple gnulib-tool invocations in the scope of a
41070         single configure.ac file.
41071         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
41072         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
41073         with the same contents as the _LIBADD variable.
41074         (func_emit_initmacro_start, func_emit_initmacro_end,
41075         func_emit_initmacro_done): New functions.
41076         (func_import, func_create_testdir): Invoke them. Allow the identifiers
41077         gl_LIBOBJS and gl_LTLIBOBJS.
41078
41079 2006-10-11  Bruno Haible  <bruno@clisp.org>
41080
41081         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
41082         (func_create_testdir): Don't create po/Makefile.am, don't invoke
41083         autoreconf. Instead, invoke autopoint explicitly but move back the
41084         *.m4 files from gnulib.
41085
41086 2006-10-11  Bruno Haible  <bruno@clisp.org>
41087
41088         * gnulib-tool (func_usage): Make module names after --create-testdir
41089         optional.
41090         (func_create_testdir): If no module was specified, use nearly all
41091         modules.
41092
41093 2006-10-12  Jim Meyering  <jim@meyering.net>
41094
41095         Big performance improvement for fts-based tools that use FTS_NOSTAT.
41096         Avoid spurious inode-mismatch problems on non-POSIX file systems.
41097         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
41098         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
41099         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
41100         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
41101         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
41102         (fts_set_stat_required): New function.
41103         (fts_open): Defer the calls to fts_stat, if possible or requested.
41104         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
41105         into fts_stat itself.
41106         (fts_read): Perform any required (deferred) fts_stat call.
41107         (fts_build): Likewise, for the directory we're about to open and read.
41108         In the readdir loop, carefully decide whether each entry will require
41109         an eventual call to fts_stat, using dirent.d_type info if available.
41110         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
41111         a command line argument into this function.  Update all callers.
41112         Map a return value of FTS_DOT to FTS_D for a command line argument.
41113         * modules/fts (Depends-on): Add d-type.  Alphabetize.
41114         Thanks to Miklos Szeredi for his tenacity and for the initial
41115         bug report about "find" failing on a FUSE-based file system.
41116
41117         * lib/fts.c (fts_open): Use consistent indentation.
41118
41119 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
41120
41121         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
41122         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
41123         reported by Jim Meyering.  All uses of cache variables renamed
41124         to match Autoconf's.
41125         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
41126         the other one.
41127
41128         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
41129         Fix misspelling in diagnostic.
41130
41131 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
41132
41133         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
41134         defined.  Problem reported by Matthew Woehlke.
41135
41136         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
41137         Add support for Tandem NonStop R series.
41138         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
41139         Use new macro.
41140
41141         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
41142         (has_trailing_slash): Omit size arg; all callers changed.
41143         Omit 'inline', since it doesn't help performance and we'd
41144         need to configure it.
41145         Don't count //, ///, etc. as having a trailing slash.
41146         As a side effect, this removes a C99ism reported by Matthew Woehlke.
41147         (rpl_rename_dest_slash): On failure, use rename's errno rather
41148         than (in some cases) an incorrect or junk errno.
41149         Simplify code by removing need to compute length; this does
41150         cause it to make two passes instead of one over the file name,
41151         but it's worth it.
41152
41153         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
41154         change, since Autoconf's version may no longer be appropriate now
41155         that we are using CVS Autoconf's version.  Add support for Tandem.
41156
41157 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
41158             Bruno Haible  <bruno@clisp.org>
41159
41160         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
41161         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
41162         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
41163         gl_AC_TYPE_LONG_LONG.
41164
41165         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
41166         instead of HAVE_LONG_LONG.
41167         * lib/printf-args.c (printf_fetchargs): Likewise.
41168         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
41169         * lib/vasnprintf.c (VASNPRINTF): Likewise.
41170         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
41171         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
41172         gl_AC_TYPE_LONG_LONG.
41173
41174 2006-10-11  Bruno Haible  <bruno@clisp.org>
41175
41176         * m4/longlong.m4: Add comments.
41177         * m4/ulonglong.m4: Likewise.
41178
41179 2006-10-10  Bruno Haible  <bruno@clisp.org>
41180
41181         Make it possible to #define stpcpy, strdup to aliases.
41182         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
41183         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
41184
41185 2006-10-10  Bruno Haible  <bruno@clisp.org>
41186
41187         Make it possible to #define gcd to an alias.
41188         * lib/gcd.c: Include config.h.
41189
41190 2006-10-10  Bruno Haible  <bruno@clisp.org>
41191
41192         Make it possible to #define c_isascii to an alias.
41193         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
41194         defined. Undefine the macros before defining them, to avoid gcc
41195         warnings.
41196         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
41197         define NO_C_CTYPE_MACROS early.
41198
41199 2006-10-10  Bruno Haible  <bruno@clisp.org>
41200
41201         Make it possible to #define set_program_name to an alias.
41202         * lib/progname.c: Don't undefine set_program_name; instead, undefine
41203         ENABLE_RELOCATABLE early.
41204
41205 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
41206
41207         Port to Tandem NSK OSS, which has 64-bit signed int but at most
41208         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
41209         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
41210         More generally, don't assume that 64-bit signed int is available
41211         if unsigned int is, and vice versa.
41212         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
41213         unsigned symbols, not on their signed counterparts.
41214         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
41215         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
41216         (UINT64_C, UINTMAX_C):
41217         Likewise.
41218         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
41219         unsigned counterparts.
41220         (Have_long_long, Unsigned): New macros.
41221         (Int): Renamed from INT.
41222         (strtoimax): Use the new macros.
41223         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
41224         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
41225         * modules/inttypes (inttypes.h): Substitute
41226         HAVE_UNSIGNED_LONG_LONG_INT.
41227         * modules/stdint (stdint.h): Likewise.
41228         (Files): Add m4/ulonglong.m4.
41229
41230 2006-10-10  Bruno Haible  <bruno@clisp.org>
41231
41232         Fix a gcc -Wshadow warning.
41233         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
41234         to 'bucket'.
41235         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
41236         gl_linked_indexof_from_to): Likewise.
41237         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
41238         Likewise.
41239         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
41240         Likewise.
41241         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
41242         Reported by Eric Blake.
41243
41244 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
41245
41246         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
41247         for NetBSD.  Problem reported by Bruno Haible.
41248
41249 2006-10-09  Jim Meyering  <jim@meyering.net>
41250
41251         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
41252         Patch from Bruno Haible.
41253
41254 2006-10-09  Jim Meyering  <jim@meyering.net>
41255
41256         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
41257         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
41258         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
41259
41260 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
41261
41262         Don't include <config.h> twice; this doesn't work in some cases,
41263         e.g., when config.h has "#define intmax_t long long int" and
41264         we include <config.h>, <inttypes.h>, <config.h> in that order.
41265         Problem reported by Matthew Woehlke in:
41266         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
41267         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
41268         * lib/fts-cycle.c: Don't include config.h.
41269         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
41270         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
41271         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
41272         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
41273         inttypes.h.
41274         * lib/xstrtoumax.c: Likewise.
41275         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
41276         __strtol and the like, so that this module is more like its siblings.
41277         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
41278         Remove; no longer needed now that we assume gnulib inttypes.h.
41279
41280 2006-10-08  Bruno Haible  <bruno@clisp.org>
41281
41282         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
41283         option.
41284
41285 2006-10-07  Jim Meyering  <jim@meyering.net>
41286
41287         * modules/inttypes (inttypes.h): Revert what seems to have been
41288         an inadvertent part of today's change: use "|", not "/" in the
41289         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
41290
41291 2006-10-07  Bruno Haible  <bruno@clisp.org>
41292
41293         * modules/sublist: New file.
41294
41295 2006-10-07  Bruno Haible  <bruno@clisp.org>
41296
41297         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
41298         * modules/argz (argz.h): Likewise.
41299         * modules/arpa_inet (arpa/inet.h): Likewise.
41300         * modules/byteswap (byteswap.h): Likewise.
41301         * modules/configmake (configmake.h): Likewise.
41302         * modules/fcntl (fcntl.h): Likewise.
41303         * modules/fnmatch (fnmatch.h): Likewise.
41304         * modules/getopt (getopt.h): Likewise.
41305         * modules/glob (glob.h): Likewise.
41306         * modules/inttypes (inttypes.h): Likewise.
41307         * modules/netinet_in (netinet/in.h): Likewise.
41308         * modules/poll (poll.h): Likewise.
41309         * modules/stdbool (stdbool.h): Likewise.
41310         * modules/stdint (stdint.h): Likewise.
41311         * modules/sys_select (sys/select.h): Likewise.
41312         * modules/sys_socket (sys/socket.h): Likewise.
41313         * modules/sys_stat (sys/stat.h): Likewise.
41314         * modules/sysexits (sysexits.h): Likewise.
41315         * modules/unistd (unistd.h): Likewise.
41316         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
41317         Add a "DO NOT EDIT" comment to the generated file.
41318         (func_import): Likewise for gnulib-comp.m4.
41319
41320 2006-10-07  Bruno Haible  <bruno@clisp.org>
41321
41322         * lib/gl_sublist.h: New file.
41323         * lib/gl_sublist.c: New file.
41324
41325 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
41326
41327         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
41328         name (relative to the original working directory) and the file
41329         name component (relative to the temporary working directory).  All
41330         callers changed.
41331         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
41332         * lib/mkdir-p.c (make_dir_parents): Likewise.
41333         * lib/mkdir-p.h (make_dir_parents): Likewise.
41334
41335 2006-10-06  Eric Blake  <ebb9@byu.net>
41336
41337         Define several macros for use by the clean-temp module.
41338         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
41339         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
41340         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
41341
41342         * lib/clean-temp.h (close_stream_temp): New declaration.
41343         * lib/clean-temp.c (includes): Pull in headers according to what
41344         other modules are in use.
41345         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
41346
41347 2006-10-06  Bruno Haible  <bruno@clisp.org>
41348
41349         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
41350         instead of fopen, fwriteerror.
41351
41352 2006-10-06  Bruno Haible  <bruno@clisp.org>
41353
41354         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
41355         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
41356         int.
41357         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
41358         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
41359         Return an error indicator.
41360         Suggested by Eric Blake.
41361
41362 2006-10-06  Bruno Haible  <bruno@clisp.org>
41363
41364         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
41365         Reported by Eric Blake.
41366
41367 2006-10-06  Bruno Haible  <bruno@clisp.org>
41368
41369         * modules/closeout (Description): Mention stderr too.
41370
41371 2006-10-06  Bruno Haible  <bruno@clisp.org>
41372         and Paul Eggert  <eggert@cs.ucla.edu>
41373
41374         * lib/closeout.c (close_stdout): Also close stderr.
41375         * lib/closeout.h: Update comment.
41376
41377 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
41378
41379         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
41380         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
41381         * lib/dirchownmod.c: Include lchown.h.
41382         * lib/lchown.c: Don't include files that lchown.h now includes.
41383         Don't declare chown, since lchown.h now does that.
41384         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
41385         (lchown): Define to rpl_chown if lchown is declared but
41386         does not exist.  Declare using a prototype if lchown is not
41387         declared.  Add a copyright notice.
41388         * lib/mkstemp.h: Include <unistd.h>.
41389         * lib/openat.c: Include lchown.h.
41390
41391         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
41392         we now test for that separately.
41393         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
41394         rather than O_NOFOLLOW, when testing whether it's possible to
41395         avoid a race condition reliably.
41396         * lib/savewd.c (savewd_chdir): Likewise.
41397
41398         Remove macros that are no longer needed now that stdint.h is
41399         reliable.
41400         * lib/fsusage.c (UINTMAX_MAX): Remove.
41401         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
41402         * lib/utimecmp.c (SIZE_MAX): Remove.
41403
41404         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
41405
41406         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
41407         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
41408         O_NOATIME works.
41409
41410 2006-10-05  Bruno Haible  <bruno@clisp.org>
41411
41412         * lib/gl_list.h (gl_sortedlist_search_from_to,
41413         gl_sortedlist_indexof_from_to): New declarations.
41414         (gl_list_implementation): New fields sortedlist_search_from_to,
41415         sortedlist_indexof_from_to.
41416         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
41417         inline functions.
41418         * lib/gl_list.c (gl_sortedlist_search_from_to,
41419         gl_sortedlist_indexof_from_to): New functions.
41420         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
41421         function.
41422         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
41423         (gl_array_sortedlist_search_from_to): New function.
41424         (gl_array_list_implementation): Update.
41425         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
41426         function.
41427         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
41428         (gl_carray_sortedlist_search_from_to): New function.
41429         (gl_carray_list_implementation): Update.
41430         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
41431         gl_linked_sortedlist_indexof_from_to): New functions.
41432         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
41433         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
41434         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
41435         gl_tree_sortedlist_indexof_from_to): New functions.
41436         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
41437         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
41438         Update.
41439         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
41440         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
41441         Update.
41442
41443 2006-10-05  Bruno Haible  <bruno@clisp.org>
41444
41445         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
41446         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
41447         (struct gl_list_implementation): Add fields search_from_to,
41448         indexof_from_to. Remove fields search, indexof.
41449         (gl_list_search): Use the search_from_to method.
41450         (gl_list_search_from, gl_list_search_from_to): New functions.
41451         (gl_list_indexof): Use the indexof_from_to method.
41452         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
41453         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
41454         (gl_list_search_from, gl_list_search_from_to): New functions.
41455         (gl_list_indexof): Use the indexof_from_to method.
41456         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
41457         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
41458         gl_array_indexof. Add start_index, end_index arguments.
41459         (gl_array_search_from_to): Renamed from gl_array_search. Add
41460         start_index, end_index arguments.
41461         (gl_array_remove, gl_array_list_implementation): Update.
41462         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
41463         gl_carray_indexof. Add start_index, end_index arguments.
41464         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
41465         start_index, end_index arguments.
41466         (gl_carray_remove, gl_carray_list_implementation): Update.
41467         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
41468         gl_linked_search. Add start_index, end_index arguments.
41469         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
41470         start_index, end_index arguments.
41471         (gl_linked_remove): Update.
41472         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
41473         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
41474         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
41475         field to 'size_t'.
41476         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
41477         gl_tree_search. Add start_index, end_index arguments.
41478         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
41479         start_index, end_index arguments.
41480         (gl_tree_remove): Update.
41481         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
41482         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
41483         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
41484         function.
41485         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
41486         gl_tree_search. Add start_index, end_index arguments.
41487         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
41488         start_index, end_index arguments.
41489         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
41490         Update.
41491         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
41492
41493 2006-10-05  Bruno Haible  <bruno@clisp.org>
41494
41495         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
41496
41497         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
41498         fwriteerror_temp): New declarations.
41499         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
41500         (descriptors): New variable.
41501         (cleanup): First, close the descriptors.
41502         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
41503         fclose_temp, fwriteerror_temp): New functions.
41504
41505 2006-10-04  Jim Meyering  <jim@meyering.net>
41506
41507         * lib/fts.c (fts_open): Tiny comment change.
41508
41509 2006-10-04  Bruno Haible  <bruno@clisp.org>
41510
41511         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
41512         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
41513         gl_LOCK_BODY.
41514         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
41515         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
41516         gl_LOCK_EARLY_BODY.
41517         (gl_LOCK): Require gl_LOCK_BODY.
41518
41519 2006-10-04  Bruno Haible  <bruno@clisp.org>
41520
41521         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
41522         (gl_oset_search_atleast): New declaration.
41523         (struct gl_oset_implementation): Add field 'search_atleast'.
41524         (gl_oset_search_atleast): New inline function.
41525         * lib/gl_oset.c (gl_oset_search_atleast): New function.
41526         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
41527         (gl_array_oset_implementation): Update.
41528         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
41529         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
41530         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
41531
41532 2006-10-04  Bruno Haible  <bruno@clisp.org>
41533
41534         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
41535
41536 2006-10-03  Bruno Haible  <bruno@clisp.org>
41537
41538         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
41539         from gl_avltreehash_list_implementation.
41540
41541 2006-10-03  Bruno Haible  <bruno@clisp.org>
41542
41543         * lib/gl_oset.c (gl_oset_add): Fix return type.
41544
41545 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
41546
41547         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
41548
41549 2006-10-02  Eric Blake  <ebb9@byu.net>
41550
41551         * modules/strnlen (Depends-on): Add extensions.
41552
41553 2006-10-02  Eric Blake  <ebb9@byu.net>
41554
41555         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
41556         definition in 2.60+.
41557
41558 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
41559
41560         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
41561         checks.
41562
41563 2006-10-02  Bruno Haible  <bruno@clisp.org>
41564
41565         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
41566         to the AUTOMAKE_OPTIONS.
41567         Reported by Jim Meyering.
41568
41569 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
41570
41571         Work around bug in Solaris 10 /proc file system:
41572         /proc/self/fd/NNN/.. isn't the parent directory of
41573         the directory whose file descriptor is NNN.  This needs to
41574         be worked around at run time, not compile time, since a
41575         program might be built on Solaris 8, where things work, and
41576         run on Solaris 10.
41577         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
41578         to use the following interface instead:
41579         (OPENAT_BUFFER_SIZE): New macro.
41580         (openat_proc_name): New function.
41581         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
41582         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
41583         Likewise.
41584         * lib/openat-proc.c: New file.
41585         * modules/openat (Files): Add lib/openat-proc.c.
41586         (Depends-on): Add same-inode, stdbool.
41587         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
41588
41589 2006-09-29  Bruno Haible  <bruno@clisp.org>
41590
41591         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
41592         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
41593         argument. Set stdout_closed before testing for ferror, not after.
41594         (fwriteerror, fwriteerror_no_ebadf): New functions.
41595
41596 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41597
41598         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
41599
41600 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
41601
41602         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
41603         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
41604
41605 2006-09-28  Jim Meyering  <jim@meyering.net>
41606
41607         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
41608         Include <unistd.h>.
41609
41610 2006-09-28  Bruno Haible  <bruno@clisp.org>
41611
41612         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
41613         * modules/linkedhash-list (Depends-on): Likewise.
41614         * modules/rbtreehash-list (Depends-on): Likewise.
41615
41616 2006-09-28  Bruno Haible  <bruno@clisp.org>
41617
41618         * lib/strndup.h: Simplify the redefinition of strndup.
41619         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
41620         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
41621
41622 2006-09-28  Bruno Haible  <bruno@clisp.org>
41623
41624         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
41625         * lib/gl_linkedhash_list.c: Likewise.
41626         * lib/gl_rbtreehash_list.c: Likewise.
41627
41628 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
41629
41630         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
41631         getaddrinfo.
41632
41633         * lib/__fpending.h: Don't include <stdio_ext.h> unless
41634         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
41635         it causes <stdio_ext.h> to cause a compile-time error.
41636         Problem reported by Nelson H. F. Beebe.
41637         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
41638         of HAVE_DECL___PENDING.
41639
41640         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
41641         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
41642         declaration.
41643
41644 2006-09-27  Jim Meyering  <jim@meyering.net>
41645
41646         This file could end up with a definition for a function
41647         named __strndup, rather than rpl_strndup on a system with
41648         incomplete weak_alias support.
41649         * lib/strndup.c (strndup): Rename from __strndup.
41650         Remove #defines that used to map __strndup to strndup.
41651         Don't use K&R prototypes.
41652         Remove LIBC-related code, since this file is not sync'd with glibc.
41653         * lib/strndup.h: Revamp, accordingly.
41654         * m4/strndup.m4: Modernize.
41655
41656 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
41657
41658         * modules/savewd (Depends-on): Add 'raise'.
41659         * lib/savewd.c: Include <signal.h>, for 'raise'.
41660
41661 2006-09-26  Jim Meyering  <jim@meyering.net>
41662
41663         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
41664         when we detect Darwin 8.7.0's acl_get_file bug.
41665         Rearrange to perform the new (below) run-test while $LIBS
41666         contains any acl-related library.  Set USE_ACL at the end.
41667         (gl_ACL_GET_FILE): New function.
41668
41669 2006-09-26  Eric Blake  <ebb9@byu.net>
41670
41671         * lib/verror.c: Include <config.h> unconditionally.
41672
41673 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
41674
41675         * modules/clock-time (Maintainer): Add self.
41676         * modules/getlogin_r (Depends-on): Add extensions.
41677
41678 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41679
41680         * modules/clock-time: New module.
41681         * modules/nanosleep (Depends-on): Add clock-time.
41682         * modules/gethrxtime (Depends-on): Likewise.
41683         * modules/gettime (Depends-on): Likewise.
41684         * modules/settime (Depends-on): Likewise.
41685
41686         * modules/fts-lgpl: Depend on openat.
41687         * modules/mkancesdirs: Depend on savewd.
41688         * modules/mkdir-p: Likewise.
41689
41690 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41691
41692         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
41693
41694         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
41695         `gl_have_arbitrary_file_name_length_limit' to
41696         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
41697         actually works between configure runs.
41698
41699 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41700             Bruno Haible  <bruno@clisp.org>
41701
41702         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
41703
41704 2006-09-25  Jim Meyering  <jim@meyering.net>
41705
41706         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
41707         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
41708
41709 2006-09-25  Eric Blake  <ebb9@byu.net>
41710
41711         * gnulib-tool (func_import, func_create_testdir): Fix typos in
41712         exec's in 2006-09-18 patch when shuffling fds.
41713
41714 2006-09-25  Bruno Haible  <bruno@clisp.org>
41715
41716         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
41717         Reported by Jim Meyering.
41718
41719 2006-09-24  Jim Meyering  <jim@meyering.net>
41720
41721         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
41722         compare a pointer against a literal "0".  That caused failures with
41723         at least HP-UX's hpcc.
41724
41725 2006-09-22  Simon Josefsson  <jas@extundo.com>
41726
41727         * modules/gc-sha1:
41728         * modules/gc-md4:
41729         * modules/gc-hmac-sha1:
41730         * modules/gc-hmac-md5:
41731         * modules/gc-des:
41732         * modules/gc-arcfour: Distribute more files.
41733
41734 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41735
41736         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
41737         (gl_linked_iterator_from_to): Initialize struct completely.
41738         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
41739         (gl_tree_iterator_from_to): Likewise
41740         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
41741         * lib/gl_array_list.c [lint] (gl_array_iterator)
41742         (gl_array_iterator_from_to): Likewise.
41743         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
41744         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
41745         (gl_carray_iterator_from_to): Likewise.
41746
41747         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
41748         * lib/md4.c (md4_process_block): Remove unused variable.
41749         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
41750         parentheses for clarity.
41751
41752 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41753
41754         * modules/bison-i18n (Depends-on): Add gettext.
41755
41756 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41757
41758         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
41759         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
41760         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
41761         also add missing comma that caused broken test.
41762         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
41763         stdlib.h, for `abort'.
41764         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
41765         variables.
41766         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
41767         include unistd.h if present, for `rmdir'.
41768         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
41769         variables.
41770         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
41771         in the process include standard headers for prototypes.
41772         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
41773         gets declared on GNU/Linux.
41774         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
41775         unistd.h, for `rmdir'.
41776         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
41777
41778         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
41779         always true.
41780         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
41781
41782         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
41783
41784 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41785
41786         * gnulib-tool (func_version): Create output all at once.  This
41787         may help avoid triggering unnecessary SIGPIPEs, and at any
41788         rate it doesn't hurt.
41789
41790 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41791             Bruno Haible  <bruno@clisp.org>
41792
41793         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
41794         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
41795         * m4/signed.m4 (bh_C_SIGNED): Likewise.
41796
41797         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
41798         (gl_FUNC_VASPRINTF): Invoke it.
41799
41800 2006-09-22  Bruno Haible  <bruno@clisp.org>
41801
41802         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
41803         getloadavg.c as first argument.
41804
41805 2006-09-22  Bruno Haible  <bruno@clisp.org>
41806
41807         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
41808         at the beginning of the gl_INIT macro.
41809         * modules/getloadavg (configure.ac): Pass $gl_source_base to
41810         gl_GETLOADAVG.
41811
41812 2006-09-22  Bruno Haible  <bruno@clisp.org>
41813
41814         * gnulib-tool (func_create_megatestdir): Don't include the config-h
41815         module.
41816         Suggested by Ralf Wildenhues.
41817
41818 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
41819
41820         Import this patch from libc:
41821
41822         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
41823
41824         * lib/regex_internal.c (re_string_reconstruct): Handle
41825         offset < pstr->valid_raw_len && pstr->offsets_needed case.
41826         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
41827         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
41828         re_string_context_at.
41829
41830         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
41831         now requires it.
41832         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
41833         gl_REGEX now does it for us.
41834         (gl_REGEX): Add test taken from
41835         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
41836
41837         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
41838         Check that large offsets work.  Modernize Autoconf usages.
41839         Prefer "yes" to mean a good thing rather than a bad.
41840         Don't put "#define mkstemp" in config.h, as this might interfere
41841         with standard system headers that "#define mkstemp mkstemp64".
41842
41843         * modules/mkstemp (Depends-on): Add extensions, so that
41844         mkstemp is visible on some platforms.
41845         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
41846         (Include): Change to "mkstemp.h" from <stdlib.h>.
41847         (Files): Add mkstemp.h.
41848
41849         * lib/mkstemp.h: New file, since some standard headers
41850         #define mkstemp.
41851         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
41852         Include "mkstemp.h".
41853         Make the _LIBC code resemble glibc original more,
41854         e.g., use K&R style.
41855         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
41856         (mkstemp): Remove, since mkstemp.h does this for us.
41857         * lib/stdlib--.h: Include mkstemp.h.
41858
41859         Import this patch from libc:
41860
41861         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
41862
41863         * lib/tempname.c (__gen_tempname): Change attempts_min
41864         into a macro.  Use preprocessor to decide how to initialize
41865         attempts [Coverity CID 67].
41866
41867 2006-09-20  Bruno Haible  <bruno@clisp.org>
41868
41869         * lib/mkdtemp.c: Import from libc.
41870         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
41871                 * sysdeps/posix/tempname.c (__gen_tempname): Change
41872                 attempts_min into a macro.  Use preprocessor to decide how to
41873                 initialize attempts [Coverity CID 67].
41874         2001-11-27  Paul Eggert  <eggert@twinsun.com>
41875                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
41876                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
41877
41878 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41879
41880         * gnulib-tool (func_exit): New function, to allow to pass the
41881         exit status portably through the trap.  Use everywhere.
41882         (--help, --version): Signal a write error.
41883         (trap): catch SIGPIPE, for write errors.
41884         Exit at the end of the trap, with the correct exit status.
41885
41886 2006-09-19  Karl Berry  <karl@gnu.org>
41887
41888         * doc/gnulib.texi: note about the license texinfo files.
41889
41890 2006-09-19  Eric Blake  <ebb9@byu.net>
41891
41892         * gnulib-tool: Avoid space-tab.
41893
41894 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
41895
41896         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
41897         that prevented coreutils 6.1 from building.  Problem reported
41898         by Petter Reinholdtsen.
41899
41900 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
41901
41902         * gnulib-tool (avoidlist): Fix typo that broke options like
41903         --avoid=lock that are used by coreutils bootstrap.
41904
41905 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
41906
41907         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
41908         more systematically.
41909
41910 2006-09-18  Jim Meyering  <jim@meyering.net>
41911
41912         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
41913
41914 2006-09-18  Bruno Haible  <bruno@clisp.org>
41915
41916         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
41917
41918 2006-09-18  Bruno Haible  <bruno@clisp.org>
41919
41920         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
41921         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
41922         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
41923         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
41924         * m4/gettext.m4: Require autoconf >= 2.52.
41925         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
41926         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
41927         of gl_cv_header_inttypes_h.
41928
41929 2006-09-18  Bruno Haible  <bruno@clisp.org>
41930
41931         * lib/javaversion.c: Include configmake.h.
41932
41933 2006-09-18  Bruno Haible  <bruno@clisp.org>
41934
41935         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
41936         avoid that the while loops be executed in a subshell.
41937
41938 2006-09-18  Bruno Haible  <bruno@clisp.org>
41939
41940         * MODULES.html.sh (func_module): Break long lines.
41941         Suggested by Bruce Korb <bkorb@gnu.org>.
41942
41943 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41944
41945         Speed up by a factor of 1.12.
41946         * gnulib-tool (nl): New variable.
41947         (func_import): Rewrite include directive extraction to only read each
41948         directive once.
41949
41950 2006-09-17  Bruno Haible  <bruno@clisp.org>
41951
41952         * modules/javaversion (Makefile.am): Remove DEFS setting.
41953         (Depends-on): Add configmake, for PKGDATADIR definition.
41954
41955 2006-09-17  Bruno Haible  <bruno@clisp.org>
41956
41957         * gnulib-tool (func_create_testdir): Rewrite all files at once.
41958
41959 2006-09-17  Bruno Haible  <bruno@clisp.org>
41960
41961         * gnulib-tool (func_append): New function, stolen from libtool.m4.
41962         (func_modules_transitive_closure, func_modules_add_dummy,
41963         func_modules_to_filelist, func_import, func_create_testdir,
41964         func_create_megatestdir, ...): Use it wherever possible.
41965         Suggested by Ralf Wildenhues.
41966
41967 2006-09-16  Karl Berry  <karl@gnu.org>
41968
41969         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
41970         to avoid sectioning errors.
41971         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
41972         [ifinfo]: blank line after @center-ed titles.
41973         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
41974         Spell FSF address consistently with others.
41975         (These changes approved by rms.)
41976
41977 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41978
41979         Speed up by a factor of 1.61.
41980         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
41981         already checked module names again.
41982
41983 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41984
41985         Speed up by a factor of 1.13.
41986         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
41987         for new_files, and the input to func_add_or_update.
41988
41989 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41990
41991         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
41992         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
41993
41994 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
41995
41996         * modules/mkancesdirs (Depends-on): Add fcntl.
41997         * modules/savewd: New file.
41998         * MODULES.html.sh (File system functions): Add savewd.
41999
42000         * modules/configmake (Makefile.am): Add support for the
42001         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
42002
42003 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
42004
42005         * m4/savewd.m4: New file.
42006
42007 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
42008
42009         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
42010         (dirchownmod): New arg FD.  All callers changed.
42011         Use FD rather than opening the directory ourself, as opening is
42012         now the caller's responsibility.
42013         * lib/dirchownmod.h: Likewise.
42014         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
42015         hosts that require <sys/types.h> before <sys/stat.h>.  Include
42016         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
42017         (test_dir): Remove.
42018         (mkancesdirs): Return length of prefix of FILE that has already
42019         been made, or -2 if there is a child doing the work.  Redo
42020         algorithm so that it is O(N) rather than O(N**2).  Optimize away
42021         ".", and treat ".." specially since it might stray back into
42022         already-created areas.  Use a subprocess if necessary.  New arg
42023         WD; all users changed.  MAKE_DIR function should now return 1
42024         if it creates a directory that is not readable.  Return -2 if
42025         a child process is spun off.
42026         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
42027         Adjust signature to match code.
42028         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
42029         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
42030         all users changed.
42031         * lib/savewd.c, lib/savewd.h: New files.
42032
42033 2006-09-15  Jim Meyering  <jim@meyering.net>
42034
42035         * modules/rename-dest-slash: New module.
42036         * MODULES.html.sh (posix_compat): Add it here.
42037
42038         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
42039
42040 2006-09-15  Jim Meyering  <jim@meyering.net>
42041
42042         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
42043         file.
42044
42045         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
42046
42047 2006-09-15  Jim Meyering  <jim@meyering.net>
42048
42049         * lib/rename-dest-slash.c (has_trailing_slash): Use
42050         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
42051         (rpl_rename_dest_slash): Perform the cheaper trailing slash
42052         test before testing whether SRC is a directory.
42053         Suggestions from Bruno Haible.
42054
42055         Avoid a warning about an unused variable.
42056         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
42057         into the #ifdef block where it's used.
42058
42059         * lib/rename-dest-slash.c: New file.
42060
42061 2006-09-14  Bruno Haible  <bruno@clisp.org>
42062
42063         * lib/allocsa.c: Include <config.h> unconditionally.
42064         * lib/asnprintf.c: Likewise.
42065         * lib/asprintf.c: Likewise.
42066         * lib/c-strcasecmp.c: Likewise.
42067         * lib/c-strcasestr.c: Likewise.
42068         * lib/c-strncasecmp.c: Likewise.
42069         * lib/c-strstr.c: Likewise.
42070         * lib/classpath.c: Likewise.
42071         * lib/clean-temp.c: Likewise.
42072         * lib/concatpath.c: Likewise.
42073         * lib/copy-file.c: Likewise.
42074         * lib/csharpcomp.c: Likewise.
42075         * lib/csharpexec.c: Likewise.
42076         * lib/execute.c: Likewise.
42077         * lib/fatal-signal.c: Likewise.
42078         * lib/findprog.c: Likewise.
42079         * lib/fwriteerror.c: Likewise.
42080         * lib/gl_array_list.c: Likewise.
42081         * lib/gl_array_oset.c: Likewise.
42082         * lib/gl_avltree_list.c: Likewise.
42083         * lib/gl_avltree_oset.c: Likewise.
42084         * lib/gl_avltreehash_list.c: Likewise.
42085         * lib/gl_carray_list.c: Likewise.
42086         * lib/gl_linked_list.c: Likewise.
42087         * lib/gl_linkedhash_list.c: Likewise.
42088         * lib/gl_list.c: Likewise.
42089         * lib/gl_oset.c: Likewise.
42090         * lib/gl_rbtree_list.c: Likewise.
42091         * lib/gl_rbtree_oset.c: Likewise.
42092         * lib/gl_rbtreehash_list.c: Likewise.
42093         * lib/imaxabs.c: Likewise.
42094         * lib/imaxdiv.c: Likewise.
42095         * lib/javacomp.c: Likewise.
42096         * lib/javaexec.c: Likewise.
42097         * lib/javaversion.c: Likewise.
42098         * lib/linebreak.c: Likewise.
42099         * lib/localcharset.c: Likewise.
42100         * lib/lock.c: Likewise.
42101         * lib/mbchar.c: Likewise.
42102         * lib/mbswidth.c: Likewise.
42103         * lib/mkdtemp.c: Likewise.
42104         * lib/pipe.c: Likewise.
42105         * lib/printf-args.c: Likewise.
42106         * lib/printf-parse.c: Likewise.
42107         * lib/progname.c: Likewise.
42108         * lib/progreloc.c: Likewise.
42109         * lib/readlink.c: Likewise.
42110         * lib/sh-quote.c: Likewise.
42111         * lib/stpcpy.c: Likewise.
42112         * lib/stpncpy.c: Likewise.
42113         * lib/strcasecmp.c: Likewise.
42114         * lib/strcasestr.c: Likewise.
42115         * lib/strcspn.c: Likewise.
42116         * lib/striconv.c: Likewise.
42117         * lib/strncasecmp.c: Likewise.
42118         * lib/strnlen1.c: Likewise.
42119         * lib/strstr.c: Likewise.
42120         * lib/strtok_r.c: Likewise.
42121         * lib/tls.c: Likewise.
42122         * lib/tmpdir.c: Likewise.
42123         * lib/unicodeio.c: Likewise.
42124         * lib/unsetenv.c: Likewise.
42125         * lib/vasnprintf.c: Likewise.
42126         * lib/vasprintf.c: Likewise.
42127         * lib/wait-process.c: Likewise.
42128         * lib/xallocsa.c: Likewise.
42129         * lib/xsetenv.c: Likewise.
42130         * lib/xstriconv.c: Likewise.
42131
42132 2006-09-13  Simon Josefsson  <jas@extundo.com>
42133
42134         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
42135         that internally, suggested by Ralf Wildenhues
42136         <Ralf.Wildenhues@gmx.de>.
42137
42138 2006-09-13  Simon Josefsson  <jas@extundo.com>
42139
42140         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
42141         @LIBOBJS@.
42142         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
42143
42144 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
42145
42146         * lib/_fpending.c: Include <config.h> unconditionally, since we no
42147         longer worry about uses that don't define HAVE_CONFIG_H.
42148         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
42149         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
42150         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
42151         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
42152         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
42153         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
42154         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
42155         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
42156         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
42157         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
42158         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
42159         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
42160         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
42161         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
42162         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
42163         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
42164         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
42165         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
42166         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
42167         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
42168         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
42169         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
42170         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
42171         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
42172         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
42173         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
42174         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
42175         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
42176         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
42177         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
42178         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
42179         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
42180         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
42181         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
42182         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
42183         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
42184         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
42185         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
42186         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
42187         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
42188         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
42189         Likewise.
42190
42191 2006-09-13  Eric Blake  <ebb9@byu.net>
42192
42193         * lib/getopt.c: Fix typo in last commit.
42194
42195 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
42196
42197         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
42198         dgettext.
42199
42200 2006-09-12  Jim Meyering  <jim@meyering.net>
42201
42202         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
42203         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
42204         Reported by Nelson H. F. Beebe.
42205
42206 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
42207
42208         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
42209         program_invocation_name and program_invocation_short_name are
42210         initialized.
42211         * lib/argp-namefrob.h: Move declarations of program_invocation_name
42212         and program_invocation_short_name to argp.h, so they are visible
42213         to user programs.
42214         * lib/argp.h: Likewise
42215
42216 2006-09-10  Bruno Haible  <bruno@clisp.org>
42217
42218         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
42219         m4/inttypes_h.m4, m4/uintmax_t.m4.
42220
42221 2006-09-10  Bruno Haible  <bruno@clisp.org>
42222
42223         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
42224         gl_AC_TYPE_UINTMAX_T.
42225
42226 2006-09-10  Bruno Haible  <bruno@clisp.org>
42227
42228         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
42229
42230 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
42231
42232         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
42233         convention.  Text proposed by Bruno Haible.
42234         (struct argp_option): Document the use of N_() wrappers.
42235
42236         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
42237         '\v', and translate the two parts separately, instead of feeding
42238         the whole string to gettext.  This allows to exclude
42239         '\v' from the strings visible to the translator by writing doc
42240         strings as N_("..") "\v" N_("..").
42241
42242 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
42243
42244         * config/srclist.txt: Undo latest change; the bug was fixed.
42245
42246 2006-09-09  Bruno Haible  <bruno@clisp.org>
42247
42248         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
42249         assignments if building a library without libtool.
42250         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
42251         in func_emit_lib_Makefile_am.
42252         (func_import): When building a static library libfoo.a, arrange to
42253         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
42254         (func_create_testdir): Likewise.
42255         * modules/gc (configure.ac, Makefile.am): If building statically,
42256         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
42257         * modules/iconvme (configure.ac, Makefile.am): Likewise.
42258         * modules/striconv (configure.ac, Makefile.am): Likewise.
42259         Based on a suggestion by Ralf Wildenhues.
42260
42261 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
42262
42263         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
42264         Check for unistd.h too, since Autoconf doesn't assume POSIX.
42265         Also:
42266
42267         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
42268         Add year_2050_test to catch glibc bug 2821
42269         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
42270
42271         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
42272         Prefer #ifdef to #if.
42273
42274         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
42275         Return from 'main' instead of calling 'exit'.
42276
42277 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
42278
42279         * lib/mktime.c (guess_time_tm): Fix bug where mktime
42280         returned the maximum time_t value rather than (time_t) -1.
42281         Problem originally reported by William Bardwell
42282         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
42283
42284         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
42285         Moved to here ...
42286         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
42287         ... from here.
42288
42289 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
42290
42291         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
42292         2821 is fixed.
42293
42294 2006-09-08  Jim Meyering  <jim@meyering.net>
42295
42296         Don't make generated files read-only.  That would bother too many
42297         people.  However, do retain the ability to work when targets are
42298         read-only: remove the destination and temporary files before writing
42299         them (when generated via sed or echo), or by using the -f option for
42300         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
42301         * modules/alloca-opt, modules/argz, modules/arpa_inet:
42302         * modules/byteswap, modules/configmake, modules/fcntl:
42303         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
42304         * modules/localcharset, modules/netinet_in, modules/poll:
42305         * modules/stdbool, modules/stdint, modules/sys_select:
42306         * modules/sys_socket, modules/sys_stat, modules/sysexits:
42307
42308 2006-09-08  Jim Meyering  <jim@meyering.net>
42309
42310         Avoid new build failure on FreeBSD 6.0.
42311         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
42312         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
42313         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
42314
42315 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42316
42317         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
42318
42319 2006-09-07  Jim Meyering  <jim@meyering.net>
42320
42321         Fix global typo in last change: use chmod u-w, not chmod u-x.
42322         Spotted by Paul Eggert and Bruce Korb.
42323         * modules/alloca-opt, modules/argz, modules/arpa_inet:
42324         * modules/byteswap, modules/configmake, modules/fcntl:
42325         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
42326         * modules/localcharset, modules/netinet_in, modules/poll:
42327         * modules/stdbool, modules/stdint, modules/sys_select:
42328         * modules/sys_socket, modules/sys_stat, modules/sysexits:
42329
42330 2006-09-06  Jim Meyering  <jim@meyering.net>
42331
42332         Make generated files be read-only.
42333         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
42334         Ensure that each generated file is now read-only.
42335         * modules/argz: Likewise.
42336         * modules/arpa_inet: Likewise.
42337         * modules/byteswap: Likewise.
42338         * modules/configmake: Likewise.
42339         * modules/fcntl: Likewise.
42340         * modules/fnmatch: Likewise.
42341         * modules/getopt: Likewise.
42342         * modules/glob: Likewise.
42343         * modules/inttypes: Likewise.
42344         * modules/netinet_in: Likewise.
42345         * modules/poll: Likewise.
42346         * modules/stdbool: Likewise.
42347         * modules/stdint: Likewise.
42348         * modules/sys_select: Likewise.
42349         * modules/sys_socket: Likewise.
42350         * modules/sys_stat: Likewise.
42351         * modules/sysexits: Likewise.
42352         * modules/localcharset: Same as above, but continue using temporary
42353         file named "t-$@" (why different?) rather than the "$@-t" used
42354         everywhere else.
42355
42356         * modules/sysexits (Makefile.am): Replace literal occurrences
42357         of "sysexit.h" more readable, and more consistent, "$@".
42358
42359 2006-09-06  Bruno Haible  <bruno@clisp.org>
42360
42361         * modules/striconv: New file.
42362         * modules/xstriconv: New file.
42363         * MODULES.html.sh (Internationalization functions): Add striconv,
42364         xstriconv.
42365
42366 2006-09-06  Bruno Haible  <bruno@clisp.org>
42367
42368         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
42369         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
42370         not using libtool correctly.
42371
42372 2006-09-06  Bruno Haible  <bruno@clisp.org>
42373
42374         * lib/striconv.h: New file.
42375         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
42376         iconvstring.c.
42377         * lib/xstriconv.h: New file.
42378         * lib/xstriconv.c: New file.
42379
42380 2006-09-06  Bruno Haible  <bruno@clisp.org>
42381
42382         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
42383         lib_..._LDFLAGS.
42384
42385 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42386
42387         * lib/argz_.h: Sync from Libtool.
42388
42389         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
42390                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42391
42392         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
42393
42394 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
42395
42396         * modules/trim: New file.
42397
42398 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
42399
42400         * lib/trim.h: New file.
42401         * lib/trim.c: New file.
42402
42403 2006-09-05  Bruno Haible  <bruno@clisp.org>
42404
42405         * MODULES.html.sh (String handling): Add trim.
42406
42407 2006-09-04  Karl Berry  <karl@gnu.org>
42408
42409         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
42410         until next release.
42411
42412 2006-09-03  Bruno Haible  <bruno@clisp.org>
42413
42414         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
42415         correctly.
42416
42417 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
42418
42419         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
42420         not gl_GETLOADAVG.  Omit unneeded semicolons.
42421         Problems reported by Ralf Wildenhues in
42422         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
42423         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
42424         at the end, which is the usual gnulib style.
42425
42426         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
42427         of doing all the work ourselves.
42428         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
42429         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
42430
42431 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
42432
42433         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
42434         Problem reported by Ralf Wildenhues in
42435         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
42436
42437         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
42438         HAVE_STRUCT_STATFS_F_FSTYPENAME.
42439
42440 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
42441
42442         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
42443         yesterday's patch by changing test -n to test -z.
42444
42445 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
42446
42447         * modules/getloadavg (Files): Add m4/getloadavg.m4.
42448         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
42449         the former is now obsolescent.
42450
42451         * modules/chdir-long (Depends-on): Add fcntl.
42452
42453 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
42454
42455         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
42456         obsolescent, and programs should use gnulib instead.
42457         * m4/getloadavg.m4: New file, with contents taken from Autoconf
42458         but with prefixes changed.
42459
42460 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
42461
42462         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
42463         or stdbool.h, because they might not exist while configuring.
42464
42465         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
42466         Don't include unistd.h or limits.h; not needed, since chdir-long.h
42467         does that for us.
42468         (O_DIRECTORY): Remove.
42469
42470 2006-08-31  Eric Blake  <ebb9@byu.net>
42471
42472         * gnulib-tool: Don't let emacs change spaces to TAB.
42473
42474 2006-08-31  Bruno Haible  <bruno@clisp.org>
42475
42476         * gnulib-tool: When calling func_import more than once, do it in a
42477         subshell.
42478         Reported by Eric Blake <ebb9@byu.net>.
42479
42480 2006-08-31  Bruno Haible  <bruno@clisp.org>
42481
42482         * gnulib-tool (nl): Remove variable.
42483         (sed_transform_lib_file): Use more robust test for config-h module.
42484         (func_import): Fix typo in 2006-08-25 patch.
42485
42486 2006-08-31  Bruno Haible  <bruno@clisp.org>
42487
42488         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
42489         specified, augment Makefile.am variables instead of assigning them.
42490
42491 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
42492
42493         Work around a bug in both the Linux and SunOS 64-bit kernels:
42494         nanosleep mishandles sleeps for longer than 2**31 seconds.
42495         Problem reported by Frank v Waveren in
42496         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
42497         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
42498         Check for nanosleep bug.
42499         (LIB_NANOSLEEP): Append clock_gettime library if needed.
42500
42501 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
42502
42503         Work around a bug in both the Linux and SunOS 64-bit kernels:
42504         nanosleep mishandles sleeps for longer than 2**31 seconds.
42505         Problem reported by Frank v Waveren in
42506         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
42507         * lib/nanosleep.c (BILLION): New constant.
42508         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
42509         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
42510         implementation.
42511
42512 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
42513
42514         * modules/nanosleep (Depends-on): Add gettime.
42515
42516 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
42517         and Simon Josefsson  <jas@extundo.com>
42518         and Oskar Liljeblad  <oskar@osk.mine.nu>
42519
42520         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
42521         * gnulib-tool (func_import): New license type 'unmodifiable license
42522         text'.
42523         * modules/fdl: Use it.  Longer description.
42524         * module/gpl, module/lgpl: New files.
42525
42526 2006-08-30  Jim Meyering  <jim@meyering.net>
42527
42528         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
42529         shadowing the parameter.
42530
42531 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42532
42533         Sync from Libtool:
42534
42535         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42536
42537         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
42538         sharing with gnulib.  Report by Eric Blake.
42539
42540 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
42541
42542         * modules/isapipe: New file.
42543         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
42544
42545 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
42546
42547         * modules/configmake (Makefile.am): Add a comment, and omit
42548         the CONFIGMAKE_ prefix from generated macro names.  Suggested
42549         by Bruno Haible.
42550
42551 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
42552
42553         * m4/isapipe.m4: New file.
42554
42555 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
42556
42557         * lib/isapipe.c, lib/isapipe.h: New files.
42558
42559 2006-08-29  Jim Meyering  <jim@meyering.net>
42560
42561         * modules/configmake (Makefile.am): Make configmake.h depend on
42562         Makefile.  Otherwise, a stale configmake.h could hang around.
42563
42564 2006-08-29  Eric Blake  <ebb9@byu.net>
42565
42566         * lib/error.c (error_at_line, print_errno_message): Match libc, after
42567         resolution of upstream bug 3044.
42568
42569 2006-08-29  Bruno Haible  <bruno@clisp.org>
42570
42571         * modules/localcharset (Depends-on): Add configmake.
42572         (Makefile.am): Remove setting of LIBDIR through DEFS.
42573
42574 2006-08-29  Bruno Haible  <bruno@clisp.org>
42575
42576         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
42577         defined.
42578
42579 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
42580
42581         * modules/fcntl: New file.
42582         * modules/chdir-safer (Depends-on): Add fcntl.
42583         * modules/fts: Likewise.
42584         * modules/mkdir-p: Likewise.
42585
42586         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
42587         This undoes the most recent change, since we're now addressing the
42588         problem in a different way.
42589
42590         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
42591         into output, since the output might be called Makefile.am even
42592         if $makefile_name is something different.
42593         (func_import): Use $makefile_am rather than
42594         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
42595         empty.
42596
42597         * modules/inttypes (Files): Add m4/inttypes-h.m4.
42598
42599 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
42600
42601         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
42602         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
42603         recent change to stdint.m4, since we're now addressing the problem in a
42604         different way.
42605
42606 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
42607
42608         * m4/fcntl_h.m4: New file.
42609
42610 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
42611
42612         * lib/fcntl_.h: New file.
42613         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
42614         the fcntl module.
42615         * lib/dirchownmod.c: Likewise.
42616         * lib/fts.c: Likewise.
42617
42618         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
42619         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
42620         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
42621         just before including <inttypes.h>, to avoid circular inclusion.
42622
42623 2006-08-28  Jim Meyering  <jim@meyering.net>
42624
42625         * doc/visibility.texi: Actually read and correct the grammar of the
42626         sentence affected by yesterday's change.
42627
42628 2006-08-28  Eric Blake  <ebb9@byu.net>
42629
42630         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
42631         needs wrapper.
42632
42633 2006-08-28  Eric Blake  <ebb9@byu.net>
42634
42635         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
42636
42637 2006-08-28  Eric Blake  <ebb9@byu.net>
42638
42639         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
42640
42641 2006-08-28  Bruno Haible  <bruno@clisp.org>
42642
42643         * modules/c-strstr: New file, from GNU gettext.
42644         * MODULES.html.sh (String handling): Add c-strstr.
42645
42646 2006-08-28  Bruno Haible  <bruno@clisp.org>
42647
42648         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
42649         macros.
42650         Reported by Eric Blake.
42651
42652 2006-08-28  Bruno Haible  <bruno@clisp.org>
42653
42654         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
42655         (VASNPRINTF): Return a string of length > INT_MAX without failing.
42656         * lib/vasprintf.c: Include errno.h, limits.h.
42657         (EOVERFLOW): New fallback definition.
42658         (vasprintf): Test here whether the string length is > INT_MAX.
42659         * lib/vsnprintf.c: Include errno.h, limits.h.
42660         (EOVERFLOW): New fallback definition.
42661         (vsnprintf): Fix bug when generated string was too long for the buffer.
42662         Test here whether the string length is > INT_MAX.
42663
42664 2006-08-28  Bruno Haible  <bruno@clisp.org>
42665
42666         * lib/inttypes_.h (SCNX*): Remove definitions.
42667         Reported by Eric Blake.
42668
42669 2006-08-28  Bruno Haible  <bruno@clisp.org>
42670
42671         * lib/c-strstr.h: New file, from GNU gettext.
42672         * lib/c-strstr.c: New file, from GNU gettext.
42673
42674 2006-08-28  Bruno Haible  <bruno@clisp.org>
42675
42676         * gnulib-tool: Reorder some statements.
42677
42678 2006-08-28  Bruno Haible  <bruno@clisp.org>
42679
42680         * gnulib-tool: New option --makefile-name.
42681         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
42682         $makefile_name.
42683         (func_import): Write $makefile_name to the cache file, and read it from
42684         there unless explicitly specified. Use $makefile_name as file name
42685         instead of Makefile.am. Adjust the recommendations accordingly.
42686
42687 2006-08-28  Bruno Haible  <bruno@clisp.org>
42688
42689         * gnulib-tool (func_verify_module): Check against misapplying patch.
42690
42691 2006-08-28  Bruno Haible  <bruno@clisp.org>
42692
42693         * gnulib-tool (func_relativize, func_relconcat): New functions.
42694         Give an error if --local-dir is given with --update.
42695         Remove trailing slashes from $local_gnulib_dir.
42696         (func_import): Store the relativized $local_gnulib_dir in
42697         gnulib-cache.m4, and read it from there if not specified explicitly.
42698
42699 2006-08-28  Bruno Haible  <bruno@clisp.org>
42700
42701         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
42702         is the current directory. Respect also $local_gnulib_dir.
42703
42704 2006-08-28  Bruno Haible  <bruno@clisp.org>
42705             Simon Josefsson  <jas@extundo.com>
42706
42707         BeOS portability.
42708         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
42709
42710 2006-08-27  Jim Meyering  <jim@meyering.net>
42711
42712         * doc/visibility.texi: Remove duplicate word: "pointer".
42713
42714 2006-08-26  Bruno Haible  <bruno@clisp.org>
42715
42716         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
42717         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
42718         (Makefile.am): Create inttypes.h from inttypes_.h.
42719         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
42720
42721         * modules/imaxabs: New file.
42722
42723         * modules/imaxdiv: New file.
42724
42725 2006-08-26  Bruno Haible  <bruno@clisp.org>
42726
42727         * m4/inttypes.m4: New file.
42728         * m4/_inttypes_h.m4: Remove file.
42729         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
42730         PRI_MACROS_BROKEN.
42731         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
42732
42733         * m4/imaxabs.m4: New file.
42734
42735         * m4/imaxdiv.m4: New file.
42736
42737 2006-08-26  Bruno Haible  <bruno@clisp.org>
42738
42739         * lib/inttypes_.h: New file.
42740         * lib/inttypes.h: Remove file.
42741         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
42742
42743         * lib/imaxabs.c: New file.
42744
42745         * lib/imaxdiv.c: New file.
42746
42747 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
42748
42749         New config-h module, so that "make" output needn't be cluttered
42750         by -DHAVE_CONFIG_H.
42751         * MODULES.html.sh (Support for building libraries and executables):
42752         Add config-h.
42753         * modules/config-h: New file.
42754         * gnulib-tool (nl, sed_transform_lib_file): New vars.
42755         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
42756         the config-h module is used.
42757
42758         New configmake module, so that "make" output needn't be cluttered
42759         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
42760         * MODULES.html.sh (Support for building libraries and executables):
42761         Add configmake.
42762         * modules/configmake: New file.
42763
42764 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
42765
42766         * m4/config-h.m4: New file.
42767
42768 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
42769
42770         * config/srclist.txt: Add elisp-comp.
42771
42772 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
42773
42774         * MODULES.html.sh (Support for building libraries and executables):
42775         Add elisp-comp.
42776         * build-aux/elisp-comp: New file.
42777         * modules/elisp-comp: New file.
42778
42779 2006-08-24  Bruno Haible  <bruno@clisp.org>
42780
42781         * gnulib-tool (func_create_testdir): Use non-default values of
42782         sourcebase and m4base.
42783
42784 2006-08-24  Bruno Haible  <bruno@clisp.org>
42785
42786         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
42787         HTML structure.
42788
42789 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
42790
42791         * modules/openat (Depends-on): Add lchown.
42792
42793 2006-08-23  Bruno Haible  <bruno@clisp.org>
42794
42795         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
42796         of gl_LOCK_EARLY instead of gl_LOCK.
42797
42798 2006-08-23  Bruno Haible  <bruno@clisp.org>
42799
42800         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
42801         on OSF/1 to no.
42802         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
42803
42804 2006-08-23  Bruno Haible  <bruno@clisp.org>
42805
42806         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
42807         as unusable.
42808
42809         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
42810         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
42811         (gl_LOCK): New macro.
42812
42813 2006-08-22  Simon Josefsson  <jas@extundo.com>
42814
42815         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
42816         to md5 module.
42817
42818 2006-08-22  Simon Josefsson  <jas@extundo.com>
42819
42820         * MODULES.html.sh: Add "Support for maintaining and release
42821         projects".
42822
42823         * build-aux/gnupload: New file, from coreutils.
42824
42825 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
42826
42827         Avoid the need for AC_LIBSOURCES in m4 macros.
42828         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
42829         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
42830         * modules/check-version (EXTRA_DIST): Add check-version.h.
42831         * modules/crc (EXTRA_DIST): Add crc.h.
42832         * modules/des (EXTRA_DIST): Add des.h.
42833         * modules/gc (EXTRA_DIST): Add gc.h.
42834         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
42835         * modules/getline (EXTRA_DIST): Add getline.h.
42836         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
42837         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
42838         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
42839         * modules/md2 (EXTRA_DIST): Add md2.h.
42840         * modules/md4 (EXTRA_DIST): Add md4.h.
42841         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
42842         * modules/read-file (EXTRA_DIST): Add read-file.h.
42843         * modules/readline (EXTRA_DIST): Add readline.h.
42844         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
42845         rijndael-api-fst.h.
42846
42847 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
42848
42849         * m4/rijndael.m4 (gl_ARCFOUR):
42850         * m4/arctwo.m4 (gl_ARCTWO):
42851         * m4/check-version.m4 (gl_CHECK_VERSION):
42852         * m4/crc.m4 (gl_CRC):
42853         * m4/des.m4 (gl_DES):
42854         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
42855         * m4/gc.m4 (gl_GC):
42856         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
42857         * m4/getline.m4 (gl_FUNC_GETLINE):
42858         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
42859         * m4/hmac-md5.m4 (gl_HMAC_MD5):
42860         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
42861         * m4/md2.m4 (gl_MD2):
42862         * m4/md4.m4 (gl_MD4):
42863         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
42864         * m4/read-file.m4 (gl_FUNC_READ_FILE):
42865         * m4/readline.m4 (gl_FUNC_READLINE):
42866         * m4/rijndael.m4 (gl_RIJNDAEL):
42867         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
42868         to get the necessary .h files and whatnot.
42869
42870 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
42871
42872         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
42873         gnulib rather than the other way around.
42874         * config/srclistvars.sh (COREUTILS): Remove.
42875
42876 2006-08-22  Jim Meyering  <jim@meyering.net>
42877
42878         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
42879
42880         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
42881
42882 2006-08-22  Eric Blake  <ebb9@byu.net>
42883
42884         * modules/regexprops-generic: New file.
42885         * MODULES.html.sh (Support for building documentation): List it.
42886
42887 2006-08-22  Eric Blake  <ebb9@byu.net>
42888
42889         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
42890         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
42891         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
42892         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
42893
42894 2006-08-22  Bruno Haible  <bruno@clisp.org>
42895
42896         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
42897         and lib_LTLIBRARIES like the other lib_* variables.
42898
42899 2006-08-22  Bruno Haible  <bruno@clisp.org>
42900
42901         * build-aux/x-to-1.in: New file, from GNU gettext.
42902
42903 2006-08-22  Bruno Haible  <bruno@clisp.org>
42904
42905         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
42906         <utmpx.h> exists.
42907
42908 2006-08-22  Bruno Haible  <bruno@clisp.org>
42909
42910         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
42911         <utmpx.h> exists.
42912
42913 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
42914
42915         BeOS portability.
42916         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
42917         exist.
42918         Problem reported by Bruno Haible.
42919
42920 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
42921
42922         Avoid the need for AC_LIBSOURCES in m4 macros.
42923         * modules/acl (EXTRA_DIST): Add acl.h.
42924         * modules/argmatch (Files): Add m4/argmatch.m4.
42925         (configure.ac): Add gl_ARGMATCH.
42926         (EXTRA_DIST): Renamed from lib_SOURCES, for
42927         consistency with the other modules.  Remove argmatch.c.
42928         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
42929         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
42930         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
42931         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
42932         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
42933         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
42934         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
42935         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
42936         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
42937         * modules/closeout (EXTRA_DIST): Add closeout.h.
42938         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
42939         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
42940         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
42941         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
42942         dirname.h; remove basename.c and stripslash.c.
42943         * modules/exclude (EXTRA_DIST): Add exclude.h.
42944         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
42945         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
42946         * modules/file-type (EXTRA_DIST): Add file-type.h.
42947         * modules/filemode (EXTRA_DIST): Add filemode.h.
42948         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
42949         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
42950         * modules/fpending (EXTRA_DIST): Add __fpending.h.
42951         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
42952         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
42953         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
42954         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
42955         * modules/getdate (EXTRA_DIST): Add getdate.c.
42956         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
42957         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
42958         * modules/getpass (EXTRA_DIST): Add getpass.h.
42959         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
42960         * modules/group-member (EXTRA_DIST): Add group-member.h.
42961         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
42962         * modules/hash (EXTRA_DIST): Add hash.h.
42963         * modules/human (EXTRA_DIST): Add human.h.
42964         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
42965         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
42966         * modules/lchown (EXTRA_DIST): Add lchown.h.
42967         * modules/long-options (EXTRA_DIST): Add long-options.h.
42968         * modules/lstat (EXTRA_DIST): Add lstat.h.
42969         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
42970         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
42971         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
42972         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
42973         * modules/memxor (EXTRA_DIST): Add memxor.h.
42974         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
42975         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
42976         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
42977         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
42978         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
42979         * modules/physmem (EXTRA_DIST): Add physmem.h.
42980         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
42981         * modules/posixver (EXTRA_DIST): Add posixver.h.
42982         * modules/quote (EXTRA_DIST): Add quote.h.
42983         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
42984         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
42985         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
42986         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
42987         regex_internal.h regexec.c.
42988         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
42989         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
42990         * modules/same (EXTRA_DIST): Add same.h.
42991         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
42992         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
42993         * modules/savedir (EXTRA_DIST): Add savedir.h.
42994         * modules/sha1 (EXTRA_DIST): Add sha1.h.
42995         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
42996         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
42997         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
42998         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
42999         * modules/strdup (EXTRA_DIST): Add strdup.h.
43000         * modules/strftime (EXTRA_DIST): Add strftime.h.
43001         * modules/strndup (EXTRA_DIST): Add strndup.h.
43002         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
43003         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
43004         * modules/time_r (EXTRA_DIST): Add time_r.h.
43005         * modules/timespec (EXTRA_DIST): Add timespec.h.
43006         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
43007         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
43008         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
43009         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
43010         * modules/userspec (EXTRA_DIST): Add userspec.h.
43011         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
43012         * modules/utimens (EXTRA_DIST): Add utimens.h.
43013         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
43014         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
43015         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
43016         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
43017         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
43018         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
43019         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
43020         * modules/yesno (EXTRA_DIST): Add yesno.h.
43021
43022 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
43023
43024         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
43025
43026         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
43027         * m4/dev-ino.m4, same-inode.m4: Remove.
43028
43029         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
43030         * m4/acl.m4 (AC_FUNC_ACL):
43031         * m4/backupfile.m4 (gl_BACKUPFILE):
43032         * m4/c-strtod.m4 (gl_C99_STRTOLD):
43033         * m4/canon-host.m4 (gl_CANON_HOST):
43034         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
43035         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
43036         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
43037         * m4/cloexec.m4 (gl_CLOEXEC):
43038         * m4/close-stream.m4 (gl_CLOSE_STREAM):
43039         * m4/closeout.m4 (gl_CLOSEOUT):
43040         * m4/dirfd.m4 (gl_FUNC_DIRFD):
43041         * m4/dirname.m4 (gl_DIRNAME):
43042         * m4/exclude.m4 (gl_EXCLUDE):
43043         * m4/exitfail.m4 (gl_EXITFAIL):
43044         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
43045         * m4/file-type.m4 (gl_FILE_TYPE):
43046         * m4/filemode.m4 (gl_FILEMODE):
43047         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
43048         * m4/fpending.m4 (gl_FUNC_FPENDING):
43049         * m4/fprintftime.m4 (gl_FPRINTFTIME):
43050         * m4/fts.m4 (gl_FUNC_FTS):
43051         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
43052         * m4/getdate.m4 (gl_GETDATE):
43053         * m4/gethrxtime.m4 (gl_GETHRXTIME):
43054         * m4/getpagesize.m4 (gl_GETPAGESIZE):
43055         * m4/getpass.m4 (gl_FUNC_GETPASS):
43056         * m4/gettime.m4 (gl_GETTIME):
43057         * m4/getugroups.m4 (gl_GETUGROUPS):
43058         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
43059         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
43060         * m4/hard-locale.m4 (gl_HARD_LOCALE):
43061         * m4/hash.m4 (gl_HASH):
43062         * m4/idcache.m4 (gl_IDCACHE):
43063         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
43064         * m4/lchown.m4 (gl_FUNC_LCHOWN):
43065         * m4/long-options.m4 (gl_LONG_OPTIONS):
43066         * m4/lstat.m4 (gl_FUNC_LSTAT):
43067         * m4/md5.m4 (gl_MD5):
43068         * m4/memcasecmp.m4 (gl_MEMCASECMP):
43069         * m4/memcoll.m4 (gl_MEMCOLL):
43070         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
43071         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
43072         * m4/memxor.m4 (gl_MEMXOR):
43073         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
43074         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
43075         * m4/modechange.m4 (gl_MODECHANGE):
43076         * m4/mountlist.m4 (gl_MOUNTLIST):
43077         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
43078         * m4/openat.m4 (gl_FUNC_OPENAT):
43079         * m4/pathmax.m4 (gl_PATHMAX):
43080         * m4/physmem.m4 (gl_PHYSMEM):
43081         * m4/posixtm.m4 (gl_POSIXTM):
43082         * m4/posixver.m4 (gl_POSIXVER):
43083         * m4/quote.m4 (gl_QUOTE):
43084         * m4/quotearg.m4 (gl_QUOTEARG):
43085         * m4/readtokens.m4 (gl_READTOKENS):
43086         * m4/readutmp.m4 (gl_READUTMP):
43087         * m4/regex.m4 (gl_REGEX):
43088         * m4/safe-read.m4 (gl_SAFE_READ):
43089         * m4/safe-write.m4 (gl_SAFE_WRITE):
43090         * m4/same.m4 (gl_SAME):
43091         * m4/save-cwd.m4 (gl_SAVE_CWD):
43092         * m4/savedir.m4 (gl_SAVEDIR):
43093         * m4/settime.m4 (gl_SETTIME):
43094         * m4/sha1.m4 (gl_SHA1):
43095         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
43096         * m4/stat-macros.m4 (gl_STAT_MACROS):
43097         * m4/stat-time.m4 (gl_STAT_TIME):
43098         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
43099         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
43100         * m4/strdup.m4 (gl_FUNC_STRDUP):
43101         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
43102         * m4/strndup.m4 (gl_FUNC_STRNDUP):
43103         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
43104         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
43105         * m4/time_r.m4 (gl_TIME_R):
43106         * m4/timespec.m4 (gl_TIMESPEC):
43107         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
43108         * m4/unlinkdir.m4 (gl_UNLINKDIR):
43109         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
43110         * m4/userspec.m4 (gl_USERSPEC):
43111         * m4/utimecmp.m4 (gl_UTIMECMP):
43112         * m4/utimens.m4 (gl_UTIMENS):
43113         * m4/xalloc.m4 (gl_XALLOC):
43114         * m4/xgetcwd.m4 (gl_XGETCWD):
43115         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
43116         * m4/xreadlink.m4 (gl_XREADLINK):
43117         * m4/xstrtod.m4 (gl_XSTRTOD):
43118         * m4/yesno.m4 (gl_YESNO):
43119         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
43120         to get the necessary .h files and whatnot.
43121
43122 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
43123             Bruno Haible  <bruno@clisp.org>
43124
43125         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
43126         /bin/sh understanding of '!' conditional negation.
43127
43128 2006-08-21  Jim Meyering  <jim@meyering.net>
43129
43130         * modules/openat (Depends-on): Really alphabetize.
43131
43132         * modules/acl (Depends-on): Add error and quote.
43133
43134         * check-module (find_included_lib_files): Add at-func.c to the
43135         ok-to-include-more-than-once white list.
43136
43137         * modules/openat (Depends-on): Add lstat.  Alphabetize.
43138
43139 2006-08-21  Bruno Haible  <bruno@clisp.org>
43140
43141         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
43142         Emit a pkgdata_DATA variable only if some snippets add contents to it.
43143         Reported by Martin Lambers <marlam@marlam.de>.
43144
43145 2006-08-21  Bruno Haible  <bruno@clisp.org>
43146
43147         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
43148         specify an installation location, don't emit a noinst_LIBRARIES or
43149         noinst_LTLIBRARIES assignment.
43150
43151 2006-08-21  Bruno Haible  <bruno@clisp.org>
43152
43153         BeOS portability.
43154         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
43155         BeOS has mbrtowc() but no <wctype.h>.
43156
43157 2006-08-21  Bruno Haible  <bruno@clisp.org>
43158
43159         BeOS portability.
43160         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
43161         exist.
43162
43163 2006-08-21  Bruno Haible  <bruno@clisp.org>
43164
43165         BeOS portability.
43166         * lib/mbchar.h: Include <wctype.h> only if it exists.
43167
43168 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
43169
43170         Remove files that are no longer needed by their respective modules.
43171         * m4/obstack.m4: Remove.
43172         * m4/strerror_r.m4: Remove.
43173         * m4/uint32_t.m4: Remove.
43174         * m4/uintptr_t.m4: Remove.
43175         * m4/ullong_max.m4: Remove.
43176         * m4/xstrtoimax.m4: Remove.
43177         * m4/xstrtoumax.m4: Remove.
43178
43179         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
43180         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
43181         dependencies now capture this.
43182
43183         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
43184         Do not use AC_LIBSOURCES, since gnulib modules now do this.
43185         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
43186         * m4/human.m4 (gl_HUMAN): Likewise.
43187         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
43188         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
43189
43190         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
43191
43192         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
43193         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
43194         stdint.
43195         * m4/human.m4 (gl_HUMAN): Likewise.
43196         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
43197         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
43198         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
43199         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
43200         * m4/xstrtol (gl_XSTRTOL): Likewise.
43201
43202         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
43203         AC_TYPE_LONG_LONG_INT.
43204         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
43205         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
43206         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
43207         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
43208
43209         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
43210         on stdbool.
43211
43212         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
43213         (gl_PREREQ_XSTRTOUL): Remove.
43214
43215         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
43216
43217         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
43218         mode.
43219
43220 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
43221
43222         Add and change modules to make it easier for coreutils to use
43223         gnulib-tool.
43224         * modules/backupfile (Files): Remove m4/d-ino.m4.
43225         (Depends-on): Add d-ino.
43226         * modules/cycle-check (Depends-on): Add stdint.
43227         (lib_SOURCES): Add cycle-check.h.
43228         * modules/d-ino: New module.
43229         * modules/d-type: New module.
43230         * modules/error (Files): Remove m4/strerror_r.m4.
43231         * modules/filemode (Files): Add m4/st_dm_mode.m4.
43232         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
43233         m4/inttypes_h.m4, m4/uintmax_t.m4.
43234         (Depends-on): Add stdint.
43235         (lib_SOURCES): Add fsusage.h.
43236         * modules/getcwd (Files): Remove d-ino.m4.
43237         (Depends-on): Add d-ino.
43238         * modules/getndelim2 (Depends-on): Add stdint.
43239         * modules/glob (Files): Remove m4/d-type.m4.
43240         (Depends-on): Add d-type.
43241         * modules/host-os: New module.
43242         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
43243         m4/inttypes_h.m4, m4/uintmax_t.m4.
43244         * Depends-on: Add stdint.
43245         (lib_SOURCES): Add human.h.
43246         * modules/inttostr (Files): Remove m4/intmax_t.m4,
43247         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
43248         m4/uintmax_t.m4, m4/ulonglong.m4.
43249         (Depends-on): Add stdint.
43250         (EXTRA_DIST): Add inttostr.h.
43251         * modules/lchmod: New module.
43252         * modules/link-follow: New module.
43253         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
43254         (Depends-on): Add lchmod.
43255         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
43256         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
43257         (Depends-on): Add stdint.
43258         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
43259         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
43260         (Depends-on): Add stdint.
43261         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
43262         * modules/perl: New module.
43263         * modules/regex (Depends-on): Add stdint.
43264         * modules/rmdir-errno: New module.
43265         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
43266         m4/intmax_t.m4.
43267         (Depends-on): Add stdint.
43268         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
43269         m4/uintmax_t.m4.
43270         (Depends-on): Add stdint.
43271         * modules/unlink-busy: New module.
43272         * modules/utimecmp (Depends-on): Add stdint.
43273         * modules/uptime: New module.
43274         * modules/winsz-ioctl: New module.
43275         * modules/winsz-termios: New module.
43276         * modules/xnanosleep (Depends-on): Add nanosleep.
43277         * modules/ullong_max: Remove.
43278         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
43279         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
43280         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
43281         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
43282         (Depends-on): Add inttypes.
43283         (lib_SOURCES): Add xstrtol.h.
43284         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
43285         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
43286         * MODULES.html.sh: Move 'assert' into the assert section.
43287         Move 'dummy' into the linking section.
43288         Remove ullong_max.
43289         Add section for compatibility checks for POSIX:2001 functions,
43290         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
43291         winsz-ioctl, and winsz-termios into it.
43292         Add lchmod.
43293         Add top-level Misc section and put host-os, perl, and uptime
43294         into it.
43295
43296 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
43297
43298         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
43299         now assume the stdint module.  Do not include inttypes.h.
43300         * lib/fsusage.h: Likewise.
43301         * lib/getndelim2.c: Likewise.
43302         * lib/human.h: Likewise.
43303         * lib/inttostr.h: Likewise.
43304         * lib/obstack.c: Likewise.
43305         * lib/regex_internal.h: Likewise.
43306         * lib/tempname.c: Likewise.
43307         * lib/utimecmp.c: Likewise.
43308         * lib/xstrtol.h: Likewise.
43309
43310         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
43311
43312         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
43313         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
43314         * lib/xtime.h: Likewise.
43315
43316 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
43317
43318         * modules/openat (Files): Add lib/fchmodat.c.
43319         Fixes problem reported by Jay Youngman.
43320
43321 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
43322
43323         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
43324         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
43325
43326 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
43327             Bruno Haible  <bruno@clisp.org>
43328
43329         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
43330         and is a script that invokes bison. Tighten the code. Add comments.
43331
43332 2006-08-18  Jim Meyering  <jim@meyering.net>
43333
43334         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
43335         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
43336         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
43337         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
43338
43339 2006-08-18  Bruno Haible  <bruno@clisp.org>
43340
43341         * modules/bison-i18n: New file.
43342         * MODULES.html.sh (Internationalization functions): Add it.
43343
43344 2006-08-18  Bruno Haible  <bruno@clisp.org>
43345
43346         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
43347         sys/statvfs.h. When getmntinfo was found, check its declaration and
43348         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
43349
43350 2006-08-18  Bruno Haible  <bruno@clisp.org>
43351
43352         * m4/bison-i18n.m4: New file, from bison.
43353
43354 2006-08-18  Bruno Haible  <bruno@clisp.org>
43355
43356         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
43357         (ME_DUMMY): Treat "kernfs" as a dummy.
43358         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
43359
43360 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
43361
43362         Update from coreutils.
43363
43364         2006-08-15  Jim Meyering  <jim@meyering.net>
43365
43366         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
43367
43368         2006-01-17  Jim Meyering  <jim@meyering.net>
43369
43370         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
43371
43372         2006-01-11  Jim Meyering  <jim@meyering.net>
43373
43374         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
43375         Check for the lchmod function.
43376
43377 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
43378
43379         Update from coreutils.
43380
43381         * lib/__fpending.h: Add copyright notice.
43382         * lib/fprintftime.h: Likewise.
43383         * lib/savedir.c: Use (C) in copyright notice.
43384         * lib/savedir.h: Likewise.
43385
43386         2006-08-15  Jim Meyering  <jim@meyering.net>
43387
43388         * lib/at-func.c: New file, with the logic of all emulated at-functions.
43389         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
43390         in support of the EXPECTED_ERRNO macro.
43391         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
43392         definitions.  Instead, define the appropriate symbols and include
43393         "at-func.c".
43394         * lib/mkdirat.c (mkdirat): Likewise.
43395         * lib/fchmodat.c (fchmodat): Likewise.
43396         (ENOSYS): Remove definition.
43397         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
43398         it.  Don't include "unistd--.h" -- it wasn't ever used.
43399
43400         2006-01-17  Jim Meyering  <jim@meyering.net>
43401
43402         Rewrite fts.c not to change the current working directory,
43403         by using openat, fstatat, fdopendir, etc..
43404
43405         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
43406         (HAVE_OPENAT_SUPPORT): Define.
43407         [_LIBC] (fchdir): Don't undef or define; no longer used.
43408         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
43409         Now, this `function' always succeeds, and consumes its file descriptor
43410         parameter -- so callers must not close such FDs.  Update callers.
43411         (diropen_fd, opendirat, cwd_advance_fd): New functions.
43412         (diropen): Add parameter, SP.  Adjust all callers.
43413         Implement using diropen_fd, rather than open.
43414         (fts_open): Initialize new member, fts_cwd_fd.
43415         Remove fts_rft-setting code.
43416         (fts_close): Close fts_cwd_fd, if necessary.
43417         (__opendir2): Define in terms of opendir or opendirat,
43418         depending on whether the FST_NOCHDIR flag is set.
43419         (fts_build): Since fts_safe_changedir consumes its FD, and since
43420         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
43421         and close the dup'd file descriptor upon failure.
43422         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
43423         (fts_safe_changedir): Tweak semantics to reflect that this function
43424         now calls cwd_advance_fd and hence consumes its FD argument.
43425         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
43426         [struct FTS] (fts_rft): Remove now-unused member.
43427         [struct FTS] (fts_cycle.state): Improve comment.
43428
43429         * lib/openat.c (openat_needs_fchdir): New function.
43430         * lib/openat.h (openat_needs_fchdir): Declare it.
43431
43432 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
43433
43434         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
43435         Problem and fix reported by Pádraig Brady in
43436         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
43437
43438 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
43439
43440         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
43441
43442 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
43443
43444         * lib/memcoll.c (memcoll): Optimize for the common case where the
43445         arguments are bytewise equal.
43446
43447 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
43448
43449         * doc/regexprops-generic.texi: Add a copyright notice.
43450
43451 2006-08-15  Bruno Haible  <bruno@clisp.org>
43452
43453         * modules/tmpdir (License): Change to LGPL.
43454
43455 2006-08-15  Bruno Haible  <bruno@clisp.org>
43456
43457         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
43458         module.
43459
43460 2006-08-14  Simon Josefsson  <jas@extundo.com>
43461
43462         * config/srclist.txt: Add gnupload.
43463
43464 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
43465
43466         Change copyright notice from LGPL 2 to GPL 2, since that's the
43467         standard form used in the gnulib repository.
43468         * tests/test-lock.c: Likewise.
43469         * tests/test-stdint.c: Likewise.
43470         * tests/test-tls.c: Likewise.
43471
43472         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
43473         prelude-manager.  User shorter URLs for GNU projects, without '?'.
43474         Add copyright notice.
43475
43476         * check-module: Add copyright notice.  Output a copyright
43477         notice if "--version" is specified.
43478         * modules/COPYING: New file.
43479         * tests/test-getaddrinfo.c: Add copyright notice.
43480         * tests/test-verify.c: Likewise.
43481
43482 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
43483
43484         Change copyright notice from LGPL 2 to GPL 2, since that's the
43485         standard form used in the gnulib repository.
43486         * lib/lock.c: LGPL -> GPL.
43487         * lib/lock.h: Likewise.
43488         * lib/strnlen1.c: Likewise.
43489         * lib/strnlen1.h: Likewise.
43490         * lib/tls.c: Likewise.
43491         * lib/tls.h: Likewise.
43492         * lib/tmpdir.c: Likewise.
43493
43494         * lib/TODO: Remove; this belongs only in coreutils.
43495
43496 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
43497
43498         Add copyright notices to long-enough files that lack them, since
43499         otherwise the files aren't clearly free.  Use the same notice that
43500         getdate.texi already uses.
43501         * doc/alloca-opt.texi: Add copyright notice.
43502         * doc/alloca.texi: Likewise.
43503         * doc/ctime.texi: Likewise.
43504         * doc/functions.texi: Likewise.
43505         * doc/gcd.texi: Likewise.
43506         * doc/gnulib-tool.texi: Likewise.
43507         * doc/inet_ntoa.texi: Likewise.
43508         * doc/visibility.texi: Likewise.
43509
43510         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
43511         * doc/quote.texi: Add copyright notice.
43512
43513         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
43514         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
43515         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
43516         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
43517         is now obsolete, and give a pointer to the Sun list.
43518         Add copyright notice.
43519
43520 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
43521
43522         * config/srclistvars.sh: Add copyright notice.
43523
43524 2006-08-14  Eric Blake  <ebb9@byu.net>
43525
43526         Import the following change from libc:
43527
43528         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
43529
43530         Upstream bug 2997.
43531         * lib/misc/error.c: Add space between program name and message if file
43532         name is missing.
43533
43534 2006-08-12  Karl Berry  <karl@gnu.org>
43535
43536         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
43537         remove, these originate in gnulib now.
43538
43539 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43540
43541         * doc/Makefile (standards.info standards.html standards.dvi):
43542         Also depend on make-stds.texi.
43543
43544 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
43545
43546         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
43547         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
43548
43549         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
43550         in wchar_t.  Problem reported by Eric Blake.
43551
43552         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
43553         LEN is smaller than SIZE.  Suggested by Bruno Haible.
43554         Also, help the compiler to keep LEN in a register.
43555
43556 2006-08-11  Eric Blake  <ebb9@byu.net>
43557
43558         * users.txt: Sort.  Add tar.
43559
43560 2006-08-11  Bruno Haible  <bruno@clisp.org>
43561
43562         * users.txt: New file.
43563
43564 2006-08-11  Bruno Haible  <bruno@clisp.org>
43565
43566         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
43567         before <wchar.h>. Needed for OSF/1 and BSD/OS.
43568
43569 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
43570
43571         * modules/snprintf (Depends-on): Remove minmax.
43572         (Maintainer): Add self and Bruno.
43573
43574 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
43575
43576         * lib/.cppi-disable: Add snprintf.h, socket_.h.
43577         * lib/snprintf.c: Include <errno.h> and <limits.h>.
43578         (EOVERFLOW): Define if the system does not.
43579         Do not include "minmax.h"; it wasn't used.
43580         (snprintf): Don't assume size_t promotes to an unsigned type.
43581         Fix bug when generated string was too long for the buffer: the
43582         buffer's contents are supposed to be the initial prefix of the
43583         output.  Don't assume vasnprintf returns EOVERFLOW if the size
43584         exceeds INT_MAX; do the check ourselves.
43585
43586         Import the following changes from libc:
43587
43588         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
43589
43590         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
43591         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
43592         set wc to the byte which couldn't be converted.
43593         (re_string_reconstruct): Don't clear valid_raw_len before calling
43594         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
43595         tip_context using re_string_context_at.
43596
43597         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
43598
43599         * lib/posix/regex.h: g++ still cannot handled [restrict].
43600
43601         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
43602
43603         * lib/posix/regex.h: Remove special handling for VMS.
43604
43605 2006-08-10  Jim Meyering  <jim@meyering.net>
43606
43607         * modules/same-inode: New module.
43608         * modules/dev-ino: New module.
43609         * modules/cycle-check: Depend on these modules, rather than simply
43610         including their .h files.
43611         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
43612         required via m4/cycle-check.m4.
43613         * modules/same: Depend on new same-inode module, rather than
43614         including same-inode.h.
43615         * modules/chdir-safer: New file.
43616
43617         * modules/chown (Depends-on): Add stat-macros.
43618
43619 2006-08-10  Jim Meyering  <jim@meyering.net>
43620
43621         * m4/cycle-check.m4: New file.
43622         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
43623         * m4/dev-ino.m4, m4/same-inode.m4: New files.
43624
43625 2006-08-10  Eric Blake  <ebb9@byu.net>
43626
43627         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
43628         in from original proposal.
43629
43630 2006-08-10  Eric Blake  <ebb9@byu.net>
43631         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
43632
43633         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
43634         namespace.
43635
43636 2006-08-10  Bruno Haible  <bruno@clisp.org>
43637
43638         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
43639         as well.
43640
43641 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
43642
43643         Sync from coreutils.
43644
43645         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
43646
43647         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
43648         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
43649
43650 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
43651
43652         * modules/restrict: Remove; no longer needed now that we assume
43653         Autoconf 2.59 or later.
43654         * MODULES.html.sh: Remove 'restrict'.
43655         * modules/argp (Depends-on): Remove 'restrict'.
43656         * modules/base64 (Depends-on): Likewise.
43657         * modules/gc (Depends-on): Likewise.
43658         * modules/getaddrinfo (Depends-on): Likewise.
43659         * modules/glob (Depends-on): Likewise.
43660         * modules/inet_ntop (Depends-on): Likewise.
43661         * modules/inet_pton (Depends-on): Likewise.
43662         * modules/memxor (Depends-on): Likewise.
43663         * modules/regex (Depends-on): Likewise.
43664         * modules/strtok_r (Depends-on): Likewise.
43665         * modules/time_r (Depends-on): Likewise.
43666
43667 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
43668
43669         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
43670         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
43671         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
43672         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
43673         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
43674         * m4/memxor.m4 (gl_MEMXOR): Likewise.
43675         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
43676         gl_C_RESTRICT replaced by AC_C_RESTRICT.
43677
43678         Merge from coreutils.
43679         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
43680         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
43681         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
43682         * m4/time_r.m4 (gl_TIME_R): Likewise.
43683
43684 2006-08-09  Karl Berry  <karl@gnu.org>
43685
43686         * config/srclist.txt: no more gettext-tools, per Bruno.
43687
43688 2006-08-08  Eric Blake  <ebb9@byu.net>
43689
43690         * modules/verror: New module.
43691         * MODULES.html.sh: Document it.
43692
43693 2006-08-08  Eric Blake  <ebb9@byu.net>
43694
43695         * lib/verror.h, lib/verror.c: New files.
43696
43697 2006-08-08  Eric Blake  <ebb9@byu.net>
43698
43699         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
43700         verror_at_line output complies with GNU Coding Standards even when
43701         file is NULL.
43702
43703 2006-08-07  Bruno Haible  <bruno@clisp.org>
43704
43705         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
43706         versions of AIX.
43707         Reported by Ralf Wildenhues.
43708
43709 2006-08-07  Bruno Haible  <bruno@clisp.org>
43710
43711         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
43712         in an AC_DEFUN. Needed so that the autoconf snippets can use
43713         AC_REQUIRE.
43714
43715 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43716
43717         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
43718         Initialize pkgdata_DATA.
43719         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
43720         overriding it.
43721
43722 2006-08-06  Eric Blake  <ebb9@byu.net>
43723
43724         * lib/error.h: Fold in some upstream changes from glibc.
43725         * lib/error.c: Likewise.
43726
43727 2006-08-04  Bruno Haible  <bruno@clisp.org>
43728
43729         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
43730         Make the mostlyclean-local rule depend on mostlyclean-generic.
43731         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
43732
43733 2006-07-31  Bruno Haible  <bruno@clisp.org>
43734
43735         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
43736         <stdlib.h>, <string.h>.
43737
43738 2006-07-30  Bruno Haible  <bruno@clisp.org>
43739
43740         * modules/readlink (License): Change to LGPL.
43741
43742 2006-07-30  Bruno Haible  <bruno@clisp.org>
43743
43744         * modules/javaversion (Makefile.am): Distribute javaversion.java and
43745         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
43746         set PKGDATADIR to point to it.
43747
43748 2006-07-30  Bruno Haible  <bruno@clisp.org>
43749
43750         * modules/csharpexec (configure.ac): Comment out macro invocation.
43751         * modules/javaexec (configure.ac): Likewise.
43752         * modules/javacomp-script (configure.ac): Likewise.
43753
43754         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
43755
43756 2006-07-30  Bruno Haible  <bruno@clisp.org>
43757
43758         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
43759         linked-list.
43760
43761 2006-07-30  Bruno Haible  <bruno@clisp.org>
43762
43763         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
43764
43765 2006-07-30  Bruno Haible  <bruno@clisp.org>
43766
43767         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
43768         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
43769         get removed.
43770
43771 2006-07-29  Bruno Haible  <bruno@clisp.org>
43772
43773         Make it possible for gnulib-tool to work with locally modified or
43774         augmented gnulib repositories.
43775         * gnulib-tool (func_usage): Document --local-dir option.
43776         (local_gnulib_dir): New variable.
43777         Handle --local-dir option.
43778         (func_lookup_file): New function.
43779         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
43780         (func_get_description, func_get_filelist, func_get_description,
43781         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
43782         func_get_automake_snippet, func_get_include_directive,
43783         func_get_license, func_get_maintainer): Use func_lookup_file.
43784         (func_import, func_create_testdir): Use func_lookup_file.
43785
43786 2006-07-29  Bruno Haible  <bruno@clisp.org>
43787
43788         * modules/setenv (Depends-on): Add unistd.
43789
43790 2006-07-29  Bruno Haible  <bruno@clisp.org>
43791
43792         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
43793
43794 2006-07-29  Bruno Haible  <bruno@clisp.org>
43795
43796         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
43797
43798 2006-07-29  Bruno Haible  <bruno@clisp.org>
43799
43800         * gnulib-tool (import, update): If there is no Makefile.am, look at
43801         aclocal.m4, instead of bailing out.
43802
43803 2006-07-29  Bruno Haible  <bruno@clisp.org>
43804
43805         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
43806         Categorize the options by when they are useful.
43807
43808 2006-07-29  Bruno Haible  <bruno@clisp.org>
43809
43810         * gnulib-tool (func_usage): Document option --no-libtool.
43811         Handle option --no-libtool.
43812         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
43813         for changed semantics of $libtool variable.
43814         (func_import): Likewise. If libtool is not used, show this through
43815         an option --no-libtool.
43816         (func_create_testdir): Update.
43817
43818 2006-07-29  Bruno Haible  <bruno@clisp.org>
43819
43820         * gnulib-tool (func_import): Extend error message about missing
43821         --doc-base.
43822
43823 2006-07-29  Bruno Haible  <bruno@clisp.org>
43824
43825         * gnulib-tool (func_import): Don't create the $docbase directory if
43826         there is no file to store there.
43827
43828 2006-07-29  Bruno Haible  <bruno@clisp.org>
43829
43830         * gnulib-tool (autoconf_minversion): If a --dir option is given and
43831         relevant, look for configure.ac there, not in the current directory.
43832         Also use a simple search for AC_PREREQ, not "autoconf --trace".
43833
43834 2006-07-29  Bruno Haible  <bruno@clisp.org>
43835
43836         * gnulib-tool (SORT): New variable.
43837         (func_usage): Undocument --assume-autoconf option.
43838         Remove --assume-autoconf option handling.
43839         (autoconf_minversion): Determine from the contents of configure.ac.
43840         (func_import): Remove autoconf_minversion handling.
43841         Suggested by Eric Blake.
43842
43843 2006-07-29  Bruno Haible  <bruno@clisp.org>
43844
43845         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
43846
43847 2006-07-29  Bruno Haible  <bruno@clisp.org>
43848
43849         * config/srclist.txt (*setenv.[ch]): Remove rules.
43850
43851 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43852
43853         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
43854
43855 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43856
43857         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
43858         arpa/inet.h.
43859
43860 2006-07-28  Simon Josefsson  <jas@extundo.com>
43861
43862         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
43863         * modules/inet_pton (Depends-on): Likewise.
43864
43865 2006-07-28  Simon Josefsson  <jas@extundo.com>
43866
43867         * m4/netinet_in_h.m4: New file.
43868
43869 2006-07-28  Simon Josefsson  <jas@extundo.com>
43870
43871         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
43872         #include's.
43873
43874 2006-07-28  Simon Josefsson  <jas@extundo.com>
43875
43876         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
43877         #include's.
43878
43879 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
43880
43881         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
43882         setgid on directories only if they set these bits.
43883         * lib/modechange.h: Remove obsolete comment about masks.
43884
43885 2006-07-28  Eric Blake  <ebb9@byu.net>
43886
43887         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
43888         macro expansion.
43889
43890 2006-07-28  Bruno Haible  <bruno@clisp.org>
43891
43892         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
43893
43894 2006-07-28  Bruno Haible  <bruno@clisp.org>
43895
43896         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
43897
43898 2006-07-28  Bruno Haible  <bruno@clisp.org>
43899
43900         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
43901         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
43902         Define fallbacks.
43903         Avoids link error on FreeBSD 4.x.
43904         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
43905
43906         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
43907         encoding.
43908         * lib/mbswidth.c (iswcntrl): Likewise.
43909
43910 2006-07-27  Bruno Haible  <bruno@clisp.org>
43911
43912         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
43913         test.
43914
43915 2006-07-27  Bruno Haible  <bruno@clisp.org>
43916
43917         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
43918         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
43919         defined.
43920
43921 2006-07-26  Eric Blake  <ebb9@byu.net>
43922
43923         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
43924
43925 2006-07-26  Eric Blake  <ebb9@byu.net>
43926
43927         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
43928         like mingw that lack mkstemp.
43929         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
43930         avoid compilation warning on mingw.
43931
43932 2006-07-26  Bruno Haible  <bruno@clisp.org>
43933
43934         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
43935         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
43936         INT_FAST*_MIN, INTPTR_MIN.
43937
43938 2006-07-25  Bruno Haible  <bruno@clisp.org>
43939
43940         * modules/version-etc (Depends-on): Add stdarg.
43941
43942 2006-07-25  Bruno Haible  <bruno@clisp.org>
43943
43944         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
43945         complex commands.
43946
43947 2006-07-25  Bruno Haible  <bruno@clisp.org>
43948
43949         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
43950         defined in <stdarg.h> or config.h.
43951
43952 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
43953
43954         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
43955         (gl_STDIO_SAFER): Remove.
43956
43957 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
43958
43959         * MODULES.html.sh (File stream based Input/Output):
43960         Add fopen-safer, tmpfile-safer; remove stdio-safer.
43961         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
43962         * modules/fopen-safer, modules/tmpfile-safer: New files.
43963         * modules/stdio-safer: Remove.
43964
43965 2006-07-24  Bruno Haible  <bruno@clisp.org>
43966
43967         * modules/tmpdir: New file.
43968         * MODULES.html.sh (File system functions): Add it.
43969
43970 2006-07-24  Bruno Haible  <bruno@clisp.org>
43971
43972         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
43973         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
43974
43975 2006-07-24  Bruno Haible  <bruno@clisp.org>
43976
43977         * modules/clean-temp: New file.
43978
43979 2006-07-24  Bruno Haible  <bruno@clisp.org>
43980
43981         * m4/tmpdir.m4: New file, from GNU gettext.
43982
43983 2006-07-24  Bruno Haible  <bruno@clisp.org>
43984
43985         * lib/tmpdir.h: New file, from GNU gettext.
43986         * lib/tmpdir.c: New file, from GNU gettext.
43987
43988 2006-07-24  Bruno Haible  <bruno@clisp.org>
43989
43990         * lib/clean-temp.h: New file, from GNU gettext.
43991         * lib/clean-temp.c: New file, from GNU gettext.
43992
43993 2006-07-23  Eric Blake  <ebb9@byu.net>
43994
43995         * modules/stdio-safer (Files): Add tmpfile-safer.c.
43996         (Depends-on): Add binary-io.
43997
43998 2006-07-23  Eric Blake  <ebb9@byu.net>
43999
44000         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
44001
44002 2006-07-23  Eric Blake  <ebb9@byu.net>
44003
44004         * lib/tmpfile-safer.c: New file.
44005         * lib/stdio-safer.h (fopen_safer): Add prototype.
44006         * lib/stdio--.h (tmpfile): Make safer.
44007
44008 2006-07-23  Bruno Haible  <bruno@clisp.org>
44009
44010         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
44011         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
44012         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
44013         gl_linked_remove_at): Use it.
44014
44015 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44016         and Simon Josefsson <jas@extundo.com>
44017
44018         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
44019
44020         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
44021
44022 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
44023
44024         * modules/close-stream: New file.
44025         * modules/closeout (Description): Make it clear that it exits
44026         with a diagnostic on error.
44027         (Depends-on): Add close-stream.  Remove fpending, stdbool.
44028         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
44029
44030 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
44031
44032         * m4/close-stream.m4: New file.
44033
44034 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
44035
44036         * lib/close-stream.c, lib/close-stream.h: New files.
44037
44038 2006-07-22  Bruno Haible  <bruno@clisp.org>
44039
44040         Merge from GNU gettext 0.15.
44041
44042         2006-05-01  Bruno Haible  <bruno@clisp.org>
44043
44044                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
44045
44046         2006-07-22  Bruno Haible  <bruno@clisp.org>
44047
44048                 * modules/javaversion: New file.
44049                 * MODULES.html.sh (Java): Add javaversion.
44050
44051         2006-03-12  Bruno Haible  <bruno@clisp.org>
44052
44053                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
44054
44055         2005-12-04  Bruno Haible  <bruno@clisp.org>
44056
44057                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
44058                 (untested).
44059
44060         2006-06-21  Bruno Haible  <bruno@clisp.org>
44061
44062                 Avoid warnings from recent versions of mcs.
44063                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
44064                 -o, -L, -r any more. Use options documented since mcs-1.0
44065                 instead. Similarly for -g.
44066
44067         2005-12-04  Bruno Haible  <bruno@clisp.org>
44068
44069                 * build-aux/csharpcomp.sh.in: Suffix for resources is
44070                 .resources, not .resource.
44071
44072         2005-07-09  Bruno Haible  <bruno@clisp.org>
44073
44074                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
44075                 add a .dll suffix.
44076                 Reported by Mark Junker <mjscod@gmx.de>.
44077
44078         2006-07-22  Bruno Haible  <bruno@clisp.org>
44079
44080                 * modules/gettext: Upgrade to gettext-0.15.
44081                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
44082                 m4/visibility.m4.
44083                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
44084
44085 2006-07-22  Bruno Haible  <bruno@clisp.org>
44086
44087         Merge from GNU gettext 0.15.
44088
44089         2006-03-25  Bruno Haible  <bruno@clisp.org>
44090
44091                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
44092
44093         2006-07-21  Bruno Haible  <bruno@clisp.org>
44094
44095                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
44096                 "1.1".
44097
44098         2006-05-09  Bruno Haible  <bruno@clisp.org>
44099
44100                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
44101                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
44102                 for the conftestver execution.
44103
44104         2006-05-01  Bruno Haible  <bruno@clisp.org>
44105
44106                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
44107                 optional target-version argument. Verify that the compiler
44108                 groks source of the specified source-version, or add -source
44109                 option as necessary. Verify that the compiler produces
44110                 bytecode in the specified target-version, or add -target and
44111                 -source options as necessary. Make the result of the test
44112                 available as variable CONF_JAVAC. Also log error output in
44113                 config.log.
44114
44115         2006-03-11  Bruno Haible  <bruno@clisp.org>
44116
44117                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
44118
44119         2006-05-09  Bruno Haible  <bruno@clisp.org>
44120
44121                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
44122                 CLASSPATH_SEPARATOR to a semicolon.
44123
44124         2006-03-12  Bruno Haible  <bruno@clisp.org>
44125
44126                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
44127                 available as variable CONF_JAVA, for subsequent autoconf
44128                 tests. Also log error output in config.log.
44129
44130         2006-07-19  Bruno Haible  <bruno@clisp.org>
44131
44132                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
44133                 that getline works on glibc2 systems. Needed to avoid trouble
44134                 in relocatable.c.
44135                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
44136
44137         2005-12-04  Bruno Haible  <bruno@clisp.org>
44138
44139                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
44140                 launcher (untested).
44141
44142         2005-12-04  Bruno Haible  <bruno@clisp.org>
44143
44144                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
44145
44146         2006-07-22  Bruno Haible  <bruno@clisp.org>
44147
44148                 * gettext.m4: Update from GNU gettext-0.15.
44149                 * nls.m4: Likewise.
44150                 * po.m4: Likewise.
44151                 * inttypes-pri.m4: Likewise.
44152                 * inttypes-h.m4: Renamed from inttypes.m4.
44153                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
44154
44155 2006-07-22  Bruno Haible  <bruno@clisp.org>
44156
44157         Merge from GNU gettext 0.15.
44158
44159         2005-07-05  Bruno Haible  <bruno@clisp.org>
44160
44161                 * printf-args.c (printf_fetchargs): Work around broken
44162                 definition of wint_t on mingw.
44163
44164         2005-02-12  Bruno Haible  <bruno@clisp.org>
44165
44166                 * xallocsa.h: Add extern "C" for C++.
44167
44168         2006-05-17  Bruno Haible  <bruno@clisp.org>
44169
44170                 Cygwin portability.
44171                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
44172
44173         2006-04-30  Bruno Haible  <bruno@clisp.org>
44174
44175                 * progreloc.c: Include <mach-o/dyld.h> if available.
44176                 (find_executable): Use _NSGetExecutablePath when possible.
44177
44178         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
44179
44180                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
44181                 function.
44182
44183         2005-12-29  Bruno Haible  <bruno@clisp.org>
44184
44185                 * progreloc.c (set_program_name_and_installdir): Fix
44186                 compilation error.
44187
44188         2005-12-04  Bruno Haible  <bruno@clisp.org>
44189
44190                 Cygwin portability.
44191                 * progreloc.c: Include <windows.h> also on Cygwin.
44192                 (find_executable): Add support for Cygwin.
44193                 (set_program_name_and_installdir): Handle also platforms with
44194                 nonempty EXEEXT.
44195
44196         2006-07-11  Bruno Haible  <bruno@clisp.org>
44197
44198                 * javacomp.c: Fix a comment.
44199                 Reported by Jim Meyering.
44200
44201         2006-04-30  Bruno Haible  <bruno@clisp.org>
44202
44203                 * javacomp.h (compile_java_class): Add source_version,
44204                 target_version arguments.
44205                 * javacomp.c: Rewritten to choose only a compiler that
44206                 respects the specified source_version and target_version.
44207
44208         2006-06-27  Bruno Haible  <bruno@clisp.org>
44209
44210                 Assume correct S_ISDIR macro.
44211                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
44212
44213         2006-07-22  Bruno Haible  <bruno@clisp.org>
44214
44215                 * javaversion.h: New file, from GNU gettext.
44216                 * javaversion.c: New file, from GNU gettext.
44217                 * javaversion.java: New file, from GNU gettext.
44218                 * javaversion.class: New file, from GNU gettext.
44219
44220         2006-05-17  Bruno Haible  <bruno@clisp.org>
44221
44222                 Cygwin portability.
44223                 * javaexec.c (execute_java_class): Test for jview program
44224                 also on Cygwin.
44225
44226         2006-04-09  Bruno Haible  <bruno@clisp.org>
44227
44228                 * fatal-signal.c: Don't include string.h.
44229                 (at_fatal_signal): Use a copying loop instead of memcpy.
44230
44231         2005-12-04  Bruno Haible  <bruno@clisp.org>
44232
44233                 * csharpexec.c: Add support for 'clix' launcher (untested).
44234                 (execute_csharp_using_sscli): New function.
44235                 (execute_csharp_program): Call it.
44236
44237         2006-06-21  Bruno Haible  <bruno@clisp.org>
44238
44239                 Avoid warnings from recent versions of mcs.
44240                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
44241                 -o, -L, -r any more. Use options documented since mcs-1.0
44242                 instead. Similarly for -g.
44243
44244         2005-07-09  Bruno Haible  <bruno@clisp.org>
44245
44246                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
44247                 add a .dll suffix.
44248                 Reported by Mark Junker <mjscod@gmx.de>.
44249
44250         2006-06-17  Bruno Haible  <bruno@clisp.org>
44251
44252                 * config.charset: Update for NetBSD 3.0.
44253
44254         2006-05-17  Bruno Haible  <bruno@clisp.org>
44255
44256                 Cygwin portability.
44257                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
44258
44259         2006-05-16  Bruno Haible  <bruno@clisp.org>
44260
44261                 * localcharset.c [CYGWIN]: Include <windows.h>.
44262                 (get_charset_aliases): For Cygwin, return the same CPxxx
44263                 aliases list as under WIN32.
44264                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
44265                 the environment variables. Fall back to GetACP().
44266
44267         2006-04-05  Bruno Haible  <bruno@clisp.org>
44268
44269                 * config.charset: Update Juan Manuel Guerrero's address.
44270
44271         2005-02-12  Bruno Haible  <bruno@clisp.org>
44272
44273                 * allocsa.h: Add extern "C" for C++.
44274
44275         2005-02-10  Bruno Haible  <bruno@clisp.org>
44276
44277                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
44278                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
44279
44280         2006-07-22  Bruno Haible  <bruno@clisp.org>
44281
44282                 * gettext.h: Update to GNU gettext-0.15.
44283
44284 2006-07-22  Bruno Haible  <bruno@clisp.org>
44285
44286         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
44287         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
44288         lib-prefix.m4, longdouble.m4, ssize_t.m4.
44289
44290 2006-07-21  Eric Blake  <ebb9@byu.net>
44291
44292         * modules/stdlib-safer: New file.
44293         * MODULES.html.sh (File stream based Input/Output): Add
44294         stdlib-safer.
44295
44296 2006-07-21  Eric Blake  <ebb9@byu.net>
44297
44298         * lib/stdlib-safer.h: New file from coreutils, required by
44299         stdlib--.h.
44300
44301 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
44302
44303         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
44304
44305 2006-07-20  Bruno Haible  <bruno@clisp.org>
44306
44307         * gnulib-tool: Recognize new option --assume-autoconf.
44308         (autoconf_minversion): New variable.
44309         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
44310
44311 2006-07-20  Bruno Haible  <bruno@clisp.org>
44312
44313         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
44314
44315 2006-07-19  Derek R. Price  <derek@ximbiot.com>
44316
44317         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
44318         Reindent and repaginate.
44319
44320 2006-07-19  Derek Price  <derek@ximbiot.com>
44321
44322         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
44323         Correct grammar.
44324
44325 2006-07-17  Bruno Haible  <bruno@clisp.org>
44326
44327         * modules/list: New file.
44328         * modules/array-list: New file.
44329         * modules/carray-list, modules/carray-list-tests: New files.
44330         * modules/linked-list, modules/linked-list-tests: New files.
44331         * modules/avltree-list, modules/avltree-list-tests: New files.
44332         * modules/rbtree-list, modules/rbtree-list-tests: New files.
44333         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
44334         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
44335         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
44336         * modules/oset: New file.
44337         * modules/array-oset: New file.
44338         * modules/avltree-oset, modules/avltree-oset-tests: New files.
44339         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
44340         * tests/test-carray_list.c: New file.
44341         * tests/test-linked_list.c: New file.
44342         * tests/test-avltree_list.c: New file.
44343         * tests/test-rbtree_list.c: New file.
44344         * tests/test-linkedhash_list.c: New file.
44345         * tests/test-avltreehash_list.c: New file.
44346         * tests/test-rbtreehash_list.c: New file.
44347         * tests/test-avltree_oset.c: New file.
44348         * tests/test-rbtree_oset.c: New file.
44349         * MODULES.html.sh (Container data structures): New section.
44350
44351 2006-07-17  Bruno Haible  <bruno@clisp.org>
44352
44353         * m4/gl_list.m4: New file.
44354
44355 2006-07-17  Bruno Haible  <bruno@clisp.org>
44356
44357         * lib/gl_list.h: New file.
44358         * lib/gl_list.c: New file.
44359         * lib/gl_array_list.h: New file.
44360         * lib/gl_array_list.c: New file.
44361         * lib/gl_carray_list.h: New file.
44362         * lib/gl_carray_list.c: New file.
44363         * lib/gl_linked_list.h: New file.
44364         * lib/gl_linked_list.c: New file.
44365         * lib/gl_anylinked_list1.h: New file.
44366         * lib/gl_anylinked_list2.h: New file.
44367         * lib/gl_avltree_list.h: New file.
44368         * lib/gl_avltree_list.c: New file.
44369         * lib/gl_anyavltree_list1.h: New file.
44370         * lib/gl_anyavltree_list2.h: New file.
44371         * lib/gl_rbtree_list.h: New file.
44372         * lib/gl_rbtree_list.c: New file.
44373         * lib/gl_anyrbtree_list1.h: New file.
44374         * lib/gl_anyrbtree_list2.h: New file.
44375         * lib/gl_anytree_list1.h: New file.
44376         * lib/gl_anytree_list2.h: New file.
44377         * lib/gl_linkedhash_list.h: New file.
44378         * lib/gl_linkedhash_list.c: New file.
44379         * lib/gl_anyhash_list1.h: New file.
44380         * lib/gl_anyhash_list2.h: New file.
44381         * lib/gl_avltreehash_list.h: New file.
44382         * lib/gl_avltreehash_list.c: New file.
44383         * lib/gl_rbtreehash_list.h: New file.
44384         * lib/gl_rbtreehash_list.c: New file.
44385         * lib/gl_anytreehash_list1.h: New file.
44386         * lib/gl_anytreehash_list2.h: New file.
44387
44388         * lib/gl_oset.h: New file.
44389         * lib/gl_oset.c: New file.
44390         * lib/gl_array_oset.h: New file.
44391         * lib/gl_array_oset.c: New file.
44392         * lib/gl_avltree_oset.h: New file.
44393         * lib/gl_avltree_oset.c: New file.
44394         * lib/gl_rbtree_oset.h: New file.
44395         * lib/gl_rbtree_oset.c: New file.
44396         * lib/gl_anytree_oset.h: New file.
44397
44398 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
44399
44400         * m4/mkancesdirs.m4: New file.
44401         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
44402         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
44403         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
44404         it.
44405
44406 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
44407
44408         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
44409         * lib/mkancesdirs.h: New files.
44410         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
44411         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
44412         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
44413         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
44414         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
44415         callers changed.  Revamp internals significantly, by not
44416         attempting to create directories that are temporarily more
44417         permissive than the final results.  Do not attempt to use
44418         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
44419         This removes some race conditions, fixes some bugs, and simplifies
44420         things.  Use new dirchownmod function to do owner and mode changes.
44421         * lib/mkdir-p.h: Likewise.
44422         * lib/modechange.c (octal_to_mode): New function.
44423         (struct mode_change): New member mentioned.
44424         (make_node_op_equals): New arg mentioned.  All callers changed.
44425         (mode_compile): Keep track of which mode bits the user has explicitly
44426         mentioned.
44427         (mode_adjust): New arg DIR, so that we implement the X op correctly.
44428         New arg PMODE_BITS, to keep track of which mode bits the user
44429         mentioned; it treats S_ISUID and S_ISGID speciall.
44430         All callers changed.
44431         * lib/modechange.h: Likewise.
44432
44433 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
44434
44435         * MODULES.html.sh: Add mkancestors.
44436         * modules/mkancesdirs: New module.
44437         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
44438         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
44439         The chdir-safer and afs files are now orphans; I'll remove them
44440         unless someone speaks up.
44441         Add lib/dirchownmod.c, lib/dirchownmod.h.
44442         (Depends-on): Remove alloca, chown, save-cwd, dirname.
44443         Add lchown, mkancesdirs.
44444         (Maintainer): Add self.
44445
44446 2006-07-15  Karl Berry  <karl@gnu.org>
44447
44448         * gnulib-tool: help message wording/arrangement.
44449
44450 2006-07-14  Simon Josefsson  <jas@extundo.com>
44451
44452         * doc/gnulib.texi (Libtool and Windows): New section.
44453
44454 2006-07-12  Simon Josefsson  <jas@extundo.com>
44455
44456         * modules/gendocs (License): Fix license, approved by Karl.
44457
44458 2006-07-12  Eric Blake  <ebb9@byu.net>
44459
44460         * MODULES.html.sh: Add gendocs.
44461
44462 2006-07-11  Eric Blake  <ebb9@byu.net>
44463
44464         * modules/fdl: New module, to install doc/fdl.texi.
44465         * MODULES.html.sh: Add new section for documentation modules.
44466         * gnulib-tool: Avoid space-tab.
44467         (--doc-base): New option, to manage files from doc.
44468
44469 2006-07-11  Eric Blake  <ebb9@byu.net>
44470
44471         * m4/absolute-header.m4: Fix comments to match recent change.
44472
44473 2006-07-11  Eric Blake  <ebb9@byu.net>
44474
44475         * gnulib-tool: List --doc-base before --tests-base.
44476
44477 2006-07-11  Derek R. Price  <derek@ximbiot.com>
44478
44479         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
44480
44481 2006-07-11  Bruno Haible  <bruno@clisp.org>
44482
44483         * README: Mention where to put documentation.
44484
44485 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44486
44487         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
44488
44489 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
44490
44491         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
44492         to stdint.m4.
44493
44494 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
44495
44496         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
44497         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
44498         "no/such/file/stdint.h" when there is no such file, so that
44499         the resulting C code can be parsed by dodgy compilers.
44500         Problems reported by Bob Proulx.
44501
44502 2006-07-10  Derek R. Price  <derek@ximbiot.com>
44503
44504         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
44505         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
44506         macros into the GNU _D_EXACT_NAMLEN.
44507         * lib/savedir.c:  Likewise.
44508         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
44509
44510 2006-07-10  Derek R. Price  <derek@ximbiot.com>
44511         and Paul Eggert  <eggert@cs.ucla.edu>
44512
44513         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
44514         * m4/savedir.m4:
44515         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
44516         macros into the GNU _D_EXACT_NAMLEN.
44517
44518 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
44519
44520         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
44521         around the absolute name, to work around a problem with the HP-UX
44522         11.23 native C compiler, reported by Bob Proulx.
44523
44524 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
44525
44526         * doc/maintain.texi, make-stds.texi: Sync from
44527         <http://savannah.gnu.org/projects/gnustandards>.
44528
44529 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
44530
44531         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
44532
44533 2006-07-09  Jim Meyering  <jim@meyering.net>
44534
44535         * m4/glob.m4: Remove a doubled word in a comment.
44536
44537 2006-07-09  Jim Meyering  <jim@meyering.net>
44538
44539         * lib/argp-pv.c: Remove a doubled word in a comment.
44540         * lib/check-version.c (check_version): Likewise.
44541         * lib/javacomp.c (compile_java_class): Likewise.
44542
44543 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
44544
44545         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
44546         for the benefit of people using Autoconf 2.60.  If you want to
44547         support older Autoconf versions you can copy m4/onceonly_2_57.m4
44548         (or m4/onceonly.m4, if pre-2.57) manually.
44549
44550 2006-07-08  Jim Meyering  <jim@meyering.net>
44551
44552         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
44553         comment.
44554         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
44555         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
44556         comment.
44557
44558 2006-07-08  Jim Meyering  <jim@meyering.net>
44559
44560         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
44561
44562 2006-07-07  Simon Josefsson  <jas@extundo.com>
44563
44564         * tests/test-crc.c: Change expected crc value, the test vector
44565         were probably computed using the old broken crc.c?
44566
44567 2006-07-06  Simon Josefsson  <jas@extundo.com>
44568
44569         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
44570         now the canonical place for the M4 file).
44571
44572         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
44573         from the sys_socket dependency now.
44574
44575         * modules/inet_pton (Files): Ditto.
44576
44577         * modules/inet_ntop (Files): Ditto.
44578
44579 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
44580
44581         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
44582         not gl_PREREQ_GETUSERSHELL.
44583
44584 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44585
44586         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
44587         with only one argument, for Autoconf 2.60.
44588         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
44589         expand to nothing, so add a shell command to avoid syntax error.
44590         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
44591
44592 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44593
44594         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
44595
44596 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
44597
44598         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
44599         no longer needed.  Check for isblank decl.
44600         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
44601         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
44602         of existence.
44603
44604 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
44605
44606         * lib/getloadavg.c: Use __VMS, not VMS.
44607         * lib/getopt.c: Likewise.
44608         * lib/getpagesize.h: Likewise.
44609         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
44610         and probably does not work.
44611
44612 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
44613
44614         * lib/.cppi-disable: Add wcwidth.
44615         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
44616         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
44617         (ISGRAPH): Remove.  All uses changed to isgraph.
44618         (FOLD) [!defined _LIBC]: Remove special case.
44619         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
44620         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
44621         HAVE_ISBLANK.
44622         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
44623         case.
44624
44625 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
44626
44627         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
44628         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
44629         brackets.  Other minor changes to suppress some compiler
44630         warnings.
44631
44632 2006-07-06  Derek R. Price  <derek@ximbiot.com>
44633         and Paul Eggert  <eggert@cs.ucla.edu>
44634
44635         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
44636         of invoking obsolescent AC_HEADER_DIRENT macro.
44637         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
44638         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
44639         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
44640         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
44641         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
44642         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
44643         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
44644         * m4/readdir.m4: Remove; no longer needed.
44645
44646 2006-07-06  Derek R. Price  <derek@ximbiot.com>
44647         and Paul Eggert  <eggert@cs.ucla.edu>
44648
44649         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
44650         Don't worry about this obsolete case any more.
44651         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
44652         directories.
44653         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
44654         worry about this obsolete case any more.
44655         * lib/fts.c: Likewise.
44656         * lib/getcwd.c: Likewise.
44657         * lib/glob.h: Likewise.
44658         * lib/savedir.c: Likewise.
44659
44660 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
44661
44662         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
44663         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
44664         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
44665         needed.
44666         All uses removed.
44667         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
44668         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
44669         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
44670         needed.
44671         * m4/getdate.m4 (gl_GETDATE): Likewise.
44672         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
44673         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
44674         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
44675         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
44676         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
44677         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
44678         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
44679         needed.
44680
44681 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
44682
44683         * lib/memcasecmp.c: Include <limits.h>.
44684         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
44685         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
44686         Don't assume isdigit succeeds only on '0' through '9'.
44687
44688 2006-07-05  Eric Blake  <ebb9@byu.net>
44689
44690         * modules/getaddrinfo (Depends-on): Add snprintf.
44691
44692 2006-07-05  Eric Blake  <ebb9@byu.net>
44693
44694         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
44695         to avoid 'header present but could not be compiled' on cygwin.
44696
44697 2006-07-05  Eric Blake  <ebb9@byu.net>
44698
44699         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
44700         missing from netdb.h.
44701         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
44702
44703 2006-07-05  Derek R. Price  <derek@ximbiot.com>
44704
44705         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
44706         no longer needed.
44707         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
44708         * m4/getdate.m4 (gl_GETDATE): Likewise.
44709         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
44710         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
44711         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
44712         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
44713         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
44714
44715 2006-07-05  Derek R. Price  <derek@ximbiot.com>
44716
44717         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
44718         All uses of is_space replaced by isspace.
44719         * lib/exit.h: Don't talk about STDC_HEADERS.
44720         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
44721         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
44722         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
44723         replaced by isprint etc.
44724         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
44725         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
44726         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
44727         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
44728         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
44729         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
44730
44731 2006-07-05  Bruno Haible  <bruno@clisp.org>
44732
44733         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
44734         the function exists, before testing against AIX.
44735         Reported by Martin Lambers <marlam@marlam.de>.
44736
44737 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
44738
44739         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
44740         From Mark D. Baushke.
44741
44742 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
44743
44744         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
44745         to the absolute name, not just one, to bypass Sun C 5.8's
44746         "warning: #include of /usr/include/... may be non-portable".
44747
44748 2006-07-04  Eric Blake  <ebb9@byu.net>
44749
44750         * modules/dirname-tests: New test module.
44751         * tests/test-dirname.c: New file, replacing dirname.c
44752         TEST_DIRNAME section that was recently deleted.
44753
44754 2006-07-04  Bruno Haible  <bruno@clisp.org>
44755
44756         Assume ANSI C header files and <ctype.h> functions.
44757         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
44758         (mbsnwidth): Use isprint, iscntrl instead.
44759
44760 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
44761
44762         Merge from coreutils.
44763         * MODULES.html.sh: Add xstrtold.
44764         * modules/xstrtold: New file.
44765         * modules/cycle-check (Files): Add lib/same-inode.h.
44766         * modules/dirname (Files): Add m4/double-slash-root.m4.
44767         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
44768         * modules/mkdir-p (Files): Add lib/same-inode.h.
44769         * modules/same (Files): Add lib/same-inode.h.
44770
44771 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
44772
44773         * m4/absolute-header.m4: Renamed from full-header-path.m4.
44774         This is to keep the terminology clean; POSIX talks about
44775         "absolute pathnames", not "full pathnames", but the GNU
44776         Coding Standards say to use "path" for something else;
44777         so use "absolute" to keep both sides happy.
44778         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
44779         Set gl_absolute_header, not gl_full_header_path.
44780         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
44781         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
44782         All uses changed.
44783
44784         Merge from coreutils.
44785
44786         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
44787
44788         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
44789         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
44790         want to require the building of c-strtod.o.
44791         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
44792         needs -lm directly.
44793         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
44794
44795         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
44796
44797         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
44798         --as-needed option if available.  Problem reported by Albert Chin in
44799         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
44800         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
44801         cc merely issues a bunch of annoying warnings for --as-needed
44802         (this problem was reported by Bob Proulx).  Also, try linking with
44803         -lm to detect a bug in binutils 2.16 (this problem was reported
44804         by Ralf Wildenhues).
44805
44806         2006-06-18  Jim Meyering  <jim@meyering.net>
44807
44808         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
44809         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
44810         macro.
44811         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
44812         also check for glibc-2.4's abort-inducing bug.
44813
44814         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
44815         Low-probability clean-up should be to use rmdir to get rid of
44816         the just-created directory, not unlink.
44817
44818         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
44819         configure fail, and request a bug report to inform us about it.
44820         Add a comment that, barring reports to the contrary, in 2007 we'll
44821         assume ftruncate is universally available.
44822
44823         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
44824
44825         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
44826
44827         2006-03-12  Jim Meyering  <jim@meyering.net>
44828
44829         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
44830         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
44831         * m4/same.m4 (gl_SAME): Likewise.
44832         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
44833
44834         2006-03-11  Eric Blake  <ebb9@byu.net>
44835
44836         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
44837         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
44838         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
44839         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
44840
44841 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
44842
44843         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
44844         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
44845         reported by Mark D. Baushke, one in
44846         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
44847
44848         Merge from coreutils.
44849
44850         * lib/.cppi-disable: Add stdint_.h.
44851         * lib/.cvsignore: Add stdint.h.
44852
44853         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
44854
44855         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
44856         both double and long double versions.
44857         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
44858         * lib/xstrtold.c: New file.
44859         * lib/xstrtod.h (xstrtold): New decl.
44860
44861         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
44862
44863         * lib/filemode.c (setst): Remove.
44864         (strmode): Rewrite to avoid setst.  This makes the code shorter,
44865         (arguably) clearer, and the generated code is a bit smaller on my
44866         Debian GNU/Linux stable x86 host.
44867
44868         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
44869
44870         * lib/filemode.c: Include "filemode.h" first, to test the interface.
44871         Assume that filemode.h includes sys/types.h and sys/stat.h.
44872         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
44873         (ftypelet): Reorder to put common cases first, for efficiency.
44874         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
44875         to do 'M'.
44876         (strmode): Renamed from mode_string, and now stores 12 bytes instead
44877         of 10, for compatibility with FreeBSD.  All callers changed.
44878         (filemodestring): Now stores 12 bytes instead of 10, and sets file
44879         types that can't be deduced solely from st_mode.  First arg is now a
44880         const pointer.
44881         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
44882         (strmode): Renamed from mode_string.
44883         (filemodestring): New decl.
44884         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
44885         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
44886         needed.
44887         (S_ISPORT, S_ISWHT): New macros, if not already defined.
44888
44889         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
44890
44891         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
44892         fsusage.h now does that.  Include fsusage.h first, to test interface.
44893         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
44894         at most one method (the old code could have generated decls that
44895         didn't conform to C89, not that this was ever exercised).
44896         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
44897
44898         2006-03-19  Jim Meyering  <jim@meyering.net>
44899
44900         Work even in a chroot where d_ino values for entries in "/"
44901         don't match the stat.st_ino values for the same names.
44902         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
44903         number, iterate through all entries again, using lstat instead.
44904         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
44905         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
44906
44907         * lib/getcwd.c (__getcwd): Clarify a comment.
44908         Use memcpy in place of a call to strcpy.
44909
44910         2006-03-12  Jim Meyering  <jim@meyering.net>
44911
44912         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
44913         matches that of the current directory (which we're about to chdir ".."
44914         out of), then save the dev-ino of the parent, instead.
44915
44916         * lib/same-inode.h (SAME_INODE): New file/macro.
44917         * lib/chdir-safer.c (SAME_INODE): Remove definition.
44918         Include "same-inode.h", instead.
44919         * lib/same.c: Likewise.
44920         * lib/cycle-check.h: Include "same-inode.h".
44921         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
44922         * lib/cycle-check.c (SAME_INODE): Remove definition.
44923         * lib/root-dev-ino.h: Include "same-inode.h".
44924
44925         2006-03-11  Eric Blake  <ebb9@byu.net>
44926
44927         * lib/same.c (same_name): s/base_name/last_component/
44928         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
44929         * lib/filenamecat.c (file_name_concat): Likewise.
44930
44931         2006-03-11  Eric Blake  <ebb9@byu.net>,
44932                     Paul Eggert  <eggert@cs.ucla.edu>
44933
44934         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
44935         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
44936         drive prefix.
44937         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
44938         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
44939         (last_component): New method.
44940         * lib/dirname.c (dir_len): Determine when drive letters need a
44941         subsequent slash.  Preserve // when it is special.
44942         (dir_name): Don't append dot when drive letter is absolute.
44943         [TEST_DIRNAME]: Move into a full-blown gnulib test.
44944         * lib/basename.c (base_name): New semantics - malloc the result.
44945         Preserve // when it is special.  Preserve relative files that look
44946         like drive letters.
44947         (base_len): Preserve // when it is special.
44948         (last_component): New method, similar to old base_name semantics.
44949         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
44950         base_name.  Strip redundant slashes from ///.
44951
44952 2006-07-03  Jim Meyering  <jim@meyering.net>
44953
44954         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
44955         macro is used before the first cycle_check call.
44956
44957 2006-07-03  Eric Blake  <ebb9@byu.net>
44958
44959         * modules/dirname (Depends-on): Add xstrndup.
44960
44961 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
44962
44963         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
44964         test cases, so that config.log is a bit easier to follow.
44965
44966 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
44967
44968         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
44969         both are 64 bits, since this seems to be the tradition, and this
44970         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
44971         we ever run into a host that prefers long long to long in this
44972         case, we'll need another configure-time test.  Problem reported by
44973         Jim Meyering.
44974
44975 2006-07-02  Eric Blake  <ebb9@byu.net>
44976
44977         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
44978
44979 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
44980
44981         * modules/inttypes (Depends-on): No longer depends on stdint.
44982         * modules/stdint (Description): Say more about assumptions.
44983         Say that the fast types might differ.  Say macros are used.
44984         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
44985         (Makefile.am): Revise list of substituted symbols to match
44986         new stdint.m4.
44987         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
44988         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
44989         * tests/test-stdint.c (verify_same_types)
44990         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
44991         the code conforms to C99/C89.
44992         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
44993         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
44994
44995 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
44996
44997         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
44998         but fix a bug, by requiring at least 64 bits.
44999         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
45000         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
45001         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
45002         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
45003
45004         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
45005         changes.  Make 2.59 a prerequisite.  Check and substitute for
45006         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
45007         inttypes.h.  Do not use special include files; just use the
45008         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
45009         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
45010         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
45011         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
45012         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
45013         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
45014         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
45015         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
45016         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
45017         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
45018         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
45019         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
45020         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
45021         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
45022         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
45023         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
45024         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
45025         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
45026         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
45027         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
45028         WINT_MAX.  Check for C99 conformance more strictly, by detecting
45029         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
45030         not check for things that C99 does not require, e.g., int8_t.  If
45031         a test isn't needed unless <stdint.h> isn't working, and is
45032         unlikely to be needed for any other reason, then don't do it
45033         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
45034         size_t, since we assume C89 freestanding at least.  Do not check
45035         for sig_atomic_t, wchar_t, or wint_t, since the code now does
45036         the right thing even if the types are not defined.  Instead use:
45037         (gl_STDINT_TYPE_PROPERTIES): New macro.
45038         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
45039         testing whether <sys/types.h> clashes, as Autoconf does this for
45040         us now.  All uses removed.
45041         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
45042         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
45043         (gl_CHECK_TYPE_SAME):
45044         Remove; no longer needed.
45045         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
45046         exists, since we'll return 0 anyway in that case.
45047         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
45048
45049 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
45050
45051         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
45052         possible collision with system files.
45053         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
45054         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
45055         WCHAR_MIN and WCHAR_MAX in this case.
45056         (<stddef.h>): Do not include; no longer needed.
45057         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
45058         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
45059         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
45060         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
45061         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
45062         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
45063         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
45064         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
45065         !defined(__c99))]: Include in this case too, since it's harmless
45066         now.
45067         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
45068         dangerous to do so.
45069         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
45070         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
45071         (_STDINT_MIN, _STDINT_MAX): New macros.
45072         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
45073         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
45074         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
45075         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
45076         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
45077         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
45078         macros, not typedefs; this simplifies things quite a bit.
45079         Use long int for all types narrower than int64_t.
45080         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
45081         Define in terms of long long int or int64_t or long int,
45082         not int64_t or int32_t.  This saves some compile-time testing.
45083         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
45084         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
45085         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
45086         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
45087         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
45088         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
45089         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
45090         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
45091         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
45092         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
45093         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
45094         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
45095         undef any previous version and define our own version, for
45096         simplicity and consistency with the new macros for types.
45097         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
45098         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
45099         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
45100         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
45101         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
45102         @WINT_T_SUFFIX@ to keep things simple here.
45103         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
45104         Simplify by assuming typical 8/16/32/64 host, since we're
45105         already doing that elsewhere anyway.
45106         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
45107         and assume long long int is 64 bits if available.  This
45108         speeds up 'configure'.
45109
45110 2006-07-01  Eric Blake  <ebb9@byu.net>
45111
45112         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
45113         Reported by Andreas Buening.
45114
45115 2006-07-01  Eric Blake  <ebb9@byu.net>
45116
45117         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
45118
45119 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
45120
45121         * lib/getaddrinfo.c: fixed typo
45122
45123 2006-06-29  Jim Meyering  <jim@meyering.net>
45124
45125         * modules/strftime (Maintainer): Add my name, since with the
45126         FPRINTFTIME changes strftime.c has forked from glibc.
45127
45128 2006-06-29  Eric Blake  <ebb9@byu.net>
45129
45130         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
45131
45132 2006-06-29  Eric Blake  <ebb9@byu.net>
45133
45134         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
45135
45136 2006-06-29  Eric Blake  <ebb9@byu.net>
45137
45138         * lib/stat_.h: New file.
45139
45140 2006-06-29  Eric Blake  <ebb9@byu.net>
45141
45142         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
45143         unused static function.
45144
45145 2006-06-29  Eric Blake  <ebb9@byu.net>
45146
45147         * doc/functions.texi (Function Portability): Document missing lstat
45148         on mingw.
45149
45150 2006-06-29  Eric Blake  <ebb9@byu.net>
45151
45152         * MODULES.html.sh: Add sys_stat.
45153         * modules/sys_stat: New module.
45154         * modules/mkstemp (Depends-on): Add sys_stat.
45155
45156 2006-06-29  Derek R. Price  <derek@ximbiot.com>
45157
45158         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
45159
45160 2006-06-29  Derek R. Price  <derek@ximbiot.com>
45161
45162         * m4/c-bs-a.m4: Removed.
45163
45164 2006-06-29  Derek R. Price  <derek@ximbiot.com>
45165
45166         * lib/strftime.c: Assume strftime() exists.
45167
45168 2006-06-29  Derek Price  <derek@ximbiot.com>
45169
45170         * modules/c-bs-a: Removed - \a is C89.
45171         * MODULES.html.sh: Remove c-bs-a.
45172
45173 2006-06-29  Bruno Haible  <bruno@clisp.org>
45174
45175         * modules/wcwidth (License): Change to LGPL.
45176
45177 2006-06-28  Simon Josefsson  <jas@extundo.com>
45178
45179         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
45180         on _WIN32.
45181
45182         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
45183         getnameinfo.
45184
45185 2006-06-28  Simon Josefsson  <jas@extundo.com>
45186
45187         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
45188
45189 2006-06-28  Simon Josefsson  <jas@extundo.com>
45190
45191         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
45192         functions there.  It will succeed on Windows XP, but on Windows
45193         2000 and (presumably) earlier, it will fail, and use the internal
45194         re-implementation.
45195         (use_win32_p): New function.
45196         (getaddrinfo): Use strtoul on servname, to support numeric ports.
45197         Support AI_NUMERICSERV to disable getservbyname.
45198         (getnameinfo): New function, only supports
45199         NI_NUMERICHOST|NI_NUMERICSERV for now.
45200
45201         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
45202         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
45203         getnameinfo.
45204
45205 2006-06-28  Eric Blake  <ebb9@byu.net>
45206
45207         * modules/wcwidth: New file.
45208         * modules/mbchar (Depends-on): Add wcwidth.
45209         * modules/mbswidth (Depends-on): Add wcwidth.
45210         * MODULES.html.sh: Add wcwidth.
45211
45212 2006-06-28  Eric Blake  <ebb9@byu.net>
45213
45214         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
45215         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
45216
45217 2006-06-28  Eric Blake  <ebb9@byu.net>
45218
45219         * lib/xvasprintf.h: Fix comments.
45220
45221 2006-06-28  Eric Blake  <ebb9@byu.net>
45222
45223         * lib/mbchar.h (wcwidth): Include wcwidth.h.
45224         * lib/mbswidth.c (wcwidth): Move from here...
45225         * lib/wcwidth.h: ...to this new file.
45226
45227 2006-06-28  Derek R. Price  <derek@ximbiot.com>
45228
45229         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
45230
45231         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
45232         it's obsolete.
45233         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
45234
45235 2006-06-28  Derek R. Price  <derek@ximbiot.com>
45236
45237         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
45238         Autoconf 2.60 says this stuff was obsolete.
45239
45240 2006-06-28  Bruno Haible  <bruno@clisp.org>
45241
45242         * modules/wcwidth (Files): Add m4/wchar_t.m4.
45243
45244 2006-06-28  Bruno Haible  <bruno@clisp.org>
45245
45246         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
45247         gt_TYPE_WCHAR_T.
45248
45249 2006-06-28  Bruno Haible  <bruno@clisp.org>
45250
45251         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
45252         declaration for wcwidth.
45253         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
45254
45255 2006-06-28  Bruno Haible  <bruno@clisp.org>
45256
45257         * lib/mkdtemp.c [MINGW]: Include <io.h>.
45258         (mkdir): Define using _mkdir.
45259
45260 2006-06-28  Bruno Haible  <bruno@clisp.org>
45261
45262         * lib/getaddrinfo.h: Fix POSIX URL.
45263         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
45264         _WIN32.
45265         (use_win32_p): Make static.
45266         (getaddrinfo): Reject service name if it is empty or does not consist
45267         solely of decimal digits, or if its value is > 65535.
45268         (getnameinfo): Remove useless casts.
45269
45270 2006-06-27  Simon Josefsson  <jas@extundo.com>
45271
45272         * modules/sys_select: New file, suggested by Bruno Haible, Paul
45273         Eggert and Martin Lambers.
45274
45275 2006-06-27  Simon Josefsson  <jas@extundo.com>
45276
45277         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
45278         Eggert and Martin Lambers.
45279
45280 2006-06-27  Bruno Haible  <bruno@clisp.org>
45281
45282         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
45283         result to 0, not to empty.
45284         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
45285
45286 2006-06-27  Bruno Haible  <bruno@clisp.org>
45287
45288         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
45289
45290 2006-06-26  Simon Josefsson  <jas@extundo.com>
45291
45292         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
45293         present.
45294
45295 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
45296
45297         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
45298         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
45299         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
45300
45301 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
45302
45303         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
45304
45305 2006-06-26  Bruno Haible  <bruno@clisp.org>
45306
45307         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
45308
45309 2006-06-26  Bruno Haible  <bruno@clisp.org>
45310
45311         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
45312
45313 2006-06-26  Bruno Haible  <bruno@clisp.org>
45314
45315         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
45316         SGI C compiler in pre-C99 mode.
45317         Suggested by Mark D. Baushke and Larry Jones.
45318
45319 2006-06-26  Bruno Haible  <bruno@clisp.org>
45320
45321         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
45322         WCHAR_MAX.
45323         Reported by Mark D. Baushke and Larry Jones.
45324
45325 2006-06-26  Bruno Haible  <bruno@clisp.org>
45326
45327         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
45328         in pre-C99 mode.
45329         Suggested by Mark D. Baushke and Larry Jones.
45330
45331 2006-06-23  Simon Josefsson  <jas@extundo.com>
45332             Bruno Haible  <bruno@clisp.org>
45333
45334         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
45335         Emit mostlyclean-local rule.
45336         (func_emit_tests_Makefile_am): Likewise.
45337         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
45338
45339 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
45340
45341         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
45342
45343 2006-06-23  Bruno Haible  <bruno@clisp.org>
45344
45345         * tests/test-stdint.c: Update to match ISO C 99 Technical
45346         Corrigendum 1.
45347
45348 2006-06-23  Bruno Haible  <bruno@clisp.org>
45349
45350         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
45351
45352 2006-06-23  Bruno Haible  <bruno@clisp.org>
45353
45354         * lib/stdint_.h: Treat IRIX like OpenBSD.
45355
45356 2006-06-23  Bruno Haible  <bruno@clisp.org>
45357
45358         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
45359         ISO C 99 Technical Corrigendum 1.
45360
45361 2006-06-22  Simon Josefsson  <jas@extundo.com>
45362
45363         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
45364         MinGW.
45365
45366 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
45367
45368         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
45369         needed.  Some compiler complained about some of them.  Problem reported
45370         by Larry Jones in
45371         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
45372
45373 2006-06-21  Simon Josefsson  <jas@extundo.com>
45374
45375         * tests/test-getaddrinfo.c: New file.
45376
45377         * modules/getaddrinfo-tests: New file.
45378
45379         * MODULES.html.sh: Add inet_pton.
45380
45381         * modules/inet_pton: New file.
45382
45383 2006-06-21  Simon Josefsson  <jas@extundo.com>
45384
45385         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
45386         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
45387         of using the (limited) gnulib implementation on Windows XP.
45388
45389         * m4/inet_pton.m4: New file.
45390
45391 2006-06-21  Simon Josefsson  <jas@extundo.com>
45392
45393         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
45394         variable.
45395
45396         * lib/socket_.h: Don't define WINVER.
45397
45398         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
45399         slightly modified to work in gnulib.
45400
45401 2006-06-21  Simon Josefsson  <jas@extundo.com>
45402
45403         * doc/gnulib.texi (Windows sockets): Add.
45404
45405 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
45406
45407         * lib/read-file.c (fread_file): Start with buffer allocation of
45408         0 bytes rather than 1 byte; this simplifies the code.
45409         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
45410         code to free buffer and save/restore errno.
45411         (internal_read_file): Remove unused local.
45412
45413 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
45414
45415         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
45416         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
45417         Problem reported by Denis Excoffier in
45418         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
45419
45420 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45421
45422         * modules/sys_socket, modules/socklen: Include sys/types since
45423         FreeBSD 4.x's sys/socket.h needs it.
45424
45425 2006-06-19  Simon Josefsson  <jas@extundo.com>
45426
45427         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
45428
45429 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
45430
45431         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
45432
45433 2006-06-19  Bruno Haible  <bruno@clisp.org>
45434
45435         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
45436         and FULL_PATH_INTTYPES_H in angle brackets.
45437         Reported by Mark D. Baushke <mdb@gnu.org>.
45438
45439 2006-06-17  Eric Blake  <ebb9@byu.net>
45440
45441         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
45442         errno.
45443
45444 2006-06-17  Bruno Haible  <bruno@clisp.org>
45445
45446         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
45447         <sys/inttypes.h>.
45448
45449 2006-06-17  Bruno Haible  <bruno@clisp.org>
45450
45451         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
45452         whether errno is declared. Assume <errno.h> declares errno.
45453
45454 2006-06-17  Bruno Haible  <bruno@clisp.org>
45455
45456         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
45457
45458 2006-06-17  Bruno Haible  <bruno@clisp.org>
45459
45460         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
45461         problem on Solaris 2.5.1.
45462
45463 2006-06-16  Eric Blake  <ebb9@byu.net>
45464
45465         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
45466         * lib/unicodeio.c [!defined errno]: Likewise.
45467         * lib/strtol.c [!defined errno]: Likewise.
45468         * lib/strtod.c [!defined errno]: Likewise.
45469
45470 2006-06-15  Eric Blake  <ebb9@byu.net>
45471
45472         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
45473
45474 2006-06-15  Eric Blake  <ebb9@byu.net>
45475
45476         * config/srclist.txt (ssize_t.m4): Lose sync.
45477
45478 2006-06-15  Bruno Haible  <bruno@clisp.org>
45479
45480         * modules/stdint (Files): Include m4/full-header-path.m4,
45481         m4/size_max.m4, m4/wchar_t.m4.
45482         (Makefile.am): Many more substitutions.
45483         * modules/stdint-tests: New file.
45484         * tests/test-stdint.c: New file.
45485
45486 2006-06-15  Bruno Haible  <bruno@clisp.org>
45487
45488         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
45489         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
45490         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
45491         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
45492         gl_CHECK_TYPE_SAME): New macros.
45493
45494 2006-06-15  Bruno Haible  <bruno@clisp.org>
45495
45496         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
45497
45498 2006-06-15  Bruno Haible  <bruno@clisp.org>
45499
45500         * lib/stdint_.h: Rewritten to be fully auto-configured.
45501         Fixes bug on HP-UX/IA64.
45502
45503 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
45504
45505         * lib/getdate.y (__attribute__): Don't define if already defined.
45506         Problem reported by Larry Jones.
45507         * lib/utimens.c (__attribute__): Likewise.
45508
45509 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
45510
45511         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
45512         reported by Andreas Schwab.
45513
45514 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45515             Bruno Haible  <bruno@clisp.org>
45516
45517         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
45518         check for the declaration of strnlen and a run test that exposes the
45519         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
45520         rpl_strndup.
45521
45522 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45523             Bruno Haible  <bruno@clisp.org>
45524
45525         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
45526
45527 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45528
45529         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
45530         compile test, for Tru64 4.0D.
45531
45532 2006-05-28  Karl Berry  <karl@gnu.org>
45533
45534         * config/srclist.txt (printf-args.c): lose sync.
45535
45536 2006-05-26  Martin Lambers  <marlam@marlam.de>
45537
45538         * lib/getpass.c: Updates the test for the native W32 API, and adds
45539         missing includes, thus fixing compilation warnings.
45540
45541 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
45542
45543         * lib/exclude.c (exclude_fnmatch): New function.
45544         (excluded_file_name): Call exclude_fnmatch.
45545         * lib/exclude.h (excluded_file_name): New prototype
45546
45547 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
45548
45549         * lib/tempname.c (small_open, large_open): New macros.
45550         (__open, __open64) [!_LIBC]: Remove.
45551         (__gen_tempname): Use small_open and large_open instead of __open
45552         and __open64.  This fixes a portability bug on HP-UX 11.11i
45553         reported by Simon Wing-Tang in
45554         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
45555
45556 2006-05-24  Bruno Haible  <bruno@clisp.org>
45557
45558         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
45559         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
45560         Reported by Thorsten Maerz <torte@netztorte.de> via
45561         Aaron Stone <aaron@serendipity.cx>.
45562
45563 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
45564
45565         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
45566         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
45567         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
45568         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
45569         not really conditional on the cache.
45570         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
45571
45572 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
45573
45574         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
45575         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
45576         (my_usleep): Don't mishandle maximum value.
45577
45578 2006-05-19  Jim Meyering  <jim@meyering.net>
45579
45580         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
45581
45582 2006-05-17  Bruno Haible  <bruno@clisp.org>
45583
45584         Cygwin portability.
45585         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
45586
45587 2006-05-17  Bruno Haible  <bruno@clisp.org>
45588
45589         * lib/stdint_.h: Fix recognition of Cygwin.
45590
45591 2006-05-15  Bruno Haible  <bruno@clisp.org>
45592
45593         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
45594         on libtool patch by Ralf Wildenhues.
45595
45596 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
45597
45598         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
45599         test for C99 conformance; (bool) 0.5 is an integer constant
45600         expression, but (bool) -0.5 is not.  Problem reported by Fedor
45601         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
45602
45603 2006-05-11  Simon Josefsson  <jas@extundo.com>
45604
45605         * m4/xvasprintf.m4: Fix obvious typo.
45606
45607 2006-05-11  Jim Meyering  <jim@meyering.net>
45608
45609         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
45610         James Lemley.
45611
45612 2006-05-10  Simon Josefsson  <jas@extundo.com>
45613
45614         * lib/md4.c: Typo fix, update copyright years.
45615         (K1, K2): Don't use L because it turn computations into 64-bit on
45616         64-bit platforms.
45617
45618 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
45619
45620         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
45621         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
45622         unwanted sign propagation, e.g., on hosts with 64-bit int.
45623         There still are some problems with reeelly weird theoretical hosts
45624         (e.g., 33-bit int) but it's not worth worrying about now.
45625         * lib/sha1.c (rol): Likewise.
45626         (K1, K2, K3, K4): Remove unnecessary L suffix.
45627
45628 2006-05-10  Bruno Haible  <bruno@clisp.org>
45629
45630         * lib/des.c: Cast to avoid warnings.
45631
45632 2006-05-09  Bruno Haible  <bruno@clisp.org>
45633
45634         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
45635         (Depends-on): Depend also on xsize, stdarg.
45636         (configure.ac): Add gl_XVASPRINTF.
45637
45638 2006-05-09  Bruno Haible  <bruno@clisp.org>
45639
45640         * m4/xvasprintf.m4: New file.
45641
45642 2006-05-09  Bruno Haible  <bruno@clisp.org>
45643
45644         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
45645         (EOVERFLOW): Define fallback value.
45646         (xstrcat): New function.
45647         (xvasprintf): Recognize the special case of a string concatenation.
45648
45649 2006-05-08  Eric Blake  <ebb9@byu.net>
45650
45651         * gnulib-tool (func_version): Base copyright year on CVS date.
45652         (func_emit_copyright_notice): New function.
45653         (func_emit_lib_Makefile_am): Use it.
45654         (func_emit_tests_Makefile_am): Likewise.
45655         (func_import): Likewise.
45656
45657 2006-05-08  Bruno Haible  <bruno@clisp.org>
45658
45659         * modules/stdarg: New file.
45660         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
45661
45662 2006-05-08  Bruno Haible  <bruno@clisp.org>
45663
45664         * m4/stdarg.m4: New file, from GNU gettext.
45665
45666 2006-05-08  Bruno Haible  <bruno@clisp.org>
45667
45668         * config/srclist.txt (build-aux/config.rpath): different from latest
45669         release.
45670
45671 2006-05-08  Bruno Haible  <bruno@clisp.org>
45672
45673         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
45674
45675 2006-05-05  Jim Meyering  <jim@meyering.net>
45676
45677         * m4/warning.m4: New file, derived from bison's file by the same name.
45678
45679 2006-05-03  Bruno Haible  <bruno@clisp.org>
45680
45681         * lib/stdint_.h: Shorter URL.
45682         * lib/inttypes.h: Likewise.
45683
45684 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
45685
45686         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
45687
45688 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
45689
45690         * lib/verify.h: Document the internals better.  Most of this change
45691         was written by Bruno Haible.
45692
45693 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
45694
45695         * doc/verify.texi: New file, partly based on a proposal by
45696         Bruno Haible.
45697
45698 2006-05-02  Bruno Haible  <bruno@clisp.org>
45699
45700         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
45701         test from here...
45702         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
45703
45704 2006-04-29  Bruno Haible  <bruno@clisp.org>
45705
45706         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
45707         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
45708
45709 2006-04-29  Bruno Haible  <bruno@clisp.org>
45710
45711         * gnulib-tool: Make --update option actually work.
45712
45713 2006-04-29  Bruno Haible  <bruno@clisp.org>
45714
45715         * doc/gcd.texi: New file.
45716         * doc/gnulib.texi: Include it.
45717
45718 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
45719
45720         * lib/getdate.y (get_date): When adding relative date, start with the
45721         initial time, not with the result of the first mktime call.
45722
45723 2006-04-25  Bruno Haible  <bruno@clisp.org>
45724
45725         * gnulib-tool (func_import): Output the include directives in three
45726         blocks, sorted separately.
45727         Reported by Ben Pfaff <blp@cs.stanford.edu>.
45728
45729 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
45730
45731         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
45732         to define main with arguments, for C++.  Reported by Eric Blake.
45733         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
45734         Prefer 'int main ()' to 'int main (void)', for C++.
45735         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
45736         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
45737         for 'main', for C99 and C++.
45738
45739 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
45740
45741         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
45742         Don't assume that exit status -1 is valid.
45743         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
45744         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
45745         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
45746         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
45747         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
45748         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
45749         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
45750         functions can be used without declaring them, or that you can
45751         exit with status -1.
45752         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
45753
45754 2006-04-24  Karl Berry  <karl@gnu.org>
45755
45756         * config/srclist.txt (longdouble.m4): sync lost.
45757
45758 2006-04-24  Eric Blake  <ebb9@byu.net>
45759
45760         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
45761
45762 2006-04-24  Bruno Haible  <bruno@clisp.org>
45763
45764         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
45765         poll() implementation in AIX.
45766         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45767
45768 2006-04-24  Bruno Haible  <bruno@clisp.org>
45769
45770         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
45771         assigned exactly once.
45772
45773 2006-04-23  Claudio Fontana  <claudio@gnu.org>
45774             Bruno Haible  <bruno@clisp.org>
45775
45776         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
45777         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
45778         for AM_CPPFLAGS.
45779
45780 2006-04-23  Bruno Haible  <bruno@clisp.org>
45781
45782         * modules/copy-file: Depend on unistd.
45783         * modules/execute: Likewise.
45784         * modules/fatal-signal: Likewise.
45785         * modules/findprog: Likewise.
45786         * modules/mkdtemp : Likewise.
45787         * modules/pipe: Likewise.
45788         * modules/wait-process: Likewise.
45789
45790 2006-04-23  Bruno Haible  <bruno@clisp.org>
45791
45792         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
45793         condition was already detected.
45794         Reported by Ben Pfaff <blp@cs.stanford.edu>.
45795
45796 2006-04-23  Bruno Haible  <bruno@clisp.org>
45797
45798         * lib/copy-file.c: Include <unistd.h> unconditionally.
45799         * lib/execute.c: Likewise.
45800         * lib/fatal-signal.c: Likewise.
45801         * lib/findprog.c: Likewise.
45802         * lib/mkdtemp.c: Likewise.
45803         * lib/pipe.h: Likewise.
45804         * lib/pipe.c: Likewise.
45805         * lib/wait-process.h: Likewise.
45806
45807 2006-04-23  Bruno Haible  <bruno@clisp.org>
45808
45809         * gnulib-tool (func_usage): Fix --import description. Document
45810         --update.
45811         (func_import): Create temporary file in a temporary directory, if
45812         --dry-run is specified. Silence errors from 'grep' when there are no
45813         m4 files in $m4dir.
45814         (func_create_testdir): Silence errors from 'grep' when there are no
45815         m4 files in $m4dir.
45816         Reported by Karl Berry <karl@freefriends.org>.
45817
45818 2006-04-20  Bruno Haible  <bruno@clisp.org>
45819
45820         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
45821         one argument, so that the code will be portable to Autoconf 2.60.
45822         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
45823         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
45824         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
45825
45826 2006-04-19  Derek Price  <derek@ximbiot.com>
45827             Eric Blake  <ebb9@byu.net>
45828
45829         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
45830         rather than "/full/path.h".  Update comment to match.  Shorten &
45831         generalize m4_translit call via AS_TR_CPP.
45832
45833 2006-04-19  Derek Price  <derek@ximbiot.com>
45834             Eric Blake  <ebb9@byu.net>
45835
45836         * lib/inttypes.h: Correct grammar in comment.
45837
45838 2006-04-18  Derek Price  <derek@ximbiot.com>
45839             Paul Eggert  <eggert@cs.ucla.edu>
45840
45841         * modules/inttypes: New file.
45842         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
45843
45844 2006-04-18  Derek Price  <derek@ximbiot.com>
45845             Paul Eggert  <eggert@cs.ucla.edu>
45846
45847         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
45848         New files.
45849
45850 2006-04-18  Derek Price  <derek@ximbiot.com>
45851             Paul Eggert  <eggert@cs.ucla.edu>
45852
45853         * lib/inttypes.h: New file.
45854         * lib/strtoimax.c: Assume <inttypes.h>.
45855
45856 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
45857
45858         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
45859         isn't mounted.  Problem reported by Kir Kolyshkin.
45860
45861 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
45862
45863         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
45864         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
45865         Derek R. Price.
45866         * lib/regex.h (RE_DUP_MAX): Update comment to match current
45867         implementation.
45868
45869 2006-04-12  Eric Blake  <ebb9@byu.net>
45870
45871         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
45872         is now done automatically by the corresponding Autoconf macro.
45873
45874 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
45875
45876         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
45877         time_r.h.
45878
45879 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
45880
45881         Merge regex changes from libc, removing some of our
45882         POSIX-conformance changes that were rejected and redoing them in a
45883         less-intrusive way.
45884
45885         * lib/regcomp.c (re_compile_internal, init_dfa):
45886         Length arg is now size_t, not Idx.  All uses changed.
45887         (peek_token): Forward decl now says internal_function.
45888         (__re_error_msgid, __re_error_msgid_idx):
45889         Now static rather than extern with attribute_hidden.
45890         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
45891         For some reason libc prefers K&R style defns for external functions.
45892         (regerror) [!defined _LIBC]: Likewise.
45893         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
45894         (seek_collating_symbol_entry, lookup_collation_sequence_value):
45895         (build_range_exp, build_collating_symbol):
45896         Use K&R-style defn.
45897         (re_compile_fastmap): Use '\0' to memset, not 0.
45898         (utf8_sb_map): Make the calculations more obvious.
45899         (init_dfa, parse_bracket_exp, build_charclass_op):
45900         Call calloc and cast result, as glibc does.
45901         (init_word_char, fetch_token, peek_token, peek_token_bracket):
45902         (build_range_exp, build_collating_symbol):
45903         Now internal functions.
45904
45905         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
45906
45907         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
45908         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
45909         Don't depend on VMS; depend on __VMS instead, for POSIX
45910         namespace cleanness.
45911         (regoff_t): Define to ssize_t, not long int.
45912
45913         Remove the REG_ macros named below.  Instead, make the old names
45914         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
45915         __USE_GNU_REGEX.
45916         (REG_BACKSLASH_ESCAPE_IN_LISTS):
45917         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
45918         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
45919         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
45920         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
45921         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
45922         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
45923         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
45924         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
45925         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
45926         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
45927         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
45928         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
45929         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
45930         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
45931         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
45932         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
45933         (REG_NREGS):
45934         Remove.  All uses replaced by the old RE_* names.
45935         (RE_BACKSLASH_ESCAPE_IN_LISTS):
45936         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
45937         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
45938         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
45939         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
45940         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
45941         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
45942         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
45943         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
45944         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
45945         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
45946         Don't bother having these macros be independent of each others'
45947         values, since they no longer exist in the POSIX name space.
45948
45949         Rename the following member names back to their old names,
45950         unless !__USE_GNU_REGEX.  All uses changed back.
45951         (buffer): Renamed from re_buffer.
45952         (allocated): Renamed from re_allocated.
45953         (used): Renamed from re_used.
45954         (syntax): Renamed from re_syntax.
45955         (fastmap): Renamed from re_fastmap.
45956         (translate): Renamed from re_translate.
45957         (can_be_null): Renamed from re_can_be_null.
45958         (regs_allocated): Renamed from re_regs_allocated.
45959         (fastmap_accurate): Renamed from re_fastmap_accurate.
45960         (no_sub): Renamed from re_no_sub.
45961         (not_bol): Renamed from re_not_bol.
45962         (not_eol): Renamed from re_not_eol.
45963         (newline_anchor): Renamed from re_newline_anchor.
45964         (num_regs): Renamed from rm_num_regs.
45965         (start): Renamed from rm_start.
45966         (end): Renamed from rm_end.
45967
45968         (free_state): Move up a bit.
45969
45970         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
45971         #define to be empty.
45972         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
45973         when that is what is intended.
45974         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
45975         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
45976         (MAX): New macro.
45977         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
45978         All uses changed back to re_malloc, etc.  It's now the caller's
45979         responsibility to check for overflow; all callers changed.
45980         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
45981         (re_x2nrealloc): Remove.
45982         (free_state): Remove decl.
45983
45984         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
45985         (re_set_registers, re_exec):
45986         Use K&R-style defn.
45987
45988         2006-01-31  Roland McGrath  <roland@redhat.com>
45989
45990         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
45991         Reported by Mike Frysinger <vapier@gentoo.org>.
45992
45993         2006-01-15  Andreas Jaeger  <aj@suse.de>
45994
45995         [BZ #1950]
45996         * lib/regex_internal.c (re_string_reconstruct): Adjust for
45997         build_wcs_upper_buffer change.
45998         (build_wcs_upper_buffer): Change return type.
45999
46000         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
46001
46002         * lib/regex_internal.h: Include <stdint.h> if available.
46003
46004         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
46005
46006         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
46007
46008         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
46009
46010         * lib/regcomp.c: Adjust for changed secondary hash function.
46011
46012         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
46013
46014         * lib/regex.h: Pretty printing.
46015         Clean up namespace a bit.
46016
46017         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
46018
46019         * lib/regexec.c (update_cur_sifted_state, check_arrival,
46020         check_arrival_add_next_nodes): Avoid using uninitialized variable.
46021
46022         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
46023                     Ulrich Drepper  <drepper@redhat.com>
46024
46025         [BZ #1302]
46026         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
46027         changed.
46028         (bitset_word_t): Renamed from bitset_word.  All uses changed.
46029
46030         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
46031
46032         [BZ #281]
46033         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
46034         * lib/regcomp.c: Remove unnecessary uses of
46035         unsigned RE_TRANSLATE_TYPE.
46036         * lib/regex_internal.h: Likewise.
46037         * lib/regex_internal.c: Likewise.
46038         * lib/regexec.c: Likewise.
46039         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
46040
46041         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
46042
46043         * lib/regexec.c (find_recover_state): Remove unnecessary
46044         initialization.
46045         (transit_state_bkref): Make DFA a const pointer.
46046         (get_subexp): Likewise.
46047         (check_arrival): Likewise.
46048         (update_cur_sifted_state): Likewise.
46049         (re_search_internal): Likewise.
46050         (prune_impossible_nodes): Likewise.
46051         (acquire_init_state_context): Likewise.
46052         (proceed_next_node): Likewise.
46053         (set_regs): Likewise.
46054         (free_fail_stack_return): Likewise.
46055         (check_arrival_expand_ecl): Mark DFA parameter as const.
46056         (check_arrival_expand_ecl_sub): Likewise.
46057         (check_subexp_limits): Likewise.
46058         (sub_epsilon_src_nodes):  Likewise.
46059         (add_epsilon_src_nodes):  Likewise.
46060         (merge_state_array): Likewise.
46061         (update_regs): Likewise.
46062         (build_trtable): Likewise.
46063         (sift_states_backward): Mark MCTX parameter as const.
46064         (build_sifted_states): Likewise.
46065         (update_cur_sifted_state): Likewise.
46066         (sift_states_mkref): Likewise.
46067         (check_arrival_expand_ecl): Mark eclosure as const.
46068         (check_dst_limits_calc_pos_1): Likewise.
46069         * lib/regex_internal.h (re_match_context_t): Make dfa a const
46070         pointer.
46071
46072         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
46073
46074         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
46075         (transit_state_sb): Likewise.
46076         (transit_state_mb): Likewise.
46077         (sift_states_iter_mb): Likewise.
46078         (check_arrival_add_next_nodes): Likewise.
46079         (check_node_accept_bytes): Change first parameter to pointer-to-const.
46080         [_LIBC] (re_search_2_stub): Use mempcpy.
46081
46082         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
46083         mbrtowc for very simple UTF-8 case.
46084
46085         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
46086         a pointer-to-const.
46087         (re_acquire_state_context): Likewise.
46088         * lib/regex_internal.h: Adjust prototypes.
46089
46090         * lib/regex.c: Prevent using C++ compilers.
46091
46092         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
46093         (re_acquire_state_context): Likewise.
46094
46095 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
46096
46097         * modules/regex (Depends-on): Add ssize_t.
46098
46099 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
46100
46101         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
46102         translation table.
46103
46104 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
46105
46106         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
46107
46108 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
46109             Bruno Haible  <bruno@clisp.org>
46110
46111         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
46112         <sys/types.h> and <inttypes.h>.
46113
46114 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46115
46116         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
46117         `__error_t_defined', so argp.h will not typedef the former.
46118
46119 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
46120
46121         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
46122         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
46123         glibc names.  Even if glibc is changed to conform to POSIX, the
46124         traditional names will be available anyway, since regex depends on
46125         the extensions module.  Also, fix a longstanding typo in the
46126         implementation of Spencer ERE test #75 from grep 2.3.  Problems
46127         reported by Emanuele Giaquinta.  Also, change sense of cached
46128         variable, so that the message makes sense.
46129
46130 2006-03-24  Simon Josefsson  <jas@extundo.com>
46131
46132         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
46133         including some doc fixes.
46134         (base64_encode_alloc): Fix +1 bug on allocation failures.
46135
46136 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46137
46138         * lib/base64.c (base64_encode): Do not read past end of array with
46139         unsanitized input on systems with CHAR_BIT > 8.
46140
46141 2006-03-24  Eric Blake  <ebb9@byu.net>
46142
46143         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
46144
46145 2006-03-22  Karl Berry  <karl@gnu.org>
46146
46147         * config/srclist.txt (*setenv.[ch]): get from coreutils.
46148         * config/srclistvars.sh (COREUTILS): new var.
46149
46150 2006-03-17  Jim Meyering  <jim@meyering.net>
46151
46152         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
46153         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
46154
46155 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
46156
46157         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
46158         no longer needs it.  Instead, check that regoff_t is as least
46159         as wide as ptrdiff_t.
46160
46161         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
46162         so that our regex.h stays compatible with the installed regex.
46163         This is helpful for installers who configure --without-included-regex.
46164         Problem reported by Emanuele Giaquinta.
46165
46166 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
46167
46168         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
46169         Typedef to long int, not to off_, as POSIX will likely change
46170         in that direction.
46171
46172 2006-03-15  Eric Blake  <ebb9@byu.net>
46173
46174         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
46175
46176 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
46177
46178         * lib/argp-help.c (validate_uparams): Fix typo
46179         * lib/argp-parse.c (argp_default_options): Consistently begin help
46180         messages with a lowercase letter.
46181
46182 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
46183
46184         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
46185         overrun buffers and shouldn't be used (much as gets shouldn't be
46186         used).
46187         * lib/time_r.c (asctime_r, ctime_r): Likewise.
46188
46189 2006-03-08  Simon Josefsson  <jas@extundo.com>
46190
46191         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
46192         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46193
46194 2006-03-08  Simon Josefsson  <jas@extundo.com>
46195
46196         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
46197         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46198
46199 2006-03-08  Simon Josefsson  <jas@extundo.com>
46200
46201         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
46202         signal that configure disabled the device.
46203
46204 2006-03-08  Simon Josefsson  <jas@extundo.com>
46205
46206         * build-aux/maint.mk: Fix refresh-po, to handle no translated
46207         languages.
46208
46209 2006-03-07  Simon Josefsson  <jas@extundo.com>
46210
46211         * modules/getopt (Depends-on): Add unistd.
46212
46213         * modules/unistd: New file.
46214
46215 2006-03-07  Simon Josefsson  <jas@extundo.com>
46216
46217         * modules/gc-random: New file.
46218
46219 2006-03-07  Simon Josefsson  <jas@extundo.com>
46220
46221         * m4/unistd_h.m4: New file.
46222
46223 2006-03-07  Simon Josefsson  <jas@extundo.com>
46224
46225         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
46226         test to be side-effect free by storing the result in the cache
46227         variable gl_cv_lib_readline, and moving the assignment of
46228         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
46229         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46230
46231 2006-03-07  Simon Josefsson  <jas@extundo.com>
46232
46233         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
46234         error on missing devices (the functions will return an error).
46235
46236         * m4/gc.m4: Move random stuff to gc-random.m4
46237
46238 2006-03-07  Simon Josefsson  <jas@extundo.com>
46239
46240         * lib/unistd_.h: New file.
46241
46242 2006-03-07  Simon Josefsson  <jas@extundo.com>
46243
46244         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
46245
46246 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
46247
46248         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
46249         Problem reported by Juan Manuel Guerrero.
46250
46251 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
46252
46253         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
46254         the unistd module.
46255         * lib/getlogin_r.c: Likewise.
46256         * lib/getlogin_r.h: Likewise.
46257         * lib/glob.c: Likewise.
46258         * lib/pagealign_alloc.c: Likewise.
46259         * lib/unistd_.h: Remove; no longer needed.
46260
46261 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
46262
46263         * MODULES.html.sh (Support for systems lacking POSIX:2001):
46264         Add unistd.
46265         * modules/c-stack (Depends-on): Add unistd.
46266         * modules/getlogin_r: Likewise.
46267         * modules/glob: Likewise.
46268         * modules/pagealign_alloc: Likewise.
46269         * modules/unistd (Files): Remove lib/unistd_.h.
46270         (EXTRA_DIST): Remove.
46271         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
46272         need unistd_.h.
46273         (MOSTLYCLEANFILES): Remove unistd.h-t.
46274
46275 2006-03-03  Simon Josefsson  <jas@extundo.com>
46276
46277         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
46278
46279 2006-03-03  Simon Josefsson  <jas@extundo.com>
46280
46281         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
46282         libidn and bison.
46283
46284 2006-03-03  Simon Josefsson  <jas@extundo.com>
46285
46286         * build-aux/maint.mk: Add indent target.
46287
46288 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
46289
46290         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
46291         our replacement poll.h in any case, to avoid a differing
46292         declaration from a system header.  Seen on AIX.
46293
46294 2006-03-01  Simon Josefsson  <jas@extundo.com>
46295
46296         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
46297         <kasal@ucw.cz>.
46298
46299 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
46300
46301         * modules/gettime (Depends-on): Add extensions module.
46302         * modules/nanosleep (Depends-on): Likewise.
46303         * modules/settime (Depends-on): Likewise.
46304
46305 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
46306
46307         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
46308         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
46309         pedantically.
46310         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
46311         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
46312
46313         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
46314         not "==".  Reported by Ralf Wildenhues.
46315
46316 2006-03-01  Karl Berry  <karl@gnu.org>
46317
46318         * doc/Copyright/request-*: new files, synced from gnuorg.
46319
46320 2006-03-01  Karl Berry  <karl@gnu.org>
46321
46322         * config/srclist.txt (Copyright/*): new entries.
46323
46324 2006-02-28  Simon Josefsson  <jas@extundo.com>
46325
46326         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
46327
46328 2006-02-27  Simon Josefsson  <jas@extundo.com>
46329
46330         * lib/base64.h: Indent #define's.  From Jim Meyering
46331         <jim@meyering.net>.
46332
46333 2006-02-27  Jim Meyering  <jim@meyering.net>
46334
46335         Revert the change of 2006-02-24, so these files can continue
46336         to be sync'd from gettext.
46337         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
46338         of `config.h'.
46339
46340 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
46341
46342         * modules/intprops: New file.
46343         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
46344         Add intprops.
46345         * modules/getloadavg (Files): Remove lib/intprops.h.
46346         (Depends-on): Add intprops.
46347         * modules/human: Likewise.
46348         * modules/inttostr: Likewise.
46349         * modules/openat: Likewise.
46350         * modules/sig2str: Likewise.
46351         * modules/userspec: Likewise.
46352         * modules/utimecmp: Likewise.
46353         * modules/xnanosleep: Likewise.
46354         * modules/xstrtol: Likewise.
46355
46356 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
46357
46358         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
46359         * modules/lock-tests (TESTS): Use $(EXEEXT).
46360         * modules/tls-tests: Likewise.
46361         * modules/argp-tests: Likewise.
46362         (check_PROGRAMS): New var, replacing...
46363         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
46364
46365 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46366
46367         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
46368         `config.h'.
46369
46370 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
46371
46372         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
46373
46374 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46375
46376         Sync from coreutils.
46377         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
46378         gl_CHDIR_SAFER.
46379
46380 2006-02-22  Jim Meyering  <jim@meyering.net>
46381
46382         Sync from coreutils.
46383         * m4/chdir-safer.m4: New file.
46384
46385 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
46386
46387         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
46388         AT_FDCWD exceeds INT_MAX.
46389         * lib/openat.h (AT_FDCWD): Likewise.
46390
46391 2006-02-17  Eric Blake  <address@hidden>
46392
46393         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
46394
46395 2006-02-16  Simon Josefsson  <jas@extundo.com>
46396
46397         * modules/getaddrinfo (Depends-on): Add sys_socket.
46398
46399 2006-02-15  Simon Josefsson  <jas@extundo.com>
46400
46401         * build-aux/maint.mk: Add dsyntax-check rule.
46402
46403 2006-02-15  Eric Blake  <ebb9@byu.net>
46404
46405         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
46406         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
46407         'present but cannot compile' warnings on cygwin.
46408         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
46409         use ws2tcpip.h if sys/socket.h works.
46410         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
46411         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
46412
46413 2006-02-14  Simon Josefsson  <jas@extundo.com>
46414
46415         * modules/maintainer-makefile (Files): Rename.
46416
46417         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
46418         and (the local) Makefile.cfg to maint-cfg.mk.
46419
46420         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
46421         to the latter.
46422
46423         * modules/maintainer-makefile: New module.
46424
46425         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
46426         severaly stripped to make it possible to build it up from scratch
46427         with reliable tests.
46428
46429         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
46430         fixes to permit overriding the default actions when configure and
46431         makefile are not available.
46432
46433 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
46434
46435         Sync from coreutils.
46436         * modules/lstat (Depends-on): Don't depend on xalloc.
46437         (License): Change from GPL to LGPL, since this is now simply a
46438         replacement for a libc function.
46439
46440 2006-02-14  Jim Meyering  <jim@meyering.net>
46441
46442         Sync from coreutils.
46443
46444         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
46445         failure on deficient systems, and simplify gnulib lgpl dependencies.
46446         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
46447         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
46448
46449         * lib/xalloc-die.c: Remove unused definition of N_.
46450
46451 2006-02-14  Jim Meyering  <jim@meyering.net>
46452
46453         Sync from coreutils.
46454         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
46455         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
46456         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
46457         double-quote uses of that variable, to accommodate the rare case in
46458         which getmntent is available in none of the libraries checked.  This
46459         happens at least on FreeBSD 5.0.
46460
46461 2006-02-13  Simon Josefsson  <jas@extundo.com>
46462
46463         * gnulib-tool (Usage): Fix --import, from
46464         karl@freefriends.org (Karl Berry).
46465
46466 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
46467
46468         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
46469
46470 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
46471
46472         * lib/argp-namefrob.h: Restore changes accidentally lost during the
46473         "autoupdate" on 2005-12-12.
46474
46475 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
46476
46477         * modules/closeout (Depends-on): Remove atexit.
46478
46479 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
46480
46481         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
46482         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
46483
46484 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
46485
46486         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
46487         __EXTENSIONS__ if this causes compilation to fail.  Problem
46488         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
46489         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
46490
46491 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
46492
46493         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
46494         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
46495         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
46496         All uses changed.
46497
46498 2006-01-26  Simon Josefsson  <jas@extundo.com>
46499
46500         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
46501         prototype is visible on mingw32.
46502
46503         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
46504         for mingw32.
46505
46506         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
46507         mingw32).
46508
46509 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
46510
46511         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
46512         attempt to open for write; this always fails, at least on POSIX
46513         hosts.  This reinstates the 2006-01-09 change, which was
46514         inadvertently removed.
46515
46516 2006-01-26  Bruno Haible  <bruno@clisp.org>
46517
46518         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
46519         Reported by Paul Eggert.
46520
46521 2006-01-26  Bruno Haible  <bruno@clisp.org>
46522             Paul Eggert  <eggert@cs.ucla.edu>
46523
46524         * lib/stdbool_.h (_Bool)
46525         [(! (defined __cplusplus || defined __BEOS__)
46526           && !defined __GNUC__
46527           && !(defined __HP_cc || defined __xlc__
46528                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
46529                || defined __sgi))]:
46530         #define to signed char in these cases too; this simplifies
46531         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
46532         etc., separately) and makes it more conservative.
46533
46534 2006-01-25  Simon Josefsson  <jas@extundo.com>
46535
46536         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
46537         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
46538         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
46539
46540 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
46541
46542         * lib/argp-namefrob.h: Bugfix. Remove stray #
46543
46544 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
46545
46546         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
46547         so that we test the test.
46548         Check for yet another HP-UX cc bug involving *bool |= bool.
46549
46550 2006-01-25  Karl Berry  <karl@gnu.org>
46551
46552         * config/srclist.txt (vasnprintf.c): sync lost.
46553
46554 2006-01-25  Jim Meyering  <jim@meyering.net>
46555
46556         Sync from the stable (b5) branch of coreutils:
46557
46558         * lib/fts.c (fts_children): Don't let close() clobber errno from
46559         failed fchdir().
46560
46561         * lib/fts.c (fts_stat): When following a symlink-to-directory,
46562         don't necessarily interpret stat-fails+lstat-succeeds as indicating
46563         a dangling symlink.  That can also happen at least for ELOOP.
46564         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
46565         FYI, this bug predates the inclusion of fts.c in coreutils.
46566
46567         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
46568         in their own block, so pre-c99 compilers don't object.
46569
46570         Avoid the double-free (first in fts_read, second in fts_close) that
46571         would occur when an `active' directory is made inaccessible (e.g.,
46572         via chmod a-x) during a traversal.
46573         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
46574         before returning.  Reproduce this failure by
46575         mkdir -p a/b; cd a; chmod a-x . b
46576         Reported by Stavros Passas.
46577
46578 2006-01-25  Jim Meyering  <jim@meyering.net>
46579
46580         * lib/fileblocks.c: Remove more useless parentheses.
46581         * lib/readutmp.h: Likewise.
46582
46583 2006-01-25  Bruno Haible  <bruno@clisp.org>
46584
46585         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
46586         warnings.
46587         Reported by Paul Eggert.
46588
46589 2006-01-25  Bruno Haible  <bruno@clisp.org>
46590
46591         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
46592         rid of a trap command. For Solaris sh.
46593         Reported by Mark D. Baushke <mdb@gnu.org>.
46594
46595 2006-01-24  Simon Josefsson  <jas@extundo.com>
46596
46597         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
46598         Bruno.
46599
46600 2006-01-24  Karl Berry  <karl@gnu.org>
46601
46602         * config/srclist.txt (argp-namefrob.h): sync lost.
46603
46604 2006-01-24  Jim Meyering  <jim@meyering.net>
46605
46606         * modules/openat (Files): Add lib/intprops.h.
46607         From Mark D. Baushke.
46608
46609 2006-01-24  Jim Meyering  <jim@meyering.net>
46610
46611         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
46612         Reported by Mark D. Baushke.
46613
46614 2006-01-24  Jim Meyering  <jim@meyering.net>
46615
46616         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
46617
46618 2006-01-24  Bruno Haible  <bruno@clisp.org>
46619
46620         * modules/strnlen (Maintainer): Change from glibc to all.
46621
46622 2006-01-24  Bruno Haible  <bruno@clisp.org>
46623
46624         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
46625         Patch by Paul Eggert.
46626
46627 2006-01-24  Bruno Haible  <bruno@clisp.org>
46628
46629         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
46630         already has it.
46631         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
46632         2005-11-26.
46633
46634         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
46635         'signed char' to avoid problems with the built-in _Bool type.
46636         Reported by Paul Eggert on 2005-11-26.
46637
46638 2006-01-24  Bruno Haible  <bruno@clisp.org>
46639
46640         * gnulib-tool (func_import): Avoid constructing complicated sed
46641         expressions inside backquote.
46642         Report and solution by Mark D. Baushke <mdb@gnu.org>.
46643
46644 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
46645
46646         These changes imported from libc.
46647         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
46648         test and two separate function calls.
46649         * lib/strndup.c (__strndup): Add libc_hidden_def.
46650
46651 2006-01-23  Simon Josefsson  <jas@extundo.com>
46652
46653         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
46654         Remove the test_*_SOURCES variable: automake infers it by default.
46655         * modules/tls-tests: Likewise.
46656
46657 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
46658
46659         Work around porting bugs reported by Dieter in
46660         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
46661         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
46662         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
46663         Include "getopt.h" first, to check interface.
46664         (getenv): Declare only if defined HAVE_DECL_GETENV &&
46665         !HAVE_DECL_GETENV.
46666         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
46667         (__strndup): Revert to K&R-style function dfns, the glibc style.
46668         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
46669         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
46670         Include strnlen.h first, to get prototype properly.
46671         (strnlen): Renamed from __strnlen.
46672         Remove weak alias.
46673
46674 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
46675
46676         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
46677
46678 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
46679
46680         * config/srclist.txt: Adjust to reflect glibc reorganization.
46681         This affects only comments.
46682
46683 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
46684
46685          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
46686          Reported by Bruce Korb <bkorb@gnu.org>.
46687
46688 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
46689
46690         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
46691         to pacify gcc -Wswitch-default.
46692
46693 2006-01-22  Bruno Haible  <bruno@clisp.org>
46694
46695         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
46696         temporary buffer for sprintf, take into account the precision also
46697         for 'd', 'i', 'u', 'o', 'x', 'X'.
46698
46699 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
46700
46701         * modules/argp-tests: New module
46702         * tests/test-argp.c: New file
46703         * tests/test-argp-2.sh: New file
46704
46705 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
46706
46707         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
46708         (__argp_base_name): Removed
46709         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
46710         typo.
46711         (__argp_base_name): Provide macro definition or extern declaration
46712         depending on the configuration
46713
46714 2006-01-20  Simon Josefsson  <jas@extundo.com>
46715
46716         * modules/inet_ntop (Depends-on): Depend on sys_socket.
46717
46718 2006-01-20  Simon Josefsson  <jas@extundo.com>
46719
46720         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
46721
46722 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
46723
46724         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
46725         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
46726         Suggested by Bruno Haible.
46727
46728 2006-01-20  Karl Berry  <karl@gnu.org>
46729
46730         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
46731         until changes propagate, I guess.
46732
46733 2006-01-19  Simon Josefsson  <jas@extundo.com>
46734
46735         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
46736
46737 2006-01-19  Simon Josefsson  <jas@extundo.com>
46738
46739         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
46740
46741 2006-01-19  Simon Josefsson  <jas@extundo.com>
46742
46743         * gnulib-tool: Set check_PROGRAMS.
46744
46745         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
46746         modules/des-tests, modules/gc-arcfour-tests,
46747         modules/gc-arctwo-tests, modules/gc-des-tests,
46748         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
46749         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
46750         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
46751         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
46752         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
46753         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
46754         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
46755         test_*_SOURCES.
46756
46757 2006-01-18  Simon Josefsson  <jas@extundo.com>
46758
46759         * modules/socklen (Depends-on): Depend on sys_socket.
46760
46761 2006-01-18  Simon Josefsson  <jas@extundo.com>
46762
46763         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
46764         modules/des-tests, modules/gc-arcfour-tests,
46765         modules/gc-arctwo-tests, modules/gc-des-tests,
46766         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
46767         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
46768         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
46769         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
46770         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
46771         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
46772         $(EXEEXT) to automake TESTS variable, for mingw32.
46773
46774 2006-01-17  Simon Josefsson  <jas@extundo.com>
46775
46776         * modules/socklen (Include): Need sys/socket.h.
46777
46778 2006-01-17  Bruno Haible  <bruno@clisp.org>
46779
46780         * modules/ssize_t (Include): Add <sys/types.h>.
46781
46782 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
46783
46784         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
46785         it's not portable and it doesn't work with cross-compiles.
46786         Problem reported by Bruno Haible.  Fix missing-$ typo in
46787         'test "gl_cv_ignore_unused_libraries" ...' that prevented
46788         -zignore from being used with Sun's C compiler.
46789
46790 2006-01-12  Simon Josefsson  <jas@extundo.com>
46791
46792         * lib/base64.c: Fix warning, reported by Bruno Haible
46793         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
46794
46795 2006-01-12  Bruno Haible  <bruno@clisp.org>
46796
46797         * modules/ldd: New file.
46798         * build-aux/ldd.sh.in: New file.
46799         * MODULES.html.sh (Support for building libraries and executables): Add
46800         ldd.
46801
46802 2006-01-12  Bruno Haible  <bruno@clisp.org>
46803
46804         * m4/ldd.m4: New file.
46805
46806 2006-01-12  Bruno Haible  <bruno@clisp.org>
46807
46808         * gnulib-tool (func_import, func_create_testdir): Don't go into an
46809         endless loop while replacing $auxdir with build-aux.
46810
46811 2006-01-11  Simon Josefsson  <jas@extundo.com>
46812
46813         * lib/stdint_.h (SIZE_MAX): Add missing (.
46814
46815 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
46816
46817         Sync from coreutils.
46818         * lib/md5.c: Fix commentary typos.
46819         (alignof, UNALIGNED_P): No need for a GCC-specific version.
46820         * lib/md5.h (__attribute__): Remove; unused.
46821         * lib/sha1.c: Fix commentary to match md5 better.
46822         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
46823         so that we don't need to worry about alignment.  All uses changed.
46824         This merges the 2005-10-28 md5 change into sha1.
46825
46826 2006-01-11  Jim Meyering  <jim@meyering.net>
46827
46828         Sync from coreutils.
46829         * lib/md5.c (OP): Fix spacing.
46830
46831 2006-01-11  Bruno Haible  <bruno@clisp.org>
46832
46833         Ensure automatic ordering between gl_LOCK and gl_ARGP.
46834         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
46835         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
46836
46837 2006-01-11  Bruno Haible  <bruno@clisp.org>
46838
46839         Ensure automatic ordering between gl_LOCK and gl_ARGP.
46840         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
46841         the "early" section as well.
46842
46843 2006-01-11  Bruno Haible  <bruno@clisp.org>
46844
46845         Avoid "ar: no archive members specified" error on MacOS X.
46846         * gnulib-tool (func_modules_add_dummy): New function.
46847         (func_import, func_create_testdir): Invoke it.
46848
46849 2006-01-11  Bruno Haible  <bruno@clisp.org>
46850
46851         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
46852         with $auxdir in AC_CONFIG_FILES statements.
46853
46854 2006-01-11  Bruno Haible  <bruno@clisp.org>
46855
46856         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
46857         Initialize also noinst_HEADERS to empty.
46858
46859 2006-01-11  Bruno Haible  <bruno@clisp.org>
46860
46861         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
46862         variables.
46863         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
46864         autoreconf.
46865
46866 2006-01-11  Bruno Haible  <bruno@clisp.org>
46867
46868         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
46869         overridable by the user.
46870         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46871
46872 2006-01-10  Simon Josefsson  <jas@extundo.com>
46873
46874         * modules/sys_socket: New file.
46875
46876 2006-01-10  Simon Josefsson  <jas@extundo.com>
46877
46878         * m4/sys_socket_h.m4: New file.
46879
46880 2006-01-10  Simon Josefsson  <jas@extundo.com>
46881
46882         * lib/socket_.h: New file.
46883
46884 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
46885
46886         * modules/readutmp (Maintainer): Add myself.
46887
46888 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
46889
46890         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
46891         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
46892         People who are still concerned with buggy memcmp implementations
46893         can invoke gl_FUNC_MEMCMP themselves.
46894
46895 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
46896
46897         * lib/regex_internal.h (BITSET_WORD_BITS):
46898         Work around a bug in 64-bit PGC (before version 6.1-2), where the
46899         preprocessor mishandles large unsigned values as if they were signed.
46900         Problem reported by Claudio Fontana in
46901         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
46902
46903 2006-01-10  Jim Meyering  <jim@meyering.net>
46904
46905         Avoid the double-free (first in fts_read, second in fts_close) that
46906         would occur when an `active' directory is made inaccessible (e.g.,
46907         via chmod a-x) during a traversal.
46908         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
46909         before returning.  Reproduce this failure by
46910         mkdir -p a/b; cd a; chmod a-x . b
46911         Reported by Stavros Passas.
46912
46913         Sync from coreutils.
46914         * lib/sha1.c: Tweak grammar in a comment.
46915
46916 2006-01-10  Jim Meyering  <jim@meyering.net>
46917
46918         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
46919         Patch by Joerg Sonnenberger.
46920
46921 2006-01-10  Bruno Haible  <bruno@clisp.org>
46922
46923         * modules/readutmp: Depend on module free.
46924         * modules/strtok_r: Depend on module restrict.
46925
46926 2006-01-10  Bruno Haible  <bruno@clisp.org>
46927
46928         * modules/gettext (configure.ac): Add an invocation of
46929         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
46930
46931 2006-01-10  Bruno Haible  <bruno@clisp.org>
46932
46933         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
46934         Reported by Werner Lemberg <wl@gnu.org>.
46935
46936 2006-01-10  Bruno Haible  <bruno@clisp.org>
46937
46938         * lib/localcharset.c: Update from GNU gettext.
46939
46940 2006-01-10  Bruno Haible  <bruno@clisp.org>
46941
46942         * lib/argp.h (__const): Remove macro. Use const instead.
46943         * lib/argp-fmtstream.h (__const): Likewise.
46944         * lib/glob_.h (__const): Remove macro.
46945         * lib/glob-libc.h: Use const instead of __const.
46946
46947 2006-01-10  Bruno Haible  <bruno@clisp.org>
46948
46949         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
46950         variable.
46951         Needed to avoid an automake error regarding the 'gettext' module.
46952
46953 2006-01-09  Simon Josefsson  <jas@extundo.com>
46954
46955         * modules/inet_ntop (Depends-on): Add restrict.
46956
46957 2006-01-09  Simon Josefsson  <jas@extundo.com>
46958
46959         * modules/gc-rijndael-tests (License): Put under LGPL.
46960
46961         * modules/gc-des-tests (License): Likewise.
46962
46963         * modules/gc-arcfour-tests (License): Likewise.
46964
46965         * modules/gc-arctwo-tests (License): Likewise.
46966
46967         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
46968
46969         * modules/gc-hmac-sha1-tests (Files): Likewise.
46970
46971         * modules/gc-hmac-md5-tests (License): Likewise.
46972
46973         * modules/gc-sha1-tests (License): Likewise.
46974
46975         * modules/gc-md5-tests (License): Likewise.
46976
46977         * modules/gc-md4-tests (License): Likewise.
46978
46979         * modules/gc-md2-tests (License): Likewise.
46980
46981         * modules/gc-tests (License): Likewise.
46982
46983         * modules/des-tests (License): Likewise.
46984
46985         * modules/md4-tests (License): Likewise.
46986
46987         * modules/md2-tests (License): Likewise.
46988
46989 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
46990
46991         Sync from coreutils:
46992
46993         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
46994         * modules/lib-ignore: New file.
46995         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
46996         chdir-safer.m4, lchmod.m4.
46997         * modules/openat: Add mkdirat.c, openat-priv.h.
46998
46999 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
47000
47001         Sync from coreutils.
47002         * m4/lib-ignore.m4: New file.
47003         * m4/lchmod.m4: New file.
47004
47005 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
47006
47007         Sync from coreutils.
47008         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
47009         for write access: POSIX says that must fail.
47010         * lib/fts.c (diropen): Likewise.
47011         * lib/save-cwd.c (save_cwd): Likewise.
47012         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
47013         well, for minor improvements on hosts that lack O_DIRECTORY.
47014         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
47015         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
47016         Fall back on chown if open failed with EACCES.
47017
47018         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
47019         Report an error at compile-time if only a 1-second nominal clock
47020         resolution is found.
47021
47022         * lib/lchmod.h: New file.
47023         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
47024         (make_dir_parents): Use lchown rather than chown, and
47025         lchmod rather than chmod.
47026
47027         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
47028         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
47029         "proc" reported by n0dalus.
47030
47031         * lib/mountlist.c: Include <limits.h>.
47032         (dev_from_mount_options)
47033         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
47034         New function.  It no longer assumes "dev=" has the System V meaning
47035         on Linux (since it doesn't).  It also parses "dev=" more carefully.
47036         (read_file_system_list)
47037         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
47038         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
47039         dev= in that case.
47040
47041         * lib/posixtm.h (PDS_PRE_2000): New macro.
47042         * lib/posixtm.c (year): Arg is now syntax_bits rather than
47043         allow_century.  All usages changed.  Reject dates outside the range
47044         1969-1999 if PDS_PRE_2000 is used.
47045
47046 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
47047
47048         Sync from coreutils.
47049         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
47050         (Time of day items): Mention the possibility of leap seconds.
47051         Problem reported by Dr. David Alan Gilbert.
47052
47053 2006-01-09  Jim Meyering  <jim@meyering.net>
47054
47055         Sync from coreutils.
47056
47057         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
47058
47059         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
47060
47061         * lib/modechange.c (mode_compile): Reject an invalid mode string
47062         that starts with an octal digit.  From Andreas Gruenbacher.
47063
47064         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
47065         and dup to open_safer and dup_safer, respectively.
47066         (openat_permissive): Fix typo in comment.
47067
47068         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
47069         "gettext.h"; either no longer needed or are guaranteed by openat.h.
47070         (_): Remove; no longer needed.
47071         (openat): Renamed from rpl_openat; no need for rpl_openat
47072         since openat.h renames openat for us.
47073         Replace most of the body with a call to openat_permissive,
47074         to avoid duplicate code.
47075         Port to (probably hypothetical) environments were mode_t is
47076         wider than int.
47077         (openat_permissive): Require mode arg, so that we can check
47078         types better.  Put it just after flags.  Change cwd failure
47079         indicator from pointer-to-bool to pointer-to-errno-value.
47080         All callers changed.
47081         Invoke openat_save_fail and/or openat_restore_fail if
47082         cwd_errno is null, so that openat can call us.
47083         (openat_permissive, fdopendir, fstatat, unlinkat):
47084         Simplify errno handling to avoid some duplicate code,
47085         as it's OK to set errno on success.
47086         * lib/openat.h: Revamp code so that function macros depend on
47087         __OPENAT_PREFIX only, not also on AT_FDCWD.
47088         (openat_ro): Remove.  Caller changed to use openat_permissive.
47089         (openat_permissive): Now a macro, if not a function.
47090         (openat_restore_fail, openat_save_fail): Now always functions,
47091         since mkdirat needs them even if __OPENAT_PREFIX is defined.
47092
47093         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
47094         and openat.c.
47095         * lib/mkdirat.c: Include openat-priv.h.
47096         Remove definitions of macros defined therein.
47097         * lib/openat.c: Likewise.
47098
47099         * lib/mkdirat.c (mkdirat): New file and function.
47100         * lib/openat.h (mkdirat): Declare.
47101
47102         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
47103
47104         * lib/openat.h (openat_permissive): Declare.
47105         (openat_ro): Define.
47106
47107         * lib/openat.c (EXPECTED_ERRNO): New macro.
47108         (openat_permissive): New function -- used in remove.c rewrite.
47109         (all functions): Set errno just before returning, only if there
47110         was an actual failure.
47111         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
47112
47113         Emulate openat-family functions using Linux's procfs, if possible.
47114         Idea and some code based on Ulrich Drepper's glibc changes.
47115
47116         * lib/openat.c: (BUILD_PROC_NAME): New macro.
47117         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
47118         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
47119         before falling back on save_cwd and restore_cwd.
47120         (fdopendir, fstatat, unlinkat): Likewise.
47121
47122         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
47123         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
47124
47125         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
47126         as second argument to va_arg.  Otherwise, some versions of gcc
47127         warn that `if this code is reached, the program will abort'.
47128
47129 2006-01-09  Jim Meyering  <jim@meyering.net>
47130
47131         Sync from coreutils.
47132         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
47133         Require openat-priv.h.
47134
47135 2006-01-09  Bruno Haible  <bruno@clisp.org>
47136
47137         * modules/strnlen (Include): Use strnlen.h.
47138
47139 2006-01-09  Bruno Haible  <bruno@clisp.org>
47140
47141         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
47142
47143 2006-01-09  Bruno Haible  <bruno@clisp.org>
47144
47145         * lib/sysexit_.h (EX_OK): New macro.
47146         Suggested by Martin Lambers <marlam@marlam.de>.
47147
47148 2006-01-09  Bruno Haible  <bruno@clisp.org>
47149
47150         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
47151         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
47152
47153 2006-01-09  Bruno Haible  <bruno@clisp.org>
47154
47155         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
47156         numbers.
47157
47158 2006-01-09  Bruno Haible  <bruno@clisp.org>
47159
47160         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
47161         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
47162         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
47163         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
47164
47165 2006-01-09  Bruno Haible  <bruno@clisp.org>
47166
47167         * build-aux/javacomp.sh.in: New file, moved from lib/.
47168         * modules/javacomp-script (Files): Update.
47169         (configure.ac): Add AC_CONFIG_FILES invocation.
47170         (EXTRA_DIST): Remove variable.
47171
47172         * build-aux/javaexec.sh.in: New file, moved from lib/.
47173         * modules/javaexec (Files): Update.
47174         (configure.ac): Add AC_CONFIG_FILES invocation.
47175         (EXTRA_DIST): Remove javaexec.sh.in.
47176
47177         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
47178         * modules/csharpcomp-script (Files): Update.
47179         (configure.ac): Add AC_CONFIG_FILES invocation.
47180         (EXTRA_DIST): Remove variable.
47181
47182         * build-aux/csharpexec.sh.in: New file, moved from lib/.
47183         * modules/csharpexec (Files): Update.
47184         (configure.ac): Add AC_CONFIG_FILES invocation.
47185         (EXTRA_DIST): Remove csharpexec.sh.in.
47186
47187 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
47188
47189         Sync from coreutils.
47190
47191         Add POSIX ACL support
47192         * lib/acl.h (copy_acl, set_acl): Add declarations.
47193         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
47194         systems other than Linux.
47195         (chmod_or_fchmod): New function: use fchmod when possible,
47196         and chmod otherwise.
47197         (file_has_acl): Add a POSIX ACL implementation, with a
47198         Linux-specific subcase.
47199         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
47200         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
47201         acls are unsupported.
47202         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
47203         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
47204         are unsupported.
47205
47206 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
47207
47208         Sync from coreutils.
47209         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
47210
47211 2006-01-07  Bruno Haible  <bruno@clisp.org>
47212
47213         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
47214         gl_EARLY.
47215
47216 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
47217
47218         * lib/strftime.c (tzname): Don't declare if it is already #defined.
47219         Problem reported for Mingw by Mark Junker.
47220
47221 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
47222
47223         * README: Gnulib normally doesn't generate a tarball.
47224
47225 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
47226
47227         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
47228         long int, not int, for nanosecond counts, so that people who are
47229         used to POSIX struct timespec won't be surprised.  Reported by Jim
47230         Meyering.
47231
47232 2005-12-28  Bruno Haible  <bruno@clisp.org>
47233
47234         * build-aux/config.rpath: Update from GNU gettext.
47235
47236 2005-12-16  Jim Meyering  <jim@meyering.net>
47237
47238         * modules/fprintftime: New module.
47239         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
47240
47241 2005-12-16  Jim Meyering  <jim@meyering.net>
47242
47243         * m4/fprintftime.m4: New file.
47244
47245 2005-12-16  Jim Meyering  <jim@meyering.net>
47246
47247         * lib/fprintftime.c, lib/fprintftime.h: New files.
47248
47249 2005-12-15  Simon Josefsson  <jas@extundo.com>
47250
47251         * modules/socklen (configure.ac): Fix M4 macro name, to align with
47252         new m4/socklen.m4.
47253
47254 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
47255
47256         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
47257         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
47258
47259 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
47260
47261         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
47262         * lib/argp-help.c (fill_in_uparams): Check if the constructed
47263         struct uparams is valid. Fall back to the default values if it is
47264         not.
47265
47266 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
47267
47268         * modules/argp (Files): Add argp-pin.c
47269         (Depends-on): dirname
47270         (lib_SOURCES): Add argp-pin.c
47271
47272 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
47273
47274         * m4/argp.m4:  Check if program_invocation_name and
47275         program_invocation_short_name are declared and define appropriate
47276         macros if they are not.
47277
47278 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
47279
47280         * lib/argp-help.c (__argp_base_name): New function
47281         (__argp_short_program_name): Rewrite using __argp_base_name
47282         * lib/argp-namefrob.h: Define program_invocation_name and
47283         program_invocation_short_name if requested
47284         (__argp_base_name): Add prototype
47285         * lib/argp-parse.c (argp_def): Use gettext wrappers
47286         (argp_default_parser): Use __argp_base_name
47287         * lib/argp-pin.c: New file. Defines program_invocation_name and
47288         program_invocation_short_name on systems that lack them.
47289
47290 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
47291
47292         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
47293         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
47294         porting problem reported by Georg Schwarz in
47295         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
47296
47297 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
47298
47299         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
47300         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
47301         porting problem reported by Georg Schwarz in
47302         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
47303
47304 2005-12-05  Bruno Haible  <bruno@clisp.org>
47305
47306         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
47307         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
47308         Reported by Mark Junker <mjscod@gmx.de>.
47309
47310 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
47311
47312         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
47313         Use implementation from Albert Chin, with some
47314         comments/corrections by Stepan Kasal and myself.
47315
47316 2005-12-02  Bruno Haible  <bruno@clisp.org>
47317
47318         * gnulib-tool (func_import): Accept GPLed build tool modules when
47319         --lgpl is given.
47320         * modules/csharpcomp-script: New file.
47321         * modules/csharpcomp: Depend on it.
47322         * modules/javacomp-script: New file.
47323         * modules/javacomp: Depend on it.
47324         Suggested by Simon Josefsson.
47325
47326 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
47327
47328         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
47329         statement, to work around an HP-UX 10.20 compiler bug reported by
47330         Peter O'Gorman.
47331
47332 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
47333
47334         * modules/savedir (Depends-on): Add openat.
47335
47336 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
47337
47338         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
47339         (uintmax_t) [defined uintmax_t]: Do not declare.
47340         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
47341         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
47342         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
47343         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
47344         sake of portability to weird hosts that C allows (though we don't
47345         know of any practical examples).
47346
47347         * lib/savedir.h (fdsavedir): New decl.
47348         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
47349         contains most of the former guts of savedir.
47350         (savedir): Use savedirstream.
47351         Include "openat.h".
47352
47353 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
47354
47355         * modules/obstack (Files): Add m4/ulonglong.m4.
47356         Problem reported by Davide Angelocola.
47357
47358 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
47359
47360         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
47361         coreutils no longer futzes with rounding modes.
47362
47363 2005-11-14  Jim Meyering  <jim@meyering.net>
47364
47365         * lib/mkstemp-safer.c: Include <config.h>, required for possible
47366         replacement of mkstemp.
47367
47368 2005-11-10  Simon Josefsson  <jas@extundo.com>
47369
47370         * lib/readline.c: Remove EOL.
47371
47372 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
47373
47374         * modules/gethrxtime (Depends-on): Add gettime.
47375
47376 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
47377
47378         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
47379         or gettimeofday; no longer needed.
47380
47381 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
47382
47383         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
47384         time business.
47385         (gethrxtime) [! (HAVE_NANOUPTIME
47386         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
47387         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
47388         our own approximation.
47389
47390 2005-11-08  Eric Blake  <ebb9@byu.net>
47391
47392         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
47393
47394 2005-11-08  Eric Blake  <ebb9@byu.net>
47395
47396         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
47397
47398 2005-11-04  Bruno Haible  <bruno@clisp.org>
47399
47400         * gnulib-tool: Implement --update mode.
47401
47402 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
47403
47404         Fix porting problem reported by Theodoros V. Kalamatianos.
47405         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
47406         Don't assume that futimes failing means we must fail.
47407
47408 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
47409
47410         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
47411         variables to suggest the intended function of the PATH_MAX check.
47412
47413 2005-10-30  Kean Johnston  <jkj@sco.com>
47414
47415         Trivial changes to support SCO systems.
47416         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
47417         as PATH_MAX.
47418         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
47419         where __ptr is null when no I/O is pending.
47420
47421 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
47422
47423         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
47424         leave errno alone.  Problem reported by Dmitry V. Levin.
47425
47426 2005-10-28  Simon Josefsson  <jas@extundo.com>
47427
47428         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
47429         Test more.
47430
47431         * tests/test-gc-md2.c, tests/test-md2.c: New files.
47432
47433         * modules/md2, modules/md2-tests: New files.
47434
47435 2005-10-28  Simon Josefsson  <jas@extundo.com>
47436
47437         * m4/inet_ntop.m4: More tests.
47438
47439         * m4/gc-md2.m4, md2.m4: New file.
47440
47441 2005-10-28  Simon Josefsson  <jas@extundo.com>
47442
47443         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
47444         "restrict" keywords, as per POSIX.  Protect the function
47445         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
47446         Don't use K&R prototypes.  Check the sprintf return values.
47447         Re-define EAFNOSUPPORT if not present.  Indent.
47448
47449         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
47450         suggested by Bruno Haible <bruno@clisp.org>.
47451
47452         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
47453
47454         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
47455
47456         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
47457         libgcrypt).
47458
47459         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
47460
47461         * lib/md2.h, lib/md2.c: New files.
47462
47463 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
47464
47465         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
47466         errno alone.  Problem reported by Frederic Jolliton.
47467
47468 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
47469
47470         * modules/verify (License): Change from GPL to LGPL.  This is a
47471         tiny module and there are apparently near-equivalents that are
47472         under the BSD license.
47473
47474 2005-10-24  Simon Josefsson  <jas@extundo.com>
47475
47476         * modules/sha1: Relicense to LGPL.
47477
47478 2005-10-24  Simon Josefsson  <jas@extundo.com>
47479
47480         * lib/md4.h: Shrink buffer size, now that we changed the type.
47481
47482 2005-10-23  Simon Josefsson  <jas@extundo.com>
47483
47484         * gnulib-tool (func_import): Fix --tests-base.
47485
47486 2005-10-22  Simon Josefsson  <jas@extundo.com>
47487
47488         * modules/arcfour (Depends-on): Need stdint.
47489
47490 2005-10-22  Simon Josefsson  <jas@extundo.com>
47491
47492         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
47493         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
47494
47495 2005-10-22  Simon Josefsson  <jas@extundo.com>
47496
47497         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
47498         suggested by Bruno Haible <bruno@clisp.org>.
47499
47500 2005-10-22  Simon Josefsson  <jas@extundo.com>
47501
47502         * lib/crc.h: Include stddef.h, for size_t.
47503
47504 2005-10-22  Simon Josefsson  <jas@extundo.com>
47505
47506         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
47507         arcfour_context struct (simplify test vector testing in GNU
47508         Shishi).
47509
47510 2005-10-21  Simon Josefsson  <jas@extundo.com>
47511
47512         * modules/des, modules/des-tests: New files.
47513
47514         * modules/gc-des, modules/gc-des-tests: New files.
47515
47516         * tests/test-des.c, tests/test-gc-des.c: New file.
47517
47518 2005-10-21  Simon Josefsson  <jas@extundo.com>
47519
47520         * modules/arctwo, modules/arctwo-tests: New files.
47521
47522         * tests/test-arctwo.c: New file.
47523
47524         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
47525
47526         * tests/test-gc-arctwo.c: New file.
47527
47528 2005-10-21  Simon Josefsson  <jas@extundo.com>
47529
47530         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
47531         Bruno Haible <bruno@clisp.org>.
47532
47533         * m4/gc-des.m4: New file.
47534
47535 2005-10-21  Simon Josefsson  <jas@extundo.com>
47536
47537         * m4/arctwo.m4: New file.
47538
47539         * m4/gc-arctwo.m4: New file.
47540
47541 2005-10-21  Simon Josefsson  <jas@extundo.com>
47542
47543         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
47544         block.
47545
47546 2005-10-21  Simon Josefsson  <jas@extundo.com>
47547
47548         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
47549         <bruno@clisp.org>.
47550
47551         * lib/hmac-sha1.c (hmac_sha1): Likewise.
47552
47553         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
47554         Bruno Haible <bruno@clisp.org>.
47555
47556         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
47557         <bruno@clisp.org>.
47558
47559 2005-10-21  Simon Josefsson  <jas@extundo.com>
47560
47561         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
47562
47563 2005-10-21  Simon Josefsson  <jas@extundo.com>
47564
47565         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
47566
47567 2005-10-21  Simon Josefsson  <jas@extundo.com>
47568
47569         * lib/des.h, lib/des.c: New files.
47570
47571         * lib/gc-gnulib.c: Support DES.c
47572
47573 2005-10-21  Simon Josefsson  <jas@extundo.com>
47574
47575         * lib/arctwo.h, lib/arctwo.c: New files.
47576
47577         * lib/gc-gnulib.c: Support ARCTWO.
47578
47579 2005-10-21  Simon Josefsson  <jas@extundo.com>
47580
47581         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
47582         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47583
47584 2005-10-21  Simon Josefsson  <jas@extundo.com>
47585
47586         * gnulib-tool (func_import, func_create_testdir): Define automake
47587         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
47588         Makefile.am snippet),
47589         suggested by Bruno Haible <bruno@clisp.org>.
47590
47591         * modules/gc (Makefile.am): Use it.
47592
47593 2005-10-21  Bruno Haible  <bruno@clisp.org>
47594
47595         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
47596         patch.
47597
47598 2005-10-19  Simon Josefsson  <jas@extundo.com>
47599
47600         * tests/test-gc-rijndael.c: New file.
47601
47602         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
47603
47604 2005-10-19  Simon Josefsson  <jas@extundo.com>
47605
47606         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
47607         interface too.
47608
47609 2005-10-19  Simon Josefsson  <jas@extundo.com>
47610
47611         * tests/test-gc-arcfour.c: New file.
47612
47613         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
47614
47615 2005-10-19  Simon Josefsson  <jas@extundo.com>
47616
47617         * modules/gc-md4, modules/gc-md4-tests: New file.
47618
47619         * tests/test-gc-md4.c: New file.
47620
47621 2005-10-19  Simon Josefsson  <jas@extundo.com>
47622
47623         * m4/gc-md4.m4: New file.
47624
47625 2005-10-19  Simon Josefsson  <jas@extundo.com>
47626
47627         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
47628         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
47629         <kasal@ucw.cz>.
47630
47631 2005-10-19  Simon Josefsson  <jas@extundo.com>
47632
47633         * m4/gc-arcfour.m4: New file.
47634
47635         * m4/gc-rijndael.m4: New file.
47636
47637 2005-10-19  Simon Josefsson  <jas@extundo.com>
47638
47639         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
47640
47641 2005-10-19  Simon Josefsson  <jas@extundo.com>
47642
47643         * lib/gc-gnulib.c: Support ARCFOUR.
47644
47645 2005-10-19  Simon Josefsson  <jas@extundo.com>
47646
47647         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
47648         support.
47649
47650         * lib/gc.h: Add ECB enum type.
47651
47652         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
47653
47654 2005-10-18  Simon Josefsson  <jas@extundo.com>
47655
47656         * tests/test-md5.c: New file.
47657
47658         * modules/md5-tests: New file.
47659
47660 2005-10-18  Simon Josefsson  <jas@extundo.com>
47661
47662         * tests/test-md4.c: New file.
47663
47664         * modules/md4, modules/md4-tests: New files.
47665
47666 2005-10-18  Simon Josefsson  <jas@extundo.com>
47667
47668         * m4/md4.m4: New file.
47669
47670 2005-10-18  Simon Josefsson  <jas@extundo.com>
47671
47672         * lib/md4.h, lib/md4.c: New files, based on md5.?.
47673
47674 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
47675
47676         * gnulib-tool (func_create_testdir): Omit the second check whether
47677         BUILT_SOURCES in nonempty.
47678
47679 2005-10-17  Simon Josefsson  <jas@extundo.com>
47680
47681         * tests/test-rijndael.c: New file.
47682
47683 2005-10-17  Simon Josefsson  <jas@extundo.com>
47684
47685         * modules/sha1: Depend on stdint instead of md5.
47686
47687         * modules/md5: Depend on stdint, remove uint32_t.
47688
47689 2005-10-17  Simon Josefsson  <jas@extundo.com>
47690
47691         * modules/gc-sha1-tests: New file.
47692
47693         * tests/test-gc-sha1.c: New file.
47694
47695 2005-10-17  Simon Josefsson  <jas@extundo.com>
47696
47697         * m4/md5.m4: Remove call to uint32_t.m4.
47698
47699 2005-10-17  Simon Josefsson  <jas@extundo.com>
47700
47701         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
47702
47703         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
47704         md5.h.
47705
47706         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
47707
47708         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
47709
47710 2005-10-17  Simon Josefsson  <jas@extundo.com>
47711
47712         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
47713
47714 2005-10-17  Simon Josefsson  <jas@extundo.com>
47715
47716         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
47717
47718 2005-10-17  Simon Josefsson  <jas@extundo.com>
47719
47720         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
47721
47722         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
47723
47724 2005-10-17  Bruno Haible  <bruno@clisp.org>
47725
47726         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
47727         that it can also be used in a test.
47728
47729 2005-10-16  Bruno Haible  <bruno@clisp.org>
47730
47731         * gnulib-tool (func_emit_tests_Makefile_am): Also define
47732         TESTS_ENVIRONMENT, so that individual tests can augment it.
47733
47734         * gnulib-tool (func_create_testdir): Use an intermediate target for
47735         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
47736         macros, like $(ALLOCA_H), which cannot be passed through the command
47737         line.
47738
47739 2005-10-15  Simon Josefsson  <jas@extundo.com>
47740
47741         * modules/rijndael-tests: New file.
47742
47743         * modules/rijndael: New file.
47744
47745 2005-10-15  Simon Josefsson  <jas@extundo.com>
47746
47747         * m4/rijndael.m4: New file.
47748
47749 2005-10-15  Simon Josefsson  <jas@extundo.com>
47750
47751         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
47752
47753         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
47754
47755 2005-10-14  Simon Josefsson  <jas@extundo.com>
47756
47757         * tests/test-arcfour.c: New file.
47758
47759         * modules/arcfour, modules/arcfour-tests: New files.
47760
47761 2005-10-14  Simon Josefsson  <jas@extundo.com>
47762
47763         * m4/arcfour.m4: New file.
47764
47765 2005-10-14  Simon Josefsson  <jas@extundo.com>
47766
47767         * lib/arcfour.h, lib/arcfour.c: New files.
47768
47769 2005-10-14  Roland McGrath  <roland@redhat.com>
47770
47771         Import from libc.  [BZ #1331]
47772         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
47773         macro argument.
47774         Reported by Matej Vela <vela@debian.org>.
47775
47776 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
47777
47778         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
47779         include <wchar.h>; no longer needed.
47780
47781 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
47782
47783         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
47784
47785 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
47786         and  Ulrich Drepper  <drepper@redhat.com>
47787
47788         Import from libc.
47789         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
47790         instead of inline stream orientation test and two separate
47791         function calls.  Pay no attention to USE_IN_LIBIO.
47792
47793 2005-10-13  Simon Josefsson  <jas@extundo.com>
47794
47795         * modules/gc-hmac-md5-tests: New file.
47796
47797         * tests/test-gc-hmac-sha1.c: New file.
47798
47799         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
47800
47801         * modules/gc-hmac-md5-tests: New file.
47802
47803         * tests/test-gc-md5.c: New file.
47804
47805         * modules/gc-md5-tests: New file.
47806
47807 2005-10-13  Simon Josefsson  <jas@extundo.com>
47808
47809         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
47810         Move memory allocation outside of loop.
47811
47812 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
47813
47814         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
47815         intermediate directory is in a read-only file system.  Problem
47816         reported by Eric Blake.
47817
47818 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
47819
47820         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
47821
47822 2005-10-12  Simon Josefsson  <jas@extundo.com>
47823
47824         * tests/test-hmac-sha1.c: New file.
47825
47826         * modules/hmac-sha1-tests: New file.
47827
47828         * modules/hmac-sha1: New file.
47829
47830 2005-10-12  Simon Josefsson  <jas@extundo.com>
47831
47832         * modules/gc-sha1: New file.
47833
47834 2005-10-12  Simon Josefsson  <jas@extundo.com>
47835
47836         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
47837
47838         * tests/test-gc-pbkdf2-sha1.c: New file.
47839
47840 2005-10-12  Simon Josefsson  <jas@extundo.com>
47841
47842         * modules/gc-md5, modules/gc-hmac-md5: New files.
47843
47844         * modules/gc (Files): Remove md5, memxor and hmac files.
47845
47846 2005-10-12  Simon Josefsson  <jas@extundo.com>
47847
47848         * m4/gc-pbkdf2-sha1.m4: New file.
47849
47850         * m4/gc-hmac-sha1.m4: New file.
47851
47852         * m4/gc-sha1: New file.
47853
47854         * m4/hmac-sha1.m4: New file.
47855
47856 2005-10-12  Simon Josefsson  <jas@extundo.com>
47857
47858         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
47859
47860         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
47861
47862 2005-10-12  Simon Josefsson  <jas@extundo.com>
47863
47864         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
47865         suggested by Bruno Haible <bruno@clisp.org>.
47866
47867 2005-10-12  Simon Josefsson  <jas@extundo.com>
47868
47869         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
47870
47871 2005-10-12  Simon Josefsson  <jas@extundo.com>
47872
47873         * lib/gc-pbkdf2-sha1.c: New file.
47874
47875         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
47876
47877 2005-10-12  Simon Josefsson  <jas@extundo.com>
47878
47879         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
47880
47881         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
47882
47883 2005-10-12  Simon Josefsson  <jas@extundo.com>
47884
47885         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
47886         GC_USE_HMAC_MD5, respectively.
47887
47888         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
47889         (gc_md5): Fix typo.
47890
47891         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
47892
47893         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
47894
47895         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
47896
47897 2005-10-12  Bruno Haible  <bruno@clisp.org>
47898
47899         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
47900         Reported by Stepan Kasal <kasal@ucw.cz>.
47901
47902 2005-10-11  Simon Josefsson  <jas@extundo.com>
47903
47904         * tests/test-crc.c: New file.
47905
47906         * modules/crc, modules/crc-tests: New files.
47907
47908 2005-10-11  Simon Josefsson  <jas@extundo.com>
47909
47910         * m4/crc.m4: New file.
47911
47912 2005-10-11  Simon Josefsson  <jas@extundo.com>
47913
47914         * lib/gc.h: Add gc_hash and gc_hash_buffer.
47915
47916         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
47917
47918         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
47919
47920 2005-10-11  Simon Josefsson  <jas@extundo.com>
47921
47922         * lib/crc.h, lib/crc.c: New files.
47923
47924         * lib/gc.h (gc_hash_buffer): Add doc.
47925
47926 2005-10-11  Bruno Haible  <bruno@clisp.org>
47927
47928         * modules/c-strcasestr: New file.
47929         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
47930
47931 2005-10-11  Bruno Haible  <bruno@clisp.org>
47932
47933         * modules/c-strcase: New file.
47934         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
47935
47936 2005-10-11  Bruno Haible  <bruno@clisp.org>
47937
47938         * lib/strcasecmp.c: Include limits.h.
47939         (strcasecmp): Avoid integer overflow on exotic platforms.
47940         * lib/strncasecmp.c: Include limits.h.
47941         (strncasecmp): Avoid integer overflow on exotic platforms.
47942         Reported by Paul Eggert.
47943
47944 2005-10-11  Bruno Haible  <bruno@clisp.org>
47945
47946         * lib/c-strcasestr.h: New file, from GNU gettext.
47947         * lib/c-strcasestr.c: New file, from GNU gettext.
47948
47949 2005-10-11  Bruno Haible  <bruno@clisp.org>
47950
47951         * lib/c-strcase.h: New file, from GNU gettext.
47952         * lib/c-strcasecmp.c: New file, from GNU gettext.
47953         * lib/c-strncasecmp.c: New file, from GNU gettext.
47954
47955 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
47956
47957         * modules/mempcpy (License): GPL -> LGPL.
47958         * modules/strchrnul (License): Likewise.
47959         * modules/sysexits (License): Likewise.
47960
47961 2005-10-08  Simon Josefsson  <jas@extundo.com>
47962
47963         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
47964
47965 2005-10-07  Simon Josefsson  <jas@extundo.com>
47966
47967         * m4/memxor.m4: Remove gl_C_RESTRICT call.
47968
47969 2005-10-06  Simon Josefsson  <jas@extundo.com>
47970
47971         * tests/test-hmac-md5.c: New file.
47972
47973         * modules/hmac-md5-tests: New file.
47974
47975         * modules/hmac-md5: New file.
47976
47977 2005-10-06  Simon Josefsson  <jas@extundo.com>
47978
47979         * m4/hmac-md5.m4: New file.
47980
47981         * m4/memxor.m4: Require gl_C_RESTRICT.
47982
47983 2005-10-06  Simon Josefsson  <jas@extundo.com>
47984
47985         * lib/memxor.c (memxor): Avoid casts and warnings.
47986
47987 2005-10-06  Simon Josefsson  <jas@extundo.com>
47988
47989         * lib/hmac-md5.c: New file.
47990
47991         * lib/hmac.h: New file.
47992
47993 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
47994
47995         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
47996         promotes to int, not unsigned int, to catch the AIX 5.3
47997         compiler bug.
47998
47999 2005-10-05  Simon Josefsson  <jas@extundo.com>
48000
48001         * modules/memxor: New file.
48002
48003         * modules/iconv (Files): Move config.rpath to havelib, it is used
48004         there.
48005
48006         * modules/havelib (Files): Add config.rpath.
48007
48008 2005-10-05  Simon Josefsson  <jas@extundo.com>
48009
48010         * m4/memxor.m4: New file.
48011
48012 2005-10-05  Simon Josefsson  <jas@extundo.com>
48013
48014         * lib/memxor.c (memxor): Fix compiler error.
48015
48016         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
48017         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
48018
48019         * lib/memxor.h, lib/memxor.c: New files.
48020
48021         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
48022         we assume all systems have it, suggested by Jim Meyering
48023         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
48024         any systems lack sys/socket.h; mingw32 is known to lack it, but we
48025         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
48026         same reasons.
48027
48028 2005-10-05  Simon Josefsson  <jas@extundo.com>
48029
48030         * config/srclist.txt: Add glibc bug 1423 for md5.h.
48031
48032 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
48033
48034         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
48035         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
48036         needed, since the source code now assumes these .h files.
48037
48038 2005-10-05  Derek Price  <derek@ximbiot.com>
48039
48040         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
48041
48042 2005-10-05  Bruno Haible  <bruno@clisp.org>
48043
48044         * modules/stdint (License): Change to LGPL.
48045
48046 2005-10-04  Simon Josefsson  <jas@extundo.com>
48047
48048         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
48049         D. Baushke" <mdb@gnu.org>.
48050
48051 2005-10-04  Bruno Haible  <bruno@clisp.org>
48052
48053         * lib/verify.h (verify_true): Provide alternative definition for C++.
48054
48055 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
48056
48057         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
48058         (SSIZE_MAX): New macro, if not already defined.
48059         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
48060         than 2 GiB.
48061
48062 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
48063
48064         Sync from coreutils.
48065         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
48066         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
48067         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
48068         ULLONG_MAX doesn't work with 2.7.2.1.
48069
48070 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
48071
48072         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
48073         From Ben Pfaff.
48074
48075         * modules/exclude (Depends-on): Depend on verify.
48076         * modules/strtoimax (Depends-on): Likewise.
48077         * modules/utimecmp (Depends-on): Likewise.
48078
48079 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
48080
48081         * lib/exclude.c: Include verify.h.
48082         (verify): Remove.  All callers changed to use verify.h's version.
48083         * lib/strtoimax.c: Likewise.
48084         * lib/utimecmp.c: Likewis.e
48085
48086         Sync from coreutils.
48087         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
48088         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
48089         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
48090         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
48091         bother returning ENOSYS if settimeofday or stime fails; just let
48092         them return whatever errno they want to return.
48093         * lib/utimens.c: Include unistd.h, for dup2.
48094         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
48095         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
48096
48097 2005-10-02  Jim Meyering  <jim@meyering.net>
48098
48099         Sync from coreutils.
48100         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
48101         from glibc-2.2.5 that fails for read-only files.
48102
48103 2005-10-02  Jim Meyering  <jim@meyering.net>
48104
48105         Sync from coreutils.
48106         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
48107         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
48108         `#if HAVE_CONFIG_H'.
48109         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
48110         Remove AT_FDCWD test.
48111         Do not consume the fd unless successful.
48112         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
48113         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
48114         block, so that we don't even try to compile it if settimeofday is
48115         available.  This works around a compilation failure on OSF1 V5.1,
48116         due to stime requiring a `long int*' while tv_sec is `int'.
48117
48118 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
48119
48120         Sync from coreutils.
48121         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
48122         against `yes', rather than just testing for nonempty.
48123
48124 2005-10-01  Simon Josefsson  <jas@extundo.com>
48125
48126         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
48127         and Darwin.
48128
48129         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
48130         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
48131         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
48132         freeaddrinfo and gai_strerror are declared by the POSIX headers.
48133         Check if struct addrinfo is declared.
48134
48135 2005-10-01  Simon Josefsson  <jas@extundo.com>
48136
48137         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
48138         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
48139         AI_* and EAI_* definitions.  Protect function declarations.
48140
48141 2005-10-01  Jim Meyering  <jim@meyering.net>
48142
48143         Sync from coreutils.
48144
48145         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
48146         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
48147         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
48148         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
48149         in the inet and nsl libraries.  Required on Solaris 5.7.
48150
48151 2005-10-01  Jim Meyering  <jim@meyering.net>
48152
48153         Sync from coreutils.
48154         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
48155         in the inet and nsl libraries.  Required on Solaris 5.7.
48156
48157 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
48158
48159         * lib/getdelim.c (getdelim): Remove unused variables.
48160
48161 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
48162
48163         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
48164         so that the code works even with ancient cpp.  Portability problem
48165         with GCC 2.7.2.1 reported by Thomas M.Ott.
48166
48167 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
48168
48169         * modules/regex (Depends-on): Add strcase.
48170
48171         * modules/gethostname (Licence): Change from GPL to LGPL, since
48172         gethostname.c is a trivial implementation of a standard library
48173         function.
48174         * modules/poll (License): Change from GPL to LGPL, since it's
48175         derived from LGPL code.
48176
48177 2005-09-27  Jim Meyering  <jim@meyering.net>
48178
48179         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
48180         HAVE_CONFIG_H.
48181
48182         * lib/intprops.h (signed_type_or_expr__): Define.
48183         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
48184         for unsigned types.
48185
48186 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
48187
48188         * lib/verify.h (verify_expr): Remove, replacing with:
48189         (verify_true): New macro that returns true instead of void.
48190         (verify_type__): Remove.
48191         (verify): Use verify_true rather than verify_type__.
48192
48193 2005-09-26  Bruno Haible  <bruno@clisp.org>
48194
48195         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
48196         is necessary.
48197         (lib_SOURCES): Remove mbchar.c.
48198         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
48199         (Files): Add m4/mbrtowc.m4.
48200         * modules/mbiter: Likewise.
48201         * modules/mbuiter: Likewise.
48202
48203 2005-09-26  Bruno Haible  <bruno@clisp.org>
48204
48205         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
48206         compile mbchar.c if they are not both present.
48207         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
48208         * m4/mbiter.m4 (gl_MBITER): Likewise.
48209         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
48210         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
48211         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
48212
48213 2005-09-25  Jim Meyering  <jim@meyering.net>
48214
48215         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
48216         also uses socklen_t.
48217
48218 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
48219
48220         * lib/utimens.c (ENOSYS): Define if not already defined.
48221         (futimens): Support having a null PATH if the file descriptor
48222         is nonnegative.
48223
48224         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
48225         Remove.
48226         (__attribute): Define to empty unless GCC 3.1 or later.
48227         This works around a core dump on OpenBSD 3.4, which has GCC
48228         2.95.3, which dumps core when given __attribute__(()).  It also
48229         simplifies other tests, since we really don't want to bother with
48230         worrying about which ancient version of GCC supported what.
48231         Original problem reported by Yoann Vandoorselaere, with part of
48232         the fix suggested by Derek Price.
48233
48234 2005-09-24  Jim Meyering  <jim@meyering.net>
48235
48236         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
48237         so we can once again use a positive bitfield width of 1 -- now we
48238         don't have to explain why we were using a bitfield width of 2.
48239
48240 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
48241
48242         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
48243         and similarly for the other external symbols.  Problem reported
48244         by James Gallager.
48245
48246         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
48247         bug reported by Jim Meyering.
48248
48249         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
48250         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
48251         not needed, since socklen is a prerequisite module.
48252
48253 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
48254
48255         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
48256         Problem reported by Eric Blake.
48257         (getaddrinfo): Initialize se so that it's not garbage.
48258         Redo internal storage allocation so that it doesn't make unportable
48259         assumptions about alignment.
48260         Fix a memory leak.
48261
48262         * lib/utimens.c (futimens): Use futimesat if available.
48263         Prefer it to futimes since it doesn't have the futimes bug.
48264
48265         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
48266         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
48267         Instead, declare a function that returns a pointer to an array,
48268         and use verify_type__ to declare the size of the array.
48269         Problem and germ of a solution reported by Bruno Haible.
48270         (verify_type__): Use 2, not 1, for bitfield size, to avoid
48271         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
48272
48273 2005-09-23  Jim Meyering  <jim@meyering.net>
48274
48275         Sync from coreutils.
48276         Correct build failure (socklen_t not defined) on at least
48277         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
48278         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
48279
48280 2005-09-23  Jim Meyering  <jim@meyering.net>
48281
48282         * modules/getaddrinfo (Depends-on): Add socklen.
48283
48284 2005-09-23  Bruno Haible  <bruno@clisp.org>
48285
48286         * tests/test-verify.c: New file.
48287
48288 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
48289
48290         Sync from coreutils.
48291
48292         * modules/argmatch (Depends-on): Add verify.
48293         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
48294         unistd-safer.
48295         * modules/save-cwd (Depends-on): Likewise.
48296
48297         * modules/openat (Files): Add lib/openat-die.c.
48298         (Depends-on): Remove error, exitfail.
48299         Add dirname.
48300
48301         * modules/verify: New file.
48302         * MODULES.html.sh (Diagnostics <assert.h>): New section,
48303         with "verify" module.
48304
48305 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
48306
48307         Sync from coreutils.
48308
48309         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
48310         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
48311         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
48312         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
48313         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
48314         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
48315         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
48316         Don't bother checking for string.h, stdlib.h, unistd.h.
48317         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
48318         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
48319         module's job.
48320         * m4/jm-macros.m4 (gl_MACROS): Likewise.
48321         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
48322
48323         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
48324         (gl_GETDATE): Use it.
48325
48326         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
48327
48328 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
48329
48330         Sync from coreutils.
48331
48332         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
48333         stat-time.h.
48334         * lib/argmatch.h: Include verify.h
48335         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
48336         (ARGMATCH_ASSERT): Remove; unused.
48337         * lib/canonicalize.c: Assume STDC_HEADERS.
48338         * lib/exclude.c: Include "strcase.h".
48339         * lib/regex_internal.h [!defined _LIBC]: Likewise.
48340         * lib/getusershell.c: Include stdio--.h rather than stdio.h
48341         and stdio-safer.h.
48342         (getusershell): Call fopen, not fopen_safer.
48343         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
48344         Do not include unistd-safer.h.
48345         (save_cwd): Don't call fd_safer; no longer needed
48346         now that we include fcntl--.h.
48347
48348         * lib/getdate.y (relative_time): New type.
48349         (RELATIVE_TIME_0): New constant.
48350         (parser_control): Use relative_time instead of doing it ourselves.
48351         (%union): Add new relative_time rel member.
48352         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
48353         Now typeless.
48354         (relunit, relunit_snumber): Now of type rel.
48355         (zone, rel, relunit, get_date): Adjust to above changes.
48356
48357         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
48358         Do not include unistd-safer.h.
48359         (getloadavg): Don't call fd_safer; no longer needed
48360         now that we include fcntl--.h.
48361
48362         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
48363         (make_dir_parents): Treat ENOSYS like EEXIST.
48364
48365         Improve quality of diagnostics on restore_cwd failure.
48366         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
48367         (make_dir_parents): Last arg is now int * (for errno), not bool *.
48368         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
48369         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
48370         each time through the loop.  Do not diagnose restore_cwd failure;
48371         that is the caller's job (and perhaps the caller does not care).
48372
48373         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
48374         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
48375         If the file already exists but is not a directory, don't bother
48376         to try to make its parents.
48377         Close potential file descriptor leak if we can't chdir("/") (!).
48378         Don't always return true if chdir($PWD) fails; return true only
48379         if the requested action was done successfully (except for the
48380         chdir($PWD)).
48381         Don't log final directory unless we actually made it.
48382         Refactor to avoid duplicate code to fix up permissions.
48383         Don't attempt to fix up parent permissions if chdir($PWD) fails.
48384
48385         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
48386         to make it a bit faster and (I hope) clearer.
48387         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
48388         Fix bug in formats like %2N.
48389
48390         * lib/verify.h: New file.
48391
48392 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
48393
48394         Sync from coreutils.
48395         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
48396
48397 2005-09-22  Jim Meyering  <jim@meyering.net>
48398
48399         Sync from coreutils.
48400
48401         * m4/lstat.m4 (gl_FUNC_LSTAT):
48402         Use AC_LIBSOURCES to require lstat.c and lstat.h.
48403         Remove obsolete comment.
48404         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
48405         * m4/xstrtod.m4: Likewise.
48406
48407         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
48408
48409 2005-09-22  Jim Meyering  <jim@meyering.net>
48410
48411         Sync from coreutils.
48412
48413         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
48414
48415         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
48416         the .tm_year member, since otherwise gcc-4.0 would now warn about
48417         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
48418
48419         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
48420         order to avoid an unsuppressible warning from gcc on 64-bit systems.
48421
48422         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
48423         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
48424         when run in a time zone for which daylight savings time is in effect
48425         for the starting date.
48426
48427         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
48428         stop us from restricting permissions of just-created absolute-named
48429         directories.
48430         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
48431         to restore initial working directory.
48432         * lib/mkdir-p.c (make_dir_parents): New parameter:
48433         different_working_dir, to tell caller if/when we change the working
48434         directory and are unable to return to the initial one.
48435         * lib/mkdir-p.h (make_dir_parents): Update prototype.
48436         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
48437         `return false'.  This fixes a bug introduced on 2004-07-30.
48438
48439         * lib/openat.c (fdopendir): Be sure to close the supplied
48440         file descriptor before returning.  This makes our replacement
48441         implementation a little closer to Solaris's, where fdopendir
48442         ties the file descriptor to the returned DIR* pointer.
48443         * lib/openat.c (unlinkat): New function.
48444         * lib/openat.h (unlinkat): Add prototype.
48445         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
48446         (openat_restore_fail): Rename from openat_restore_die.
48447         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
48448
48449         Provide an alternative to exiting immediately upon save_cwd or
48450         restore_cwd failure.  Now, an application can arrange e.g.,
48451         to perform a longjump in that case.
48452         * lib/openat.c: Include dirname.h.
48453         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
48454         (rpl_openat, fdopendir, fstatat): Call openat_save_die
48455         and openat_restore_die rather than calling error directly.
48456         Don't include "error.h" or "exitfail.h"; they're no longer needed.
48457
48458         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
48459         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
48460         define.
48461
48462         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
48463         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
48464                             int utc, int nanoseconds);
48465         Background:
48466         date should not have to allocate a megabyte of virtual memory to
48467         handle a format argument like +%1048575T.  When implemented with
48468         strftime, it must allocate such a buffer, use strftime to fill it
48469         in, print it, then free it.
48470         With fprintftime, it simply prints everything and exits.
48471         With no need for memory allocation, that's one fewer way to fail.
48472         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
48473         optional field width, not before, so we accept %9:z, not %:9z.
48474         (my_strftime): Be sure to use L_('x') for literals.
48475
48476         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
48477         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
48478         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
48479         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
48480         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
48481         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
48482         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
48483         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
48484         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
48485         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
48486         * lib/xgethostname.c, lib/xreadlink.c:
48487         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
48488
48489         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
48490         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
48491         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
48492         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
48493         and don't include <sys/file.h>).
48494
48495 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
48496
48497         Sync from coreutils.
48498
48499         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
48500         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
48501         [!LDAV_DONE]: Avoid unused variable warning.
48502
48503 2005-09-21  Bruno Haible  <bruno@clisp.org>
48504
48505         * lib/unicodeio.h (unicode_to_mb): New declaration.
48506
48507 2005-09-20  Derek Price  <derek@ximbiot.com>
48508
48509         * lib/getaddrinfo.c: Don't include <netdb.h> included from
48510         getaddrinfo.h.
48511
48512 2005-09-20  Bruno Haible  <bruno@clisp.org>
48513
48514         * gnulib-tool: Remove trailing slashes from the values specified for
48515         --source-base, --m4-base, --tests-base, --aux-dir.
48516         Suggested by Simon Josefsson <jas@extundo.com>.
48517
48518 2005-09-20  Bruno Haible  <bruno@clisp.org>
48519
48520         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
48521         func_modules_to_filelist, func_import, func_create_testdir): Make all
48522         sorting results locale-independent, so that gnulib-cache.m4 doesn't
48523         change when gnulib-tool is invoked in a different locale.
48524
48525 2005-09-19  Simon Josefsson  <jas@extundo.com>
48526
48527         * m4/socklen.m4: Fix typo.
48528
48529 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48530
48531         Use a consistent style for including <config.h>.
48532         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
48533         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
48534         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
48535         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
48536         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
48537         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
48538         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
48539         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
48540         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
48541         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
48542         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
48543         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
48544         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
48545         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
48546         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
48547         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
48548         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
48549         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
48550         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
48551         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
48552         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
48553         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
48554         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
48555         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
48556         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
48557         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
48558         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
48559         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
48560         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
48561         lib/xstrtoumax.c, lib/yesno.c:
48562         Standardize inclusion of config.h.
48563         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
48564         lib/inttostr.h:  Removed inclusion of config.h from header files.
48565         * lib/inttostr.c:  Adjusted in-tree users.
48566         * lib/timespec.h: Remove superfluous warning to include config.h.
48567         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
48568         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
48569         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
48570         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
48571         config.h with HAVE_CONFIG_H.
48572
48573 2005-09-19  Jim Meyering  <jim@meyering.net>
48574
48575         * modules/pathmax (License): Change to LGPL.
48576
48577 2005-09-19  Derek Price  <derek@ximbiot.com>
48578
48579         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
48580
48581 2005-09-19  Bruno Haible  <bruno@clisp.org>
48582
48583         * gnulib-tool (import): Provide default for --tests-base.
48584
48585 2005-09-19  Bruno Haible  <bruno@clisp.org>
48586
48587         * doc/quote.texi: New file, extracted from gnulib.texi.
48588         * doc/ctime.texi: New file, extracted from gnulib.texi.
48589         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
48590         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
48591         * doc/gnulib.texi: Include them.
48592
48593 2005-09-18  Bruno Haible  <bruno@clisp.org>
48594
48595         Portability fix.
48596         * gnulib-tool (func_readlink): New function.
48597         (func_ln_if_changed): Use it.
48598
48599 2005-09-18  Bruno Haible  <bruno@clisp.org>
48600
48601         * gnulib-tool: Support --with-tests also with --import.
48602         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
48603         (func_import): Use variables $testsbase and $inctests. Emit a
48604         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
48605         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
48606         SUBDIRS += $testsdir.
48607         (func_create_testdir): Update.
48608
48609 2005-09-18  Bruno Haible  <bruno@clisp.org>
48610
48611         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
48612         instead of $dry_run.
48613         (func_cp_if_changed, func_mv_if_changed): Remove functions.
48614         (func_ln_if_changed): Don't handle dry-run here.
48615         (func_import): In dry-run mode, detect more precisely which actions
48616         would be performed, and don't use "...ing" verbs.
48617
48618 2005-09-18  Bruno Haible  <bruno@clisp.org>
48619
48620         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
48621         (func_import): Use join on two temporary files instead of three nested
48622         loops, in order to determine which files are new or old.
48623
48624 2005-09-18  Bruno Haible  <bruno@clisp.org>
48625
48626         * gnulib-tool (func_import): Comment out code that spits out the
48627         new files with --dry-run.
48628
48629 2005-09-18  Bruno Haible  <bruno@clisp.org>
48630
48631         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
48632
48633 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
48634
48635         * lib/stat-time.h: New file.
48636         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
48637         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
48638         in a different way.
48639         (timespec_cmp): New function.
48640         * lib/utimecmp.c: Include stat-time.h.
48641         (SYSCALL_RESOLUTION): Depend on whether various struct stat
48642         members exist, not on the obsolescent ST_MTIM_NSEC.
48643         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
48644
48645 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
48646
48647         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
48648
48649 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
48650
48651         * MODULES.html.sh (File system functions): Add stat-time.
48652         * modules/stat-time: New file.
48653         * modules/timespec (Files): Remove m4/st_mtim.m4; this
48654         is now done in a different way, by the stat-time module.
48655         * modules/utimecmp (Depends-on): Add stat-time.
48656
48657 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
48658
48659         * m4/st_mtim.m4: Remove.  Superseded by...
48660         * m4/stat-time.m4: New file.
48661         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
48662         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
48663
48664 2005-09-15  Derek Price  <derek@ximbiot.com>
48665
48666         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
48667
48668 2005-09-15  Derek Price  <derek@ximbiot.com>
48669
48670         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
48671         * lib/regex_internal.c: Ditto, using this...
48672         (__GNUC_PREREQ): ...new macro.
48673         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
48674         using...
48675         (__GNUC_PREREQ): ...this new macro.
48676
48677         * lib/strstr.h: Include string.h. Define strstr as a macro here.
48678
48679 2005-09-15  Derek Price  <derek@ximbiot.com>
48680             Paul Eggert  <eggert@cs.ucla.edu>
48681
48682         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
48683         changes, consolidating in...
48684         * lib/regex_internal.h: ...this file.
48685
48686 2005-09-13  Jim Meyering  <jim@meyering.net>
48687
48688         * lib/canon-host.c: Filter through gnu indent and reword comments
48689         slightly.
48690         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
48691
48692 2005-09-13  Derek Price  <derek@ximbiot.com>
48693
48694         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
48695         failure.
48696         Reported by Jim Meyering  <jim@meyering.net>.
48697
48698 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
48699
48700         * lib/base64.c: Typo.
48701         (base64_encode): Put b64str in initialized data section.
48702
48703 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
48704
48705         Merge glibc and coreutils changes into gnulib, plus a few
48706         extra fixes.
48707         * lib/md5.c: Use #error rather than a string.
48708         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
48709         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
48710         (__attribute__): Define to empty for non recent-GCC.
48711         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
48712         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
48713         Renamed from their non-__ counterparts, with new macros replacing
48714         them if not _LIBC.  Add __THROW attribute.
48715         (rol): Remove.
48716         (struct md5_ctx): Align buffer if using GCC.
48717         * lib/sha1.h (struct sha1_ctx): Likewise.
48718         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
48719         The old name was backwards.
48720         (NOTSWAP): Remove; not used.
48721         (rol): New macro, moved here from md5.h.
48722         (sha1_process_block): Remove a FIXME that doesn't make sense.
48723
48724 2005-09-12  Derek Price  <derek@ximbiot.com>
48725
48726         Return usable errors from canon-host.
48727         * lib/canon-host.h: New file.
48728         * lib/canon-host.c (canon_host): Wrap...
48729         (canon_host_r): ...this new function, which now relies exclusively on
48730         getaddrinfo.
48731         (ch_strerror): New function.
48732         (last_cherror): New global.
48733         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
48734         interface.
48735         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
48736         void *.
48737         (freeaddrinfo): Free ai->ai_canonname when set.
48738
48739 2005-09-12  Derek Price  <derek@ximbiot.com>
48740
48741         Make canon-host require getaddrinfo.
48742         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
48743         AC_LIBSOURCE canon-host.h.  Call...
48744         (gl_PREREQ_CANON_HOST): ...this new function, which requires
48745         gl_GETADDRINFO.
48746         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
48747
48748 2005-09-12  Derek Price  <derek@ximbiot.com>
48749
48750         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
48751         LGPL.
48752         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
48753
48754 2005-09-12  Derek Price  <derek@ximbiot.com>
48755
48756         * lib/gai_strerror.c: Include config.h when available.  Include
48757         getaddrinfo.h before other headers to test interface.
48758         Reported by Larry Jones <lawrence.jones@ugs.com>.
48759
48760 2005-09-12  Derek Price  <derek@ximbiot.com>
48761             Paul Eggert  <eggert@cs.ucla.edu>
48762
48763         * modules/glob (Files): Add glob-libc.h.
48764
48765 2005-09-12  Derek Price  <derek@ximbiot.com>
48766             Paul Eggert  <eggert@cs.ucla.edu>
48767
48768         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
48769         glob_.h, glob-libc.h.
48770         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
48771
48772 2005-09-12  Derek Price  <derek@ximbiot.com>
48773             Paul Eggert  <eggert@cs.ucla.edu>
48774
48775         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
48776         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
48777         protecting things that should be done only in gnulib contexts.
48778         * lib/glob_.h: New file, containing only the glob things needed for
48779         gnulib.
48780         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
48781         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
48782         (glob, globfree, glob_pattern_p): Now defined simply in terms of
48783         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
48784         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
48785         and to respect the namespace rules better.
48786
48787 2005-09-08  Simon Josefsson  <jas@extundo.com>
48788
48789         * modules/socklen: New file.
48790
48791 2005-09-08  Simon Josefsson  <jas@extundo.com>
48792
48793         * m4/socklen.m4: New file.
48794
48795 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
48796
48797         * modules/utimens (Files): Add m4/utimbuf.m4, since
48798         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
48799         Reported by Sergey Poznyakoff.
48800
48801 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
48802
48803         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
48804         definitions, since that's the preferred style in glibc.
48805         Fix a minor spacing issue, and update copyright notice to match
48806         glibc's.
48807
48808 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
48809
48810         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
48811
48812 2005-09-06  Simon Josefsson  <jas@extundo.com>
48813
48814         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
48815         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
48816
48817 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
48818
48819         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
48820         warning.
48821
48822 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
48823
48824         * config/srclist.txt: Add glibc bug 1302.
48825
48826 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
48827
48828         Change bitset word type from unsigned int to unsigned long int,
48829         as this has better performance on typical 64-bit hosts.
48830         Port bitset code to hosts with unusual word sizes.
48831         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
48832         (build_collating_symbol):
48833         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
48834         argument is a bitset.  This is merely a style issue, but it makes
48835         it clearer that an entire array is expected.
48836         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
48837         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
48838         Port to the case where bitset_word is not the same as unsigned int.
48839         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
48840         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
48841         Likewise.
48842         * lib/regexec.c (check_dst_limits_calc_pos_1,
48843         check_subexp_matching_top):
48844         (build_trtable, group_nodes_into_DFAstates):
48845         Likewise.
48846         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
48847         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
48848         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
48849         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
48850         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
48851         * lib/regcomp.c (optimize_subexps, lower_subexp):
48852         Work even if bitset_word has holes in its bitwise representation.
48853         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
48854         * lib/regexec.c (check_dst_limits_calc_pos_1,
48855         check_subexp_matching_top):
48856         Likewise.
48857         * lib/regex_internal.c (re_string_reconstruct):
48858         Don't assume UCHAR_MAX == 255.
48859         * lib/regex_internal.h (bitset_set_all): Likewise.
48860         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
48861         All uses changed.
48862         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
48863         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
48864         All uses changed.
48865         (BITSET_WORD_MAX): New macro.
48866         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
48867         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
48868         (bitset_empty, bitset_copy):
48869         Prefer sizeof (bitset) to multiplying it out ourselves.
48870         (bitset_not_merge): Remove; unused.
48871         (bitset_contain): Return bool, not unsigned int with one bit on.
48872         All callers changed.
48873         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
48874         alignment than re_node_set; do this by defining a new internal
48875         type struct dests_alloc and using it to allocate memory.
48876
48877 2005-09-05  Bruno Haible  <bruno@clisp.org>
48878
48879         * gnulib-tool (func_import): Fix comparison in handling of symbolic
48880         links.
48881
48882 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
48883
48884         * modules/size_max (Makefile.am): Add size_max.h
48885
48886 2005-09-04  Derek Price  <derek@ximbiot.com>
48887
48888         * gnulib-tool (func_import): Fix reversed $symbolic logic.
48889
48890 2005-09-03  Simon Josefsson  <jas@extundo.com>
48891
48892         * gnulib-tool: Fix typo.
48893
48894 2005-09-03  Simon Josefsson  <jas@extundo.com>
48895
48896         * config/srclist.txt: Add glibc bug 1293.
48897
48898 2005-09-03  Derek Price  <derek@ximbiot.com>
48899
48900         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
48901         From Larry Jones <lawrence.jones@ugs.com>.
48902
48903 2005-09-02  Simon Josefsson  <jas@extundo.com>
48904
48905         * modules/socklen: New file.
48906
48907 2005-09-02  Simon Josefsson  <jas@extundo.com>
48908
48909         * modules/havelib: New module.
48910
48911         * modules/gettext, modules/iconv, modules/lock, modules/readline:
48912         Use havelib.
48913
48914 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
48915
48916         Check for arithmetic overflow when calculating sizes, to prevent
48917         some buffer-overflow issues.  These patches are conservative, in the
48918         sense that when I couldn't determine whether an overflow was possible,
48919         I inserted a run-time check.
48920         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
48921         macros.
48922         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
48923         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
48924         (re_xnrealloc, re_x2nrealloc): New inline functions.
48925         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
48926         parse_bracket_exp):
48927         (build_equiv_class, build_charclass): Check for arithmetic overflow
48928         in size expression calculations.
48929         * lib/regex_internal.c (re_string_realloc_buffers):
48930         (build_wcs_upper_buffer, re_node_set_add_intersect):
48931         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
48932         (re_dfa_add_node, register_state): Likewise.
48933         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
48934         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
48935         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
48936         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
48937
48938 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
48939
48940         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
48941         m4/ulonglong.m4.  Problem reported by Martin Lambers.
48942
48943 2005-09-02  Bruno Haible  <bruno@clisp.org>
48944
48945         Support for lib vs. lib64 distinction on biarch platforms.
48946         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
48947         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
48948         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
48949
48950 2005-09-02  Bruno Haible  <bruno@clisp.org>
48951
48952         * gnulib-tool (import): In the other first-use case, provide defaults
48953         as well.
48954
48955 2005-09-02  Bruno Haible  <bruno@clisp.org>
48956
48957         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
48958         patches not yet found in the latest gettext release.
48959
48960 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
48961
48962         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
48963         to avoid a collision with bits/local_lim.h in glibc.
48964         All uses changed.  Problem reported by Dmitry V. Levin in
48965         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
48966
48967         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
48968         bugs in int versus size_t comparisons.
48969         (re_string_context_at): Fix bug where the code assumed that
48970         Idx is signed.
48971
48972         Use bool where appropriate.
48973         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
48974         All callers changed.
48975         (calc_eclosure_iter): Likewise, for ROOT arg.
48976         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
48977         (build_charclass_op): Likewise, for NON_MATCH arg.
48978         * lib/regex_internal.c (re_string_allocate, re_string_construct):
48979         (re_string_construct_common): Likewise, for ICASE arg.
48980         * lib/regexec.c (re_search_2_stub, re_search_stub):
48981         Likewise, for RET_LEN arg.
48982         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
48983         (set_regs): Likewise, for FL_BACKTRACK arg.
48984         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
48985         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
48986         (calc_eclosure_iter, parse_bracket_exp):
48987         Use bool for internal variables that are booleans.
48988         * lib/regexec.c (re_search_internal, check_matching,
48989         proceed_next_node):
48990         (set_regs, build_sifted_states, sift_states_bkref):
48991         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
48992         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
48993         (find_collation_sequence_value):
48994         Likewise.
48995         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
48996         (re_node_set_compare):
48997         Return bool, not int. All callers changed.
48998         * lib/regexec.c (check_halt_node_context, check_dst_limits):
48999         (build_trtable, check_node_accept): Likewise.
49000         * lib/regex_internal.h: Include stdbool.h.
49001
49002         Fix bugs uncovered when converting to bool.
49003         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
49004         failure instead of charging ahead blindly.
49005         * lib/regex_internal.c (register_state): Likewise.
49006         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
49007         for freeing internal storage.
49008         (group_nodes_into_DFA_states): Use unsigned int, not int, for
49009         bitset pieces used as boolean, to avoid undefined behavior
49010         on hosts that do int overflow checking.
49011
49012 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
49013
49014         * config/srclist.txt: Add glibc bugs 1285-1287.
49015
49016 2005-09-01  Jim Meyering  <jim@meyering.net>
49017
49018         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
49019         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
49020         Require gl_STAT_MACROS, too.
49021
49022 2005-09-01  Bruno Haible  <bruno@clisp.org>
49023
49024         * gnulib-tool (import): In the first-use case, provide defaults.
49025
49026 2005-09-01  Bruno Haible  <bruno@clisp.org>
49027
49028         * gnulib-tool (func_import): Remove the .tmp files.
49029
49030 2005-09-01  Bruno Haible  <bruno@clisp.org>
49031
49032         * gnulib-tool (func_import): Fix handling of symbolic links.
49033
49034 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
49035
49036         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
49037         old glibc regex code mishandles strings longer than 2**31 bytes.
49038         This patch fixes this when the regex code is used in gnulib
49039         (i.e., outside glibc).
49040
49041         This patch should not affect the use of the regex code inside
49042         glibc.  No doubt this problem also needs to be handled for glibc
49043         as well, but the result will be an incompatible change to the
49044         glibc ABI, and the old ABI will have to be supported too.  That
49045         can be the the subject for another patch.
49046
49047         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
49048         governing whether the rest of this patch is active.  By default,
49049         the macro is disabled and the patch has no effect.
49050         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
49051         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
49052         (struct re_pattern_buffer, re_search, re_search_2, re_match):
49053         (re_match_2, re_set_registers): Use the new types.
49054         * lib/regex_internal.h (Idx, re_hashval_t): New types.
49055         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
49056         New macros.
49057         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
49058         (re_string_context_at, bin_tree_t, re_dfastate_t):
49059         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
49060         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
49061         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
49062         (re_string_char_size_at, re_string_wchar_at):
49063         (re_string_elem_size_at):
49064         Use the new types and macros to port to 64-bit hosts.
49065         Use unsigned types for internal values, so that the code
49066         mostly works even for arrays larger than SSIZE_MAX.
49067         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
49068         (search_duplicated_node, calc_eclosure_iter, fetch_number):
49069         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
49070         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
49071         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
49072         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
49073         (calc_inveclosure, parse_dup_op, build_range_exp):
49074         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
49075         (fetch_number, create_token_tree, mark_opt_subexp):
49076         Likewise.
49077         * lib/regex_internal.c (re_string_construct_common,
49078         create_ci_newstate):
49079         (create_cd_newstate, re_string_allocate, re_string_construct):
49080         (re_string_realloc_buffers, build_wcs_upper_buffer):
49081         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
49082         (re_string_reconstruct, re_string_peek_byte_case):
49083         (re_string_fetch_byte_case, re_string_context_at):
49084         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
49085         (re_node_set_init_copy, re_node_set_add_intersect):
49086         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
49087         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
49088         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
49089         (re_acquire_state, re_acquire_state_context, register_state):
49090         Likewise.
49091         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
49092         search_cur_bkref_entry):
49093         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
49094         (re_search_internal, re_search_2_stub, re_search_stub)
49095         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
49096         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
49097         (update_cur_sifted_state, check_dst_limits):
49098         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
49099         (check_subexp_limits, sift_states_bkref, merge_state_array):
49100         (check_subexp_matching_top, get_subexp, get_subexp_sub):
49101         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
49102         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
49103         (expand_bkref_cache, check_node_accept_bytes):
49104         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
49105         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
49106         (acquire_init_state_context, check_halt_node_context):
49107         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
49108         (sift_states_backward, clean_state_log_if_needed):
49109         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
49110         (find_recover_state, transit_state_sb, transit_state_mb):
49111         (transit_state_bkref, build_trtable, match_ctx_clean):
49112         Likewise.
49113         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
49114         to work around an assumption that REG_MISSING is negative.
49115
49116         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
49117         (seek_collating_symbol_entry) [defined _LIBC]:
49118         (lookup_collation_sequence_value) [defined _LIBC]:
49119         (build_range_exp, build_collating_symbol) [defined _LIBC]:
49120         Use prototypes rather than old-style function definitions.
49121         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
49122         (transit_state_sb) [0]:
49123         (find_collation_sequence_value) [defined _LIBC]: Likewise.
49124
49125         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
49126         rm_eo.
49127
49128         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
49129         (optimize_subexps, lower_subexp):
49130         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
49131         since the signed shift might overflow.  Use 1u<<31 instead.
49132         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
49133         Likewise.
49134         * lib/regexec.c (check_dst_limits_calc_pos_1,
49135         check_subexp_matching_top): Likewise.
49136
49137         * lib/regcomp.c (optimize_subexps, lower_subexp):
49138         Use CHAR_BIT rather than 8, for clarity.
49139         * lib/regexec.c (check_dst_limits_calc_pos_1):
49140         (check_subexp_matching_top): Likewise.
49141         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
49142         have to worry about portability issues when shifting it left.
49143         Remove no-longer-needed test for table_size > 0.
49144         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
49145         in a word, as the resulting behavior is undefined.
49146         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
49147         in one case, a <= should have been an <, and in another case the
49148         whole test was missing.
49149         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
49150         the standard name CHAR_BIT.
49151         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
49152         this is not true on one's complement and signed-magnitude hosts.
49153
49154         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
49155         next_last_offset.
49156         (struct re_dfa_t): Remove unused member states_alloc.
49157         * lib/regcomp.c (init_dfa): Don't initialize unused members.
49158
49159 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
49160
49161         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
49162         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
49163         and large-file glibc and in 32-bit large-file Solaris.
49164
49165 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
49166
49167         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
49168         lengths fit in regoff_t; this isn't true if regoff_t is the same
49169         width as size_t.
49170         * lib/regex.c (re_search_internal): 5th arg is LAST_START
49171         (= START + RANGE) instead of RANGE.  This avoids overflow
49172         problems when regoff_t is the same width as size_t.
49173         All callers changed.
49174         (re_search_2_stub): Check for overflow when adding the
49175         sizes of the two strings.
49176         (re_search_stub): Check for overflow when adding START
49177         to RANGE; if it occurs, substitute the extreme value.
49178
49179 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
49180
49181         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
49182
49183 2005-08-31  Jim Meyering  <jim@meyering.net>
49184
49185         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
49186         a pointer-to-const.
49187         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
49188         (register_state): Likewise.
49189         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
49190         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
49191         (group_nodes_into_DFAstates): Likewise.
49192
49193 2005-08-31  Jim Meyering  <jim@meyering.net>
49194
49195         * check-module: Add a FIXME comment.
49196
49197 2005-08-31  Eric Blake  <ebb9@byu.net>
49198
49199         * modules/unistd-safer (Files): Add unistd--.h.
49200         * modules/stdio-safer (Files): Add stdio--.h.
49201
49202 2005-08-31  Derek Price  <derek@ximbiot.com>
49203
49204         * lib/getdelim.c (getdelim): Return EOF on EOF.
49205         Reported by Larry Jones <lawrence.jones@ugs.com>.
49206
49207 2005-08-31  Bruno Haible  <bruno@clisp.org>
49208
49209         Avoid unnecessary diffs in the generated lib/Makefile.am.
49210         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
49211         the generated files.
49212         (func_import): Don't set cmd.
49213
49214 2005-08-31  Bruno Haible  <bruno@clisp.org>
49215
49216         * lib/strstr.c: Include <stddef.h>, for NULL.
49217         * lib/strcasestr.c: Likewise.
49218         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
49219
49220 2005-08-31  Bruno Haible  <bruno@clisp.org>
49221
49222         * gnulib-tool: New option --macro-prefix.
49223         (func_import): Use macro_prefix.
49224         (import): Handle option --macro-prefix.
49225
49226 2005-08-31  Bruno Haible  <bruno@clisp.org>
49227
49228         * gnulib-tool (import): Rename most ac_* variables to cached_*.
49229         Also use new variables cached_lgpl, cached_libtool.
49230
49231 2005-08-31  Bruno Haible  <bruno@clisp.org>
49232
49233         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
49234         always instantiating them.
49235
49236 2005-08-31  Bruno Haible  <bruno@clisp.org>
49237
49238         * gnulib-tool (func_import): Read the previous cached settings
49239         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
49240         earlier added by gnulib but are now dropped. Warn when a gnulib file
49241         overwrites a non-gnulib file.
49242
49243 2005-08-31  Bruno Haible  <bruno@clisp.org>
49244
49245         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
49246         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
49247         projects that don't keep autogenerated files in CVS. Put into
49248         actioncmd only the specified modules, not the transitive closure.
49249
49250 2005-08-31  Bruno Haible  <bruno@clisp.org>
49251
49252         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
49253         Create directories that shall be filled.
49254         (import): Don't look for gl_* macros in configure.ac. Recurse across
49255         all directories containing a gnulib-cache.m4 files, if meaningful.
49256
49257 2005-08-31  Bruno Haible  <bruno@clisp.org>
49258
49259         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
49260         (import): Set seen_libtool when we see gl_LIBTOOL.
49261
49262 2005-08-31  Bruno Haible  <bruno@clisp.org>
49263
49264         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
49265         declaration macro definitions from generated gnulib.m4.
49266
49267 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
49268
49269         * lib/iconvme.h: Add prototype for iconv_alloc.
49270
49271 2005-08-29  Simon Josefsson  <jas@extundo.com>
49272
49273         * lib/iconvme.c: Fix errno.
49274
49275 2005-08-29  Bruno Haible  <bruno@clisp.org>
49276
49277         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
49278         that it works when the directory contains spaces.
49279
49280 2005-08-29  Bruno Haible  <bruno@clisp.org>
49281
49282         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
49283
49284 2005-08-29  Bruno Haible  <bruno@clisp.org>
49285
49286         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
49287         Emit more advice.
49288
49289 2005-08-29  Bruno Haible  <bruno@clisp.org>
49290         and Stepan Kasal  <kasal@ucw.cz>
49291
49292         * check-module: If more parameters are given, check each of them
49293         separately; add more exceptions, as noted by Jim Meyering.
49294         (check_module): New procedure.
49295         (%exempt_header): Now contains all exceptions.
49296
49297 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
49298
49299         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
49300
49301 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
49302
49303         * lib/iconvme.c: Split iconv_string into iconv_alloc.
49304
49305 2005-08-28  Bruno Haible  <bruno@clisp.org>
49306
49307         * m4/gnulib-tool.m4: New file.
49308
49309 2005-08-27  Jim Meyering  <jim@meyering.net>
49310
49311         * modules/unistd-safer (Files): Add pipe-safer.c.
49312         * modules/fcntl-safer (Files): Add creat-safer.c.
49313
49314 2005-08-27  Jim Meyering  <jim@meyering.net>
49315
49316         * m4/stdlib-safer.m4: New file.  From coreutils.
49317         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
49318         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
49319         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
49320         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
49321         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
49322
49323 2005-08-27  Jim Meyering  <jim@meyering.net>
49324
49325         * lib/fopen-safer.c: Merge minor changes from coreutils.
49326         * lib/dup-safer.c: Likewise.
49327         * lib/fd-safer.c: Likewise.
49328
49329         Merge from coreutils.
49330         * lib/stdio--.h: New file.
49331         * lib/stdlib--.h: New file.
49332         * lib/mkstemp-safer.c: New file.
49333
49334         GNU tar needs these.
49335         * lib/pipe-safer.c: New file.
49336         * lib/creat-safer.c: New file.
49337         * lib/fcntl--.h (creat): Define to creat_safer.
49338         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
49339         * lib/unistd--.h (pipe): Define to pipe_safer.
49340         * lib/unistd-safer.h: Declare pipe_safer.
49341
49342 2005-08-26  Simon Josefsson  <jas@extundo.com>
49343
49344         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
49345         Haible <bruno@clisp.org>.
49346
49347 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
49348
49349         * lib/regex_internal.h: Remove all references to
49350         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
49351         or better.
49352         (bitset_not, bitset_merge, bitset_not_merge):
49353         (bitset_mask, re_string_allocate, re_string_construct):
49354         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
49355         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
49356         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
49357         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
49358         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
49359         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
49360         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
49361         (re_acquire_state_context):
49362         Remove unnecessary forward decls.
49363         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
49364         Put __attribute at function definition,
49365         now that the function decl has been removed.
49366         * lib/regex_internal.c (re_string_peek_byte_case):
49367         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
49368         Likewise.
49369
49370 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
49371
49372         * m4/regex.m4: Add AC_PREREQ(2.50).
49373         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
49374
49375 2005-08-25  Simon Josefsson  <jas@extundo.com>
49376
49377         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
49378         __fsetlocking.
49379
49380 2005-08-25  Simon Josefsson  <jas@extundo.com>
49381
49382         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
49383         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
49384         GLIBC specific code.
49385
49386 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
49387
49388         Make regex safe for g++.  This fixes one real bug (an "err"
49389         that should have been "*err").  g++ problem reported by
49390         Sam Steingold.
49391         * lib/regex_internal.h (re_calloc): New macro, consistent with
49392         re_malloc etc.  All callers of calloc changed to use re_calloc.
49393         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
49394         not int.  All callers changed.
49395         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
49396         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
49397         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
49398         (find_recover_state): Change "err" to "*err"; this fixes what
49399         appears to be a real bug.
49400         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
49401         versus int.
49402
49403 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
49404
49405         * modules/regex (Depends-on): Add malloc, since the code
49406         assumes that !malloc(0) means failure.
49407
49408 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
49409
49410         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
49411
49412         alloca modernization/simplification for regex.
49413         * lib/regex.c: Remove portability cruft for alloca.  This no longer
49414         needs to be at the start of the file, and can be moved into
49415         regex_internal.h and simplified.
49416         * lib/regex_internal.h: Include <alloca.h>.
49417         (__libc_use_alloca) [!defined _LIBC]: New macro.
49418         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
49419         now works outside glibc.
49420
49421 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
49422
49423         * config/srclist.txt: Add glibc bugs 1241, 1245.
49424
49425 2005-08-25  Jim Meyering  <jim@meyering.net>
49426
49427         * lib/open-safer.c: Include <config.h>.
49428         Otherwise, we'd lose LARGEFILE support in any file using
49429         e.g. "fcntl--.h"
49430
49431 2005-08-25  Bruno Haible  <bruno@clisp.org>
49432
49433         * m4/minmax.m4: Require autoconf 2.52.
49434         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
49435         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
49436         alternatives of translit over the alphabet.
49437         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
49438
49439 2005-08-24  Simon Josefsson  <jas@extundo.com>
49440
49441         * tests/test-getpass.c: New file.
49442
49443 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
49444
49445         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
49446         for GNU regex features.
49447
49448 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
49449
49450         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
49451         * lib/regex.h (regerror): Likewise.
49452
49453         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
49454         requires this.  (The code never needed it.)
49455
49456         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
49457         All uses of recently-renamed identifiers changed to use the new,
49458         POSIX-compliant names.  The code will build and run just fine
49459         without these changes, but it's better to eat our own dog food
49460         and use the standard-conforming names.
49461
49462         * lib/regex.h: Fix a multitude of POSIX name space violations.
49463         These changes have an effect only for programs that define
49464         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
49465         do not change anything for programs compiled in the normal way.
49466         Also, there is no effect on the ABI.
49467
49468         (_REGEX_SOURCE): New macro.
49469         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
49470         defined and _GNU_SOURCE is not; this fixes a name space violation.
49471
49472         Rename the following macros to obey POSIX requirements.
49473         The old names are still visible as macros if _REGEX_SOURCE is defined.
49474         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
49475         RE_BACKSLASH_ESCAPE_IN_LISTS.
49476         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
49477         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
49478         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
49479         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
49480         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
49481         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
49482         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
49483         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
49484         (REG_INTERVALS): renamed from RE_INTERVALS.
49485         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
49486         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
49487         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
49488         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
49489         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
49490         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
49491         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
49492         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
49493         RE_UNMATCHED_RIGHT_PAREN_ORD.
49494         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
49495         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
49496         (REG_DEBUG): renamed from RE_DEBUG.
49497         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
49498         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
49499         unusual, since we can't clash with the POSIX REG_ICASE.
49500         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
49501         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
49502         (REG_NO_SUB): renamed from RE_NO_SUB.
49503         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
49504         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
49505         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
49506         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
49507         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
49508         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
49509         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
49510         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
49511         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
49512         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
49513         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
49514         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
49515         RE_SYNTAX_POSIX_MINIMAL_BASIC.
49516         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
49517         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
49518         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
49519         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
49520         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
49521         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
49522         (REG_FIXED): Renamed from REGS_FIXED.
49523         (REG_NREGS): Renamed from RE_NREGS.
49524
49525         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
49526         of other REG_* macros, since POSIX says the user is allowed to
49527         #undef these macros selectively.
49528
49529         (reg_errcode_t): Update comment stating what other tables need
49530         to be consistent.
49531
49532         Rename the following enum values to obey POSIX requirements.
49533         The old names are still visible as macros.
49534         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
49535         is not defined, since GNU is supposed to be a superset of POSIX as
49536         much as possible, and since we want reg_errcode_t to be a signed
49537         type for implementation consistency.
49538         (_REG_NOERROR): Renamed from REG_NOERROR.
49539         (_REG_NOMATCH): Renamed from REG_NOMATCH.
49540         (_REG_BADPAT): Renamed from REG_BADPAT.
49541         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
49542         (_REG_ECTYPE): Renamed from REG_ECTYPE.
49543         (_REG_EESCAPE): Renamed from REG_EESCAPE.
49544         (_REG_ESUBREG): Renamed from REG_ESUBREG.
49545         (_REG_EBRACK): Renamed from REG_EBRACK.
49546         (_REG_EPAREN): Renamed from REG_EPAREN.
49547         (_REG_EBRACE): Renamed from REG_EBRACE.
49548         (_REG_BADBR): Renamed from REG_BADBR.
49549         (_REG_ERANGE): Renamed from REG_ERANGE.
49550         (_REG_ESPACE): Renamed from REG_ESPACE.
49551         (_REG_BADRPT): Renamed from REG_BADRPT.
49552         (_REG_EEND): Renamed from REG_EEND.
49553         (_REG_ESIZE): Renamed from REG_ESIZE.
49554         (_REG_ERPAREN): Renamed from REG_ERPAREN.
49555         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
49556         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
49557         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
49558         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
49559
49560         (_REG_RE_NAME, _REG_RM_NAME): New macros.
49561         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
49562         changed.  But support the old name if the new one is not defined
49563         and if _REGEX_SOURCE.
49564
49565         Change the following member names in struct re_pattern_buffer.
49566         The old names are still supported if !_REGEX_SOURCE.
49567         The new names are always supported, regardless of _REGEX_SOURCE.
49568         (re_buffer): Renamed from buffer.
49569         (re_allocated): Renamed from allocated.
49570         (re_used): Renamed from used.
49571         (re_syntax): Renamed from syntax.
49572         (re_fastmap): Renamed from fastmap.
49573         (re_translate): Renamed from translate.
49574         (re_can_be_null): Renamed from can_be_null.
49575         (re_regs_allocated): Renamed from regs_allocated.
49576         (re_fastmap_accurate): Renamed from fastmap_accurate.
49577         (re_no_sub): Renamed from no_sub.
49578         (re_not_bol): Renamed from not_bol.
49579         (re_not_eol): Renamed from not_eol.
49580         (re_newline_anchor): Renamed from newline_anchor.
49581
49582         Change the following member names in struct re_registers.
49583         The old names are still supported if !_REGEX_SOURCE.
49584         The new names are always supported, regardless of _REGEX_SOURCE.
49585         (rm_num_regs): Renamed from num_regs.
49586         (rm_start): Renamed from start.
49587         (rm_end): Renamed from end.
49588
49589         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
49590         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
49591         Prepend __ to parameter names.
49592
49593         Undo yesterday's changes.
49594
49595 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
49596
49597         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
49598         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
49599         lib/regex.c.
49600
49601 2005-08-24  Jim Meyering  <jim@meyering.net>
49602
49603         Sync from coreutils.
49604         * m4/fcntl-safer.m4: New file.
49605
49606         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
49607         and object files for this module.
49608
49609 2005-08-24  Jim Meyering  <jim@meyering.net>
49610
49611         Sync from coreutils.
49612         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
49613
49614 2005-08-24  Jim Meyering  <jim@meyering.net>
49615
49616         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
49617         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
49618
49619 2005-08-24  Jim Meyering  <jim@meyering.net>
49620
49621         * modules/fcntl-safer: New module.
49622         * modules/fts (Depends-on): Add fcntl-safer.
49623         * MODULES.html.sh (File descriptor based Input/Output):
49624         Add fcntl-safer.
49625
49626 2005-08-24  Bruno Haible  <bruno@clisp.org>
49627
49628         Support for unit test modules.
49629         * modules/README: Mention tests modules.
49630         * modules/TEMPLATE-TESTS: New file.
49631         * gnulib-tool: New options --extract-tests-module, --with-tests and
49632         --tests-base (unused for the moment).
49633         (testsbase, inctests): New variables.
49634         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
49635         (func_verify_module): Exclude TEMPLATE-TESTS.
49636         (func_verify_nontests_module, func_verify_tests_module): New functions.
49637         (func_get_dependencies): Add implicit dependency for tests modules.
49638         (func_get_tests_module): New function.
49639         (func_modules_transitive_closure): When --with-tests was specified,
49640         include the unit tests as well, unless explicitly avoided.
49641         (func_emit_lib_Makefile_am): Ignore the tests modules here.
49642         (func_emit_tests_Makefile_am): New function.
49643         (func_create_testdir): When --with-tests was specified, emit a
49644         tests/ directory.
49645         * MODULES.html.sh (Future developments): Update.
49646
49647 2005-08-24  Bruno Haible  <bruno@clisp.org>
49648
49649         * modules/tls-tests: New file.
49650         * tests/test-tls.c: New file, from GNU gettext.
49651
49652 2005-08-24  Bruno Haible  <bruno@clisp.org>
49653
49654         * modules/lock-tests: New file.
49655         * tests/test-lock.c: New file, from GNU gettext.
49656
49657 2005-08-24  Bruno Haible  <bruno@clisp.org>
49658
49659         * lib/lock.h: Add multiple inclusion guard.
49660         * lib/tls.h: Add multiple inclusion guard.
49661
49662 2005-08-24  Bruno Haible  <bruno@clisp.org>
49663
49664         * gnulib-tool: Add support for the --aux-dir option to
49665         --create-testdir, --create-megatestdir, --test, --megatest.
49666         (func_create_testdir, func_create_megatestdir): Optionally emit a
49667         AC_CONFIG_AUX_DIR directive.
49668         (create-testdir, create-megatestdir, test, megatest): Provide a
49669         default value for $auxdir.
49670
49671 2005-08-24  Bruno Haible  <bruno@clisp.org>
49672
49673         * gnulib-tool (import): Use compound statement instead of subshell
49674         where possible.
49675
49676 2005-08-24  Bruno Haible  <bruno@clisp.org>
49677
49678         * gnulib-tool (import): Change --aux-dir default to "build-aux".
49679
49680 2005-08-24  Bruno Haible  <bruno@clisp.org>
49681
49682         * gnulib-tool (func_version): Update.
49683
49684 2005-08-24  Bruno Haible  <bruno@clisp.org>
49685
49686         * gnulib-tool (func_import, func_create_testdir,
49687         func_create_megatestdir): Quote all autoconf macro arguments.
49688
49689 2005-08-24  Bruno Haible  <bruno@clisp.org>
49690
49691         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
49692         option --force, because --force causes the aclocal.m4 of each
49693         subdirectory to be newer than the corresponding config.h.in.
49694
49695 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
49696
49697         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
49698         All contents moved to gl_REGEX.
49699         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
49700         assume that it does.
49701
49702 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
49703
49704         * lib/regex.h (REG_NOSYS)
49705         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
49706         Define, since POSIX requires it as of 2001.
49707         (_REG_ENOSYS)
49708         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
49709         New private symbol, used to keep the enum signed in all cases.
49710         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
49711         Youngman in
49712         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
49713
49714         * lib/regex_internal.c (re_string_skip_chars, register_state):
49715         (calc_state_hash):
49716         Remove forward decls; no longer needed now that we use prototypes.
49717         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
49718         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
49719         (clean_state_log_if_needed): Likewise.
49720
49721 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
49722
49723         * config/srclist.txt: Add glibc bugs 1231-1233.
49724
49725 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
49726
49727         Fix problems reported by Sam Steingold in
49728         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
49729         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
49730         assumed that reg_errcode_t is a signed type, which is not
49731         necessarily true if _XOPEN_SOURCE is not defined.
49732         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
49733         since some compilers warn about it otherwise.
49734
49735 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
49736
49737         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
49738         (init_word_char, create_initial_state, duplicate_node_closure):
49739         (fetch_token, peek_token_bracket, build_range_exp):
49740         (build_collating_symbol): Remove forward decls; no longer needed
49741         now that we use prototypes.
49742
49743         * lib/regcomp.c:
49744         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
49745         (re_compile_fastmap_iter, regcomp, regerror, regfree):
49746         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
49747         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
49748         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
49749         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
49750         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
49751         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
49752         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
49753         (build_range_exp, build_collating_symbol, parse_bracket_exp):
49754         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
49755         (build_charclass, build_charclass_op, fetch_number, create_tree):
49756         (create_token_tree, mark_opt_subexp, duplicate_tree):
49757         Use prototypes rather than old-style definitions.
49758
49759         * lib/regex_internal.c:
49760         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
49761         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
49762         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
49763         (re_string_reconstruct, re_string_peek_byte_case):
49764         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
49765         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
49766         (re_node_set_init_copy, re_node_set_add_intersect):
49767         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
49768         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
49769         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
49770         (re_acquire_state, re_acquire_state_context, register_state):
49771         (create_ci_newstate, create_cd_newstate, free_state):
49772         Likewise.
49773         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
49774         re_search_2):
49775         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
49776         (re_search_internal, prune_impossible_nodes):
49777         (acquire_init_state_context, check_matching, static):
49778         (check_halt_node_context, check_halt_state_context, proceed_next_node):
49779         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
49780         (update_regs, sift_states_backward, build_sifted_states):
49781         (clean_state_log_if_needed, merge_state_array):
49782         (update_cur_sifted_state, add_epsilon_src_nodes):
49783         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
49784         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
49785         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
49786         (find_recover_state, check_subexp_matching_top, transit_state_mb):
49787         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
49788         (check_arrival, check_arrival_add_next_nodes):
49789         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
49790         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
49791         (check_node_accept_bytes, check_node_accept, extend_buffers):
49792         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
49793         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
49794         (sift_ctx_init):
49795         Likewise.
49796
49797         * lib/regex_internal.h:
49798         (re_string_allocate, re_string_construct, re_string_reconstruct):
49799         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
49800         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
49801         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
49802         (re_string_context_at, re_string_peek_byte_case):
49803         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
49804         is defined, since we now use prototypes always.
49805
49806         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
49807         C89 or better.  All uses removed.
49808
49809 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
49810
49811         * config/srclist.txt: Add glibc bugs 1220-1227.
49812
49813 2005-08-20  Jim Meyering  <jim@meyering.net>
49814
49815         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
49816         of unused local, dfa.
49817
49818 2005-08-20  Bruno Haible  <bruno@clisp.org>
49819
49820         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
49821
49822 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
49823
49824         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
49825         (re_node_set_insert_last, re_dfa_add_node):
49826         Rename local variables to avoid GCC shadowing warnings.
49827
49828 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
49829
49830         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
49831         [defined lint]: Suppress bogus uninitialized-variable warnings.
49832
49833         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
49834         and let the caller return REG_ESPACE if out of space.  This
49835         removes an uninitialied-variable warning with GCC 4.0.1, and also
49836         avoids taking the address of a local variable.  All callers
49837         changed.
49838
49839 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
49840
49841         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
49842         $LIBCSRC/posix/regexec.c.
49843         Add glibc bug 1217 for regcomp.c.
49844
49845 2005-08-19  Jim Meyering  <jim@meyering.net>
49846
49847         * lib/regexec.c (proceed_next_node): Redo local variables to
49848         avoid GCC shadowing warnings.
49849
49850 2005-08-18  Bruno Haible  <bruno@clisp.org>
49851
49852         * lib/strstr.c (strstr): Fix return value in multibyte case.
49853         * lib/strcasestr.c (strcasestr): Likewise.
49854
49855 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
49856
49857         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
49858
49859 2005-08-17  Jim Meyering  <jim@meyering.net>
49860
49861         Make the %s format (seconds since the epoch) work for a negative
49862         number and when used with a zero-padded field width, e.g. %015s.
49863
49864         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
49865         label so that it precedes the code to set `digits'.  Otherwise,
49866         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
49867         print `00-22'.  Now, it prints `-0022', as it should.
49868
49869 2005-08-17  Bruno Haible  <bruno@clisp.org>
49870
49871         * modules/strstr (Files): Add m4/mbrtowc.m4.
49872         (Depends-on): Add mbuiter.
49873
49874 2005-08-17  Bruno Haible  <bruno@clisp.org>
49875
49876         * modules/strcasestr: New file.
49877         * MODULES.html.sh (String handling, based on ANSI C 89): Add
49878         strcasestr.
49879
49880 2005-08-17  Bruno Haible  <bruno@clisp.org>
49881
49882         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
49883
49884 2005-08-17  Bruno Haible  <bruno@clisp.org>
49885
49886         * modules/mbuiter: New file.
49887         * MODULES.html.sh (Extended multibyte and wide character utilities):
49888         Add mbuiter.
49889
49890 2005-08-17  Bruno Haible  <bruno@clisp.org>
49891
49892         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
49893         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
49894
49895 2005-08-17  Bruno Haible  <bruno@clisp.org>
49896
49897         * m4/strcasestr.m4: New file.
49898
49899 2005-08-17  Bruno Haible  <bruno@clisp.org>
49900
49901         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
49902         * lib/strstr.c: Completely rewritten, with multibyte locale support.
49903
49904 2005-08-17  Bruno Haible  <bruno@clisp.org>
49905
49906         * lib/strcasestr.h: New file.
49907         * lib/strcasestr.c: New file.
49908
49909 2005-08-17  Bruno Haible  <bruno@clisp.org>
49910
49911         * lib/strcasecmp.c: Use mbuiter.h.
49912
49913 2005-08-17  Bruno Haible  <bruno@clisp.org>
49914
49915         * lib/mbuiter.h: New file.
49916
49917 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
49918
49919         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
49920         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
49921         and gl_GETOPT are both invoked via different paths (as happens
49922         with GNU tar CVS because it uses both argp and getopt), the former
49923         wins.
49924
49925 2005-08-16  Bruno Haible  <bruno@clisp.org>
49926
49927         * modules/tls: New file.
49928         * MODULES.html.sh (Multithreading): Add tls.
49929
49930 2005-08-16  Bruno Haible  <bruno@clisp.org>
49931
49932         * modules/strnlen1: New file.
49933         * MODULES.html.sh (String handling): Add strnlen1.
49934
49935 2005-08-16  Bruno Haible  <bruno@clisp.org>
49936
49937         * modules/strcase (Files): Add m4/mbrtowc.m4.
49938         (Depends-on): Add strnlen1, mbchar.
49939
49940 2005-08-16  Bruno Haible  <bruno@clisp.org>
49941
49942         * modules/mbiter: New file.
49943         * MODULES.html.sh (Extended multibyte and wide character utilities):
49944         Add mbiter.
49945
49946 2005-08-16  Bruno Haible  <bruno@clisp.org>
49947
49948         * modules/mbfile: New file.
49949         * MODULES.html.sh (Extended multibyte and wide character utilities):
49950         Add mbfile.
49951
49952 2005-08-16  Bruno Haible  <bruno@clisp.org>
49953
49954         * modules/mbchar: New file.
49955         * MODULES.html.sh (Extended multibyte and wide character utilities):
49956         New section.
49957
49958 2005-08-16  Bruno Haible  <bruno@clisp.org>
49959
49960         * m4/tls.m4: New file, from GNU gettext.
49961
49962 2005-08-16  Bruno Haible  <bruno@clisp.org>
49963
49964         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
49965         always.
49966         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
49967
49968 2005-08-16  Bruno Haible  <bruno@clisp.org>
49969
49970         * m4/mbiter.m4: New file.
49971
49972 2005-08-16  Bruno Haible  <bruno@clisp.org>
49973
49974         * m4/mbfile.m4: New file.
49975
49976 2005-08-16  Bruno Haible  <bruno@clisp.org>
49977
49978         * m4/mbchar.m4: New file.
49979
49980 2005-08-16  Bruno Haible  <bruno@clisp.org>
49981
49982         * lib/tls.h: New file, from GNU gettext.
49983         * lib/tls.c: New file, from GNU gettext.
49984
49985 2005-08-16  Bruno Haible  <bruno@clisp.org>
49986
49987         * lib/strnlen1.h: New file.
49988         * lib/strnlen1.c: New file.
49989
49990 2005-08-16  Bruno Haible  <bruno@clisp.org>
49991
49992         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
49993         (mbi_init): Update.
49994         (mbi_avail, mbi_advance): Let the iteration end before the terminating
49995         NUL byte, not after it.
49996
49997 2005-08-16  Bruno Haible  <bruno@clisp.org>
49998
49999         * lib/strcase.h (strcasecmp): Add note in comments.
50000         * lib/strncasecmp.c: Use code from strcasecmp.c.
50001         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
50002         (strcasecmp): Work correctly in multibyte locales.
50003
50004 2005-08-16  Bruno Haible  <bruno@clisp.org>
50005
50006         * lib/mbiter.h: New file.
50007
50008 2005-08-16  Bruno Haible  <bruno@clisp.org>
50009
50010         * lib/mbfile.h: New file.
50011
50012 2005-08-16  Bruno Haible  <bruno@clisp.org>
50013
50014         * lib/mbchar.h: New file.
50015         * lib/mbchar.c: New file.
50016
50017 2005-08-16  Bruno Haible  <bruno@clisp.org>
50018
50019         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
50020         the valid ones. Makes the comparison operations transitive:
50021         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
50022         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
50023
50024 2005-08-15  Simon Josefsson  <jas@extundo.com>
50025
50026         * modules/ssize_t (License): Change to 'unlimited'.
50027
50028         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
50029
50030 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
50031
50032         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
50033         Add comments for each pending glibc patch.
50034
50035 2005-08-15  Bruno Haible  <bruno@clisp.org>
50036
50037         * lib/regex.h (__restrict_arr): Don't define to __restrict if
50038         __cplusplus is defined.
50039
50040 2005-08-14  Jim Meyering  <jim@meyering.net>
50041
50042         Sync from coreutils.
50043
50044         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
50045         Use the hash-table-based cycle-detection code not just when
50046         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
50047         Reported by James Youngman in
50048         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
50049         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
50050         FTS_TIGHT_CYCLE_CHECK.
50051         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
50052         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
50053         once again.
50054         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
50055         * lib/fts.c (fd_safer): Remove decl.
50056         Include fcntl--.h rather than unistd-safer.h
50057         (fts_safe_changedir): Don't call fd_safer; no longer needed
50058         now that we include fcntl--.h.
50059
50060 2005-08-12  Simon Josefsson  <jas@extundo.com>
50061
50062         * modules/getndelim2: Use ssize_t module.
50063         * modules/getnline: Likewise.
50064         * modules/safe-read: Likewise.
50065         * modules/xreadlink: Likewise.
50066
50067         * modules/ssize_t: New file.
50068
50069 2005-08-12  Simon Josefsson  <jas@extundo.com>
50070
50071         * m4/readline.m4: Look for termcap, curses or ncurses if required.
50072
50073 2005-08-12  Simon Josefsson  <jas@extundo.com>
50074
50075         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
50076         ssize_t.
50077
50078 2005-08-12  Simon Josefsson  <jas@extundo.com>
50079
50080         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
50081         readline, getdelim and check_version.
50082         (Support for systems lacking ISO C 99: Sizes of integer types):
50083         Add size_max.
50084
50085 2005-08-12  Bruno Haible  <bruno@clisp.org>
50086
50087         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
50088
50089 2005-08-11  Simon Josefsson  <jas@extundo.com>
50090
50091         * modules/readline: New file.
50092
50093         * modules/strnlen (Files): Add strnlen.h.
50094
50095 2005-08-11  Simon Josefsson  <jas@extundo.com>
50096
50097         * m4/readline.m4: New file.
50098
50099 2005-08-11  Simon Josefsson  <jas@extundo.com>
50100
50101         * lib/readline.h, readline.c: New file.
50102
50103 2005-08-11  Simon Josefsson  <jas@extundo.com>
50104
50105         * doc/gnulib.texi (Initial import, Finishing touches): Mention
50106         gl_AVOID.
50107
50108 2005-08-11  Bruno Haible  <bruno@clisp.org>
50109
50110         * lib/strnlen.h (strnlen): Change parameter name to match comment.
50111
50112 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
50113
50114         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
50115
50116 2005-08-10  Simon Josefsson  <jas@extundo.com>
50117
50118         * tests/test-iconvme.c: New file.
50119
50120 2005-08-10  Simon Josefsson  <jas@extundo.com>
50121
50122         * m4/strnlen.m4: New file.
50123
50124         * m4/strndup.m4: Don't check for strnlen declaration, done in
50125         strnlen.m4.
50126
50127 2005-08-10  Simon Josefsson  <jas@extundo.com>
50128
50129         * lib/strndup.c: Use strnlen.h.
50130
50131         * lib/strnlen.h: New file.
50132
50133 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
50134
50135         * README: Typos.
50136
50137 2005-08-02  Simon Josefsson  <jas@extundo.com>
50138
50139         * modules/readline: New file.
50140
50141 2005-08-02  Simon Josefsson  <jas@extundo.com>
50142
50143         * modules/getdelim: New file.
50144
50145         * modules/getline: Rewrite, don't use getndelim2.
50146
50147 2005-08-02  Simon Josefsson  <jas@extundo.com>
50148
50149         * m4/getline.m4: Separate out getdelim stuff into separate module.
50150
50151         * m4/getdelim.m4: New file.
50152
50153 2005-08-02  Simon Josefsson  <jas@extundo.com>
50154
50155         * lib/getline.h, getline.c: Rewrite.
50156
50157         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
50158
50159 2005-07-31  Bruno Haible  <bruno@clisp.org>
50160
50161         * lib/lock.h (gl_lock_initializer): New macro.
50162         (gl_lock_define_initialized): Use it.
50163         (gl_rwlock_initializer): New macro.
50164         (gl_rwlock_define_initialized): Use it.
50165         (gl_recursive_lock_initializer): New macro.
50166         (gl_recursive_lock_define_initialized): Use it.
50167
50168 2005-07-30  Karl Berry  <karl@gnu.org>
50169
50170         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
50171         Report from Ben Pfaff, regarding getopt.
50172
50173 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
50174
50175         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
50176         normal way.
50177         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
50178         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
50179         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
50180         (gl_GETOPT): Use the new macros.  Most of the implementation
50181         is moved to the new macros.  This is for programs like Emacs
50182         that don't want all the functionality of gl_GETOPT.
50183
50184 2005-07-26  Bruno Haible  <bruno@clisp.org>
50185
50186         * m4/lock.m4: Update from GNU gettext.
50187
50188 2005-07-26  Bruno Haible  <bruno@clisp.org>
50189
50190         * lib/lock.h: Update from GNU gettext.
50191         * lib/lock.c: Update from GNU gettext.
50192
50193 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
50194
50195         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
50196         obsolescent AC_TRY_RUN.  Include the default includes files, for
50197         'exit'.
50198
50199 2005-07-24  Bruno Haible  <bruno@clisp.org>
50200
50201         * modules/visibility: New file.
50202         * MODULES.html.sh (Misc): Add visibility.
50203
50204 2005-07-24  Bruno Haible  <bruno@clisp.org>
50205
50206         * m4/visibility.m4: New file.
50207
50208 2005-07-24  Bruno Haible  <bruno@clisp.org>
50209
50210         * doc/visibility.texi: New file.
50211
50212 2005-07-22  Bruno Haible  <bruno@clisp.org>
50213
50214         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
50215         $(ALLOCA_H), redundant through BUILT_SOURCES.
50216         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
50217         redundant through BUILT_SOURCES.
50218         * modules/byteswap (Makefile.am): Remove explicit dependency on
50219         $(BYTESWAP_H), redundant through BUILT_SOURCES.
50220         * modules/fnmatch (Makefile.am): Remove explicit dependency on
50221         $(FNMATCH_H), redundant through BUILT_SOURCES.
50222         * modules/getopt (Makefile.am): Remove explicit dependency on
50223         $(GETOPT_H), redundant through BUILT_SOURCES.
50224         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
50225         redundant through BUILT_SOURCES.
50226         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
50227         redundant through BUILT_SOURCES.
50228         * modules/stdbool (Makefile.am): Remove explicit dependency on
50229         $(STDBOOL_H), redundant through BUILT_SOURCES.
50230         * modules/stdint (Makefile.am): Remove explicit dependency on
50231         $(STDINT_H), redundant through BUILT_SOURCES.
50232         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
50233         Remove explicit dependency on $(SYSEXITS_H).
50234         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
50235
50236 2005-07-18  Simon Josefsson  <jas@extundo.com>
50237
50238         * lib/check-version.c (check_version): Accept identical versions too.
50239
50240 2005-07-18  Bruno Haible  <bruno@clisp.org>
50241
50242         * modules/lock: New file.
50243         * MODULES.html.sh (Multithreading): New section.
50244
50245 2005-07-18  Bruno Haible  <bruno@clisp.org>
50246
50247         * m4/lock.m4: New file, from GNU gettext.
50248
50249 2005-07-18  Bruno Haible  <bruno@clisp.org>
50250
50251         * lib/lock.h: New file, from GNU gettext.
50252         * lib/lock.c: New file, from GNU gettext.
50253
50254 2005-07-18  Bruno Haible  <bruno@clisp.org>
50255
50256         * lib/lock.h (gl_once_t): New type.
50257         (gl_once_define, gl_once): New macros.
50258         * lib/lock.c (fresh_once): New variable.
50259         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
50260         functions.
50261
50262 2005-07-16  Simon Josefsson  <jas@extundo.com>
50263
50264         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
50265         workaround, suggested by Bruno.
50266
50267 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
50268
50269         * modules/xalloc (Depends-on): Add xalloc-die.
50270         * modules/xvasprintf (Depends-on): Add xalloc-die.
50271
50272 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
50273
50274         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
50275         with a minor change.
50276
50277 2005-07-15  Bruno Haible  <bruno@clisp.org>
50278
50279         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
50280         When using lib/poll.c, define poll as rpl_poll.
50281
50282 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
50283
50284         * modules/argp (Depends-on): Remove unlocked-io.
50285
50286 2005-07-14  Derek Price  <derek@ximbiot.com>
50287
50288         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
50289         for glob symlink bug.
50290
50291 2005-07-14  Bruno Haible  <bruno@clisp.org>
50292
50293         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
50294         Instead, test for *_unlocked function declarations directly.
50295
50296 2005-07-11  Simon Josefsson  <jas@extundo.com>
50297
50298         * modules/size_max: New file.
50299
50300         * modules/xsize: Depend on size_max module for size_max.m4.
50301
50302 2005-07-11  Simon Josefsson  <jas@extundo.com>
50303
50304         * lib/size_max.h: New file.
50305
50306 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
50307
50308         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
50309         copyright symbol and the year.
50310         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
50311         (version_etc_va): Use parameterized copyright notice.
50312         Reword to conform to the current GNU coding standards.
50313
50314 2005-07-11  Karl Berry  <karl@gnu.org>
50315
50316         * doc/gnulib.texi (Quoting): new node.
50317         (Initial import): more info, from Patrice.
50318
50319 2005-07-11  Bruno Haible  <bruno@clisp.org>
50320
50321         * gnulib-tool (func_usage): Document option --avoid.
50322         (Command line options): Handle --avoid.
50323         (func_acceptable): New function.
50324         (func_modules_transitive_closure): Use it.
50325
50326 2005-07-11  Bruno Haible  <bruno@clisp.org>
50327
50328         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
50329         Reported by Jim Meyering.
50330
50331 2005-07-10  Bruno Haible  <bruno@clisp.org>
50332
50333         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
50334         Needed when size_t is smaller than 'unsigned int'.
50335         Reported by Paul Eggert.
50336
50337 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
50338
50339         * modules/argp (Depends-on): Add unlocked-io
50340
50341 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
50342
50343         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
50344         block of defines.
50345
50346 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
50347
50348         * config/srclist.txt: Comment out regcomp.c, since we have a porting
50349         fix now.
50350
50351 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
50352         and Paul Eggert  <eggert@cs.ucla.edu>
50353
50354         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
50355         in wint_t, not wchar_t.  Remove now-unnecessary cast.
50356
50357 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
50358
50359         * modules/regex (Files): Add lib/regex_internal.c,
50360         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
50361         (Depends-on): Add extensions.
50362         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
50363
50364 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
50365
50366         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
50367         pathconf.
50368         * m4/same.m4 (gl_SAME): Likewise.
50369         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
50370
50371         * m4/regex.m4: Adjust to new libc regex implementation.
50372         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
50373         all the .c and .h parts of (the new) regex.
50374         Quote the m4 stuff better.
50375         Check for RE_ICASE bug of old gnulib.
50376         Check for REG_STARTEND of recent libc.
50377         Rename local variables from jm_* to gl_*.
50378         Quote operand of "test -f".
50379         Say "recent enough" version of libc, not "version 2".
50380         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
50381         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
50382         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
50383         Remove check for btowc, isascii.
50384         Require AM_LANGINFO_CODESET.
50385
50386 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
50387
50388         * lib/regex.c, regex.h: Sync from libc.
50389         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
50390         * lib/regexec.c:
50391         New files, synced from libc, except that regex_internal.h
50392         currently has a small porting fix.
50393
50394 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
50395
50396         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
50397         regex_internal.c, regexec.c.
50398         Add regex_internal.h too, but as a comment, since the libc version
50399         is currently broken in gnulib mode.
50400
50401 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
50402
50403         Support programs like Emacs that use gnulib but not gettext.
50404         * MODULES.html.sh (Internationalization functions): Add gettext-h.
50405         * modules/gettext-h: New file.
50406         * modules/gettext (Files): Remove lib/gettext.h.
50407         (Depends-on): Add gettext-h.
50408         (Makefile.am): Remove lib_SOURCES.
50409         * modules/argmatch, modules/c-stack, modules/closeout:
50410         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
50411         * modules/execute, modules/file-type, modules/getaddrinfo:
50412         * modules/getopt, modules/human, modules/javacomp:
50413         * modules/javaexec, modules/mkdir-p, modules/obstack:
50414         * modules/openat, modules/pagealign_alloc, modules/pipe:
50415         * modules/quotearg, modules/regex, modules/rpmatch:
50416         * modules/unicodeio, modules/userspec, modules/version-etc:
50417         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
50418         * modules/xsetenv:
50419         Depend on gettext-h, not gettext.
50420
50421 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
50422
50423         * gnulib-tool (func_import): Add support for 'public domain' license.
50424         * modules/alloca, modules/atexit, modules/memmove:
50425         Now public domain, not GPL.
50426         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
50427         * modules/realloc, modules/strerror, modules/strtod:
50428         Now LGPL, not GPL.
50429
50430 2005-07-05  Bruno Haible  <bruno@clisp.org>
50431
50432         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
50433         autoconf CVS. Needed for mingw.
50434
50435 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
50436
50437         Remove the dependency of the strftime module on the tzset module.
50438         * modules/strftime (Depends-on): Remove dependency on tzset.
50439
50440 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
50441
50442         Remove the dependency of the strftime module on the tzset module.
50443         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
50444         gl_FUNC_TZSET_CLOBBER.
50445
50446 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
50447
50448         Remove the dependency of the strftime module on the tzset module.
50449         * lib/strftime.c (my_strftime)
50450         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
50451         Copy the input structure, to work around some of the bug with
50452         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
50453         Solaris releases, you should also use the tzset module, but we won't
50454         require it as a dependency any more since we don't want LGPLed code
50455         to depend on GPLed code.
50456
50457 2005-07-02  Jim Meyering  <jim@meyering.net>
50458
50459         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
50460         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
50461         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
50462         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
50463
50464 2005-07-02  Jim Meyering  <jim@meyering.net>
50465
50466         * lib/backupfile.c (backup_args): Change a `0' to NULL.
50467
50468 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
50469
50470         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
50471         declares only 'struct timespec;' (!).
50472
50473 2005-07-01  Jim Meyering  <jim@meyering.net>
50474
50475         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
50476         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
50477         * lib/save-cwd.c, tempname.c:
50478         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
50479         and don't include <sys/file.h>).
50480
50481 2005-06-29  Jim Meyering  <jim@meyering.net>
50482
50483         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
50484         type name.  Use the variable name instead.
50485         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
50486         Likewise.
50487
50488 2005-06-28  Simon Josefsson  <jas@extundo.com>
50489
50490         * modules/check-version (Files): Add check-version.m4.
50491
50492 2005-06-28  Simon Josefsson  <jas@extundo.com>
50493
50494         * m4/check-version.m4: New file, suggested by Jim Meyering
50495         <jim@meyering.net>.
50496
50497 2005-06-28  Simon Josefsson  <jas@extundo.com>
50498
50499         * lib/check-version.h, lib/check-version.c: New files.
50500
50501 2005-06-28  Simon Josefsson  <jas@extundo.com>
50502
50503         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
50504         collision with global variable.  Better indentation.  Don't
50505         increment buffer pointer beyond buffer end.  Based on comments
50506         from Paul Eggert <eggert@cs.ucla.edu>.
50507
50508         * lib/base64.h: Indent.
50509
50510 2005-06-28  Simon Josefsson  <jas@extundo.com>
50511
50512         * doc/gnulib.texi (Library version handling): New section.
50513
50514 2005-06-28  Jim Meyering  <jim@meyering.net>
50515
50516         * check-module (find_included_lib_files): Hard-code another
50517         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
50518         but modules/fts-lgpl (correctly) does not list those files.
50519
50520         * modules/canonicalize (Files): Add lib/pathmax.h.
50521
50522 2005-06-25  Simon Josefsson  <jas@extundo.com>
50523
50524         * modules/check-version: New file.
50525
50526 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
50527
50528         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
50529         initializer of struct addrinfo, as an indication that we don't
50530         care how many members the structure has.
50531
50532 2005-06-24  Derek Price  <derek@ximbiot.com>
50533         and Bruno Haible  <bruno@clisp.org>
50534
50535         Remove stat module & update lstat.
50536         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
50537         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
50538         * m4/stat.m4: Remove this file.
50539
50540 2005-06-24  Derek Price  <derek@ximbiot.com>
50541         and Bruno Haible  <bruno@clisp.org>
50542
50543         Remove stat module & update lstat.
50544         * lib/stat.c: Remove this file...
50545         (slash_aware_lstat): ...moving this content and its support...
50546         * lib/lstat.c (rpl_lstat): ...into here.
50547         * lib/lstat.h: New file.
50548
50549 2005-06-24  Derek Price  <derek@ximbiot.com>
50550         and Bruno Haible  <bruno@clisp.org>
50551
50552         Remove stat module & update lstat.
50553         * config/srclist.txt (libc sources): Remove stat.
50554
50555 2005-06-24  Derek Price  <derek@ximbiot.com>
50556         and Bruno Haible  <bruno@clisp.org>
50557
50558         Remove stat module & update lstat.
50559         * MODULES.html.sh (stat): Remove.
50560         * MODULES.html: Regenerated.
50561         * modules/lstat (Description): Correct function name.
50562         (Files): Add "lstat.h".
50563         (Depends-on): Remove stat, add xalloc, stat-macros.
50564         * modules/stat: Remove this file.
50565         (Include): Add "lstat.h", remove <sys/stat.h>.
50566
50567 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
50568
50569         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
50570         (ranged_convert): Don't save conversion in a temporary struct.
50571         This causes a warning with GCC 4.0.0, and anyway in the typical
50572         case it's not worth the extra 100 bytes or so of code.
50573         (ranged_convert, __mktime_internal): When calling a function via a
50574         pointer P, use P () rather than (*P) (), as we now assume C89 or
50575         better.
50576
50577 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
50578
50579         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
50580         "who -r" failed to give output.  Problem reported by Tim Waugh.
50581
50582         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
50583         (xcalloc): Use it to avoid needless tests.
50584         Problem reported by Jim Meyering.
50585
50586 2005-06-20  Derek Price  <derek@ximbiot.com>
50587
50588         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
50589         unnecessary for Autoconfs > 2.59c.
50590
50591 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
50592
50593         * lib/argp.h (__option_is_short): Check upper limit of
50594         __key. Isprint() requires its argument to have the value
50595         of an unsigned char or EOF.
50596
50597 2005-06-16  Jim Meyering  <jim@meyering.net>
50598
50599         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
50600         when either N or S is zero.
50601
50602 2005-06-16  Derek Price  <derek@ximbiot.com>
50603
50604         * m4/bison.m4: Declare YACC & YFLAGS precious.
50605
50606 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
50607
50608         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
50609         multibyte string or pattern, fall back on unibyte matching.
50610         Problem reported by James Youngman.
50611
50612 2005-06-08  Bruno Haible  <bruno@clisp.org>
50613
50614         * modules/csharpcomp: New file.
50615         * MODULES.html.sh (C#): Add csharpcomp.
50616
50617 2005-06-08  Bruno Haible  <bruno@clisp.org>
50618
50619         * m4/csharpcomp.m4: New file, from GNU gettext.
50620
50621 2005-06-08  Bruno Haible  <bruno@clisp.org>
50622
50623         * lib/csharpcomp.h: New file, from GNU gettext.
50624         * lib/csharpcomp.c: New file, from GNU gettext.
50625         * lib/csharpcomp.sh.in: New file, from GNU gettext.
50626
50627 2005-06-08  Bruno Haible  <bruno@clisp.org>
50628
50629         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
50630         warning on mingw.
50631
50632 2005-06-07  Derek Price  <derek@ximbiot.com>
50633
50634         Sync from CVS.
50635         * lib/glob_.h: Indent nested #ifdef.
50636
50637 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
50638
50639         Sync from coreutils.
50640         Use "file name" when talking about file names, instead of "filename"
50641         or "path", as per the GNU coding standards.
50642         * lib/mkdir-p.c: Renamed from makepath.c.
50643         (make_dir_parents): Renamed from make_path.  All callers changed.
50644         * lib/mkdir-p.h: Likewise.  All includers changed.
50645         * lib/filenamecat.c: Renamed from path-concat.c.
50646         (file_name_concat): Renamed from path_concat.  All callers changed.
50647         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
50648         * lib/filenamecat.h: Likewise.  All includers changed.
50649         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
50650         in comments or local variable names.
50651         * lib/basename.c: Likewise.
50652         * lib/canonicalize.c, canonicalize.h: Likewise.
50653         * lib/dirname.c, dirname.h: Likewise.
50654         * lib/euidaccess.c: Likewise.
50655         * lib/exclude.c: Likewise
50656         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
50657         * lib/fsusage.c, fsuage.h: Likewise.
50658         * lib/fts.c, fts_.h: Likewise.
50659         * lib/getcwd.c: Likewise.
50660         * lib/getloadavg.c: Likewise.
50661         * lib/mkstemp.c: Likewise.
50662         * lib/mountlist.c, mountlist.h: Likewise.
50663         * lib/openat.c, openat.h: Likewise.
50664         * lib/readlink-stub.c: Likewise.
50665         * lib/readutmp.c, readutmp.h: Likewise.
50666         * lib/rename.c: Likewise.
50667         * lib/rmdir.c: Likewise.
50668         * lib/same.c: Likewise.
50669         * lib/savedir.c: Likewise.
50670         * lib/stripslash.c: Likewise.
50671         * lib/tempname.c: Likewise.
50672         * lib/xreadlink.c: Likewise.
50673         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
50674         All uses changed.
50675         * lib/exclude.h: Likewise.
50676
50677         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
50678         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
50679         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
50680         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
50681         * lib/pathmax.h: Include <limits.h> unconditionally, since other
50682         files have been getting away with it for years (MORE/BSD 4.3
50683         is extinct now).
50684         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
50685         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
50686
50687         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
50688         Define to 256, not 255, as per modern POSIX.
50689
50690 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
50691
50692         Sync from coreutils.
50693         Use "file name" when talking about file names, instead of "filename"
50694         or "path", as per the GNU coding standards.
50695         * MODULES.html.sh: mkdir-p renamed from makepath.
50696         filenamecat renamed from path-concat.
50697         * modules/filenamecat: Renamed from modules/path-concat.
50698         (Files): filenamecat.h and filenamecat.c renamed from
50699         path-concat.h and path-concat.c.
50700         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
50701         (Include): filenamecat.h, not path-concat.h.
50702         * modules/mkdir-p: Renamed from modules/makepath.
50703         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
50704         makepath.c.
50705         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
50706         (Include): mkdir-p.h, not makepath.h.
50707
50708 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
50709
50710         Sync from coreutils.
50711         * m4/mkdir-p.m4: Renamed from makepath.m4.
50712         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
50713         Rename files from makepath.c to mkdir-p.c, and from
50714         makepath.h to mkdir-p.h.
50715         * m4/filenamecat.m4: Renamed from path-concat.m4.
50716         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
50717         Rename files from path-concat.c to filenamecat.c,
50718         and from path-concat.h to filenamecat.h.
50719         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
50720         "file name" in local variables or comments.
50721         * m4/rename.m4: Likewise.
50722
50723 2005-06-01  Bruno Haible  <bruno@clisp.org>
50724
50725         * modules/csharpexec: New file.
50726         * MODULES.html.sh (C#): New section.
50727
50728 2005-06-01  Bruno Haible  <bruno@clisp.org>
50729
50730         * m4/csharp.m4: New file, from GNU gettext.
50731         * m4/csharpexec.m4: New file, from GNU gettext.
50732
50733 2005-06-01  Bruno Haible  <bruno@clisp.org>
50734
50735         * lib/csharpexec.h: New file, from GNU gettext.
50736         * lib/csharpexec.c: New file, from GNU gettext.
50737         * lib/csharpexec.sh.in: New file, from GNU gettext.
50738
50739 2005-05-31  Derek Price  <derek@ximbiot.com>
50740             Paul Eggert  <eggert@cs.ucla.edu>
50741
50742         Sync from cvs.
50743         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
50744
50745 2005-05-31  Derek Price  <derek@ximbiot.com>
50746             Paul Eggert  <eggert@cs.ucla.edu>
50747
50748         Sync from cvs.
50749         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
50750
50751 2005-05-29  Derek Price  <derek@ximbiot.com>
50752
50753         * config/srclist.txt (glob_.h, glob.c): Add these files.
50754
50755 2005-05-29  Derek Price  <derek@ximbiot.com>
50756
50757         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
50758         * modules/glob: New file.
50759         * modules/getlogin_r: Add link to POSIX spec in description.
50760
50761 2005-05-29  Derek Price  <derek@ximbiot.com>
50762             Paul Eggert  <eggert@cs.ucla.edu>
50763
50764         * m4/glob.m4: New file.
50765
50766 2005-05-29  Derek Price  <derek@ximbiot.com>
50767             Paul Eggert  <eggert@cs.ucla.edu>
50768
50769         * lib/glob_.h, lib/glob.c: New files.
50770
50771 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
50772
50773         * modules/fts (Files): Remove m4/inttypes-pri.m4.
50774         * modules/fts-lgpl (Depends-on): Remove gettext.
50775
50776 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
50777
50778         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
50779         and don't require gt_INTTYPES_PRI.
50780
50781 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
50782
50783         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
50784
50785         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
50786         the configuration hassle isn't worth it.
50787         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
50788         (LONGEST_MODIFIER, PRIuMAX): Remove.
50789
50790 2005-05-27  Bruno Haible  <bruno@clisp.org>
50791
50792         * lib/getlogin_r.h: Remove second include of <stddef.h>.
50793
50794 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
50795
50796         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
50797         _POSIX_PTHREAD_SEMANTICS for Solaris.
50798
50799 2005-05-25  Derek Price  <derek@ximbiot.com>
50800
50801         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
50802
50803 2005-05-25  Derek Price  <derek@ximbiot.com>
50804             Paul Eggert  <eggert@cs.ucla.edu>
50805
50806         * modules/getlogin_r, m4/getlogin_r.m4: New files.
50807         * lib/getlogin_r.c, getlogin_r.h: New files.
50808
50809 2005-05-25  Bruno Haible  <bruno@clisp.org>
50810             Derek Price  <derek@ximbiot.com>
50811
50812         * lib/getlogin_r.h: Simplify API documentation.
50813
50814 2005-05-23  Derek Price  <derek@ximbiot.com>
50815
50816         * modules/minmax (Files): Add m4/minmax.m4.
50817         (configure.ac): Add gl_MINMAX.
50818
50819 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
50820
50821         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
50822         so that unistd-safer.h (GPL'ed code) need not be included.
50823
50824 2005-05-22  Bruno Haible  <bruno@clisp.org>
50825
50826         * m4/minmax.m4: New file.
50827         Based on a patch by Derek Price <derek@ximbiot.com>.
50828
50829 2005-05-22  Bruno Haible  <bruno@clisp.org>
50830
50831         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
50832         (INT64_MIN): Fix definition.
50833         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
50834
50835         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
50836         NEED_SIGNED_INT_TYPES.
50837
50838         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
50839         HAVE_SYSTEM_INTTYPES.
50840
50841 2005-05-22  Bruno Haible  <bruno@clisp.org>
50842
50843         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
50844         Also include <sys/param.h> if it defines MIN, MAX.
50845         Based on a patch by Derek Price <derek@ximbiot.com>.
50846
50847 2005-05-21  Jim Meyering  <jim@meyering.net>
50848
50849         * modules/fts (Files): Add m4/inttypes-pri.m4.
50850         (Depends-on): Add lstat and remove gettext.  Alphabetize.
50851
50852 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
50853
50854         New fts module.
50855         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
50856         (setup_dir, free_dir): New functions.
50857         (enter_dir, leave_dir): Define trivial
50858         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
50859         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
50860         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
50861         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
50862         Move to fts-cycle.c.
50863         (fts_open): Use setup_dir.
50864         (fts_close): Use free_dir.
50865         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
50866         This adds a label and some gotos, but the alternatives were messier.
50867         Check for memory allocation failure when entering a dir.
50868         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
50869         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
50870         (FTS): New member fts_cycle, that is a union that contains the
50871         old active_dir_ht and cycle_state.  All uses changed to mention
50872         fts_cycle.ht and fts_cycle.state.
50873         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
50874         fts.c, with the following changes:
50875         (setup_dir, free_dir): New functions.
50876         (enter_dir): Now returns bool.  Return true if successful, false
50877         if memory exhausted.  All callers changed.
50878         Do not bother partly cleaning up on
50879         memory allocation failure; that is free_dir's job.
50880         However, free ad if hash_insert fails, to avoid memory leak.
50881         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
50882         fts->fts_options to see which union member to use.
50883
50884 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
50885
50886         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
50887         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
50888
50889 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
50890
50891         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
50892
50893 2005-05-20  Jim Meyering  <jim@meyering.net>
50894
50895         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
50896         Now a macro, to pacify GCC.
50897
50898 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
50899
50900         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
50901         of -1.
50902
50903 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
50904
50905         * lib/chown.c (rpl_chown): Return -1 on failure.
50906
50907 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
50908
50909         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
50910         Don't check for stddef.h.
50911         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
50912         don't use its results.
50913         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
50914         since we include them unconditionally.  Don't require
50915         AM_STDBOOL_H, since stdbool is a prerequisite.
50916         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
50917         since we assume C89 or better.
50918         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
50919         as we don't use their results.
50920         Don't check for fchdir, memmove, memset, strrchr, as we use
50921         them unconditionally.
50922         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
50923         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
50924
50925 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
50926
50927         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
50928         Include <stddef.h> unconditionally, since we assume C89 now.
50929         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
50930         * lib/fts.c: Include fts_.h first, to check interface.
50931         Do not include intprops.h; no longer needed.
50932         Include cycle-check.h and hash.h, since fts_.h no longer does.
50933         Remove unnecessary casts of closedir to void.
50934         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
50935         decide whether to decrement nlinks.
50936         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
50937         (FTS): Use struct hash_table * instead of Hash_table, so that
50938         we no longer need to include hash.h here.
50939
50940 2005-05-18  Jim Meyering  <jim@meyering.net>
50941
50942         * modules/dirfd (License): Change to LGPL.  Most of the code
50943         is already in the public domain.
50944
50945 2005-05-18  Jim Meyering  <jim@meyering.net>
50946
50947         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
50948         Reported by Yoann Vandoorselaere.
50949
50950 2005-05-17  Jim Meyering  <jim@meyering.net>
50951
50952         * m4/fts.m4: New file, from coreutils.
50953
50954 2005-05-17  Jim Meyering  <jim@meyering.net>
50955
50956         * lib/fts.c, lib/fts_.h: New files, from coreutils.
50957
50958 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
50959
50960         Sync from coreutils.
50961         * m4/unlinkdir.m4: New file.
50962
50963 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
50964
50965         Sync from coreutils.
50966         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
50967         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
50968         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
50969         White space changes only.
50970         * lib/makepath.c (make_path): Port to hosts where leading "//" is
50971         special.
50972         * lib/yesno.c: Include getline.h, not ctype.h.
50973         (yesno): Don't remove leading white space; POSIX doesn't allow it.
50974         Use getline to remove arbitrary restriction on response length.
50975
50976 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
50977
50978         * config/srclist-update: Spell out "Street" in FSF postal
50979         mail address; this is the style the FSF seems to prefer.
50980
50981         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
50982         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
50983         this updates FSF postal mail address.
50984
50985         Sync from coreutils.
50986         * modules/unlinkdir: New file.
50987         * modules/yesno (Depends-on): Add getline.
50988         * MODULES.html.sh (File system functions): Add unlinkdir.
50989
50990 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
50991
50992         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
50993         lib/strsep.h:
50994         Change the initial comment to refer to GPL, not LGPL.
50995         gnulib-tool will change it to LGPL as needed.
50996
50997         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
50998         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
50999         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
51000         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
51001         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
51002         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
51003         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
51004         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
51005         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
51006         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
51007         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
51008         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
51009         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
51010         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
51011         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
51012         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
51013         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
51014         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
51015         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
51016         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
51017         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
51018         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
51019         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
51020         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
51021         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
51022         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
51023         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
51024         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
51025         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
51026         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
51027         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
51028         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
51029         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
51030         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
51031         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
51032         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
51033         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
51034         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
51035         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
51036         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
51037         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
51038         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
51039         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
51040         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
51041         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
51042         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
51043         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
51044         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
51045         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
51046         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
51047         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
51048         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
51049         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
51050         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
51051         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
51052         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
51053         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
51054         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
51055         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
51056         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
51057         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
51058         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
51059         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
51060         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
51061         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
51062         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
51063         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
51064         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
51065         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
51066         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
51067         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
51068         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
51069         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
51070         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
51071         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
51072         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
51073         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
51074         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
51075         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
51076         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
51077         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
51078         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
51079         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
51080         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
51081         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
51082         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
51083         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
51084         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
51085         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
51086         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
51087         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
51088         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
51089         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
51090         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
51091         lib/yesno.c, lib/yesno.h:
51092         Update FSF postal mail address.
51093
51094 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
51095
51096         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
51097         tests/test-memmem.c, tests/test-stpncpy.c:
51098         Update FSF postal mail address.
51099
51100 2005-05-13  Bruno Haible  <bruno@clisp.org>
51101
51102         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
51103         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
51104         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
51105         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
51106         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
51107         Add support for 64-bit integers in the MSVC compiler.
51108
51109 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
51110
51111         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
51112
51113 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
51114
51115         * gnulib-tool (func_import): Sort and uniquify recommended includes.
51116
51117 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
51118
51119         * doc/getdate.texi (General date syntax): Don't say that date
51120         date --iso-8601=ns generates acceptable dates; it doesn't yet.
51121         Problem reported by Nic Ferrier.
51122
51123 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51124
51125         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
51126         specified in ai_socktype. Fix invalid ai_protocol
51127         check. ai_protocol is usually set to 0 or depending on
51128         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
51129         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
51130         ai_socktype / ai_protocol in the returned addrinfo structure.
51131
51132 2005-05-10  Simon Josefsson  <jas@extundo.com>
51133
51134         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
51135         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
51136
51137 2005-05-10  Karl Berry  <karl@gnu.org>
51138
51139         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
51140         (from http://www.gnu.org/licenses).
51141         * doc/COPYING.LIB: also rename to COPYING.LESSER.
51142         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
51143         fdl.texi suffices.
51144
51145 2005-05-10  Karl Berry  <karl@gnu.org>
51146
51147         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
51148         (COPYING.DOC): remove.
51149
51150         * config/srclist-update: new FSF address.
51151
51152 2005-05-10  Derek Price  <derek@ximbiot.com>
51153
51154         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
51155         possible.
51156
51157 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51158             Bruno Haible  <bruno@clisp.org>
51159
51160         * modules/inet_ntop: New file.
51161         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51162         inet_ntop.
51163
51164 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51165             Bruno Haible  <bruno@clisp.org>
51166
51167         * m4/inet_ntop.m4: New file.
51168
51169 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51170             Bruno Haible  <bruno@clisp.org>
51171
51172         * lib/inet_ntop.h: New file.
51173         * lib/inet_ntop.c: New file, from glibc with modifications.
51174
51175 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
51176
51177         * modules/time_r (License): Change to LGPL.
51178         * modules/extensions (License): Change to LGPL.  Actually,
51179         the license is more permissive than that, but currently gnulib-tool
51180         doesn't know how to handle more-permissive licenses.
51181
51182         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
51183         Problem reported by Dave Love.
51184
51185 2005-05-08  Jim Meyering  <jim@meyering.net>
51186
51187         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
51188         blank.
51189
51190 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
51191
51192         * modules/argmatch (Depends-on): Add stdbool.
51193         * modules/backupfile (Depends-on): Likewise.
51194         * modules/chdir-long (Depends-on): Likewise.
51195         * modules/closeout (Depends-on): Likewise.
51196         * modules/cycle-check (Depends-on): Likewise.
51197         * modules/dirname (Depends-on): Likewise.
51198         * modules/fnmatch (Depends-on): Likewise.
51199         * modules/fsusage (Depends-on): Likewise.
51200         * modules/fwriteerror (Depends-on): Likewise.
51201         * modules/getcwd (Depends-on): Likewise.
51202         * modules/getloadavg (Depends-on): Likewise.
51203         * modules/hard-locale (Depends-on): Likewise.
51204         * modules/makepath (Depends-on): Likewise.
51205         * modules/mountlist (Depends-on): Likewise.
51206         * modules/nanosleep (Depends-on): Likewise.
51207         * modules/posixtm (Depends-on): Likewise.
51208         * modules/quotearg (Depends-on): Likewise.
51209         * modules/readtokens (Depends-on): Likewise.
51210         * modules/readtokens0 (Depends-on): Likewise.
51211         * modules/readutmp (Depends-on): Likewise.
51212         * modules/save-cwd (Depends-on): Likewise.
51213         * modules/strftime (Depends-on): Likewise.
51214         * modules/userspec (Depends-on): Likewise.
51215         * modules/utimecmp (Depends-on): Likewise.
51216         * modules/xgetcwd (Depends-on): Likewise.
51217         * modules/xnanosleep (Depends-on): Likewise.
51218         * modules/xstrtod (Depends-on): Likewise.
51219         * modules/yesno (Depends-on): Likewise.
51220
51221 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
51222
51223         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
51224         needless checks.
51225
51226 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
51227
51228         Merge from coreutils.  Among other things,
51229         add bulletproofing for cases where stdin, stdout, or stderr are closed.
51230         * lib/fd-safer.c: New file.
51231         * lib/fcntl-safer.h, open-safer.c: Remove.
51232         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
51233         * lib/dup-safer.c: Include unistd-safer.h first.
51234         Don't include errno.h.
51235         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
51236         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
51237         * lib/file-type.c: Rely on file-type.h change.
51238         * lib/getloadavg.c: Include unistd-safer.h.
51239         (getloadavg): Use safer open.
51240         * lib/getusershell.c: Include "stdio-safer.h".
51241         (getusershell): Use safer fopen.
51242         * lib/long-options.c (long_options): Use NULL rather than 0.
51243         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
51244         'free'.
51245         * lib/modechange.c: Likewise.
51246         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
51247         (MODE_DONE): New constant.
51248         (struct mode_change): Remove 'next' member.
51249         (make_node_op_equals): New function; like the old one of the
51250         same name, except it allocates an array.
51251         (mode_compile, mode_create_from_ref): Use it.
51252         (mode_compile): Allocate result as an array, not a linked list.
51253         Parse octal string ourself, so that we catch mistakes like "+0".
51254         (mode_adjust): Arg is an array, not a linked list.
51255         * lib/modechange.c: Include stat-macros.h, xalloc.h.
51256         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
51257         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
51258         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
51259         Remove.  This is now stat-macros.h's job.
51260         (talloc): Remove.  All callers replaced by xalloc, so that
51261         our invokers don't have to worry about reporting memory failures.
51262         (make_node_op_equals): Remove.
51263         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
51264         New constants.
51265         (struct mode_change): Moved here from modechange.h.
51266         (mode_append_entry): Remove.
51267         (mode_compile): Remove MASKED_OPS arg, since it encouraged
51268         apps to have incorrect behavior.  Use simpler algorithm for head
51269         and tail.  Don't futz with umask; that's now the job of mode_adjust.
51270         Detect more invalid usages rather than having somewhat-random behavior.
51271         Don't insert an "a=" action, as that leads to incorrect behavior.
51272         (mode_compile, mode_create_from_ref): Return NULL on error instead
51273         of an enum, since now there's only one way to have an error.  All
51274         callers changed.
51275         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
51276         at the correct time.  Simplify calculation of "+u" and its ilk.
51277         Don't mishandle "+X".
51278         (mode_free): Remove "register" and localize decls.
51279         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
51280         (struct mode_change): Move to modechange.c; callers don't
51281         need to see this stuff.
51282         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
51283         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
51284         (mode_change, mode_adjust): Reflect the new signatures noted above.
51285         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
51286         that might redefine system include files.
51287         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
51288         (my_usleep): Use NULL rather than (void *) 0.
51289         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
51290         Use siginterrupt to specify that system calls should be interrupted.
51291         (rpl_nanosleep): Move initialization of suspended closer to call of
51292         my_usleep.
51293         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
51294         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
51295         (desirable_utmp_entry): New function.
51296         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
51297         using x2nrealloc, to simplify logic.
51298         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
51299         size calculation.  Do not assume utmp file is a regular file.
51300         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
51301         (READ_UTMP_CHECK_PIDS): New constant.
51302         * lib/save-cwd.c: Include unistd-safer.h.
51303         (save_cwd): Use fd_safer.
51304         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
51305         [!_LIBC] Include "stat-macros.h" instead.
51306         * lib/unistd-safer.h (fd_safer): New decl.
51307
51308 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
51309
51310         * modules/getloadavg (Depends-on): Add unistd-safer.
51311         * modules/getusershell (Depends-on): Add stdio-safer.
51312         * modules/lstat (Depends-on): Remove xalloc.
51313         * modules/mkstemp (Depends-on): Add stat-macros.
51314         * modules/modechange (Depends-on): Remove xstrtol.
51315         Add stat-macros, xalloc.
51316         * modules/save-cwd (Depends-on): Add unistd-safer.
51317         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
51318         * modules/unistd-safer (Files): Add lib/fd-safer.c
51319         (Makefile.am): Remove lib_SOURCES.
51320
51321         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
51322         Remove fcntl-safer; unistd-safer supersedes it.
51323
51324 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
51325
51326         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
51327         AC_HEADER_STAT.
51328         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
51329         (gl_PREREQ_CHOWN): Remove.
51330         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
51331         it.  Don't require AC_HEADER_STAT.
51332         (gl_PREREQ_LSTAT): Remove.
51333         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
51334         Don't require AC_HEADER_STAT.
51335         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
51336         (gl_PREREQ_RMDIR): Remove.
51337         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
51338         mention stat-macros.h or AC_HEADER_STAT, since we'll make
51339         the stat-macros module a prerequisite.
51340         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
51341         * m4/filemode.m4 (gl_FILEMODE): Likewise.
51342         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
51343         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
51344         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
51345         variable names.
51346         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
51347         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
51348         variable prefixes.
51349         * m4/fcntl-safer.m4: Remove.
51350         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
51351         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
51352         Invoke gl_PREREQ_FD_SAFER.
51353         (gl_PREREQ_FD_SAFER): New macro.
51354         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
51355         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
51356         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
51357         Remove duplicate call to AC_LIBOBJ(readutmp).
51358         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
51359
51360         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
51361         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
51362
51363 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
51364
51365         * MODULES.html.sh (Misc): Add byteswap.
51366
51367 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
51368
51369         * modules/getcwd (Depends-on): Add extensions.
51370         * modules/openat (Depends-on): Likewise.
51371
51372 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
51373
51374         * modules/byteswap: New file.
51375
51376 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
51377
51378         * m4/byteswap.m4: New file.
51379
51380 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
51381
51382         * lib/byteswap_.h: New file.
51383
51384 2005-04-25  Karl Berry  <karl@gnu.org>
51385
51386         * m4/gettext.m4: Update from GNU gettext 0.14.4.
51387
51388 2005-04-25  Albert Chin  <china@thewrittenword.com>
51389
51390         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
51391         Toolkit C bug.
51392
51393 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
51394
51395         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
51396         (func_ln_if_changed) Remove forcibly for no error message
51397         in case file does not exist.
51398
51399 2005-04-19  Simon Josefsson  <jas@extundo.com>
51400
51401         * gnulib-tool (Options): Make --symlink mean --symbolic.
51402
51403 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
51404
51405         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
51406
51407 2005-04-16  Simon Josefsson  <jas@extundo.com>
51408
51409         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
51410
51411 2005-04-15  Simon Josefsson  <jas@extundo.com>
51412
51413         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
51414
51415 2005-04-15  Simon Josefsson  <jas@extundo.com>
51416
51417         * gnulib-tool: Rename --symlink to --symbolic.
51418
51419 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
51420
51421         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
51422         symbolic links to files instead of copying/moving.  Add --aux-dir,
51423         specifying directory relative --dir where auxiliary build tools
51424         are placed.
51425
51426 2005-04-14  Bruno Haible  <bruno@clisp.org>
51427
51428         * modules/allocsa (License): Change to LGPL.
51429         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
51430
51431 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
51432
51433         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
51434         that "UTC +1 second" continues to work.  Problem reported
51435         by Dmitry V. Levin.
51436         (relunit_snumber): New rule.
51437         (relunit): Use it.
51438
51439 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
51440
51441         * lib/getdate.y (universal_time_zone_table): New constant.
51442         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
51443         universal_time_zone_table.
51444         (lookup_zone): Prefer universal_time_zone_table to
51445         local_time_zone_table, so that "GMT" time stamps are allowed in
51446         London during the summer.  Problem reported by Ian Abbott.
51447
51448 2005-04-12  Jim Meyering  <jim@meyering.net>
51449
51450         * lib/human.c (humblock): Set *options even when returning due to
51451         xstrtoumax conversion failure.  Thanks to a used-uninitialized
51452         warning from gcc-4.
51453
51454 2005-04-09  Jim Meyering  <jim@meyering.net>
51455
51456         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
51457         -Wuninitialized: initialize tm0.tm_year.
51458
51459 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
51460
51461         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
51462         count, since there's no maximum.  All uses changed.
51463         Add member dsts_seen.
51464         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
51465         not being INT_MAX.
51466         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
51467         Use pc_rels_seen to decide whther a date is absolute.
51468
51469         * lib/getdate.y (number): Don't overwrite year.
51470         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
51471         check.
51472
51473 2005-04-02  Simon Josefsson  <jas@extundo.com>
51474
51475         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
51476         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
51477
51478 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
51479
51480         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
51481         where no absolute path name can be longer than PATH_MAX.
51482
51483 2005-03-27  Jim Meyering  <jim@meyering.net>
51484
51485         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
51486
51487 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
51488
51489         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
51490         "one's complement" -> "ones' complement" in comment, as per Knuth.
51491         "value of type" -> "type or expression" in comment.
51492         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
51493
51494 2005-03-26  Jim Meyering  <jim@meyering.net>
51495
51496         Comment nits.
51497         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
51498         Correct typos: s/or/of/.
51499
51500 2005-03-26  Jim Meyering  <jim@meyering.net>
51501
51502         * modules/check-include-files: Move to ../ and rename to...
51503         * check-module: ...this.
51504
51505 2005-03-25  Jim Meyering  <jim@meyering.net>
51506
51507         * modules/xvasprintf (Files): Add xalloc.h.
51508
51509 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
51510
51511         * modules/gettext (Files): config/config.rpath ->
51512         build-aux/config.rpath
51513         * modules/iconv (Files): Likewise.
51514         Problem reported by Oskar Liljeblad.
51515
51516 2005-03-23  Jim Meyering  <jim@meyering.net>
51517
51518         * modules/check-include-files: New script to check for
51519         missing dependencies, multiple includes, etc.
51520
51521         * modules/c-strtold (Depends-on): Add xalloc.
51522         * modules/c-strtod (Depends-on): Add xalloc.
51523         * modules/hash (Depends-on): Add xalloc.
51524         (Files): Remove lib/xalloc.h.
51525
51526         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
51527         * modules/userspec (Files): Add lib/inttostr.h.
51528
51529 2005-03-23  Jim Meyering  <jim@meyering.net>
51530
51531         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
51532
51533 2005-03-22  Jim Meyering  <jim@meyering.net>
51534
51535         * modules/stat-macros: New module.
51536         * modules/canonicalize, modules/euidaccess, modules/file-type,
51537         * modules/filemode, modules/lchown, modules/makepath,
51538         * modules/rmdir, modules/stat: Depend on new stat-macros module
51539         rather than listing lib/stat-macros.h manually.
51540         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
51541
51542 2005-03-22  Jim Meyering  <jim@meyering.net>
51543
51544         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
51545
51546 2005-03-22  Bruno Haible  <bruno@clisp.org>
51547
51548         * config/srclist.txt: Replace target directory 'config' with
51549         'build-aux'.
51550         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
51551         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
51552         ../build-aux/.
51553
51554 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
51555
51556         * modules/chdir-long (Depends-on): Add mempcpy.
51557
51558         * modules/acl, modules/backupfile, modules/c-strtod,
51559         modules/c-strtold, modules/canon-host, modules/canonicalize,
51560         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
51561         modules/exclude, modules/exitfail, modules/file-type,
51562         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
51563         modules/getdate, modules/getline, modules/getpagesize,
51564         modules/getpass, modules/getugroups, modules/group-member,
51565         modules/hard-locale, modules/hash, modules/human, modules/idcache,
51566         modules/inttostr, modules/long-options, modules/makepath,
51567         modules/md5, modules/memcasecmp, modules/memcoll,
51568         modules/modechange, modules/mountlist, modules/path-concat,
51569         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
51570         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
51571         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
51572         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
51573         modules/strftime, modules/strndup, modules/strverscmp,
51574         modules/timespec, modules/unlocked-io, modules/userspec,
51575         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
51576         modules/yesno:
51577         Remove lib_SOURCES line from Makefile.am section, as this is now
51578         done automatically by the corresponding Autoconf macro.
51579
51580 2005-03-21  Jim Meyering  <jim@meyering.net>
51581
51582         Changes imported from coreutils.
51583
51584         * lib/cycle-check.c: Don't include xalloc.h.
51585
51586         * lib/path-concat.c: Don't include assert.h.
51587         (path_concat): Remove assertion that would have triggered
51588         for ABASE starting with more than one slash.
51589         Reported by Andreas Schwab.
51590
51591         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
51592         properly when ABASE is an absolute file name.
51593         Correct the description of this function.
51594         Include <assert.h>.
51595         Add an assertion and a test driver.
51596         This fixes a bug introduced on 2004-07-02.
51597         Andreas Schwab reported the resulting failure of cp --parents:
51598         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
51599
51600 2005-03-21  Jim Meyering  <jim@meyering.net>
51601
51602         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
51603         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
51604
51605 2005-03-21  Jim Meyering  <jim@meyering.net>
51606         and  Paul Eggert  <eggert@cs.ucla.edu>
51607
51608         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
51609         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
51610         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
51611         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
51612         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
51613         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
51614         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
51615         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
51616         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
51617         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
51618         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
51619         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
51620         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
51621         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
51622         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
51623         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
51624         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
51625         for these modules.
51626
51627 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
51628
51629         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
51630         (which shouldn't happen), generate nothing instead of returning 0
51631         immediately, so that nstrftime (NULL, ...) doesn't return 0.
51632
51633 2005-03-16  Bruno Haible  <bruno@clisp.org>
51634
51635         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
51636         HAVE_LONGLONG_64BIT.
51637
51638 2005-03-16  Bruno Haible  <bruno@clisp.org>
51639
51640         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
51641         HAVE_LONGLONG_64BIT.
51642
51643 2005-03-16  Bruno Haible  <bruno@clisp.org>
51644
51645         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
51646         HAVE_LONGLONG_64BIT.
51647
51648 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
51649
51650         * lib/strftime.c (my_strftime): Prepend space to format so that we can
51651         reliably distinguish strftime failure from empty output on POSIX
51652         hosts.
51653
51654 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
51655
51656         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
51657         (iconv_string): Don't guess a size-zero buffer, as that might cause
51658         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
51659         result would be 'too large', where 'too large' is (heuristically)
51660         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
51661         overflow concerns.  This will prevent some unwanted malloc failures
51662         when the inputs are very large.
51663
51664 2005-03-15  Karl Berry  <karl@gnu.org>
51665
51666         * config/srclist.txt (config.rpath): from gettext.
51667         * config/config.rpath: update.
51668
51669 2005-03-15  Bruno Haible  <bruno@clisp.org>
51670
51671         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
51672         to 'negate'.
51673
51674         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
51675         variable.
51676
51677         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
51678         results.
51679
51680 2005-03-14  Simon Josefsson  <jas@extundo.com>
51681
51682         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
51683         <fx@gnu.org>.
51684
51685 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
51686
51687         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
51688         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
51689         intprops.h.
51690         * lib/strtol.c: Likewise.
51691
51692 2005-03-14  Jim Meyering  <jim@meyering.net>
51693
51694         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
51695         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
51696         to be nonzero so that we (and caller) can detect the difference
51697         between a valid zero-length expansion and an error return, even
51698         when the underlying strftime fails before writing anything into
51699         that location.
51700
51701 2005-03-14  Bruno Haible  <bruno@clisp.org>
51702
51703         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
51704         Update from GNU gettext 0.14.3.
51705
51706 2005-03-10  Jim Meyering  <jim@meyering.net>
51707
51708         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
51709
51710 2005-03-10  Jim Meyering  <jim@meyering.net>
51711
51712         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
51713         so that this module works on systems without fchdir.
51714
51715 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
51716
51717         Factor int-properties macros into a single file, except for
51718         glibc-related files.
51719         * lib/intprops.h: New file.
51720         * lib/getloadavg.c: Include it instead of limits.h.
51721         (INT_STRLEN_BOUND): Remove.
51722         * lib/human.c: Include intprops.h.
51723         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
51724         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
51725         302/1000.
51726         * lib/inttostr.h: Include intprops.h instead of limits.h.
51727         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
51728         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
51729         for consistency with intprops.h.
51730         (time_t_is_integer, twos_complement_arithmetic): Use them.
51731         * lib/sig2str.h: Include <signal.h>, intprops.h.
51732         (INT_STRLEN_BOUND): Remove.
51733         * lib/strftime.c (TYPE_SIGNED): Remove.
51734         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
51735         * lib/strtol.c: Adjust comments to match intprops.h.
51736         * lib/userspec.c: Include intprops.h.
51737         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
51738         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
51739         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
51740         instead of rolling our own expressions.
51741         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
51742
51743         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
51744         instead of int.
51745         (my_strftime): Do not mishandle years close to INT_MAX, by doing
51746         the right thing even if adding 1900 would overflow.  Similarly
51747         for tm_mon + 1 and tm_yday + 1.
51748         Make %Y always equivalent to %C%y, and similarly for %G and %g.
51749         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
51750         (DO_SIGNED_NUMBER): New macro.
51751         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
51752
51753 2005-03-07  Bruno Haible  <bruno@clisp.org>
51754
51755         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
51756
51757 2005-03-07  Bruno Haible  <bruno@clisp.org>
51758
51759         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
51760
51761 2005-03-04  Derek R. Price  <derek@ximbiot.com>
51762
51763         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
51764         (func_import): Only replace files via --import when they have actually
51765         changed.
51766
51767 2005-03-03  Derek R. Price  <derek@ximbiot.com>
51768
51769         * m4/mmap-anon.m4: New file.
51770         * m4/pagealign_alloc.m4: New file.
51771
51772 2005-03-03  Derek R. Price  <derek@ximbiot.com>
51773             Bruno Haible  <bruno@clisp.org>
51774
51775         * modules/pagealign_alloc: New file.
51776         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
51777
51778 2005-03-03  Derek R. Price  <derek@ximbiot.com>
51779             Bruno Haible  <bruno@clisp.org>
51780
51781         * lib/pagealign_alloc.h: New file.
51782         * lib/pagealign_alloc.c: New file.
51783
51784 2005-03-03  Bruno Haible  <bruno@clisp.org>
51785
51786         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
51787         Use an all-permissive copyright notice, recommended by RMS.
51788
51789 2005-03-02  Bruno Haible  <bruno@clisp.org>
51790
51791         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
51792         of AIX, the replacement has to be done only after <string.h> is
51793         included, therefore not in config.h. stpncpy.h does the replacement,
51794         and stpncpy.c uses it.
51795
51796 2005-03-02  Bruno Haible  <bruno@clisp.org>
51797
51798         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
51799         stpncpy.c uses it.
51800
51801 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
51802
51803         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
51804         The workaround isn't strictly needed for POSIX conformance, and
51805         it's too much of a pain to configure and maintain.  We'll ask
51806         people to fix their kernels instead.
51807         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
51808         (NANOSLEEP_BUG_WORKAROUND): Remove.
51809         (xnanosleep): Remove the workaround.
51810
51811 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
51812
51813         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
51814         Reported by Derek Price.
51815         (Include): Add "timespec.h".
51816
51817         * modules/xnanosleep (Depends-on): Remove gethrxtime.
51818
51819 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
51820
51821         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
51822         to detect nanosleep bug.
51823
51824 2005-03-01  Bruno Haible  <bruno@clisp.org>
51825
51826         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
51827
51828 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
51829
51830         * modules/gethrxtime: New file.
51831         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
51832         (Depends-on): Add gethrxtime.
51833         (configure.ac): Add gl_XNANOSLEEP.
51834         (Makefile.am): Remove lib_SOURCES line.
51835
51836 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
51837
51838         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
51839         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
51840
51841 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
51842
51843         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
51844         * lib/timespec.h (gettime): Return void, since it always
51845         succeeds now.  All uses changed.
51846         * lib/gettime.c (gettime) Likewise.
51847         [HAVE_NANOTIME]: Prefer nanotime.
51848         Assume gettimeofday succeeds, as POSIX requires.
51849         Assime time () succeeds, since other code already does.
51850         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
51851         (timespec_subtract): Remove.
51852         (NANOSLEEP_BUG_WORKAROUND): New constant.
51853         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
51854         things considerably.  Use it only on GNU/Linux hosts, since the
51855         workaround shouldn't be needed elsewhere.
51856
51857 2005-02-24  Bruno Haible  <bruno@clisp.org>
51858
51859         * modules/gettext (Files): Add m4/glibc2.m4.
51860
51861 2005-02-24  Bruno Haible  <bruno@clisp.org>
51862
51863         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
51864         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
51865         * m4/progtest.m4:
51866         Update from GNU gettext 0.14.2.
51867         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
51868
51869 2005-02-24  Bruno Haible  <bruno@clisp.org>
51870
51871         * lib/localcharset.c: Update from GNU gettext 0.14.2.
51872         * lib/config.charset: Update from GNU gettext 0.14.2.
51873
51874 2005-02-24  Bruno Haible  <bruno@clisp.org>
51875
51876         * lib/gettext.h: Update from GNU gettext 0.14.2.
51877
51878 2005-02-23  Simon Josefsson  <jas@extundo.com>
51879
51880         * m4/iconvme.m4: New file.
51881
51882 2005-02-23  Jim Meyering  <jim@meyering.net>
51883
51884         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
51885         change.
51886         Thanks to Bruno Haible for catching it.
51887
51888 2005-02-22  Simon Josefsson  <jas@extundo.com>
51889
51890         * modules/iconvme: New file.
51891
51892         * MODULES.html.sh: Add iconvme.
51893
51894 2005-02-22  Simon Josefsson  <jas@extundo.com>
51895
51896         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
51897
51898 2005-02-22  Simon Josefsson  <jas@extundo.com>
51899
51900         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
51901
51902 2005-02-22  Jim Meyering  <jim@meyering.net>
51903
51904         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
51905         s/ifndef/ifdef/.
51906
51907 2005-02-20  Neil Conway  <neilc@samurai.com>
51908
51909         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
51910         returned by OSX/Darwin if the specified buffer is not large
51911         enough for the hostname.
51912
51913 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
51914
51915         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
51916         pass it to _help, otherwise the latter coredumps trying to
51917         dereference state.root_argp.
51918
51919 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
51920
51921         * modules/chdir-long (Depends-on): Add memrchr.
51922         * modules/memrchr (Files): Add lib/memrchr.h.
51923         (Include): "memrchr.h".
51924
51925 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
51926
51927         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
51928
51929 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
51930
51931         * lib/memrchr.h: New file.
51932         * lib/chdir-long.c: Include it.
51933         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
51934         Don't bother including stddef.h.
51935
51936 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
51937
51938         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
51939         inclusion.
51940         Include <sys/types.h>, for dev_t.
51941         (ME_DUMMY, ME_REMOTE): Move from here....
51942         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
51943         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
51944         Dmitry V. Levin.
51945         Include mountlist.h first, to test the interface.
51946
51947 2005-01-29  Bruno Haible  <bruno@clisp.org>
51948
51949         * lib/progname.c (program_name): Initialize.
51950         Needed when linking statically on MacOS X.
51951
51952 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
51953
51954         Sync from coreutils.
51955         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
51956         (Depends-on): Add c-strtod.
51957         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
51958
51959 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
51960
51961         Sync from coreutils.
51962         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
51963
51964         Remove files that are specific to coreutils.
51965         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
51966
51967 2005-01-28  Bruno Haible  <bruno@clisp.org>
51968
51969         * modules/javacomp: New file.
51970         * MODULES.html.sh (Java): Add javacomp.
51971
51972 2005-01-28  Bruno Haible  <bruno@clisp.org>
51973
51974         * m4/javacomp.m4: New file, from GNU gettext.
51975
51976 2005-01-28  Bruno Haible  <bruno@clisp.org>
51977
51978         * lib/javacomp.sh.in: New file, from GNU gettext.
51979         * lib/javacomp.h: New file, from GNU gettext.
51980         * lib/javacomp.c: New file, from GNU gettext.
51981
51982 2005-01-26  Simon Josefsson  <jas@extundo.com>
51983
51984         * lib/gai_strerror.c: Use GPL in header.
51985
51986 2005-01-26  Bruno Haible  <bruno@clisp.org>
51987
51988         * modules/javaexec: New file.
51989         * MODULES.html.sh (Java): Add javaexec.
51990
51991 2005-01-26  Bruno Haible  <bruno@clisp.org>
51992
51993         * m4/javaexec.m4: New file, from GNU gettext.
51994
51995 2005-01-26  Bruno Haible  <bruno@clisp.org>
51996
51997         * lib/javaexec.sh.in: New file, from GNU gettext.
51998         * lib/javaexec.h: New file, from GNU gettext.
51999         * lib/javaexec.c: New file, from GNU gettext.
52000
52001 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52002
52003         * modules/lchown (Depends-on): Remove lchown.h
52004
52005 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52006
52007         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
52008         must be defined if the header file was not found, in order
52009         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
52010
52011 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52012
52013         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
52014         initializers for struct pentry_state.
52015         (__argp_error): Check return value of __asprintf
52016         (__argp_failure): Translate error message
52017
52018         * lib/argp-parse.c: Removed braces around the expansion of N_()
52019
52020 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
52021
52022         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
52023         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
52024         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
52025         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
52026         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
52027         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
52028         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
52029         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
52030         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
52031         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
52032         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
52033         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
52034         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
52035         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
52036         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
52037         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
52038         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
52039         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
52040         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
52041         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
52042         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
52043         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
52044         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
52045         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
52046         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
52047         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
52048         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
52049         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
52050         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
52051         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
52052         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
52053         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
52054         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
52055         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
52056         xstrtol.m4, xstrtoumax.m4, yesno.m4:
52057         Use an all-permissive copyright notice, recommended by RMS.
52058
52059 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
52060
52061         * modules/chdir-long (Depends-on): Remove mempcpy.
52062
52063 2005-01-21  Jim Meyering  <jim@meyering.net>
52064
52065         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
52066         same value as for Solaris 9.
52067
52068         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
52069         component length.  This included changing the parameter to be
52070         of type `char *' rather than `char const *'.
52071         * lib/chdir-long.h (chdir_long): Update prototype.
52072
52073         * lib/openat.c (fdopendir, fstatat): New functions.
52074         * lib/openat.h: Include headers required for use of DIR and struct
52075         stat.
52076         [AT_SYMLINK_NOFOLLOW]: Define.
52077         (fdopendir, fstatat): Add prototypes.
52078
52079 2005-01-21  Bruno Haible  <bruno@clisp.org>
52080
52081         * modules/classpath: New file.
52082         * MODULES.html.sh (Java): Add classpath.
52083
52084 2005-01-21  Bruno Haible  <bruno@clisp.org>
52085
52086         * lib/classpath.h: New file, from GNU gettext.
52087         * lib/classpath.c: New file, from GNU gettext.
52088
52089 2005-01-20  Simon Josefsson  <jas@extundo.com>
52090
52091         * modules/version-etc-fsf: New file.
52092
52093 2005-01-20  Simon Josefsson  <jas@extundo.com>
52094
52095         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
52096         * lib/version-etc.c: Remove version_etc_copyright.
52097         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
52098         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
52099
52100 2005-01-20  Simon Josefsson  <jas@extundo.com>
52101
52102         * lib/base64.h (isbase64): Add.
52103
52104         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
52105         using a unsigned prototype, don't inline.
52106         (base64_decode): Use it.
52107
52108 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
52109
52110         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
52111         it.
52112
52113 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
52114
52115         * lib/save-cwd.c (save_cwd): Remove code to support the case
52116         where fchdir is missing or flaky.
52117
52118 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
52119
52120         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
52121
52122 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
52123
52124         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
52125         AC_LIBSOURCES now does this.
52126         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
52127         with new ullong_max module.
52128
52129 2005-01-19  Bruno Haible  <bruno@clisp.org>
52130
52131         * modules/sh-quote: New file.
52132         * MODULES.html.sh (Executing programs): Add sh-quote.
52133
52134 2005-01-19  Bruno Haible  <bruno@clisp.org>
52135
52136         * lib/sh-quote.h: New file, from GNU gettext.
52137         * lib/sh-quote.c: New file, from GNU gettext.
52138
52139 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
52140
52141         Merge from coreutils.
52142         * m4/ullong_max.m4: New file.
52143         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
52144         (gl_MACROS): Assume localeconv exists.
52145
52146 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
52147
52148         Merge changes from coreutils, as described below in several
52149         changelogs dated today.
52150
52151         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
52152         (O_DIRECTORY): Remove; not needed here, since "." must be
52153         a directory.  All uses removed.
52154         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
52155         universal on Suns, and we also need to test for IRIX.
52156         Revamp code to use 'if' rather than '#if'.
52157         Avoid unnecessary comparison of cwd->desc to 0.
52158
52159         * lib/utimens.c (futimens): Robustify the previous patch, by checking
52160         for known valid error numbers rather than observed invalid ones.
52161
52162 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
52163
52164         * modules/ullong_max: New file.
52165
52166         * modules/chdir-long, modules/openat: New files.
52167         * modules/save-cwd (Depends-on): Depend on chdir-long.
52168         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
52169
52170 2005-01-18  Jim Meyering  <jim@meyering.net>
52171
52172         Merge from coreutils.
52173         * m4/chdir-long.m4, m4/openat.m4: New files.
52174         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
52175         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
52176         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
52177         is sane and DOES follow symlinks.  Besides, testing 20 different
52178         systems found no broken chown implementations.
52179         Prompted by a change in rsync's copy of this macro.
52180         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
52181
52182         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
52183
52184         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
52185         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
52186         NULL-means-set-to-current-time semantics.
52187         Remove temporary file immediately, rather than waiting
52188         for configure's at-exit trap code to do it.
52189
52190 2005-01-18  Jim Meyering  <jim@meyering.net>
52191
52192         * lib/version-etc.c (version_etc_copyright): Update copyright date.
52193
52194         * lib/utimens.c (futimens): Account for the fact that futimes
52195         can also fail with errno == ENOSYS or errno == ENOENT.
52196         Patch from Dmitry V. Levin.
52197
52198         Change the name of the robust chdir function from chdir to chdir_long.
52199         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
52200         (restore_cwd): Use chdir_long, not chdir.
52201         * lib/chdir-long.c: Renamed from chdir.c.
52202         * lib/chdir-long.h: Renamed from chdir.h.
52203         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
52204         Hurd.
52205
52206 2005-01-18  Bruno Haible  <bruno@clisp.org>
52207
52208         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
52209         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
52210         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
52211         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
52212         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
52213         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
52214         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
52215         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
52216         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
52217         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
52218         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
52219         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
52220         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
52221         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
52222         Use an all-permissive copyright notice, recommended by RMS.
52223
52224 2005-01-18  Bob Proulx  <bob@proulx.com>
52225
52226         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
52227         simplify offsetof() macro construct to avoid compile failure with
52228         native HP-UX 11.0 ANSI C compiler.
52229
52230 2005-01-17  Bruno Haible  <bruno@clisp.org>
52231
52232         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
52233         redundant because stpncpy.m4 takes care of it.
52234
52235 2005-01-17  Bruno Haible  <bruno@clisp.org>
52236
52237         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
52238
52239 2005-01-17  Bruno Haible  <bruno@clisp.org>
52240
52241         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
52242         used.
52243
52244 2005-01-17  Bruno Haible  <bruno@clisp.org>
52245
52246         * lib/fwriteerror.h (fwriteerror): Change specification to include
52247         fclose.
52248         * lib/fwriteerror.c: Include <stdbool.h>.
52249         (fwriteerror): At the end, close the file stream. Record whether
52250         stdout was already closed.
52251
52252 2005-01-17  Bruno Haible  <bruno@clisp.org>
52253
52254         * lib/execute.c (environ): Declare if needed.
52255         * lib/pipe.c (environ): Likewise.
52256         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
52257
52258 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52259
52260         * modules/argp: Depend on vsnprintf
52261
52262 2005-01-10  Jim Meyering  <jim@meyering.net>
52263
52264         * modules/closeout (Depends-on): Add atexit.
52265
52266 2005-01-06  Bruno Haible  <bruno@clisp.org>
52267
52268         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
52269
52270 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
52271
52272         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
52273         definitions to be after all include files, to avoid collisions.
52274         Problem reported by Bob Proulx.
52275
52276 2005-01-04  Jim Meyering  <jim@meyering.net>
52277
52278         Changes imported from coreutils.
52279         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
52280         as the mkstemp template, use a temporary directory and an
52281         8.3-friendly template to avoid trouble on systems like DJGPP.
52282         Reported by Juan M. Guerrero via Stepan Kasal.
52283         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
52284         close. Remove the temporary directory right away, rather than waiting
52285         for configure's at-exit trap code to do it.
52286         Suggestion from Stepan Kasal.
52287
52288 2005-01-01  Simon Josefsson  <jas@extundo.com>
52289
52290         * gnulib-tool: Print #include directives when --import'ing.
52291
52292 2004-12-28  Simon Josefsson  <jas@extundo.com>
52293
52294         * tests/test-base64.c: Include required header files.  Remove
52295         unused variables.
52296
52297 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
52298
52299         * modules/error (Depends-on): Remove gettext.
52300
52301 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
52302
52303         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
52304         not needed.  This removes a dependency on the gettext module.
52305         [defined _LIBC]: Do not include <libintl.h>; not needed.
52306
52307 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
52308
52309         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
52310         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
52311
52312 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
52313
52314         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
52315         HAVE_DECL_STRTOLD.
52316
52317 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
52318
52319         * modules/getdate (Depends-on): Remove alloca-opt.
52320
52321 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
52322
52323         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
52324
52325 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
52326
52327         * lib/argp-parse.c: Include <stddef.h>.
52328         (alignof, alignto): New macros.
52329         (parser_init): Don't assume that void * is aligned sufficiently
52330         for struct option.
52331
52332         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
52333         need to extend the stack.
52334         (YYINITDEPTH): New macro, so that the initial stack isn't overly
52335         large.
52336
52337 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52338
52339         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
52340
52341 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
52342
52343         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
52344         (2004-10-24) change.  Apparently this was a false alarm.
52345
52346         * modules/getdate: Depend on alloca-opt, not alloca.
52347
52348 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
52349
52350         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
52351         Remove now-obsolete comment about AIX.
52352         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
52353         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
52354         (YYMAXDEPTH): New macro.
52355
52356 2004-12-18  Simon Josefsson  <jas@extundo.com>
52357
52358         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
52359
52360 2004-12-18  Bruno Haible  <bruno@clisp.org>
52361
52362         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
52363
52364 2004-12-18  Bruno Haible  <bruno@clisp.org>
52365
52366         * lib/fatal-signal.c (fatal_signals): Make non-const.
52367         (init_fatal_signals): New function.
52368         (uninstall_handlers, install_handlers): Ignore signals that were set to
52369         SIG_IGN.
52370         (at_fatal_signal): Call init_fatal_signals.
52371         (init_fatal_signal_set): Likewise. Ignore signals that were set to
52372         SIG_IGN.
52373         Reported by Paul Eggert.
52374
52375 2004-12-18  Bruno Haible  <bruno@clisp.org>
52376
52377         * doc/alloca.texi: New file.
52378         * doc/alloca-opt.texi: New file.
52379
52380 2004-12-17  Jim Meyering  <jim@meyering.net>
52381
52382         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
52383         Otherwise, install-sh could exit with improper exit status when
52384         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
52385
52386 2004-12-16  Simon Josefsson  <jas@extundo.com>
52387
52388         * tests/test-base64.c: Add license.
52389
52390 2004-12-15  Stepan Kasal  <address@hidden>
52391
52392         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
52393
52394 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
52395
52396         * modules/getcwd (Files): Add m4/d-ino.m4.
52397         Suggested by Mark D. Baushke.
52398
52399 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
52400
52401         * lib/getdate.y (textint): New member "negative".
52402         (time_zone_hhmm): New function.
52403         Expect 14 shift-reduce conflicts, not 13.
52404         (o_colon_minutes): New rule.
52405         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
52406         (yylex): Set the "negative" member of signed numbers.
52407
52408 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
52409
52410         * doc/getdate.texi (Time of day items, Time zone items):
52411         Describe new formats +00:00, UTC+00:00.
52412
52413 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
52414
52415         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
52416         spurious "-l"s.  Problem reported by Stepan Kasal.
52417
52418 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
52419
52420         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
52421         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
52422
52423 2004-12-04  Simon Josefsson  <jas@extundo.com>
52424
52425         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
52426         Vandoorselaere <yoann@prelude-ids.org>.
52427
52428 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
52429
52430         Changes imported from coreutils.
52431         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
52432         exist.
52433         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
52434
52435 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
52436
52437         Changes imported from coreutils.
52438         * lib/hard-locale.c: Assume <locale.h> exists.
52439         Include "strdup.h".
52440         (GLIBC_VERSION): New macro.
52441         (hard_locale): Assume setlocale exists.
52442         Rewrite to avoid #ifdef.
52443         Use strdup rather than malloc + strcpy.
52444         * lib/human.c: Assume <locale.h> exists.
52445         (human_readable): Assume localeconv exists.
52446
52447 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
52448
52449         * modules/hard-locale (Depends-on): Add strdup.
52450
52451 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
52452
52453         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
52454         convert T2, not T.  (Imported from libc.)
52455
52456 2004-11-30  Simon Josefsson  <jas@extundo.com>
52457
52458         * modules/restrict (License): Change to LGPL.
52459
52460 2004-11-30  Simon Josefsson  <jas@extundo.com>
52461
52462         * m4/restrict.m4: Add copyright and copying conditions.
52463
52464 2004-11-30  Simon Josefsson  <jas@extundo.com>
52465
52466         * m4/base64.m4: New file.
52467
52468 2004-11-30  Simon Josefsson  <jas@extundo.com>
52469
52470         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
52471         base64.
52472
52473         * tests/test-base64.c: New file.
52474
52475         * modules/base64: New file.
52476
52477 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
52478
52479         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
52480         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
52481
52482         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
52483
52484 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
52485
52486         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
52487         (__getcwd.c): Don't restore errno; glibc doesn't.
52488         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
52489         first, falling back to our code only if its results look suspicious.
52490         Ensure that the resulting buffer is only as large as necessary.
52491
52492         * lib/readutmp.c: Include readutmp.h first.
52493         Include <errno.h>, since readutmp.h no longer does that.
52494         * lib/readutmp.h: Don't include <errno.h>,
52495         <sys/param.h>, <time.h>; not needed to establish interface.
52496         (errno): Remove decl.
52497         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
52498         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
52499         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
52500
52501 2004-11-28  Simon Josefsson  <jas@extundo.com>
52502
52503         * lib/base64.h, base64.c: New file.
52504
52505 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
52506
52507         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
52508
52509 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
52510
52511         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
52512         (Depends-on): Remove pathmax, same.  Add mempcpy.
52513         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
52514         (Makefile.am): Append getcwd.h to lib_SOURCES.
52515         (Include): Add getcwd.h.
52516         (Maintainer): Change from Jim Meyering to "all, glibc",
52517         since getdate now uses intended-for-glibc code.
52518         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
52519         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
52520
52521 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
52522
52523         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
52524         HP's ANSI C compiler.
52525         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
52526         Declaring int functions causes warnings on some modern systems and
52527         shouldn't be needed to compile on ancient ones.
52528         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
52529         defined.
52530
52531         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
52532         with the following changes.
52533         (__set_errno): Parenthesize properly.
52534         Include <stdbool.h>.
52535         (MIN, MAX, MATCHING_INO): New macros.
52536         (__getcwd): Define with prototype, not K&R form.
52537         Use heuristics to allocate default buffer on stack if possible.
52538         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
52539         behavior, and to avoid the PATH_MAX limit when computing
52540         ../../../../...
52541         Use MATCHING_INO to compare inode number to file.
52542         Check for arithmetic overflow in size calculations.
52543         Fix bug in reallocation of dot array that caused getcwd to fail
52544         on directories nested deeper than 75.
52545         Be more careful about saving errno on error.
52546         Do not use realloc; use only free+malloc, as this is a bit
52547         more flexible and avoids a needless copy operation.
52548         Do not inspect st_dev and st_ino for symbolic links; POSIX
52549         doesn't specify the latter.
52550         Check for closedir errors.
52551         Avoid needless casts.
52552         Use "#ifdef weak_alias" around weak_alias, to be like other
52553         glibc code.
52554         The following changes to getcwd.c have effect only when used in
52555         gnulib; they have no effect inside glibc proper.
52556         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
52557         as alloca isn't used.
52558         (alloca, __alloca): Likewise.
52559         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
52560         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
52561         unconditionally, as gnulib assumes C89 or better.
52562         Do not include <sys/param.h>.
52563         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
52564         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
52565         better.
52566         (NULL) [!defined NULL]: Remove; we assume C89 or better.
52567         Include <dirent.h> in a way that is compatible with modern Autoconf.
52568         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
52569         New macros, if not already defined.
52570         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
52571         Use "_LIBC", not "defined _LIBC", for consistency.
52572         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
52573         a mempcpy module.
52574         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
52575         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
52576         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
52577         credit only to Jim Meyering and adjust the copyright dates.
52578         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
52579         <stdlib.h>, <unistd.h>, "pathmax.h".
52580         Instead, include "xgetcwd.h" (first) and "getcwd.h".
52581         (INITIAL_BUFFER_SIZE): Remove.
52582         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
52583
52584 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
52585
52586         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
52587         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
52588         Use the _ONCE methods, for efficiency.
52589         Check for fcntl.h.  In test program, include <errno.h>
52590         and <fcntl.h> if available.  Remove old K&R cruft from
52591         test program.  Check for common errors in GNU/Linux,
52592         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
52593         don't do AC_LIBOBJ, as that's getcwd.m4's job.
52594         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
52595         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
52596         name accordingly.
52597         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
52598         accommodate new getcwd.c.
52599         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
52600         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
52601         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
52602         that's all we need now.
52603
52604 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52605
52606         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
52607         argp-parse.c depends on getopt internals, that means we should
52608         always use our getopt, to be on the safe side.
52609         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
52610         order not to spoil the result of an eventual previous invocation
52611         of gl_GETOPT_SUBSTITUTE.
52612
52613 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52614
52615         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
52616         redefinition warnings. To avoid them, include the defines
52617         in `#if !defined __need_getopt ... #endif'. The only place
52618         where __getopt_argv_const is used is in definitions
52619         of getopt_long and getopt_long_only below, which are as well
52620         protected by `#ifndef __need_getopt'.
52621         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
52622         __need_getopt after including <stdio.h> and <unistd.h> These
52623         headers might have defined it.
52624
52625 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
52626
52627         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
52628
52629 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
52630
52631         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
52632         (futimens): New function, which uses futimes if available.
52633         (futimens, utimens): Support timespec==NULL, with same semantics
52634         as utime and utimens.
52635         * lib/utimens.h (futimens): New decl.
52636
52637 2004-11-23  Jim Meyering  <jim@meyering.net>
52638
52639         * lib/getopt_.h: Remove trailing blanks.
52640
52641 2004-11-23  Jim Meyering  <jim@meyering.net>
52642
52643         * lib/__fpending.c: Add comment.
52644
52645 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
52646
52647         * modules/canonicalize (Depends-on): Add xreadlink.
52648         Problem reported by James Youngman.
52649
52650 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
52651
52652         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
52653         New macros.
52654         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
52655         optopt): Use them instead of invoking ## directly; otherwise, the
52656         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
52657
52658 2004-11-19  Bruno Haible  <bruno@clisp.org>
52659
52660         * lib/strtok_r.c: Move comments from here...
52661         * lib/strtok_r.h: ... to here.
52662
52663 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
52664
52665         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
52666         implementations that mishandle size_t overflow.
52667
52668 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
52669
52670         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
52671         might fail.  Problem reported by Yoann Vandoorselaere.
52672         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
52673         implementations that mishandle size_t overflow.
52674
52675 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
52676
52677         * modules/canon-host (Depends-on): Add strdup.
52678
52679 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
52680
52681         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
52682
52683 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
52684
52685         * lib/canon-host.c: Include "strdup.h".
52686         (canon_host): Use getaddrinfo if available, so that IPv6 works.
52687         Use strdup instead of malloc/strcpy to duplicate strings.
52688
52689         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
52690         (human_space_before_unit): New constant.
52691         * lib/human.c (human_readable): Support it.
52692
52693         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
52694         (xgetcwd): Set errno correctly when failing.
52695         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
52696         the failure is actually due to a PATH_MAX problem.
52697
52698         Further getopt changes to make it more likely that glibc will
52699         buy the changes back.
52700         * lib/getopt.c (POSIXLY_CORRECT): New constant.
52701         (getopt): Use it, so to preserve glibc semantic
52702         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
52703         when compiling for libc.
52704         * lib/getopt_.h (__getopt_argv_const): Bring it back.
52705         (getopt_long, getopt_long_only): Use it.
52706
52707         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
52708         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
52709         (getopt): Argv is now char * const *, as per standard.
52710         (_getopt_internal_r, _getopt_internal): Argv is now char **,
52711         not char *__getopt_argv_const *.
52712         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
52713         _getopt_long_only_r): Likewise.
52714         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
52715         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
52716         _getopt_long_r, _getopt_long_only_r): Likewise.
52717         * lib/getopt_.h (__getopt_argv_const): Remove.
52718         (getopt): Argv is now char * const *, as per standard.
52719
52720         * lib/getdate.y (tORDINAL): New token.
52721         (day, relunit): Allow it for relative times.
52722         (relative_time_table): Use tORDINAL for ordinals.
52723
52724 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
52725
52726         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
52727         Document that "second" isn't allowed as an ordinal number.
52728
52729 2004-11-16  Jim Meyering  <jim@meyering.net>
52730
52731         * modules/closeout (Depends-on): Add fpending.
52732
52733 2004-11-15  Jim Meyering  <jim@meyering.net>
52734
52735         * lib/closeout.c: Include "__fpending.h" once again.
52736         Include <stdbool.h>.
52737         (close_stdout): Don't fail just because stdout was closed initially,
52738         since some programs don't write to stdout in the normal course of
52739         operation (other than --version and --help), and we don't want this
52740         function to make e.g. `touch file >&-' fail.
52741         But do fail if it was closed and someone has tried to write to it.
52742         E.g., `printf foo >&-' must fail.
52743
52744 2004-11-13  Jim Meyering  <jim@meyering.net>
52745
52746         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
52747
52748 2004-11-12  Simon Josefsson  <jas@extundo.com>
52749
52750         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
52751         small doc fix is still pending.
52752
52753 2004-11-11  Simon Josefsson  <jas@extundo.com>
52754
52755         * modules/strtok_r: New file.
52756
52757         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52758         strtok_r.
52759
52760 2004-11-11  Simon Josefsson  <jas@extundo.com>
52761
52762         * m4/strtok_r.m4: New file.
52763
52764         * m4/getopt.m4: Replace opterr.
52765
52766 2004-11-11  Simon Josefsson  <jas@extundo.com>
52767
52768         * lib/strtok_r.h, strtok_r.c: New file.
52769
52770 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
52771
52772         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
52773         of replacing opterr, getopt, etc.  This should handle the
52774         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
52775
52776 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
52777
52778         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
52779         we can stop lying to compilers about the constness of argv when we
52780         are compiled outside glibc.
52781         (getopt, getopt_long, getopt_long_only): Use it.
52782         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
52783         _getopt_internal, getopt): Likewise.
52784         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
52785         _getopt_long_only_r): Likewise.
52786         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
52787         _getopt_long_r, _getopt_long_only_r): Likewise.
52788
52789         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
52790         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
52791         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
52792         the other external symbols.
52793         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
52794         declaration, since the above renaming now works around collisions.
52795
52796 2004-11-11  Jim Meyering  <jim@meyering.net>
52797
52798         * lib/linebreak.c: Remove trailing blanks.
52799         * lib/alloca_.h: Likewise.
52800         * lib/acosl.c: Likewise.
52801         * lib/euidaccess.c: Likewise.
52802         * lib/allocsa.h: Likewise.
52803
52804 2004-11-10  Simon Josefsson  <jas@extundo.com>
52805
52806         * m4/getaddrinfo.m4: New file.
52807
52808 2004-11-10  Simon Josefsson  <jas@extundo.com>
52809
52810         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
52811
52812 2004-11-10  Simon Josefsson  <jas@extundo.com>
52813
52814         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52815         getaddrinfo.
52816
52817         * modules/getaddrinfo: New file.
52818
52819 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
52820
52821         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
52822
52823 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
52824
52825         * lib/mktime.c (SHR): New macro, which is a portable
52826         substitute for >> that should work even on Crays.
52827         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
52828         Problem reported by Mark D. Baushke in
52829         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
52830         * lib/getdate.y (SHR): Likewise.
52831         (tm_diff): Use it.
52832         * lib/strftime.c (SHR): Likewise.
52833         (tm_diff): Use it.
52834         * lib/quotearg.c (struct quoting_options): Use unsigned int for
52835         quote_these_too, so that right shifts are well defined.  All uses
52836         changed.
52837
52838 2004-11-10  Jim Meyering  <jim@meyering.net>
52839
52840         Ensure that no close failure goes unreported.
52841         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
52842         return early when it seems there's nothing to flush.
52843         Don't include __fpending.h.
52844
52845 2004-11-10  Jim Meyering  <jim@meyering.net>
52846
52847         * modules/closeout (Depends-on): Remove fpending.
52848
52849 2004-11-10  Jim Meyering  <jim@meyering.net>
52850
52851         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
52852
52853 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
52854
52855         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
52856         gl_FUNC_STRFTIME.
52857         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
52858         and AC_REQUIRE when possible, to avoid duplicate checks.
52859         Check for <wchar.h>.
52860
52861 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
52862
52863         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
52864
52865 2004-11-09  Bruno Haible  <bruno@clisp.org>
52866
52867         * m4/sockpfaf.m4: New file.
52868
52869 2004-11-05  Bruno Haible  <bruno@clisp.org>
52870
52871         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
52872         Reported by Mark D. Baushke <mdb@cvshome.org>.
52873
52874 2004-11-04  Bruno Haible  <bruno@clisp.org>
52875
52876         2004-09-11  Bruno Haible  <bruno@clisp.org>
52877                 * allocsa.valgrind: New file.
52878         2004-02-06  Bruno Haible  <bruno@clisp.org>
52879                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
52880                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
52881                 Reported by Christopher Seip <chris.seip@hp.com>.
52882
52883 2004-11-04  Bruno Haible  <bruno@clisp.org>
52884
52885         * modules/allocsa (Files): Add lib/allocsa.valgrind.
52886         (Makefile.am): Distribute it.
52887
52888 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
52889
52890         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
52891         with errno == ERANGE if the buffer is too small.
52892         Problem reported by Mark D. Baushke.
52893
52894 2004-11-03  Albert Chin  <china@thewrittenword.com>
52895             Paul Eggert  <eggert@cs.ucla.edu>
52896
52897         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
52898         equivalent, substitute $ac_type for equivalent type rather than
52899         blindly using uint32_t *always* which won't work if uint32_t is not
52900         available.  Define _UINT32_T to work around typedef of uint32_t if
52901         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
52902         2.5.1.
52903
52904 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
52905
52906         * m4/jm-macros.m4: Sync from coreutils.
52907         (gl_MACROS): Check for mbrlen, for pathchk.
52908         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
52909
52910 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
52911
52912         * lib/xreadlink.c (MAXSIZE): New macro.
52913         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
52914         size does not exceed MAXSIZE.  Avoid cast.
52915         As suggested by Mark D. Baushke in
52916         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
52917         if readlink fails with buffer size just under MAXSIZE, try again
52918         with MAXSIZE.
52919
52920 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
52921
52922         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
52923
52924 2004-11-02  Derek R. Price  <derek@ximbiot.com>
52925         and  Paul Eggert  <eggert@cs.ucla.edu>
52926
52927         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
52928         (get_date): Overparenthesize to avoid GCC warning.
52929
52930 2004-11-02  Bruno Haible  <bruno@clisp.org>
52931
52932         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
52933         returns void.
52934
52935 2004-11-02  Bruno Haible  <bruno@clisp.org>
52936
52937         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
52938         function returns void.
52939
52940 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
52941
52942         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
52943         fflush_unlocked, flockfile, funlockfile, funlockfile,
52944         fputs_unlocked, putc_unlocked.
52945
52946 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
52947
52948         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
52949         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
52950         already declared.
52951
52952 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
52953
52954         * modules/getdate (Files): Add doc/getdate.texi.
52955         (Depends-on): Add setenv, xalloc.
52956
52957 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
52958
52959         * lib/getdate.y: Add support for TZ="foo" within a date string.
52960         Fix some bugs near time_t boundaries.  Reject dates with
52961         out-of-range components, e.g., "Sept 31".
52962         Include <stdlib.h>, "setenv.h", "xalloc.h".
52963         (ISDIGIT_LOCALE): Remove; unused.
52964         Note that the TZ and time functions used here are not reentrant.
52965         (mktime_ok, get_tz): New functions.
52966         (TZBUFSIZE): New constant.
52967         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
52968         This requires that we sometimes generate our own TZ="XXX..." setting.
52969
52970 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
52971
52972         * doc/getdate.texi: New file, from coreutils with modifications for
52973         the new TZ parsing.
52974
52975 2004-10-27  Derek R. Price  <derek@ximbiot.com>
52976
52977         * lib/mktime.c (not_equal_tm): Remove redundant check.
52978
52979 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
52980
52981         * modules/regex (lib_SOURCES): Add regex.c.
52982         Reported by James Youngman in
52983         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
52984
52985 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
52986
52987         * lib/getdate.y: Use Bison 1.875 features, and some minor
52988         code cleanups.  This change does not affect semantics.
52989         Don't include <stdlib.h>; no longer needed.
52990         Don't include unlocked-io.h; only the "#if TEST" code uses
52991         stdio, and performance isn't crucial there.
52992         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
52993         Bison 1.875 features as described below.
52994         All uses of "PC." replaced by "pc->".
52995         (YYSTYPE): Add a forward declaration.
52996         (yylex, yyerror): Use full prototypes in forward decls.
52997         Use "%pure-parser" rather than obsolescent "%pure_parser".
52998         Use %parse-param and %lex-param instead of obsolescent
52999         YYPARSE_PARAM and YYLEX_PARAM.
53000         (meridian_table, month_and_day_table, time_units_table,
53001         relative_time_table, time_zone_table, military_table,
53002         lookup_zone, lookup_word, get_date):
53003         Use NULL instead of 0 where appropriate.
53004         (to_hour): Avoid abort (), to avoid a dependency on
53005         stdlib.h.
53006         (yyerror, yylex): Now accepts parser_control * arg.
53007         (main) [TEST]: Use '\0' rather than 0 for char.
53008
53009 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
53010
53011         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
53012
53013 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
53014
53015         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
53016         It's now the caller's responsibility to handle the case where
53017         !HAVE_GETPAGESIZE && !defined getpagesize.
53018
53019         * lib/mktime.c (leapyear): Arg is long int, not int.
53020
53021 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
53022
53023         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
53024
53025 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
53026
53027         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
53028         missing.  Problem reported by James Youngman.
53029
53030 2004-10-16  Simon Josefsson  <jas@extundo.com>
53031
53032         * gnulib-tool: Fix comments.  Fix parse problem.
53033         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
53034
53035 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
53036
53037         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
53038         implementation of getopt_long.  Problem reported by Alexander Taler in:
53039         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
53040
53041 2004-10-15  Bruno Haible  <bruno@clisp.org>
53042
53043         * gnulib-tool: Untabify. Initialize supplied_libname.
53044         (func_usage): More homogenous output.
53045         (func_modules_transitive_closure, func_modules_to_filelist,
53046         func_emit_lib_Makefile_am): New functions.
53047         (func_import): New function, extracted from big case statement. Use
53048         func_get_license, func_modules_transitive_closure,
53049         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
53050         opt_lgpl. Don't use test -a, as it's not portable.
53051         (func_create_testdir): Use func_modules_transitive_closure,
53052         func_modules_to_filelist, func_emit_lib_Makefile_am.
53053
53054 2004-10-15  Bruno Haible  <bruno@clisp.org>
53055
53056         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
53057
53058 2004-10-15  Bruno Haible  <bruno@clisp.org>
53059
53060         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
53061         the portions belonging to each module.
53062         Suggested by Derek Robert Price <derek@ximbiot.com>.
53063
53064 2004-10-12  Simon Josefsson  <jas@extundo.com>
53065
53066         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
53067         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
53068         to real functions.
53069
53070 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
53071
53072         * modules/vsnprintf: New file.
53073
53074 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
53075
53076         * m4/vsnprintf.m4: New file.
53077
53078 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
53079
53080         * lib/vsnprintf.h: New file.
53081         * lib/vsnprintf.c: New file.
53082
53083 2004-10-11  Bruno Haible  <bruno@clisp.org>
53084
53085         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
53086         vsnprintf.
53087
53088 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
53089
53090         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
53091
53092 2004-10-07  Bruno Haible  <bruno@clisp.org>
53093
53094         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
53095         fits into the provided buffer.
53096
53097 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
53098
53099         * lib/diacrit.c, diacrit.h: Add GPL notice.
53100
53101         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
53102         notice.
53103         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
53104         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
53105         This avoids a potential constant-folding bug.
53106
53107 2004-10-05  Bruno Haible  <bruno@clisp.org>
53108
53109         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
53110         for the declaration of strsep.
53111
53112 2004-10-05  Bruno Haible  <bruno@clisp.org>
53113
53114         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
53115
53116 2004-10-04  Simon Josefsson  <jas@extundo.com>
53117
53118         * modules/memmem: New file.
53119         * tests/test-memmem.c: New file.
53120         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
53121
53122 2004-10-04  Simon Josefsson  <jas@extundo.com>
53123
53124         * m4/memmem.m4: New file.
53125
53126 2004-10-04  Simon Josefsson  <jas@extundo.com>
53127
53128         * lib/memmem.h: New file.
53129         * lib/memmem.c: New file, taken from glibc.
53130
53131 2004-10-04  Simon Josefsson  <jas@extundo.com>
53132
53133         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
53134         '#ifdef USE_UNLOCKED_IO'.
53135
53136 2004-10-04  Simon Josefsson  <jas@extundo.com>
53137
53138         * config/srclist.txt: Add memmem from glibc.
53139
53140 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
53141
53142         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
53143
53144         * modules/argmatch, modules/argp, modules/closeout, modules/error,
53145         modules/exclude, modules/getdate, modules/getline,
53146         modules/getndelim2, modules/getpass, modules/getpass-gnu,
53147         modules/getusershell, modules/linebuffer, modules/md5,
53148         modules/mountlist, modules/posixtm, modules/readtokens,
53149         modules/readutmp, modules/regex, modules/sha1,
53150         modules/version-etc, modules/yesno:
53151         Remove dependency on unlocked-io.
53152
53153 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
53154
53155         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
53156
53157         * m4/unlocked-io.m4: Add copyright notice.
53158         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
53159
53160 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
53161
53162         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
53163         * lib/xmalloc.c (xmemdup): Likewise.
53164         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
53165         XFREE): Remove these long-obsolescent macros.
53166         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
53167         * lib/xstrdup.c: Remove.
53168
53169         * lib/regex.c (re_comp): Cast gettext return value to char *,
53170         Problem reported by Martin Neitzel via Mark D. Baushke.
53171
53172 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
53173
53174         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
53175         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
53176         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
53177         regex.c, sha1.c, version-etc.c, yesno.c:
53178         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
53179         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
53180         the includer's responsibility.
53181
53182         Sync from coreutils.
53183
53184         * lib/modechange.c (mode_compile): Don't decrement a pointer that
53185         points to the start of a string, as the C Standard says the
53186         resulting behavior is undefined.
53187
53188         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
53189         simple -> simple_backups, numbered_existing ->
53190         numbered_existing_backups, numbered -> numbered_backups
53191         to avoid shadowing problems.  All uses changed.
53192         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
53193         * lib/backupfile.c (check_extension, numbered_backup):
53194         Rename locals to avoid shadowing 'basename'.
53195         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
53196         once.
53197
53198         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
53199         * lib/.cvsignore: Add getopt.h.
53200
53201 2004-10-04  Bruno Haible  <bruno@clisp.org>
53202
53203         * modules/README: New file.
53204         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
53205         not a module.
53206
53207 2004-10-02  Jim Meyering  <jim@meyering.net>
53208
53209         * lib/dirfd.h, getpagesize.h: Add copyright notice.
53210
53211 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
53212
53213         * modules/strsep: New file.
53214
53215 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
53216
53217         * m4/strsep.m4: New file.
53218
53219 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
53220
53221         * lib/strsep.h: New file.
53222         * lib/strsep.c: New file.
53223
53224 2004-10-01  Simon Josefsson  <jas@extundo.com>
53225
53226         * lib/snprintf.c (snprintf): Handle size==0.
53227
53228 2004-10-01  Simon Josefsson  <jas@extundo.com>
53229             Bruno Haible  <bruno@clisp.org>
53230
53231         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
53232         (snprintf): Declare 'args'.
53233
53234 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
53235
53236         * lib/snprintf.c: Remove comments as to why each header is needed.
53237
53238 2004-10-01  Bruno Haible  <bruno@clisp.org>
53239
53240         * MODULES.html.sh: Add strsep.
53241
53242 2004-09-30  Simon Josefsson  <jas@extundo.com>
53243
53244         * modules/snprintf: New file.
53245
53246 2004-09-30  Simon Josefsson  <jas@extundo.com>
53247
53248         * m4/snprintf.m4: New file.
53249
53250 2004-09-30  Simon Josefsson  <jas@extundo.com>
53251
53252         * lib/snprintf.h, lib/snprintf.c: New files.
53253
53254 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53255
53256         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
53257         (hol_entry_help): Never translate an empty string.
53258         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
53259         * lib/argp.h (OPTION_NO_TRANS): New option.
53260
53261 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
53262
53263         * modules/argp (Maintainer): Replace Simon Josefsson
53264         by Sergey Poznyakoff.
53265
53266 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
53267
53268         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
53269         changes merged back into glibc.
53270
53271 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
53272
53273         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
53274
53275 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
53276
53277         * lib/xvasprintf.c: Include xalloc.h.
53278         (xvasprintf): Use xalloc_die, not xmalloc_die.
53279
53280 2004-09-29  Bruno Haible  <bruno@clisp.org>
53281
53282         * modules/alloca-opt: New file, derived from modules/alloca.
53283         * modules/allocsa: Depend on alloca-opt instead of alloca.
53284         * modules/setenv: Likewise.
53285         * modules/vasnprintf: Likewise.
53286         * MODULES.html.sh: Add alloca-opt.
53287
53288 2004-09-28  Simon Josefsson  <jas@extundo.com>
53289
53290         * gnulib-tool: New parameter --lgpl, to asseert that modules are
53291         LGPL, and to replace license template from GPL to LGPL.
53292
53293 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
53294
53295         * modules/dummy: Change license to LGPL.
53296
53297 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
53298
53299         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
53300
53301 2004-09-24  Simon Josefsson  <jas@extundo.com>
53302
53303         * modules/minmax (License): Change from GPL to LGPL.
53304
53305 2004-09-23  Simon Josefsson  <jas@extundo.com>
53306
53307         * gnulib-tool (--import): Typo.
53308
53309 2004-09-23  Simon Josefsson  <jas@extundo.com>
53310
53311         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
53312
53313 2004-09-22  Bruno Haible  <bruno@clisp.org>
53314
53315         * modules/*: Add 'License' field.
53316         * gnulib-tool: Accept --extract-license option.
53317         (func_get_license): New function.
53318
53319 2004-09-21  Bruno Haible  <bruno@clisp.org>
53320
53321         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
53322         Reported by Simon Josefsson.
53323
53324 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
53325
53326         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
53327         gl_AC_TYPE_LONG_LONG.
53328
53329 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
53330
53331         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
53332
53333 2004-09-18  Simon Josefsson  <jas@extundo.com>
53334         and  Paul Eggert  <eggert@cs.ucla.edu>
53335
53336         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
53337         calls with autoreconf.  Define GL_LIB.
53338
53339 2004-09-14  Karl Berry  <karl@gnu.org>
53340
53341         * config/srclist.txt: unsync setenv.c, sigh.
53342
53343 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
53344
53345         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
53346         Problem reported by Bruno Haible in:
53347         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
53348
53349 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
53350
53351         * config/srclist.txt: Comment out argp-pvh.c.
53352
53353 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
53354
53355         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
53356         in case some system header has #define'd it.  Problem reported by
53357         Soeren D. Schulze in
53358         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
53359
53360 2004-09-09  Karl Berry  <karl@gnu.org>
53361
53362         * regex.[ch]: delete from the root.  These were supposed to be
53363                 synced with emacs cvs, but this has not happened for about
53364                 a year, and anyway nothing else uses emacs regex.[ch].
53365                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
53366                 lib/regex[.ch] is untouched.
53367
53368 2004-09-09  Bruno Haible  <bruno@clisp.org>
53369
53370         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
53371
53372 2004-09-09  Bruno Haible  <bruno@clisp.org>
53373
53374         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
53375         modifications.
53376         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
53377
53378 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
53379
53380         * modules/xvasprintf: New file.
53381         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
53382
53383 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
53384
53385         * lib/xvasprintf.h: New file.
53386         * lib/xvasprintf.c: New file.
53387         * lib/xasprintf.c: New file.
53388
53389 2004-09-08  Bruno Haible  <bruno@clisp.org>
53390
53391         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
53392
53393 2004-09-08  Bruno Haible  <bruno@clisp.org>
53394
53395         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
53396         length is > INT_MAX.
53397         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
53398         more.
53399
53400 2004-09-08  Bruno Haible  <bruno@clisp.org>
53401
53402         * lib/stdint_.h: New file, taken from GNU clisp.
53403
53404 2004-09-08  Bruno Haible  <bruno@clisp.org>
53405             Oskar Liljeblad  <oskar@osk.mine.nu>
53406
53407         * modules/stdint: New file.
53408         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
53409
53410 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
53411
53412         Import from coreutils.
53413         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
53414         strings on unbounded length.  alloca's performance benefits aren't
53415         that important here.
53416         (V_STRDUP): Remove.
53417         (parse_with_separator): New function, with most of the internals
53418         of the old parse_user_spec.  Allow user to omit both user and group,
53419         for compatibility with FreeBSD.
53420         Clone only the user name, not the entire spec.
53421         Do not set *uid, *gid unless entirely successful.
53422         Avoid memory leak in some failing cases.
53423         Fix regression for USER.GROUP reported by Dmitry V. Levin in
53424         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
53425         (parse_user_spec): Rewrite to use parse_with_separator.
53426
53427 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
53428
53429         * modules/userspec: Don't depend on alloca.
53430
53431 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
53432
53433         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
53434
53435 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
53436
53437         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
53438         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
53439         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
53440
53441 2004-08-16  Simon Josefsson  <jas@extundo.com>
53442
53443         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
53444         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
53445         Add --dry-run for --import.
53446         Let user provided command line parameters override configure.ac
53447         settings.
53448
53449 2004-08-12  Simon Josefsson  <jas@extundo.com>
53450
53451         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
53452         as discussed with Paul Eggert in threads rooted at
53453         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
53454         and
53455         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
53456         Before, the test was empty, and relied on ELIDE_CODE in source
53457         code.)
53458         (gl_PREREQ_GETOPT): New macro.
53459         (gl_GETOPT): Use them.
53460
53461 2004-08-12  Simon Josefsson  <jas@extundo.com>
53462
53463         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
53464         * lib/getopt_.h: Renamed from getopt.h.
53465
53466 2004-08-12  Simon Josefsson  <jas@extundo.com>
53467
53468         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
53469         Change default library name from libfoo to libgnu.
53470         Now, if you have a configure.ac that says:
53471                 gl_SOURCE_BASE(gl)
53472                 gl_M4_BASE(gl/m4)
53473                 gl_MODULES(error getopt etcetera)
53474                 gl_INIT
53475         you can import all you need by running:
53476                 ../gnulib/gnulib-tool --import
53477
53478         * modules/getopt (Files): Rename getopt.h to getopt_.h.
53479         (Makefile.am): Rewrite, use logic from argz.
53480         (Include): Use <getopt.h> instead of "getopt.h".
53481
53482 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
53483
53484         * modules/argp (Files): Add m4/unlocked-io.m4.
53485         (Depends-on): Add extensions.
53486
53487 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
53488
53489         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
53490         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
53491         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
53492         Check for program_invocation_name, program_invocation_short_name,
53493         flockfile, funlockfile, features.h, _getopt_long_only_r.
53494
53495 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
53496
53497         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
53498         its complicated substitute.
53499         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
53500         and program_invocation_name.
53501         (__argp_basename) [!_LIBC]: Remove; the only use was
53502         replaced by its body.
53503         (__argp_short_program_name): Change condition from
53504         !defined __argp_short_program_name to
53505         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
53506         to match argp-namefrob.h.
53507         (__argp_failure): Don't assume strerror_r returns char *.
53508         * lib/argp-parse.c (N_): Define unconditionally.
53509         (argp_default_options): Fill out initializers with 0 to avoid
53510         gcc warnings.
53511
53512 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
53513
53514         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
53515         getopt1.c.
53516
53517 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
53518
53519         Merge from coreutils.
53520
53521         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
53522
53523         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
53524         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
53525
53526 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
53527
53528         Merge from coreutils.
53529
53530         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
53531         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
53532         for Reliant Unix 5.43.
53533
53534         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
53535         (union fooround): Use uintmax_t, not long int.
53536         The rest is a merge from libc:
53537         [defined _LIBC]: Include <shlib-compat.h>.
53538         (_obstack) [defined _LIBC]: Remove after 2.3.4.
53539
53540         * lib/settime.c (settime): Recode to avoid warning with
53541         Sun Forte C 6U2.
53542
53543         * lib/strverscmp.c: Convert to UTF-8.
53544
53545 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
53546
53547         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
53548         m4/uintmax_t.m4.
53549
53550 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
53551
53552         * modules/xalloc-die: New file.
53553         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
53554
53555         * modules/md5 (Files): Add m4/uint32_t.m4.
53556         * modules/sha1: Renamed from modules/sha.
53557         (Files):
53558         Rename lib/sha.h to lib/sha1.h.
53559         Rename lib/sha.c to lib/sha1.c.
53560         Rename m4/sha.m4 to m4/sha1.m4.
53561         (lib_SOURCES): Likewise.
53562         (configure.ac): Rename gl_SHA to gl_SHA1.
53563         (Include): sha.h -> sha1.h.
53564
53565 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
53566
53567         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
53568         * m4/sha1.m4: Renamed from sha.m4.
53569         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
53570
53571 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
53572
53573         * lib/obstack.h (obstack_empty_p):
53574         Don't assume that chunk->contents is suitably aligned.
53575         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
53576         Likewise. Problem reported by Benno in
53577         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
53578
53579         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
53580         readable.  This could be improved further but it'd take some work.
53581
53582 2004-08-08  Simon Josefsson  <jas@extundo.com>
53583
53584         * modules/xgethostname (Depends-on): Remove exit and error (not
53585         used).
53586
53587         * modules/getpass-gnu: Add getpass.h.
53588         (Depends-on): Add stdbool.
53589         * modules/getpass: Add getpass.h.
53590
53591 2004-08-08  Simon Josefsson  <jas@extundo.com>
53592
53593         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
53594         Check getpass declaration.
53595
53596 2004-08-08  Simon Josefsson  <jas@extundo.com>
53597
53598         * lib/xgethostname.c: Don't include error.h (not used).
53599
53600         * lib/getpass.h: Add.
53601         * lib/getpass.c: Include getpass.h first.
53602
53603 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
53604
53605         * lib/xalloc-die.c: New file.
53606         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
53607         All uses removed.
53608         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
53609         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
53610         xalloc-die.c.
53611         (_, N_, xalloc_die): Move to xalloc-die.c.
53612         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
53613         so that we needn't mess with xalloc_msg_memory_exhausted.
53614
53615         * lib/sha1.h: Renamed from sha.h.
53616         (SHA1_H): Renamed from _SHA_H.
53617         (sha1_ctx): Renamed from sha_ctx.
53618         (sha1_init_ctx): Renamed from sha_init_ctx.
53619         (sha1_process_block): Renamed from sha_process_block.
53620         (sha1_process_bytes): Renamed from sha_process_bytes.
53621         (sha1_finish_ctx): Renamed from sha_finish_ctx.
53622         (sha1_read_ctx): Renamed from sha_read_ctx.
53623         (sha1_stream): Renamed from sha_stream.
53624         (sha1_buffer): Renamed from sha_buffer.
53625         * lib/sha1.c: Likewise; renamed from sha.c.
53626         Do not include <sys/types.h>.
53627         Include <stddef.h> rather than <stdlib.h>.
53628
53629 2004-08-08  Bruno Haible  <bruno@clisp.org>
53630
53631         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
53632         FILESYSTEM_PREFIX_LEN.
53633         * lib/progreloc.c: Likewise.
53634         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
53635
53636 2004-08-06  Simon Josefsson  <jas@extundo.com>
53637
53638         * modules/progname (Depends-on): Don't depend on stdbool.
53639
53640 2004-08-06  Simon Josefsson  <jas@extundo.com>
53641
53642         * modules/getsubopt: New file.
53643         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53644         getsubopt.
53645
53646 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
53647
53648         More merge from coreutils.
53649
53650         * m4/utimens.m4, m4/utimecmp.m4: New files.
53651         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
53652         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
53653         prereq.m4, sha.m4: Import changes from coreutils.
53654
53655 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
53656
53657         More merge from coreutils.
53658         * modules/raise, modules/readtokens0, modules/utimens:
53659         * modules/utimecmp, module/xnanosleep: New files.
53660         * modules/strftime: Add lib/strftime.h.
53661         Change include from <time.h> to "strftime.h".
53662         * modules/yesno: Add lib/yesno.h.
53663         * modules/backupfile: Remove lib/addext.c.
53664         * modules/euidaccess: Add stat-macros.h.
53665         * modules/canonicalize, modules/euidaccess,
53666         modules/filemode, modules/lchown, modules/makepath,
53667         modules/rmdir, modules/stat: Likewise.
53668
53669 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
53670
53671         Merge from tar.
53672         * lib/argp-help.c (make_hol, hol_append): Don't assume that
53673         SIZE_MAX is a valid preprocessor constant.
53674         (__argp_basename): Change from "#ifndef _LIBC"
53675         to "#ifndef __argp_short_program_name", so that
53676         we don't compile these functions for tar.
53677
53678         More merges from coreutils.
53679         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
53680         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
53681         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
53682         * lib/addext.c: Remove; no longer needed.
53683         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
53684         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
53685         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
53686         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
53687         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
53688         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
53689         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
53690         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
53691         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
53692         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
53693         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
53694         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
53695         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
53696         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
53697         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
53698         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
53699         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
53700         Import changes from coreutils.
53701
53702 2004-08-05  Simon Josefsson  <jas@extundo.com>
53703
53704         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
53705
53706 2004-08-05  Simon Josefsson  <jas@extundo.com>
53707
53708         * m4/getsubopt.m4: New file.
53709
53710 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
53711
53712         Merge from coreutils.
53713
53714         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
53715         * m4/getcwd-path-max.m4: New files.
53716
53717         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
53718         FILESYSTEM_PREFIX_LEN ->
53719         FILE_SYSTEM_PREFIX_LEN.
53720         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
53721         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
53722         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
53723         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
53724
53725         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
53726         prerequisite modules now handle the DOS stuff.
53727         Don't check for unistd.h.
53728
53729 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
53730
53731         Merge from coreutils.
53732
53733         * lib/.gdb-history: Remove; this doesn't belong here.
53734
53735         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
53736         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
53737         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
53738         * lib/getcwd.c: New files.
53739
53740         * lib/dirname.h: Include <stdbool.h>.
53741         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
53742         for consistency with POSIX terminology.  All uses changed.
53743         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
53744         (strip_trailing_slashes): Use bool for booleans.
53745         * lib/stripslash.c (strip_trailing_slashes): Likewise.
53746
53747         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
53748         sometimes returns a positive errno value even when it succeeds.
53749         (print_errno_message) [!LIBC]: Fall back on strerror if
53750         __strerror_r fails.
53751
53752         * lib/path-concat.c (mempcpy): Don't define if a system header defines
53753         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
53754         (longest_relative_suffix): New function.
53755         (path_concat): Use it.  Assume first argument is not NULL.
53756         Port to DOS.  Omit redundant separators.
53757         Report an error instead of returning NULL.
53758         Use mempcpy instead of memcpy.
53759         (xpath_concat): Remove: not declared or used.
53760
53761         * lib/same.h: Include <stdbool.h>
53762         (same_name): Return bool, not int.
53763         * lib/same.c (same_name): Likewise.
53764         (errno): Don't declare; we assume C89 or better now.
53765
53766         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
53767         if not already defined.
53768
53769         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
53770         * lib/dup-safer.c (errno): Likewise.
53771
53772 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
53773
53774         Merge from coreutils.
53775         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
53776         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
53777         * modules/path-concat: Don't depend on strdup.
53778
53779 2004-08-03  Simon Josefsson  <jas@extundo.com>
53780
53781         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
53782         * lib/progname.h: Don't include stdbool.h.
53783
53784 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
53785
53786         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
53787         * MODULES.html.sh (func_all_modules): Remove fatal.
53788
53789 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
53790
53791         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
53792
53793 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
53794
53795         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
53796         working.
53797
53798 2004-08-02  Simon Josefsson  <jas@extundo.com>
53799
53800         * lib/getsubopt.h: New file, with comments from Bruno Haible.
53801         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
53802         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
53803
53804 2004-08-01  Simon Josefsson  <jas@extundo.com>
53805
53806         * lib/xgetdomainname.c: Include stdlib.h, for free().
53807
53808 2004-07-19  Bruno Haible  <bruno@clisp.org>
53809
53810         * MODULES.html.sh (func_all_modules): Add dummy.
53811
53812 2004-07-16  Simon Josefsson  <jas@extundo.com>
53813
53814         * modules/dummy: New file.
53815
53816 2004-07-16  Simon Josefsson  <jas@extundo.com>
53817
53818         * lib/dummy.c: New file.
53819
53820 2004-07-16  Bruno Haible  <bruno@clisp.org>
53821
53822         * lib/backupfile.h: Add extern "C" for C++.
53823         * lib/closeout.h: Likewise.
53824         * lib/copy-file.h: Likewise.
53825         * lib/findprog.h: Likewise.
53826         * lib/full-write.h: Likewise.
53827         * lib/pathname.h: Likewise.
53828         * lib/progname.h: Likewise.
53829         * lib/stpcpy.h: Likewise.
53830         * lib/stpncpy.h: Likewise.
53831         * lib/strcase.h: Likewise.
53832         * lib/strstr.h: Likewise.
53833         * lib/xalloc.h: Likewise.
53834
53835         * lib/mbswidth.h: Add extern "C" for C++.
53836         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
53837
53838 2004-07-13  Robert Millan  <robertmh@gnu.org>
53839
53840         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
53841
53842 2004-07-09  Simon Josefsson  <jas@extundo.com>
53843
53844         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
53845         failed without this.)
53846
53847 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
53848
53849         * modules/chown (Files): Add lib/fchown-stub.c, since
53850         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
53851
53852 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
53853
53854         * lib/fchown-stub.c: New file.
53855
53856 2004-06-24  Jim Meyering  <jim@meyering.net>
53857
53858         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
53859
53860 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
53861
53862         * modules/argz: Omit "#include".
53863
53864         * MODULES.html.sh (func_all_modules): Add calloc, to match
53865         2004-06-01 addition of calloc module.
53866
53867 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
53868
53869         * m4/argz.m4: New file, which is autoupdated from libtool.
53870
53871 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
53872
53873         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
53874         libtool.
53875
53876 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
53877
53878         * config/srclist-update: Don't insist on "USA." before the
53879         close-comment, as libtool omits the period and puts the */ on a
53880         separate line.
53881         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
53882         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
53883
53884 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
53885
53886         * modules/argz: New file.
53887         * MODULES.html.sh (func_all_modules): Add argz.
53888
53889 2004-06-12  Jim Meyering  <jim@meyering.net>
53890         and  Paul Eggert  <eggert@cs.ucla.edu>
53891
53892         * modules/hash (Files): Add lib/xalloc.h.
53893         * modules/pipe (Depends-on): Add wait-process.
53894         * modules/stat (Depends-on): Add xalloc.
53895         * modules/userspec (Files): Add lib/userspec.h.
53896         * modules/xstrto
53897
53898         Upgrade from gettext-0.13.
53899         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
53900         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
53901         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
53902
53903 2004-06-10  Jim Meyering  <jim@meyering.net>
53904
53905         * lib/calloc.c: New file.
53906
53907 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
53908
53909         * lib/getdate.y (yylex): Allow space between sign and number.
53910         Problem reported by Dan Jacobson.
53911
53912 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
53913
53914         Merge from coreutils CVS.
53915
53916         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
53917         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
53918         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
53919         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
53920         xstrtol.m4: Fix copyright date and/or serial number.
53921
53922         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
53923         See if we need an fchown replacement.
53924         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
53925         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
53926         and use the replacement function if we detect either defect.
53927
53928         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
53929         gl_UTIMECMP.
53930
53931 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
53932         and  Jim Meyering  <jim@meyering.net>
53933
53934         Merge from coreutils CVS.
53935
53936         * lib/stat-macros.h: New file, with contents from file-type.h
53937         and coreutils' system.h.
53938         * lib/file-type.c: Include "stat-macros.h".
53939         * lib/file-type.h (file_type): Move all macro definitions to new file,
53940         stat-macros.h.
53941
53942         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
53943         Wrap old code with this conditional.
53944         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
53945         function that does not dereference symlinks.
53946         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
53947
53948         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
53949         dependency problems.
53950         (xreadlink): Accept new arg SIZE, for efficiency.
53951         All decls and uses changed.
53952         * lib/xreadlink.h: Include <stddef.h>, for size_t.
53953
53954         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
53955         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
53956
53957         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
53958         sysexits.h.
53959
53960 2004-06-01  Jim Meyering  <jim@meyering.net>
53961
53962         * m4/calloc.m4: New file.
53963
53964 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
53965
53966         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
53967         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
53968         Also, fix a typo in a diagnostic.
53969
53970 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
53971
53972         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
53973         or AC_FUNC_REALLOC.
53974
53975 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
53976
53977         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
53978         macros to be defined.
53979         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
53980         the allocator returns NULL because the requested size is zero.
53981
53982 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
53983
53984         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
53985         var.  Add comment explaining why libc still defines it.  This
53986         merges the following patch from glibc:
53987         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
53988
53989 2004-05-20  Andreas Schwab  <schwab@suse.de>
53990
53991         * m4/free.m4: Replace free if it not known to work, not the other
53992         way round.
53993
53994 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
53995
53996         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
53997         present in glibc since revision 1.1 of this file.
53998         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
53999         obstack_alignment_mask, obstack_alloc, obstack_base,
54000         obstack_blank, obstack_blank_fast, obstack_chunk_size,
54001         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
54002         obstack_grow0, obstack_init, obstack_int_grow,
54003         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
54004         obstack_next_free, obstack_object_size, obstack_ptr_grow,
54005         obstack_ptr_grow_fast, obstack_room): Remove declarations of
54006         nonexistent functions.
54007
54008 2004-05-18  Karl Berry  <karl@gnu.org>
54009
54010         * config/srclist.txt: break link for vasnprintf.c.
54011
54012 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
54013
54014         Port obstack to the AS/400, where pointers are 16 bytes wide and
54015         you cannot cast an integer to a valid pointer.  This patch is
54016         currently waiting to be integrated into glibc; see
54017         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
54018
54019         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
54020         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
54021         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
54022         (struct obstack): temp member is now a union of a pointer and
54023         an integer, instead of an integer.  All integer uses changed.
54024         This does not affect the physical layout of struct obstack,
54025         except on hosts (like the AS/400) where the size or alignment of
54026         void * is greater than that of ptrdiff_t.
54027         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
54028         __STDC__)]: Store temporary in pointer member of union, not
54029         integer member.
54030         * lib/obstack.c: Include <stddef.h>, for offsetof.
54031         (struct fooalign): Remove; it doesn't need a name.
54032         (union fooround): Change double to long double, and add void *.
54033         (DEFAULT_ALIGNMENT): Use offsetof to compute.
54034         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
54035         not a macro.  Hence the values are always int; so remove all
54036         casts-to-int in uses.
54037
54038 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
54039
54040         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
54041         we can get this patch merged into glibc.
54042
54043 2004-05-17  Derek R. Price  <derek@ximbiot.com>
54044             Paul Eggert  <eggert@cs.ucla.edu>
54045
54046         * m4/argp: Depend on alloca.
54047
54048 2004-05-17  Derek R. Price  <derek@ximbiot.com>
54049             Paul Eggert  <eggert@cs.ucla.edu>
54050
54051         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
54052         freecoding.
54053
54054 2004-05-17  Bruno Haible  <bruno@clisp.org>
54055
54056         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
54057         precision that consists of a '.' followed by an empty digit string.
54058         Patch by Tor Lillqvist <tml@iki.fi>.
54059
54060 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
54061
54062         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
54063         for backward compatibility with older code.  We need our own
54064         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
54065         it under some other name, and our alloca.h will define it.
54066
54067 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
54068             Derek Price  <derek@ximbiot.com>
54069
54070         * lib/alloca.c: Include <alloca.h>, to get our interface.
54071         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
54072         include <alloca.h> first.  Use C89 prototype for alloca; this
54073         requires including <stddef.h> for size_t.  Use extern "C" if C++.
54074         Use #elif for simplicity, since we can assume C89 now.
54075         Don't try to source the system alloca.h since it will not be found
54076         and to prevent recursively including its replacement.
54077         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
54078         * lib/regex.c: Likewise.
54079
54080 2004-05-16  Derek Price  <derek@ximbiot.com>
54081             Paul Eggert  <eggert@cs.ucla.edu>
54082
54083         getline cleanup.  This changes the getndelim2 API: both order of
54084         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
54085         no delimiter).
54086
54087         * lib/getline.c: Don't include stddef.h or stdio.h, since our
54088         interface does that.
54089         (getline): Always use getdelim, so that we don't have two
54090         copies of this code.
54091         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
54092         if available.
54093         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
54094         (GETNDELIM2_MAXIMUM): New macro.
54095         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
54096         instead of the old practice of delim2==0.  All callers changed.
54097         Return -1 on overflow, instead of returning junk.
54098         Do not set *linesize unless allocation succeeds.
54099         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
54100         that we include sys/types.h.
54101         * lib/getnline.h: Likewise.
54102         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
54103         (getndelim2): Reorder arguments.
54104         * lib/getnline.c (getnline, getndelim):
54105         Don't discard the NMAX argument.
54106         (getnline): Invoke getndelim, to avoid code duplication.
54107         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
54108         of (size_t) -1 by callers of the getnline family.
54109
54110 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
54111
54112         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
54113         Check for gettimeofday.
54114         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
54115         Check for settimeofday, stime.
54116
54117 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
54118
54119         * lib/nanosleep.c (suspended): Change its type from int to
54120         sig_atomic_t volatile.
54121         (first_call): Make it private to rpl_nanosleep, and have it
54122         be zero initially as that's a bit faster.
54123         (my_usleep): Round up fractional times instead of truncating them,
54124         as this is the usual meaning for 'sleep'.
54125
54126         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
54127         doesn't work.
54128         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
54129         (ENOSYS): Define if not defined.
54130         (settime): Fall back on stime if it exists and settimeofday fails.
54131         But don't bother with fallbacks if a method fails with errno == EPERM.
54132
54133 2004-05-11  Jim Meyering  <jim@meyering.net>
54134
54135         Prior to this change, the save_cwd caller required read access to the
54136         current directory on most systems (ones with the fchdir function).
54137
54138         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
54139         fails, try write-only, and finally, resort to using xgetcwd.
54140
54141 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
54142
54143         * lib/obstack.c, obstack.h: Import changes from libc.
54144
54145 2004-04-28  Bruno Haible  <bruno@clisp.org>
54146
54147         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
54148         also implicitly appends .exe to executables.
54149         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
54150         accepts Windows pathnames.
54151         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
54152         Treat Cygwin like Windows, since it now accepts Windows pathnames.
54153         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
54154         Treat Cygwin like Windows, since it now accepts Windows pathnames.
54155         Reported by Derek Robert Price <derek@ximbiot.com>.
54156
54157 2004-04-21  Karl Berry  <karl@gnu.org>
54158
54159         * config/srclist.txt (localcharset.c): break sync.
54160
54161 2004-04-20  Paul Eggert  <eggert@twinsun.com>
54162
54163         * m4/host-os.m4: Add a copyright notice.
54164
54165 2004-04-20  Jim Meyering  <jim@meyering.net>
54166
54167         Change UTILS_ to gl_ in AC_DEFINE'd names.
54168         Change utils_- and jm_-prefixed variables, too.
54169         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
54170         UTILS_FUNC_MKDIR_TRAILING_SLASH.
54171         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
54172
54173         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
54174         Don't emit trailing blanks.
54175         Also rename jm_-prefixed variables to have gl_ prefix.
54176
54177         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
54178         Also rename jm_-prefixed variables to have gl_ prefix.
54179
54180         * m4/jm-macros.m4: Reflect the renamings.
54181         * m4/prereq.m4: Likewise.
54182
54183 2004-04-20  Jim Meyering  <jim@meyering.net>
54184
54185         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
54186         memory.
54187
54188 2004-04-20  Jim Meyering  <jim@meyering.net>
54189             Bruno Haible  <bruno@clisp.org>
54190
54191         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
54192         memory when realloc fails.
54193
54194 2004-04-19  Jim Meyering  <jim@meyering.net>
54195
54196         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
54197         now that readutmp.c may call `free (0)'.
54198
54199 2004-04-19  Bruno Haible  <bruno@clisp.org>
54200
54201         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
54202         * m4/inttypes_h.m4: Likewise.
54203         * m4/stdint_h.m4: Likewise.
54204         * m4/intmax_t.m4: Likewise.
54205         * m4/uintmax_t.m4: Likewise.
54206
54207 2004-04-18  Jim Meyering  <jim@meyering.net>
54208
54209         * m4/prereq.m4: Don't forbid jm_ prefix.
54210
54211         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
54212         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
54213         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
54214         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
54215         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
54216         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
54217         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
54218         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
54219         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
54220         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
54221         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
54222         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
54223         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
54224         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
54225         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
54226         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
54227         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
54228         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
54229         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
54230
54231 2004-04-18  Jim Meyering  <jim@meyering.net>
54232
54233         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
54234         failure, don't leak memory and do call END_UTMP_ENT.
54235
54236 2004-04-16  Jim Meyering  <jim@meyering.net>
54237
54238         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
54239         coreutils' stat program.
54240         (gl_PREREQ): Don't require jm_PREREQ_STAT.
54241
54242 2004-04-11  Paul Eggert  <eggert@twinsun.com>
54243
54244         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
54245         C89.
54246         (CHAR_BIT): Remove, since we assume C89.
54247         Include <stdint.h> if available, as per current Autoconf CVS advice.
54248
54249 2004-03-31  Jim Meyering  <jim@meyering.net>
54250
54251         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
54252         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
54253         * m4/xalloc.m4: Likewise.
54254
54255 2004-03-30  Paul Eggert  <eggert@twinsun.com>
54256
54257         Merge from coreutils.
54258
54259         * m4/inttostr.m4: New file.
54260         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
54261         Require AM_STDBOOL_H and gl_TIMESPEC instead.
54262         Require gl_CLOCK_TIME.
54263         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
54264
54265 2004-03-30  Paul Eggert  <eggert@twinsun.com>
54266
54267         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
54268         not bool, to be more consistent with Unix conventions.
54269         Suggested by Bruno Haible.
54270
54271         Merge from coreutils.
54272
54273         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
54274         * lib/umaxtostr.c: New files.
54275
54276         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
54277         the usual <time.h> dance.
54278         (get_date): Change signature to support fractional time stamps.
54279         All callers changed.
54280         * lib/getdate.y: Include "getdate.h" first, as we can now
54281         assume C89 and don't need to worry about 'const'.
54282         Similarly, include "unlocked-io.h" near start, not in middle.
54283         Include <limits.h>.
54284         (textint.value): Use long int rather than int.
54285         (textint.digits): Use size_t rather than int.
54286         (BILLION, LOG10_BILLION): New constants.
54287         (parser_control): New member rel_ns.  Members day_ordinal,
54288         time_zone, month, day, hour, minutes, rel_year, rel_month,
54289         rel_day, rel_hour, rel_minutes, rel_seconds
54290         are now long int, not int.  Member seconds is now struct timespec,
54291         not int.  New member timespec_seen.  Members dates_seen, days_seen,
54292         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
54293         not int.
54294         (%union.intval): Now long int, not int.
54295         New member timespec.
54296         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
54297         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
54298         (spec): Now is a timespec or an item list.
54299         (timespec, items): New nonterminals.
54300         (time, rel, relunit, number, get_date):
54301         Add support for fractional seconds.
54302         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
54303         (gmtime, localtime, mktime): Remove decls; not needed with C89.
54304         (to_hour): First arg is now long int, not int.
54305         (to_year): Returns long int, not int.
54306         Don't treat year -70 like 70.
54307         (tm_diff): Returns long int, not int.
54308         (lookup_word): Use bool instead of int when appropriate.
54309         (yylex): Use size_t for count, not int.
54310         Detect overflow when parsing large integer constants.
54311         Add support for fractions.
54312         (get_date): Make pointers 'const' if possible.
54313         Use more-portable code to detect integer overflow.
54314         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
54315         Don't use ctime; it's not reliable if the year has >4 digits.
54316
54317         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
54318         This is for compatibility with BSD.
54319
54320         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
54321         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
54322         From coreutils' system.h.
54323
54324         * lib/userspec.c: Don't include "posixver.h".
54325         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
54326         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
54327         compatible extension.  Simplify code by removing a boolean int
54328         that was always nonzero if a string was nonnull.
54329
54330 2004-03-30  Jim Meyering  <jim@meyering.net>
54331
54332         Merge from coreutils.
54333
54334         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
54335         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
54336         on some systems one must include <grp.h> before it.
54337         Reported by Christian Krackowizer.
54338
54339 2004-03-30  Jim Meyering  <jim@meyering.net>
54340
54341         Merge from coreutils.
54342
54343         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
54344
54345         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
54346         an empty input stream.
54347
54348         * lib/readtokens.c: Include <stdbool.h>.
54349         (readtoken): Use `size_t' rather than int/long.
54350         All callers adjusted.
54351         Use `bool' rather than `int' where appropriate.
54352         Use memset rather than an explicit loop.
54353         Use x2nrealloc rather than xrealloc.
54354         Allow the use of `\0' as a delimiter.
54355         (readtokens): Likewise.
54356         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
54357
54358 2004-03-30  Jim Meyering  <jim@meyering.net>
54359
54360         * m4/realloc.m4: Remove file, since now it does no more than
54361         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
54362         the `configure.ac' section of module/realloc.
54363         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
54364
54365 2004-03-30  Bruno Haible  <bruno@clisp.org>
54366
54367         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
54368         nonnull.
54369
54370 2004-03-29  Paul Eggert  <eggert@twinsun.com>
54371
54372         Merge changes to getloadavg.c from coreutils and Emacs.
54373
54374         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
54375         Define to an expression, not to the empty string.
54376         Include cloexec.h and xalloc.h.
54377         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
54378         Use set_cloexec_flag rather than rolling our own.
54379         * lib/cloexec.c, lib/cloexec.h: New files.
54380
54381 2004-03-29  Paul Eggert  <eggert@twinsun.com>
54382
54383         * m4/cloexec.m4: New file.
54384
54385 2004-03-18  Paul Eggert  <eggert@twinsun.com>
54386
54387         * lib/getopt.h: Sync with libc CVS.
54388
54389 2004-03-18  Paul Eggert  <eggert@twinsun.com>
54390             Bruno Haible  <bruno@clisp.org>
54391
54392         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
54393         mbswidth.
54394
54395 2004-03-18  Paul Eggert  <eggert@twinsun.com>
54396             Bruno Haible  <bruno@clisp.org>
54397
54398         * lib/mbswidth.h: Include <wchar.h> only if
54399         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
54400         <wchar.h>.
54401         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
54402
54403 2004-03-09  Paul Eggert  <eggert@twinsun.com>
54404
54405         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
54406         Sync with libc CVS.
54407         * lib/getopt_int.h: New file, also synced from libc.
54408
54409 2004-03-09  Paul Eggert  <eggert@twinsun.com>
54410
54411         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
54412         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
54413         Bring back getopt.c, getopt.h, getopt1.c.
54414
54415 2004-03-07  Paul Eggert  <eggert@twinsun.com>
54416
54417         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
54418         All uses changed.  Check for sa_sigaction member; this fixes
54419         a bug first reported by Jason Andrade in
54420         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
54421
54422 2004-03-07  Paul Eggert  <eggert@twinsun.com>
54423
54424         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
54425         '#if' expressions.  Unlike the code it replaces, it does not
54426         depend on (defined _SC_PAGESIZE).  However, it does depend on
54427         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
54428         first reported by Jason Andrade in
54429         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
54430
54431 2004-02-25  Simon Josefsson  <jas@extundo.com>
54432
54433         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
54434
54435 2004-02-25  Simon Josefsson  <jas@extundo.com>
54436
54437         * lib/strdup.h: New file.
54438         * lib/strdup.c: Include it.
54439         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
54440         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
54441
54442 2004-02-23  Karl Berry  <karl@gnu.org>
54443
54444         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
54445         (from fencepost.gnu.org:/gd/gnuorg).
54446
54447 2004-02-23  Karl Berry  <karl@gnu.org>
54448
54449         * config/srclistvars.sh (GNUORG) [karl]: redefine.
54450         * config/srclist.txt: add maintain/standards documents.
54451
54452 2004-02-18  Bruno Haible  <bruno@clisp.org>
54453
54454         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
54455         Reported by Derek Robert Price <derek@ximbiot.com>.
54456
54457 2004-02-16  Karl Berry  <karl@gnu.org>
54458
54459         * config/mkinstalldirs, install-sh: update from automake.
54460
54461 2004-02-06  Karl Berry  <karl@gnu.org>
54462
54463         * m4/po.m4: update from gettext 0.14.1.
54464
54465 2004-02-06  Karl Berry  <karl@gnu.org>
54466
54467         * lib/config.charset: update from gettext 0.14.1.
54468
54469 2004-02-05  Paul Eggert  <eggert@twinsun.com>
54470
54471         Add comments and code, prompted by suggestions from Bruno Haible
54472         for sh-quote.
54473         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
54474         describing the enum quoting_style values.
54475         * lib/quotearg.c (quotearg_alloc): New function.
54476         (quotearg_buffer_restyled): Treat lone { and } as special.
54477         Treat = as special.  Work around bug with older shells
54478         that "see" a '\' that is really the 2nd byte of a multibyte char.
54479         Quote empty string with shell_quoting_style.
54480
54481 2004-02-03  Bruno Haible  <bruno@clisp.org>
54482
54483         * m4/pipe.m4: New file, from GNU gettext.
54484
54485 2004-02-03  Bruno Haible  <bruno@clisp.org>
54486
54487         * lib/pipe.h: New file, from GNU gettext.
54488         * lib/pipe.c: New file, from GNU gettext.
54489
54490 2004-01-27  Bruno Haible  <bruno@clisp.org>
54491
54492         * m4/execute.m4: New file, from GNU gettext.
54493
54494 2004-01-27  Bruno Haible  <bruno@clisp.org>
54495
54496         * lib/execute.h: New file, from GNU gettext.
54497         * lib/execute.c: New file, from GNU gettext.
54498         * lib/w32spawn.h: New file, from GNU gettext.
54499
54500 2004-01-24  Paul Eggert  <eggert@twinsun.com>
54501
54502         Merge from diffutils.
54503
54504         * lib/file-type.c (file_type): Add typed memory objects.
54505         * lib/file-type.h (S_TYPEISTMO): New macro.
54506
54507         * lib/c-stack.h (c_stack_action): Remove argv argument.
54508         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
54509         (die): Don't calculate message unless segv_action returns.
54510         (get_stack_location, min_address_from_argv, max_address_from_argv,
54511         volatile stack_base, volatile_stack_size): Remove.
54512         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
54513         that every segmentation violation is a stack overflow.  (Ouch!)
54514         See Debian bug 136249 (still outstanding) for more info about why
54515         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
54516
54517 2004-01-24  Paul Eggert  <eggert@twinsun.com>
54518
54519         Exit-status fix from coreutils.
54520
54521         Use exit_failure consistently in place of EXIT_FAILURE,
54522         so that program exit statuses are consistent on failure.
54523
54524         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
54525         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
54526         * lib/argmatch.h: Comment fix to match the above.
54527         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
54528         Now a macro referring to exit_failure, instead of a separate
54529         variable.  Include "exitfail.h" to get it.
54530         * lib/xstrtol.h: Include "exitfail.h".
54531         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
54532
54533         * lib/long-options.c (parse_long_options): Use prototype
54534         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
54535         for clarity.
54536
54537 2004-01-21  Jim Meyering  <jim@meyering.net>
54538
54539         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
54540         so as not to conflict with a different-sized __mktime_internal
54541         function in GNU libc.
54542         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
54543         Problem building statically-linked `ls' reported by Michael Brunnbauer.
54544
54545 2004-01-20  Karl Berry  <karl@gnu.org>
54546
54547         * config/config.guess: update from config.
54548
54549         * config/srclistvars.sh: GNUWWWLICENSES for karl.
54550
54551 2004-01-20  Bruno Haible  <bruno@clisp.org>
54552
54553         Safer stack allocation.
54554         * lib/setenv.c: Include allocsa.h.
54555         (alloca): Remove fallback definition.
54556         (freea): Remove macro.
54557         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
54558         instead of freea.
54559
54560 2004-01-20  Bruno Haible  <bruno@clisp.org>
54561
54562         * m4/eealloc.m4: New file, from GNU gettext.
54563
54564 2004-01-20  Bruno Haible  <bruno@clisp.org>
54565
54566         * m4/allocsa.m4: New file, from GNU gettext.
54567
54568 2004-01-20  Bruno Haible  <bruno@clisp.org>
54569
54570         * lib/xallocsa.h: New file, from GNU gettext.
54571         * lib/xallocsa.c: New file, from GNU gettext.
54572
54573 2004-01-20  Bruno Haible  <bruno@clisp.org>
54574
54575         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
54576
54577 2004-01-20  Bruno Haible  <bruno@clisp.org>
54578
54579         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
54580         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
54581         specially.
54582
54583 2004-01-20  Bruno Haible  <bruno@clisp.org>
54584
54585         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
54586         patch.
54587
54588 2004-01-20  Bruno Haible  <bruno@clisp.org>
54589
54590         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
54591
54592 2004-01-20  Bruno Haible  <bruno@clisp.org>
54593
54594         * lib/eealloc.h: New file.
54595
54596 2004-01-20  Bruno Haible  <bruno@clisp.org>
54597
54598         * lib/binary-io.h: Avoid warnings on Cygwin.
54599
54600 2004-01-20  Bruno Haible  <bruno@clisp.org>
54601
54602         * lib/allocsa.h: New file, from GNU gettext.
54603         * lib/allocsa.c: New file, from GNU gettext.
54604
54605 2004-01-18  Karl Berry  <karl@gnu.org>
54606
54607         * doc/gpl.texi, doc/lgpl.texi: new files.
54608
54609 2004-01-18  Karl Berry  <karl@gnu.org>
54610
54611         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
54612         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
54613
54614 2004-01-15  Paul Eggert  <eggert@twinsun.com>
54615
54616         Merge from coreutils.
54617
54618         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
54619         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
54620         (gl_DEFAULT_POSIX2_VERSION): Move
54621         the documentation from 'configure' into 'config.hin',
54622         so that 'configure --help' isn't burdened by it and
54623         we don't have to worry about its formatting there.
54624         Reword the documentation so that it's more succinct
54625         and can be run together into a single paragraph.
54626         * m4/same.m4 (gl_SAME): Check for pathconf.
54627
54628 2004-01-15  Paul Eggert  <eggert@twinsun.com>
54629
54630         Merge from coreutils.
54631
54632         * lib/posixver.c: Include posixver.h.
54633
54634         * lib/same.c: Include <stdbool.h>, <limits.h>.
54635         (_POSIX_NAME_MAX): Define if not defined.
54636         (MIN): New macro.
54637         (same_name): If file names are silently truncated, report
54638         that the file names are the same if they are the same after
54639         the silent truncation.
54640
54641         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
54642         conversion function.
54643         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
54644         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
54645         longer needed.
54646
54647 2004-01-15  Jim Meyering  <jim@meyering.net>
54648
54649         Merge from coreutils.
54650
54651         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
54652         if no library is required.
54653         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
54654         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
54655         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
54656         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
54657         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
54658         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
54659         value, $ac_cv_search_crypt, if it's "none required".
54660         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
54661         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
54662         not gl_FUNC_GETLOADAVG.
54663         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
54664         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
54665
54666 2004-01-15  Jim Meyering  <jim@meyering.net>
54667
54668         Merge from coreutils.
54669
54670         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
54671         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
54672         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
54673
54674         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
54675         optional configure-time default.
54676
54677         * lib/version-etc.c (version_etc_copyright): Update copyright date.
54678
54679         * lib/xreadlink.c (xreadlink): Correct outdated comment.
54680
54681 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
54682
54683         Merge from coreutils.
54684
54685         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
54686         value, $ac_cv_search_nanosleep, if it's "none required".
54687
54688 2004-01-14  Paul Eggert  <eggert@twinsun.com>
54689
54690         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
54691         with like-named macro in fnmatch.c.
54692         (EXT): Use an internal constant instead.
54693
54694         Merge fnmatch patches from glibc.
54695         * lib/fnmatch.c (mbsinit): Remove define.
54696         Add libc_hidden_ver (__fnmatch, fnmatch).
54697         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
54698         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
54699
54700 2004-01-14  Karl Berry  <karl@gnu.org>
54701
54702         * config/install-sh: update from automake.
54703
54704 2004-01-13  Karl Berry  <karl@gnu.org>
54705
54706         * config/install-sh: update from automake.
54707
54708 2004-01-09  Karl Berry  <karl@gnu.org>
54709
54710         * config/install-sh: update from automake.
54711
54712 2004-01-05  Karl Berry  <karl@gnu.org>
54713
54714         * config/config.{sub,guess}: update from config.
54715
54716 2003-12-31  Karl Berry  <karl@gnu.org>
54717
54718         * config/depcomp: update from automake.
54719
54720 2003-12-14  Karl Berry  <karl@gnu.org>
54721
54722         * lib/config.charset: update from gettext-runtime.
54723
54724 2003-12-03  Paul Eggert  <eggert@twinsun.com>
54725
54726         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
54727         Bug reported by Alfred M. Szmidt.
54728
54729 2003-12-03  Bruno Haible  <bruno@clisp.org>
54730
54731         * m4/gettext.m4: Upgrade from gettext-0.13.
54732         * m4/po.m4: Upgrade from gettext-0.13.
54733         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
54734         * m4/intmax.m4: New file, from gettext-0.13.
54735         * m4/printf-posix.m4: New file, from gettext-0.13.
54736
54737 2003-11-29  Karl Berry  <karl@gnu.org>
54738
54739         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
54740
54741 2003-11-25  Paul Eggert  <eggert@twinsun.com>
54742             Bruno Haible  <bruno@clisp.org>
54743
54744         * lib/printf-parse.h: Don't include sys/types.h.
54745         (ARG_NONE): New macro.
54746         (char_directive): Change type of *arg_index fields to size_t.
54747         * lib/printf-parse.c: Don't include sys/types.h.
54748         (SSIZE_MAX): Remove macro.
54749         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
54750         Remove unnecessary overflow check.
54751         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
54752         fields.
54753
54754 2003-11-25  Bruno Haible  <bruno@clisp.org>
54755
54756         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
54757
54758 2003-11-25  Bruno Haible  <bruno@clisp.org>
54759
54760         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
54761         gt_TYPE_SSIZE_T.
54762
54763 2003-11-24  Paul Eggert  <eggert@twinsun.com>
54764
54765         * modules/alloca: Remove dependency on xalloc.
54766
54767 2003-11-24  Paul Eggert  <eggert@twinsun.com>
54768
54769         * lib/alloca.c: Remove dependency on xalloc module.
54770         (xalloc_die): Remove.
54771         (memory_full) [!defined emacs]: New macro.
54772         [!defined emacs]: Don't include xalloc.h.
54773         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
54774         address arithmetic overflows.  Change datatypes a bit to avoid
54775         unnecessary casts.
54776
54777 2003-11-22  Jim Meyering  <jim@meyering.net>
54778
54779         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
54780         s/size/size_t/.
54781
54782 2003-11-21  Karl Berry  <karl@gnu.org>
54783
54784         * config/config.{sub,guess}: update from config.
54785
54786 2003-11-18  Karl Berry  <karl@gnu.org>
54787
54788         * config/config.{sub,guess}: update from config.
54789
54790         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
54791
54792 2003-11-17  Paul Eggert  <eggert@twinsun.com>
54793
54794         * README: Mention that S+T cannot overflow if S is the size of
54795         an existing object and T is sufficiently small.
54796
54797 2003-11-17  Jim Meyering  <jim@meyering.net>
54798
54799         On systems without utime and without a utimes function capable of
54800         dealing with a NULL struct utimbuf* argument, this utime replacement
54801         could -- in unusual circumstances -- leak a file descriptor.
54802         * lib/utime.c: Include <unistd.h> and <errno.h>.
54803         (utime_null): Be sure to close `fd' and to preserve errno.
54804         Reported by Geoff Collyer via Arnold Robbins.
54805
54806 2003-11-17  Bruno Haible  <bruno@clisp.org>
54807
54808         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
54809         (Depends-on): Add xsize.
54810
54811 2003-11-17  Bruno Haible  <bruno@clisp.org>
54812
54813         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
54814
54815 2003-11-17  Bruno Haible  <bruno@clisp.org>
54816
54817         * lib/vasnprintf.c (alloca): Remove fallback definition.
54818         (freea): Remove definition.
54819         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
54820         Reported by Paul Eggert.
54821
54822 2003-11-16  Paul Eggert  <eggert@twinsun.com>
54823             Bruno Haible  <bruno@clisp.org>
54824
54825         Protect against address arithmetic overflow.
54826         * lib/printf-args.h: Include stddef.h.
54827         (arguments): Change type of field 'count' to size_t.
54828         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
54829         'unsigned int' where appropriate.
54830         * lib/printf-parse.h: Include sys/types.h.
54831         (char_directive): Change type of *arg_index fields to ssize_t.
54832         (char_directives): Change type of fields 'count', max_*_length to
54833         size_t.
54834         * lib/printf-parse.c: Include sys/types.h and xsize.h.
54835         (SSIZE_MAX): Define fallback value.
54836         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
54837         instead of 'int' where appropriate. Check a_allocated, d_allocated
54838         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
54839         * lib/vasnprintf.c: Include xsize.h.
54840         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
54841         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
54842         overflow. Avoid wraparound when converting a width or precision from
54843         decimal to binary.
54844
54845 2003-11-16  Bruno Haible  <bruno@clisp.org>
54846
54847         Update from GNU gettext.
54848         * lib/printf-parse.c: Generalize to it can be compiled for wide
54849         strings.
54850         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
54851         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
54852         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
54853         SNPRINTF): New macros.
54854         Don't include <alloca.h> if the file is used inside libintl.
54855         (local_wcslen): New function, for Solaris 2.5.1.
54856         (VASNPRINTF): Use it instead of wcslen.
54857
54858 2003-11-16  Bruno Haible  <bruno@clisp.org>
54859
54860         * lib/xsize.h (xmax): New function.
54861         (xsum, xsum3, xsum4): Declare as "pure" functions.
54862
54863 2003-11-12  Paul Eggert  <eggert@twinsun.com>
54864
54865         * modules/xalloc (Files): Undo latest change, since xalloc.h
54866         no longer needs SIZE_MAX or PTRDIFF_MAX.
54867
54868 2003-11-12  Paul Eggert  <eggert@twinsun.com>
54869
54870         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
54871         gl_PTRDIFF_MAX.
54872
54873 2003-11-12  Paul Eggert  <eggert@twinsun.com>
54874
54875         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
54876         "return", to pacify some unknown compiler.  Problem reported
54877         by Joerg Schilling.
54878
54879 2003-11-12  Paul Eggert  <eggert@twinsun.com>
54880
54881         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
54882         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
54883         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
54884         heuristic is just as accurate as far as we know, and it removes a
54885         dependency on size_max.m4 and ptrdiff_max.m4.
54886
54887 2003-11-11  Bruno Haible  <bruno@clisp.org>
54888
54889         * modules/xsize (Files): Add m4/size_max.m4.
54890         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
54891
54892 2003-11-11  Bruno Haible  <bruno@clisp.org>
54893
54894         * m4/size_max.m4: New file.
54895         * m4/ptrdiff_max.m4: New file.
54896         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
54897         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
54898         (gl_XALLOC): Invoke it.
54899
54900 2003-11-11  Bruno Haible  <bruno@clisp.org>
54901
54902         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
54903         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
54904         defined.
54905
54906 2003-11-10  Paul Eggert  <eggert@twinsun.com>
54907
54908         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
54909         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
54910         rejected some allocations of exactly SIZE_MAX - 2 bytes.
54911         From Bruno Haible.
54912         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
54913         not (size_t) -1, since it's defined here.
54914
54915 2003-11-09  Karl Berry  <karl@gnu.org>
54916
54917         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
54918
54919 2003-11-06  Paul Eggert  <eggert@twinsun.com>
54920
54921         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
54922         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
54923         Reject sizes of exactly SIZE_MAX bytes.
54924         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
54925         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
54926
54927 2003-11-05  Bruno Haible  <bruno@clisp.org>
54928
54929         * lib/xsize.h: Include limits.h, to avoid a possible collision with
54930         SIZE_MAX defined in <limits.h> on Solaris.
54931
54932 2003-11-04  Jim Meyering  <jim@meyering.net>
54933
54934         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
54935         variable names, rather than @VAR@.
54936         * modules/poll: Likewise.
54937
54938 2003-11-04  Bruno Haible  <bruno@clisp.org>
54939
54940         * modules/xsize: New file.
54941         * modules/linebreak: Depend on xsize.
54942         * MODULES.html.sh (func_all_modules): Add xsize.
54943
54944 2003-11-04  Bruno Haible  <bruno@clisp.org>
54945
54946         * m4/xsize.m4: New file.
54947
54948 2003-11-04  Bruno Haible  <bruno@clisp.org>
54949
54950         * lib/xsize.h: New file.
54951         * lib/linebreak.c: Include xsize.h.
54952         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
54953         argument for overflow.
54954         Suggested by Paul Eggert.
54955
54956 2003-11-03  Karl Berry  <karl@gnu.org>
54957
54958         * config/config.{guess,sub}: update from config.
54959
54960 2003-11-03  Jim Meyering  <jim@meyering.net>
54961
54962         * modules/userspec (lib_SOURCES): Add userspec.h.
54963         (Include): Add "userspec.h".
54964         Improve description.
54965
54966 2003-11-03  Jim Meyering  <jim@meyering.net>
54967
54968         * lib/userspec.c: Include "userspec.h".
54969         * lib/userspec.h: New file.
54970
54971 2003-11-03  Bruno Haible  <bruno@clisp.org>
54972
54973         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
54974
54975 2003-11-03  Bruno Haible  <bruno@clisp.org>
54976
54977         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
54978         available, to avoid (extremely rare) race condition.
54979         Suggested by Paul Eggert.
54980
54981 2003-11-02  Karl Berry  <karl@gnu.org>
54982
54983         * config/srclist.txt (vasprintf.c): sync broken, sigh.
54984
54985 2003-10-31  Paul Eggert  <eggert@twinsun.com>
54986
54987         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
54988         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
54989         (read_filesystem_list): Set and use me_type_malloced.
54990         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
54991         whatever the type happens to be), for brevity and consistency.
54992         Check for size calculation overflow on Alphas running OSF/1.
54993
54994 2003-10-31  Jim Meyering  <jim@meyering.net>
54995
54996         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
54997
54998         * lib/linebuffer.c: Include <string.h> for declaration of memset.
54999
55000 2003-10-30  Paul Eggert  <eggert@twinsun.com>
55001             Bruno Haible  <bruno@clisp.org>
55002
55003         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
55004         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
55005
55006 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
55007
55008         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
55009         netbsd*-gnu*.  Suggested by Robert Millan.
55010
55011 2003-10-29  Paul Eggert  <eggert@twinsun.com>
55012
55013         * modules/group-member: Depend on stdbool.
55014
55015 2003-10-29  Paul Eggert  <eggert@twinsun.com>
55016
55017         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
55018
55019 2003-10-29  Paul Eggert  <eggert@twinsun.com>
55020
55021         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
55022         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
55023         after the 'gnu' in these cases.  This fixes some bugs in the
55024         previous change, and is based on suggestions by Robert Millan.
55025
55026 2003-10-29  Paul Eggert  <eggert@twinsun.com>
55027
55028         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
55029         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
55030         no longer needed.
55031         * lib/quotearg.c (quotearg_n_options): Use it.
55032         * lib/group-member.c: Include <stdbool.h>.
55033         (free_group_info): Arg is now const *; don't free arg.
55034         (get_group_info): Now returns bool and accepts struct group_info *,
55035         rather than returning a malloc'ed struct group_info *.
55036         All uses changed.  Check for overflow in internal size calculation.
55037
55038         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
55039         rather than xmalloc/xrealloc.
55040         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
55041         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
55042         conformance bug: the old code used a pointer after freeing the
55043         storage that it addressed.
55044         * lib/hash.c (hash_initialize): Simplify the code by using
55045         xalloc_oversized rather than doing it by hand.
55046         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
55047         the buffer preserved.  Use free and xmalloc instead.
55048         * lib/quotearg.c (quotearg_n_options): Likewise.
55049         Use a simpler test for size overflow.  Don't use xalloc_oversized
55050         because unsigned int might be wider than size_t (!); this suggests
55051         that we should switch from unsigned int to size_t for slot numbers.
55052
55053 2003-10-28  Paul Eggert  <eggert@twinsun.com>
55054
55055         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
55056         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
55057         NetBSD kernels.  Requested by Richard Stallman.
55058
55059 2003-10-27  Paul Eggert  <eggert@twinsun.com>
55060
55061         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
55062         to allocate the returned structure.  Do not allocate a subarray,
55063         as x2nrealloc will do that.
55064         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
55065         instead of xnrealloc.
55066         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
55067
55068 2003-10-27  Bruno Haible  <bruno@clisp.org>
55069
55070         * lib/stdbool_.h: Better support for BeOS.
55071
55072 2003-10-26  Paul Eggert  <eggert@twinsun.com>
55073
55074         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
55075         now uses inline.
55076
55077 2003-10-26  Paul Eggert  <eggert@twinsun.com>
55078
55079         * lib/xalloc.h (xalloc_oversized): New static inline function, for
55080         callers that want to do their own size-overflow checking.  Include
55081         <stdbool.h>, since xalloc_oversized returns bool.
55082         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
55083         to use xalloc_oversized.
55084
55085         Add two functions x2realloc, x2nrealloc, for programs that grow
55086         arrays dynamically by doubling their sizes.
55087         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
55088         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
55089         New functions.
55090
55091         Port to C99 semantics for 'inline' of external functions.
55092         Bug reported by Bruno Haible.
55093         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
55094         with the old contents of xnmalloc.
55095         (xnmalloc, xmalloc): Use it.
55096         (xnrealloc_inline): New static inline function,
55097         with the old contents of xnrealloc.
55098         (xnrealloc, xrealloc): Use it.
55099
55100         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
55101         that.
55102
55103 2003-10-26  Karl Berry  <karl@gnu.org>
55104
55105         * config/srclist.txt (COPYING.DOC): no longer available from
55106         /gd/gnuorg; don't know where the ultimate source is.
55107
55108 2003-10-25  Paul Eggert  <eggert@twinsun.com>
55109
55110         Fix several address-calculation bugs in the hash modules,
55111         plus some minor code cleanup.
55112
55113         * lib/hash.h: Include <stdbool.h>, for bool.
55114         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
55115         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
55116         hash_get_n_entries, hash_get_max_bucket_length,
55117         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
55118         hash_rehash): Use size_t rather than unsigned.
55119         * lib/hash.c (struct hash_table, hash_get_n_buckets,
55120         hash_get_n_buckets_used, hash_get_n_entries,
55121         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
55122         hash_get_entries, hash_do_for_each, hash_string, is_prime,
55123         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
55124         Likewise.
55125         (SIZE_MAX): Define if not defined.
55126         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
55127         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
55128         hash_print):
55129         Use const * when possible.
55130         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
55131         (check_tuning): Fix bug: if tuning parameters were very close to
55132         0 or 1, rounding errors could have caused subscript violations.
55133         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
55134         (hash_initialize): Add 'fail:' label
55135         to free table and return NULL, and use it to simplify code.
55136         Use calloc rather than clearing the storage ourself.
55137         (hash_initialize, hash_rehash): Check for arithmetic overflow in
55138         buffer size calculations.
55139         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
55140         Include <stddef.h>, for size_t.
55141         * lib/hash-pjw.c (hash_pjw): Likewise.
55142         Switch to method described by Bruno Haible.
55143         Include <limits.h>, for CHAR_BIT.
55144         (SIZE_BITS): New macro.
55145
55146 2003-10-23  Paul Eggert  <eggert@twinsun.com>
55147
55148         * m4/getline.m4 (AM_FUNC_GETLINE):
55149         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
55150         hosts.  Problem reported by Derek Robert Price in
55151         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
55152         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
55153         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
55154
55155 2003-10-21  Paul Eggert  <eggert@twinsun.com>
55156
55157         * lib/getndelim2.c (getndelim2): When size calculation overflows,
55158         ceiling the allocation at NMAX bytes rather than silently
55159         discarding input bytes before NMAX is reached.  This makes
55160         a difference only if NMAX exceeds SIZE_MAX / 2.
55161
55162         * lib/obstack.c: Merge from glibc.
55163         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
55164         Add libc_hidden_def (_obstack_newchunk).
55165         (_obstack_free) [! defined _LIBC]: Remove.
55166         [defined _LIBC]: Make a strong alias from obstack_free, rather than
55167         a clone of the function body.
55168         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
55169         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
55170
55171         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
55172         glibc.
55173         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
55174         arg to memcpy.
55175
55176         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
55177         (obstack_ptr_grow_fast, obstack_int_grow_fast):
55178         Don't use lvalue casts, as GCC plans to remove support for them
55179         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
55180         was also present in the non-GCC version, indicating that this
55181         code had always been buggy and had never been widely used.
55182         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
55183         Use the fast variant of each macro, rather than copying the
55184         definiens of the fast variant; that way, we'll be more likely to
55185         catch future bugs in the fast variants.
55186
55187 2003-10-20  Bruno Haible  <bruno@clisp.org>
55188
55189         * modules/wait-process: New file.
55190         * MODULES.html.sh (func_all_modules): Add wait-process.
55191
55192 2003-10-20  Bruno Haible  <bruno@clisp.org>
55193
55194         * m4/wait-process.m4: New file.
55195
55196 2003-10-20  Bruno Haible  <bruno@clisp.org>
55197
55198         * lib/wait-process.h: New file, from GNU gettext.
55199         * lib/wait-process.c: New file, from GNU gettext.
55200
55201 2003-10-19  Jim Meyering  <jim@meyering.net>
55202
55203         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
55204         HPUX 10.20.
55205
55206 2003-10-18  Karl Berry  <karl@gnu.org>
55207
55208         * config/config.guess: update from config.
55209
55210 2003-10-16  Paul Eggert  <eggert@twinsun.com>
55211
55212         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
55213         (getgroups): First arg is int, not size_t.
55214         Don't let 'free' mangle errno.
55215
55216 2003-10-16  Paul Eggert  <eggert@twinsun.com>
55217
55218         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
55219
55220 2003-10-16  Karl Berry  <karl@gnu.org>
55221
55222         * config/config.{guess,sub}: update from config.
55223
55224 2003-10-16  Jim Meyering  <jim@meyering.net>
55225
55226         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
55227         memcpy.
55228
55229 2003-10-15  Paul Eggert  <eggert@twinsun.com>
55230
55231         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
55232         (SIZE_MAX): Remove.
55233         (new_exclude, add_exclude_file): Initial size no longer needs to
55234         be a power of 2.
55235         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
55236         our own address arithmetic overflow checking.
55237
55238         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
55239         (fnmatch): Do not alloca more than 2000 wide characters;
55240         instead, use malloc for large buffers.
55241         Check for address arithmetic overflow, and return -1
55242         with errno set to ENOMEM in that case.
55243         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
55244         (NEW_PATTERN): Do not alloca more than 8000 bytes;
55245         instead, return -1.  Check for address arithmetic overflow.
55246
55247 2003-10-14  Paul Eggert  <eggert@twinsun.com>
55248
55249         Handle invalid suffixes and overflow independently, so that
55250         callers can treat them independently as needed.  Fix some bugs in
55251         suffix handling, e.g., "100k@" was not diagnosed as an invalid
55252         suffix for a human-readable blocksize.  The major caller-visible
55253         change is the addition of a new
55254         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
55255         that both overflow and suffix chars were found.
55256
55257         * lib/human.c (humblock): Don't check separately for invalid suffix
55258         char; that is xstrtoumax's job (now that its bug is fixed).
55259         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
55260         INTMAX_MAX]: New macros.
55261         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
55262         TYPE_MAXIMUM): New macros.
55263         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
55264         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
55265         if overflow occurs, as it's what __strtol does and it's more useful
55266         in practice.
55267         (__xstrtol): If __strtol reports some error other than ERANGE,
55268         reflect it to the caller as LONGINT_INVALID.  If it reports
55269         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
55270         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
55271         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
55272         value.
55273         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
55274         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
55275         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
55276         [defined UINTMAX_MAX]: New macros.
55277
55278 2003-10-14  Bruno Haible  <bruno@clisp.org>
55279
55280         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
55281
55282 2003-10-14  Bruno Haible  <bruno@clisp.org>
55283
55284         * m4/sig_atomic_t: New file, from GNU gettext.
55285         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
55286
55287 2003-10-14  Bruno Haible  <bruno@clisp.org>
55288
55289         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
55290         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
55291         Also use volatile where needed.
55292
55293 2003-10-12  Paul Eggert  <eggert@twinsun.com>
55294
55295         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
55296         Change maintainer from Bruno Haible to 'all'.
55297
55298 2003-10-12  Paul Eggert  <eggert@twinsun.com>
55299
55300         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
55301
55302 2003-10-12  Paul Eggert  <eggert@twinsun.com>
55303
55304         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
55305         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
55306         and define in terms of the other primitives.
55307         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
55308         (SIZE_MAX): Define if not already defined.
55309         (array_size_overflow): New function.
55310         (xalloc_die): Abort instead of exiting if 'error' returns.
55311         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
55312         (xmalloc, xrealloc): Use them.
55313         (xcalloc): Check for address arithmetic overflow.
55314         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
55315         a bit faster than strcpy.
55316
55317 2003-10-10  Simon Josefsson  <jas@extundo.com>
55318
55319         * modules/argp (Depends-on): Add restrict and strcase.
55320
55321 2003-10-10  Simon Josefsson  <jas@extundo.com>
55322
55323         * m4/argp.m4: Add AC_C_INLINE.
55324
55325 2003-10-08  Paul Eggert  <eggert@twinsun.com>
55326
55327         Merge getpass from libc, plus a few fixes.
55328
55329         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
55330         Include <stdbool.h>.
55331         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
55332         __fsetlocking to empty.
55333         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
55334         do include <bits/libc-lock.h>.
55335         Do not include <fcntl.h>; not needed.
55336         [_LIBC]: Include <wchar.h>.
55337         (NOTCANCEL_MODE): New macro.
55338         (flockfile, funlockfile) [_LIBC]: New macros.
55339         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
55340         [!_LIBC]: New macros.
55341         (call_fclose): New function.
55342         (getpass): Use it.  Save tty stream separately; this simplifies the
55343         code and makes it more reliable if stdin happens to equal stdout.
55344         Invoke __fsetlocking on tty.
55345         Handle thread cancellation if needed.
55346         Namespace cleanup (use __tcgetattr, __getline).
55347         Use bool for Booleans.
55348         [USE_IN_LIBIO]: Handle wide streams.
55349         [!_LIBC]: Unconditionally do the fseek, since we don't know what
55350         stream might go where.
55351
55352         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
55353         doesn't have to include <stdio.h> before us.
55354         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
55355         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
55356         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
55357         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
55358         if not declared, so that we can use getpass.c code from libc without
55359         rewriting it.
55360         (flockfile, ftrylockfile, funlockfile): New macros.
55361
55362 2003-10-08  Paul Eggert  <eggert@twinsun.com>
55363
55364         * modules/getpass: Depend on stdbool.
55365
55366 2003-10-08  Paul Eggert  <eggert@twinsun.com>
55367
55368         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
55369
55370 2003-10-07  Karl Berry  <karl@gnu.org>
55371
55372         * config/config.{guess,sub}: update from config.
55373
55374 2003-10-06  Jim Meyering  <jim@meyering.net>
55375             Bruno Haible  <bruno@clisp.org>
55376
55377         This lets translators provide better translations for the
55378         "Written by ..." part of --version output.
55379         * lib/version-etc.h: Include stdarg.h.
55380         (version_etc_copyright): Declare as readonly.
55381         (version_etc): Make this function variadic with a NULL-terminated list
55382         of author name strings.
55383         (version_etc_va): New declaration.
55384         * lib/version-etc.c: Include stdarg.h, stdlib.h.
55385         (version_etc_copyright): Declare as readonly.
55386         (version_etc_va): New function. Provide a different translatable string
55387         for each possible number of authors < 10. Abbreviate when there are 10
55388         authors or more.
55389         (version_etc): Make this function variadic. Call version_etc_va.
55390         Suggestion from Gary V. Vaughan.
55391
55392         * lib/long-options.h (parse_long_options): Change prototype: the
55393         authors string is moved to the end and becomes variadic.
55394         * lib/long-options.c: Include stdarg.h.
55395         (parse_long_options): Make this function variadic, too.
55396         Call version_etc_va, not version_etc.
55397
55398 2003-10-06  Bruno Haible  <bruno@clisp.org>
55399
55400         * modules/version-etc-2: Remove file.
55401         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
55402
55403 2003-10-06  Bruno Haible  <bruno@clisp.org>
55404
55405         * modules/fatal-signal: New file.
55406         * MODULES.html.sh (func_all_modules): Add fatal-signal.
55407
55408 2003-10-06  Bruno Haible  <bruno@clisp.org>
55409
55410         * m4/fatal-signal.m4: New file.
55411         * m4/signalblocking.m4: New file, from GNU gettext.
55412
55413 2003-10-06  Bruno Haible  <bruno@clisp.org>
55414
55415         * lib/version-etc-2.h: Remove file.
55416         * lib/version-etc-2.c: Remove file.
55417
55418 2003-10-06  Bruno Haible  <bruno@clisp.org>
55419
55420         * lib/fatal-signal.h: New file, from GNU gettext.
55421         * lib/fatal-signal.c: New file, from GNU gettext.
55422
55423 2003-10-05  Paul Eggert  <eggert@twinsun.com>
55424
55425         * README: Rework advice for preventing empty .o files.
55426         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
55427         not <sys/types.h>.
55428
55429 2003-10-04  Karl Berry  <karl@gnu.org>
55430
55431         * lib/argp*: update from libc.
55432
55433 2003-10-04  Karl Berry  <karl@gnu.org>
55434
55435         * config/config.{guess,sub}: update from config.
55436
55437 2003-10-02  Bruno Haible  <bruno@clisp.org>
55438
55439         * modules/lchown (Include): Add lchown.h.
55440         * modules/time_r (Include): Use "..." syntax.
55441         * modules/xgetdomainname (Include): Add xgetdomainname.h.
55442
55443 2003-10-01  Simon Josefsson  <jas@extundo.com>
55444
55445         * MODULES.html.sh (func_all_modules): Move gethostname from section
55446         'based on' to section 'lacking' POSIX:2001.
55447
55448 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
55449
55450         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
55451         to output mode on the same stream.
55452
55453 2003-09-29  Paul Eggert  <eggert@twinsun.com>
55454
55455         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
55456         Fix arg typo in previous patch.
55457
55458 2003-09-28  Jim Meyering  <jim@meyering.net>
55459
55460         * lib/error.c: Correct cpp indentation.
55461
55462 2003-09-27  Paul Eggert  <eggert@twinsun.com>
55463
55464         * modules/free: New file.
55465
55466 2003-09-27  Paul Eggert  <eggert@twinsun.com>
55467
55468         * m4/free.m4: New file.
55469
55470 2003-09-27  Paul Eggert  <eggert@twinsun.com>
55471
55472         * lib/minmax.h (MIN, MAX)
55473         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
55474         Omit the special code that used __typeof__, since we worry that
55475         it could be more trouble than it's worth.  See:
55476         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
55477         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
55478
55479         * lib/free.c: New file.
55480
55481 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
55482
55483         Trivial fixes to Makefile.am parts of module listings.
55484         * modules/strstr: Append strstr.h to lib_SOURCES.
55485         * modules/strcase: Likewise, for strcase.h.
55486
55487 2003-09-27  Karl Berry  <karl@gnu.org>
55488
55489         * config/mkinstalldirs: update from automake.
55490
55491 2003-09-26  Paul Eggert  <eggert@twinsun.com>
55492
55493         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
55494         (error_tail): Do not loop, reallocating temporary buffer, since
55495         the output cannot contain more wide characters than the input
55496         contains bytes, the size must be big enough already.  This avoids
55497         one potential size overflow calculation.  Check for size overflow
55498         when calculating temporary buffer size.  Free temporary buffer
55499         when done, if it was allocated with malloc; this plugs a memory
55500         leak.  Remove casts from void * to pointers, that are no longer
55501         needed now that we're assuming C89 or better.
55502
55503         Merge error changes from glibc.
55504
55505         * lib/error.c, error.h: Update copyright notice header to match glibc.
55506         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
55507         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
55508         Disable cancellation while printing error.
55509         * lib/error.h: Prepend __ to parameter names.
55510
55511 2003-09-26  Jim Meyering  <jim@meyering.net>
55512
55513         * lib/error.c (error_tail): Move some declarations
55514         into inner scope where the local variables are used.
55515
55516 2003-09-26  Bruno Haible  <bruno@clisp.org>
55517
55518         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
55519         stpncpy().
55520         Don't define stpncpy through config.h; it's now done through stpncpy.h.
55521
55522 2003-09-26  Bruno Haible  <bruno@clisp.org>
55523
55524         * lib/stpncpy.h (gnu_stpncpy): New declaration.
55525         (stpncpy): Define as alias for gnu_stpncpy.
55526         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
55527
55528 2003-09-25  Simon Josefsson  <jas@extundo.com>
55529
55530         * lib/xgetdomainname.h: New file.
55531         * lib/xgetdomainname.c: New file.
55532
55533 2003-09-25  Simon Josefsson  <jas@extundo.com>
55534             Bruno Haible  <bruno@clisp.org>
55535
55536         * modules/getdomainname: New file.
55537         * modules/xgetdomainname: New file.
55538         * MODULES.html.sh (func_all_modules): Add getdomainname,
55539         xgetdomainname.
55540
55541 2003-09-25  Simon Josefsson  <jas@extundo.com>
55542             Bruno Haible  <bruno@clisp.org>
55543
55544         * m4/getdomainname.m4: New file.
55545
55546 2003-09-25  Simon Josefsson  <jas@extundo.com>
55547             Bruno Haible  <bruno@clisp.org>
55548
55549         * lib/getdomainname.h: New file.
55550         * lib/getdomainname.c: New file.
55551
55552 2003-09-25  Karl Berry  <karl@gnu.org>
55553
55554         * lib/argp-fmtstream.c, argp-help.c: update from libc.
55555
55556 2003-09-25  Karl Berry  <karl@gnu.org>
55557
55558         * config/install-sh: update from automake.
55559
55560 2003-09-25  Bruno Haible  <bruno@clisp.org>
55561
55562         * modules/version-etc-2: New file, from modules/version-etc with
55563         modifications.
55564         * MODULES.html.sh (func_all_modules): Add version-etc-2.
55565
55566 2003-09-25  Bruno Haible  <bruno@clisp.org>
55567
55568         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
55569         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
55570
55571 2003-09-24  Simon Josefsson  <jas@extundo.com>
55572
55573         * modules/xgethostname: Add xgethostname.h.
55574
55575 2003-09-24  Paul Eggert  <eggert@twinsun.com>
55576
55577         * lib/linebuffer.c (freebuffer): Don't free the argument, just
55578         the buffer associated with the argument.  Bug reported by
55579         Simon Josefsson.
55580
55581 2003-09-24  Paul Eggert  <eggert@twinsun.com>
55582
55583         * README: Document assumptions that 'int' is at least 32 bits
55584         wide, that integer arithmetic is 2's complement without overflow,
55585         that there are no holes in integer values, that adding sizes of
55586         two nonoverlapping objects can't overflow, and that all-bits-zero
55587         yields scalar zero.  Fix spelling and capitalization typos.
55588
55589 2003-09-19  Karl Berry  <karl@gnu.org>
55590
55591         * lib/argp.h: update from libc.
55592
55593 2003-09-17  Paul Eggert  <eggert@twinsun.com>
55594
55595         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
55596         to avoid spurious warnings like "AC_RUN_IFELSE was called before
55597         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
55598
55599 2003-09-17  Paul Eggert  <eggert@twinsun.com>
55600
55601         * gnulib-tool: Use "test -h", not "test -L", for portability
55602         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
55603         (tags_regexp): Remove, since \| doesn't conform to POSIX.
55604         (sed_extract_prog): Issue s commands one-by-one, rather than
55605         using \| in one s command.
55606
55607 2003-09-16  Paul Eggert  <eggert@twinsun.com>
55608
55609         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
55610         input error, instead of returning NULL the next time we are called
55611         (and therefore losing track of errno).
55612
55613 2003-09-16  Bruno Haible  <bruno@clisp.org>
55614
55615         * gnulib-tool (func_create_testdir): Warn about duplicated
55616         dependencies.
55617
55618 2003-09-15  Paul Eggert  <eggert@twinsun.com>
55619
55620         * modules/argmatch, modules/fatal, modules/obstack,
55621         modules/xalloc, modules/xgethostname: Sort dependencies by
55622         importance, not alphabetically.
55623
55624 2003-09-15  Paul Eggert  <eggert@twinsun.com>
55625
55626         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
55627         fails, so that the caller gets the proper errno.
55628
55629         * lib/readutmp.c (read_utmp): Likewise.
55630         Check for fstat error.  Close stream and free storage
55631         when failing.
55632
55633 2003-09-14  Karl Berry  <karl@gnu.org>
55634
55635         * config/srclist.txt (strdup.c): disable for c89 changes.
55636
55637 2003-09-14  Jim Meyering  <jim@meyering.net>
55638
55639         * lib/getloadavg.c: Correct cpp indentation.
55640         * lib/strdup.c: Likewise.
55641         * lib/vasnprintf.c: Likewise.
55642
55643 2003-09-14  Bruno Haible  <bruno@clisp.org>
55644
55645         * modules/fwriteerror: New file.
55646         * MODULES.html.sh (func_all_modules): Add fwriteerror.
55647
55648 2003-09-14  Bruno Haible  <bruno@clisp.org>
55649
55650         * lib/fwriteerror.h: New file.
55651         * lib/fwriteerror.c: New file.
55652
55653 2003-09-12  Paul Eggert  <eggert@twinsun.com>
55654
55655         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
55656         modules/xgethostname, modules/xalloc: Depend on exit.
55657
55658 2003-09-12  Paul Eggert  <eggert@twinsun.com>
55659
55660         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
55661
55662         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
55663         and AC_MINIX, too, so that their extensions are available.
55664
55665         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
55666         This macro has been superseded by gl_BACKUPFILE.
55667
55668         More patches to assume C89 or better.
55669
55670         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
55671
55672         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
55673         unconditionally.
55674         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
55675         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
55676         Include <string.h>, <stdlib.h> unconditionally.
55677         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
55678         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
55679         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
55680         headers or for string.h.
55681         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
55682         or strtoul.
55683
55684         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
55685         headers.
55686         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
55687         * m4/userspec.m4 (gl_USERSPEC): Likewise.
55688         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
55689         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
55690         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
55691         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
55692         memcpy, memset.
55693         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
55694         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
55695         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
55696         strtol.
55697         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
55698         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
55699         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
55700         strtoul.
55701
55702 2003-09-12  Paul Eggert  <eggert@twinsun.com>
55703
55704         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
55705         * lib/obstack.c [!defined _LIBC]: Likewise.
55706         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
55707         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
55708         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
55709
55710         More changes to assume C89 or better.
55711
55712         * lib/error.c (error_tail): Assume vprintf.
55713
55714         * lib/argmatch.c (getenv): Remove decl.
55715         * lib/progreloc.c (get_full_program_name): Define via prototype.
55716         * lib/setenv.c (clearenv): Likewise.
55717         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
55718         needed.
55719         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
55720         (malloc, memcpy): Remove decls.
55721         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
55722         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
55723         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
55724         (memcpy): Remove macro.
55725         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
55726         (__P): Remove.  All uses removed.
55727         (PTR): Remove.  All uses changed to void *.
55728         (CHAR_BIT, NULL): Remove.
55729         (spaces, zeros, memset_space, memset_zero)
55730         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
55731         Remove.
55732         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
55733         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
55734         Define with prototype.
55735         Remove now-unnecessary prototype decl.
55736         (extra_args_spec): Assume ANSI C.  All uses changed.
55737         (extra_args_spec_iso): Remove.
55738         (my_strftime, emacs_strftimeu): Define via prototype.
55739         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
55740         unconditionally.
55741         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
55742         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
55743         (strtoul, strtol): Remove decls.
55744         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
55745         LONG_MAX): Remove.
55746         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
55747         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
55748         (LOCALE_PARAM_PROTO): New macro.
55749         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
55750         (INTERNAL (strtol), strtol): Define with a prototype.
55751         (PARAMS): Remove.  All uses removed.
55752         * lib/tempname.c: Include <string.h> unconditionally.
55753         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
55754         * lib/xgethostname.c (main): Define with a prototype.
55755         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
55756         Include <stdlib.h> unconditionally.
55757         (calloc, malloc, realloc, free): Remove decls.
55758         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
55759         Include <stdlib.h> unconditionally.  Sort include file names.
55760         (strtod): Remove.
55761         (xstrtod): Define with a prototype.
55762         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
55763         (strtol, strtoul): Remove decls.
55764
55765 2003-09-11  Paul Eggert  <eggert@twinsun.com>
55766
55767         More patches to assume C89 or better.
55768         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
55769         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
55770         string.h, memchr, STDC_HEADERS.
55771
55772 2003-09-11  Paul Eggert  <eggert@twinsun.com>
55773
55774         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
55775         Include <stdlib.h>, <string.h> unconditionally.
55776         Remove now-unnecessary cast to char *.
55777         * lib/strnlen.c: Include <string.h> unconditionally.
55778         * lib/yesno.c (yesno): Define with a prototype.
55779
55780 2003-09-11  Bruno Haible  <bruno@clisp.org>
55781
55782         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
55783
55784 2003-09-10  Jim Meyering  <jim@meyering.net>
55785
55786         * lib/error.c: Correct indentation of cpp directives.
55787
55788 2003-09-10  Bruno Haible  <bruno@clisp.org>
55789
55790         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
55791         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
55792         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
55793         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
55794         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
55795         <stdlib.h> and <string.h> checks.
55796         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
55797         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
55798
55799 2003-09-10  Bruno Haible  <bruno@clisp.org>
55800
55801         * lib/strcspn.c: Include <string.h> unconditionally.
55802         * lib/strpbrk.c: Include <string.h> unconditionally.
55803         * lib/strstr.c: Include <string.h> unconditionally.
55804         * lib/unicodeio.c: Include <string.h> unconditionally.
55805         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
55806         * lib/unsetenv.c: Likewise.
55807         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
55808         * lib/yesno.c: Include <stdlib.h> unconditionally.
55809         (rpmatch): Add prototype.
55810
55811 2003-09-09  Paul Eggert  <eggert@twinsun.com>
55812
55813         More patches to assume C89 or better.
55814         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
55815         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
55816         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
55817         or for string.h.
55818         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
55819         stdlib.h.
55820         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
55821         C headers.
55822         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
55823         string.h.
55824         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
55825         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
55826         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
55827         or for string.h.
55828         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
55829         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
55830         C headers.
55831         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
55832         memcpy.
55833         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
55834         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
55835         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
55836         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
55837         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
55838         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
55839         string.h, free.
55840         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
55841         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
55842         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
55843         C headers, or for string.h.
55844         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
55845         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
55846         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
55847         headers, memory.h, stdlib.h, string.h, strings.h.
55848         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
55849         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
55850         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
55851         strchr.
55852         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
55853         headers, memory.h, string.h.
55854         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
55855         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
55856         free.
55857         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
55858         headers.
55859         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
55860         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
55861         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
55862         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
55863         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
55864
55865 2003-09-09  Paul Eggert  <eggert@twinsun.com>
55866
55867         More K&R removal.
55868
55869         * lib/acosl.c (main): Use a prototype.
55870         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
55871         tanl.c: Likewise.
55872
55873         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
55874
55875         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
55876         (getopt, etopt_long, getopt_long_only, _getopt_internal)
55877         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
55878         with a prototype.
55879         * lib/getopt.c (const): Remove macro.
55880         Include <string.h> unconditionally.
55881         (my_index): Remove; all uses changed to strchr.
55882         (strlen): Remove decl.
55883         (exchange): Remove forward decl; no longer needed.
55884         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
55885         Define with prototype.
55886         * lib/getopt1.c (const): Remove macro.
55887         (getopt_long, getopt_long_only, main): Define with prototype.
55888
55889         * lib/getugroups.c: Include <string.h> unconditionally.
55890
55891         * lib/getusershell.c: Include <stdlib.h> unconditionally.
55892         (getusershell, setusershell, endusershell, readname, main):
55893         Define with prototypes.
55894
55895         * lib/group-member.c: Include group-member.h first.
55896         Include <stdlib.h> unconditionally.
55897
55898         * lib/hard-locale.c: Include hard-locale.h first.
55899         Include <stdlib.h>, <string.h> unconditionally.
55900
55901         * lib/hash.c (free, malloc): Remove decls.
55902         Include <stdlib.h> unconditionally.
55903
55904         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
55905         (getenv): Do not declare.
55906
55907         * lib/idcache.c: Include <string.h> unconditionally.
55908
55909         * lib/long-options.c: Include long-options.h first, to test interface.
55910         Include <stdlib.h> unconditionally.
55911
55912         * lib/makepath.c: Include makepath.h first, to test interface.
55913         Include <stdlib.h> and <string.h> unconditionally.
55914
55915         * lib/linebuffer.c: Include <stdlib.h>.
55916         (free): Remove decl.
55917
55918         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
55919         stddef.h. rpl_malloc returns void *, not char *.
55920         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
55921         prototype.
55922
55923         * lib/md5.h: Include <limits.h> unconditionally.
55924         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
55925         (__P): Remove; all uses removed.
55926         * lib/md5.c: Include "md5.h" first.
55927         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
55928         md5_buffer, md5_process_bytes, md5_process_block):
55929         Define with prototypes.
55930         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
55931         * lib/sha.c: Include "sha.h" first.
55932         Include <stdlib.h>, <string.h> unconditionally.
55933
55934         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
55935         * lib/memcmp.c (__ptr_t): Likewise.
55936         * lib/memrchr.c (__ptr_t): Likewise.
55937         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
55938         Include <string.h> unconditionally.
55939         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
55940         * lib/memchr.c: Include <stdlib.h> unconditionally.
55941         * lib/memchr.c (LONG_MAX): Remove.
55942         * lib/memrchr.c (LONG_MAX): Likewise.
55943         * lib/memchr.c (__memchr): Define via a prototype.
55944         * lib/memrchr.c (__memrchr): Likewise.
55945         * lib/memcmp.c (__P): Remove, and remove all uses.
55946         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
55947         Remove forward decls; no longer needed.
55948         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
55949         Use types required by C89 in prototype.
55950
55951         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
55952         * lib/savedir.c: Likewise.
55953         * lib/mkdir.c (free): Remove decl.
55954         * lib/rmdir.c (rmdir): Define with a prototype.
55955         * lib/savedir.c: Include savedir.h first, to test interface.
55956
55957         * lib/mktime.c (STDC_HEADERS): Remove.
55958         Include <stdlib.h>, <string.h> unconditionally.
55959
55960         * lib/modechange.c: Include <stdlib.h> unconditionally.
55961         (malloc): Remove decl.
55962
55963         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
55964         (free): Remove decl.
55965
55966         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
55967         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
55968         (This type really should be intptr_t, but that's a C99ism.)
55969         (_obstack_memcpy): Remove: all uses changed to memcpy.
55970         Include <string.h> unconditionally.
55971         (struct obstack): Assume __STDC__ for types of members
55972         chunkfun, freefun, extra_arg.
55973         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
55974         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
55975         obstack_begin, obstack_specify_allocation,
55976         obstack_specify_allocation_with_arg, obstack_chunkfun,
55977         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
55978         Remove unprototyped decls and the macros that use them.
55979         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
55980         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
55981         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
55982         (defined __STDC__ && __STDC__)]:
55983         Remove nonprototyped code.
55984         Include <stdlib.h> unconditionally.
55985         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
55986         _obstack_allocated_p, _obstack_free, obstack_free,
55987         _obstack_memory_used, print_and_abort):
55988         Define using prototypes.
55989         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
55990         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
55991         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
55992         obstack_next_free, obstack_object_size, obstack_room) [0]:
55993         Remove unused, unprototyped code.
55994
55995         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
55996
55997         * lib/physmem.c (physmem_total, physmem_available, main): Define
55998         with prototypes.
55999
56000         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
56001         (main): Define with a prototype.
56002
56003         * lib/posixver.c (getenv): Remove decl.
56004
56005         * lib/putenv.c (malloc): Returns void *, not char *.
56006         Include <string.h> unconditionally.
56007         (strchr, memcpy, NULL): Do not define.
56008
56009         * lib/readtokens.c: Include readtokens.h first, to test interface.
56010         Include <stdlib.h>, <string.h> unconditionally.
56011         (init_tokenbuffer): Define with a prototype.
56012
56013         * lib/regex.c (PARAMS): Remove.  All uses removed.
56014         All uses of _RE_ARGS removed, too.
56015         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
56016         unconditionally.
56017         (bzero): Assume memset exists.
56018         (memcmp, memcpy, NULL): Remove.
56019         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
56020         char, or assignments to local vars of type signed char.
56021         (init_syntax_once, PREFIX(extract_number_and_incr),
56022         PREFIX(print_partial_compiled_pattern),
56023         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
56024         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
56025         PREFIX(regex_grow_registers), PREFIX(regex_compile),
56026         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
56027         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
56028         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
56029         wcs_compile_range, byte_compile_range, truncate_wchar,
56030         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
56031         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
56032         count_mbs_length, wcs_re_match_2_internal,
56033         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
56034         PREFIX(alt_match_null_string_p),
56035         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
56036         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
56037         regfree, PREFIX(extract_number)): Define with prototype.  Remove
56038         now-unnecessary declaration, if any.
56039         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
56040         regcomp, regexec):
56041         Remove now-unnecessary casts among pointer types.
56042         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
56043
56044         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
56045         (free): Remove decl.
56046
56047         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
56048
56049         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
56050         (free): Remove decl.
56051
56052         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
56053         * lib/xgetcwd.c: Likewise.
56054
56055         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
56056         (free): Remove decl.
56057
56058         * lib/strchrnul.c (strchrnul): Define with a prototype.
56059         Fix bug: c_in was not converted to char before searching.
56060
56061         The following changes are not K&R related:
56062
56063         * lib/group-member.h: Include <sys/types.h>, so that this file is
56064         self-contained.
56065         * lib/makepath.h: Likewise.
56066
56067         * lib/getusershell.c (readname, default_index, line_size, readname):
56068         Use size_t, not int, for sizes.
56069         (readname): If the size overflows, report an error instead of
56070         looping forever.
56071
56072 2003-09-09  Paul Eggert  <eggert@twinsun.com>
56073
56074         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
56075         libc.
56076
56077 2003-09-09  Paul Eggert  <eggert@twinsun.com>
56078
56079         * README: New section: portability guidelines.
56080
56081 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
56082
56083         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
56084         C89 spec.
56085
56086 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
56087
56088         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
56089
56090 2003-09-08  Paul Eggert  <eggert@twinsun.com>
56091
56092         Assume C89 or better; remove K&R cruft.
56093         A few of these changes were first proposed by Derek Robert Price
56094         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
56095
56096         * lib/addext.c: Include <string.h> unconditionally.
56097         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
56098         Don't declare getenv or malloc.
56099
56100         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
56101         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
56102         (NULL): Remove.
56103         (find_stack_direction, alloca): Use prototypes.
56104
56105         * lib/atexit.c (atexit): Define using a prototype.
56106
56107         * lib/basename.c, dirname.c, stripslash.c:
56108         Include <string.h> unconditionally.
56109
56110         * lib/bcopy.c: Include <stddef.h>.
56111         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
56112
56113         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
56114
56115         * lib/error.h (error, error_at_line, error_print_progname)
56116         [! (defined (__STDC__) && __STDC__)]: Remove decls.
56117         * lib/error.c: Include error.h first, to check interface.
56118         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
56119         (VA_START): Remove; all uses changeed to va_start.
56120         (exit, strerror): Remove decls.
56121         (error_print_progname): Prototype uncondionally.
56122         Don't include <errno.h>; no longer needed.
56123         (private_strerror): Remove.
56124         (error_tail): Always define.
56125         (error, error_at_line): Assume C89 or better; always use prototypes.
56126         * lib/fatal.c: Include "fatal.h" first, to test interface.
56127         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
56128         (VA_START): Remove; all uses changed to va_start.
56129         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
56130         this case.
56131         (exit): Remove decl.
56132         (fatal): Prototype unconditionally.  Assume va_start works.
56133         Abort at end, to pacify gcc.
56134
56135         * lib/euidaccess.c (main): Define with a prototype.
56136
56137         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
56138
56139         * lib/exitfail.c: Include <stdlib.h> unconditionally.
56140
56141         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
56142         prototypes.
56143         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
56144         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
56145         (getenv): Remove decl.
56146         (fnmatch): Define using a prototype.
56147         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
56148         (FCT): Define using a prototype.
56149
56150         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
56151
56152         * lib/gethostname.c: Include <stddef.h>.
56153         (gethostname): Define with prototype.  Length is size_t, not int.
56154
56155 2003-09-08  Paul Eggert  <eggert@twinsun.com>
56156
56157         Assume C89 or better; remove K&R cruft.
56158         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
56159         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
56160         string.h, getenv, malloc.
56161         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
56162         headers.
56163         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
56164         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
56165         do not check for strerror.
56166         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
56167         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
56168         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
56169         do not check for doprnt or vprintf.
56170         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
56171         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
56172
56173 2003-09-08  Paul Eggert  <eggert@twinsun.com>
56174
56175         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
56176         getversion.c should have been removed then, but was accidentally
56177         preserved.
56178
56179         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
56180         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
56181
56182 2003-09-08  Karl Berry  <karl@gnu.org>
56183
56184         * config/config.sub, config.guess, srclistvars.sh: update from savannah
56185                 config, forget about prep.
56186
56187         * config/depcomp, missing: update from automake.
56188
56189 2003-09-07  Paul Eggert  <eggert@twinsun.com>
56190
56191         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
56192         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
56193
56194 2003-09-07  Paul Eggert  <eggert@twinsun.com>
56195
56196         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
56197         copy_tm_result.  Bug reported by Simon Josefsson in
56198         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
56199
56200 2003-09-06  Paul Eggert  <eggert@twinsun.com>
56201
56202         * m4/time_r.m4: New file.
56203         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
56204         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
56205         is. Check for timegm declaration.
56206         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
56207         Do not check for gmtime_r.
56208         Replace mktime if __mktime_internal does not exist and if mktime
56209         hasn't been replaced already.
56210
56211 2003-09-06  Paul Eggert  <eggert@twinsun.com>
56212
56213         * lib/time_r.c, lib/time_r.h: New files.
56214
56215         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
56216         __localtime_r.
56217         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
56218         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
56219
56220         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
56221         __gmtime_r.
56222         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
56223         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
56224         Include <time_r.h>.
56225
56226         * lib/timegm.c: Switch to glibc implementation, with the following
56227         changes:
56228         [defined HAVE_CONFIG_H]: Include <config.h>.
56229         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
56230         (__mktime_internal) [!defined _LIBC]: New decl.
56231         (__gmtime_r) [!defined _LIBC]: New macro and function.
56232         (timegm): Use a prototype, since gnulib assumes C89.
56233         Do not bother declaring tmp to be const, as it's not really usefu.
56234         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
56235         (timegm): Declare only if HAVE_DECL_TIMEGM.
56236
56237 2003-09-06  Paul Eggert  <eggert@twinsun.com>
56238
56239         * MODULES.html.sh (func_all_modules): Add time_r.
56240         * modules/time_r: New file.
56241         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
56242         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
56243
56244 2003-09-03  Paul Eggert  <eggert@twinsun.com>
56245
56246         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
56247         Bug reported by Lute Kamstra in
56248         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
56249
56250         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
56251         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
56252         course with correspondingly smaller numbers for tomorrow and
56253         yesterday.  From Tadayoshi Funaba.  Originally installed into
56254         sh-utils on 1999-08-07, but the patch got lost (I guess during the
56255         coreutils merge?).
56256
56257 2003-08-31  Simon Josefsson  <jas@extundo.com>
56258
56259         * modules/timegm: New file.
56260         * MODULES.html.sh (func_all_modules): Add timegm.
56261
56262 2003-08-31  Simon Josefsson  <jas@extundo.com>
56263
56264         * m4/timegm.m4: New file.
56265
56266 2003-08-31  Simon Josefsson  <jas@extundo.com>
56267
56268         * lib/timegm.h: New file.
56269         * lib/timegm.c: New file.  Based on
56270         wget-1.8.2/src/http.c:mktime_from_utc.
56271
56272 2003-08-31  Karl Berry  <karl@gnu.org>
56273
56274         * lib/argp.h: update from libc.
56275
56276 2003-08-28  Bruno Haible  <bruno@clisp.org>
56277
56278         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
56279         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
56280         followed by '#define fnmatch fnmatch_posix' gives an error.
56281
56282 2003-08-28  Bruno Haible  <bruno@clisp.org>
56283
56284         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
56285         warning on QNX, which defines O_BINARY to 000000.
56286
56287 2003-08-27  Jim Meyering  <jim@meyering.net>
56288
56289         * m4/mkstemp.m4: Require that the system mkstemp be able to create
56290         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
56291         would fail after 32.  Reported by Danny Levinson.  Details here:
56292         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
56293
56294 2003-08-24  Bruno Haible  <bruno@clisp.org>
56295
56296         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
56297         MSVC7 <stdio.h> is included later.
56298
56299 2003-08-22  Simon Josefsson  <jas@extundo.com>
56300
56301         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
56302
56303 2003-08-20  Karl Berry  <karl@gnu.org>
56304
56305         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
56306
56307 2003-08-20  Bruno Haible  <bruno@clisp.org>
56308
56309         * modules/progname: New file.
56310         * MODULES.html.sh (func_all_modules): Add progname.
56311
56312 2003-08-20  Bruno Haible  <bruno@clisp.org>
56313
56314         * lib/progname.h: New file, from GNU gettext.
56315         * lib/progname.c: New file, from GNU gettext.
56316         * lib/progreloc.c: New file, from GNU gettext.
56317
56318 2003-08-19  Jim Meyering  <jim@meyering.net>
56319
56320         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
56321         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
56322
56323 2003-08-19  Bruno Haible  <bruno@clisp.org>
56324
56325         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
56326         more.
56327
56328 2003-08-19  Bruno Haible  <bruno@clisp.org>
56329
56330         * lib/xstrdup.c: Assume <string.h> exists.
56331
56332 2003-08-18  Paul Eggert  <eggert@twinsun.com>
56333
56334         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
56335         in makefile rules.
56336
56337 2003-08-18  Jim Meyering  <jim@meyering.net>
56338
56339         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
56340         * m4/lib-ld.m4: Likewise.
56341
56342 2003-08-18  Jim Meyering  <jim@meyering.net>
56343
56344         * lib/setenv.h: Indent nested cpp directive.
56345         * lib/vasnprintf.c: Remove trailing blanks.
56346
56347 2003-08-17  Simon Josefsson  <jas@extundo.com>
56348
56349         * modules/xstrndup: New file.
56350         * MODULES.html.sh (func_all_modules): Add xstrndup.
56351
56352 2003-08-17  Simon Josefsson  <jas@extundo.com>
56353
56354         * modules/argp: Fix autoconf macro name. Add more dependencies.
56355
56356 2003-08-17  Simon Josefsson  <jas@extundo.com>
56357
56358         * m4/xstrndup.m4: New file.
56359
56360 2003-08-17  Simon Josefsson  <jas@extundo.com>
56361
56362         * m4/argp.m4: New file.
56363
56364 2003-08-17  Simon Josefsson  <jas@extundo.com>
56365             Bruno Haible  <bruno@clisp.org>
56366
56367         * lib/xstrndup.h: New file.
56368         * lib/xstrndup.c: New file.
56369
56370 2003-08-17  Bruno Haible  <bruno@clisp.org>
56371
56372         * modules/strndup (Files, Include): Add lib/strndup.h.
56373
56374 2003-08-17  Bruno Haible  <bruno@clisp.org>
56375
56376         * modules/euidaccess (Files): Add lib/euidaccess.h.
56377
56378 2003-08-17  Bruno Haible  <bruno@clisp.org>
56379
56380         * lib/strndup.h: New file.
56381
56382 2003-08-17  Bruno Haible  <bruno@clisp.org>
56383
56384         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
56385         like AC_GNU_SOURCE.
56386         * modules/extensions (configure.ac): Comment out the invocation of
56387         gl_USE_SYSTEM_EXTENSIONS.
56388
56389 2003-08-16  Paul Eggert  <eggert@twinsun.com>
56390
56391         Merges from coreutils, etc.
56392         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
56393         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
56394         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
56395         fixing a typo.
56396         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
56397         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
56398
56399 2003-08-16  Paul Eggert  <eggert@twinsun.com>
56400
56401         Document merge from coreutils.
56402         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
56403         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
56404         * modules/utime: Add m4/utimes-null.m4.
56405
56406 2003-08-16  Paul Eggert  <eggert@twinsun.com>
56407
56408         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
56409         space, undoing this 2003-08-12 change:
56410         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
56411
56412 2003-08-16  Paul Eggert  <eggert@twinsun.com>
56413
56414         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
56415         strtoul.c from libc, undoing this 2003-08-12 change:
56416         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
56417
56418 2003-08-16  Jim Meyering  <jim@meyering.net>
56419
56420         Merges from coreutils.
56421         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
56422         prefix.  Adjust cache variables similarly.  Create 500 rather than
56423         just 300 files, to exercise bug on Darwin6.5, too.
56424         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
56425         $missing_dir.
56426         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
56427         AM_SYS_POSIX_TERMIOS.
56428         Reported by mkc@mathdogs.com.
56429         Also change use of $am_cv_sys_posix_termios
56430         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
56431         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
56432         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
56433         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
56434         in /proc/mounts until it finds one with matching device number.  This
56435         is unnecessary when the FILE argument *is* a mount point.  No stat call
56436         is necessary in that case.  So, disable the statvfs-testing code on
56437         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
56438         as RedHat bug# 84846.
56439         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
56440         to 1MB, so as not to render systems with no stack size limit (e.g.,
56441         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
56442         Include <unistd.h>.  On some systems,
56443         it is required for the definition of _SC_PAGESIZE.
56444
56445 2003-08-16  Jim Meyering  <jim@meyering.net>
56446
56447         Merge from coreutils.
56448         * lib/xstrtoimax.c: #else #if -> #elif.
56449         * lib/xstrtoumax.c: Likewise.
56450
56451 2003-08-16  Jim Meyering  <jim@meyering.net>
56452
56453         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
56454         * m4/utimes.m4: Removed.
56455         * m4/utimes-null.m4: Renamed from utimes.m4.
56456
56457         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
56458         to 1MB, so as not to render systems with no stack size limit (e.g.,
56459         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
56460         Include <unistd.h>.  On some systems,
56461         it is required for the definition of _SC_PAGESIZE.
56462
56463 2003-08-16  Jim Meyering  <jim@meyering.net>
56464         and Paul Eggert  <eggert@cs.ucla.edu>
56465
56466         Merges from coreutils, etc.
56467
56468         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
56469         using the latest version from cvs.  This avoids problems with #line
56470         directives using a vendor (Sun) compiler.
56471         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
56472         Don't set GETGROUPS_LIB here; now it's
56473         done via getgroups.m4's wrapper function.
56474         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
56475         rather than just in sh-util/configure.in, so that the
56476         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
56477         same.
56478         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
56479         AC_FUNC_GETLOADAVG where to find getloadavg.c.
56480         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
56481         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
56482         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
56483         Remove code that is now done by the newly-required macros.
56484         Append $(EXEEXT) to DF_PROG.
56485         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
56486         Do not invoke or require the following here,
56487         since prereq.m4 or some gnulib .m4 now does this for us:
56488         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
56489         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
56490         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
56491         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
56492         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
56493         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
56494         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
56495         AC_FUNC_OBSTACK.
56496         Do not replace the following functions, as this is now the job
56497         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
56498         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
56499         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
56500         atexit getpass, strdup, getpagesize.
56501         Replace 'raise'.
56502         Do not check for the following functions, as this is now the job
56503         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
56504         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
56505         setregid.
56506         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
56507         Check for sys/sysctl.h.
56508         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
56509         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
56510         of checking for ssize_t ourselves.
56511
56512         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
56513         Require every macro that gnulib/modules/* suggests for us.
56514         (jm_PREREQ_ADDEXT): New macro.
56515         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
56516         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
56517
56518         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
56519         (gl_PHYSMEM): Use it.
56520         Also check for `table' function.
56521         Check for new headers and functions.
56522         Add check for sys/sysmp.h.
56523         With suggestions from Kaveh Ghazi.
56524         Ignore headers that are present but cannot be compiled.  This
56525         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
56526         C 5.4.
56527
56528 2003-08-15  Paul Eggert  <eggert@twinsun.com>
56529
56530         Document merge from coreutils.
56531         * modules/userspec: Depend on posixver.
56532         * modules/strftime: Depend on tzset.
56533
56534 2003-08-15  Paul Eggert  <eggert@twinsun.com>
56535
56536         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
56537         rather than tab, after '#' in shell-script copyright notices.
56538         Suggested by Bruno Haible.
56539
56540 2003-08-15  Paul Eggert  <eggert@twinsun.com>
56541
56542         * config/srclist-update: Use three spaces, rather than tab, after '#'
56543         in shell-script copyright notices.  Suggested by Bruno Haible.
56544         Remove unnecessary parenthesization in regular expression.
56545
56546 2003-08-15  Jim Meyering  <jim@meyering.net>
56547
56548         Merge from coreutils.
56549         * lib/xgethostname.c: Include <stdlib.h>.
56550         (xghostname): Don't exit for anything other than memory-related
56551         failure; just return NULL.
56552         * lib/userspec.c: Include "posixver.h".
56553         (parse_user_spec): Accept `.' as a separator only
56554         in pre-POSIX-200112 mode.
56555         * lib/strtoimax.c: Use #elif rather than #else #if.
56556         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
56557         Remove function, now that we can rely on a working tzset function.
56558         [!_LIBC]: Ensure that the required autoconf test has been run.
56559         [!defined _NL_CURRENT && HAVE_STRFTIME]:
56560         Use underlying_strftime for %r.
56561         * lib/sha.c: Merge in some clean-up and optimization changes from
56562         glibc.
56563         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
56564         Ensure that it is a multiple of 64.
56565         Rearrange loop exit tests so as to avoid performing an
56566         additional fread after encountering an error or EOF.
56567         * lib/realloc.c: Update copyright date.
56568
56569 2003-08-15  Jim Meyering  <jim@meyering.net>
56570         and Paul Eggert  <eggert@twinsun.com>
56571
56572         Merge from coreutils.
56573         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
56574         member but strut utmpx does not.  Needed for AIX 4.3.3.
56575         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
56576
56577 2003-08-15  Jim Meyering  <jim@meyering.net>
56578         and Paul Eggert  <eggert@cs.ucla.edu>
56579
56580         Merges from coreutils, etc.
56581         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
56582         Require gl_FUNC_TZSET_CLOBBER.
56583         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
56584         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
56585         members.
56586
56587 2003-08-14  Paul Eggert  <eggert@twinsun.com>
56588
56589         Help the merge from coreutils.
56590         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
56591         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
56592         * m4/tzset.m4: Use it too.
56593
56594 2003-08-14  Paul Eggert  <eggert@twinsun.com>
56595
56596         * modules/tzset: New file.
56597
56598 2003-08-14  Jim Meyering  <jim@meyering.net>
56599
56600         Merges from coreutils.
56601         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
56602         variable names, rather than @FNMATCH_H@.
56603         * modules/alloca: Likewise for $(ALLOCA_H).
56604
56605         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
56606         the three copies of the literal target, `fnmatch.h'.
56607         * modules/alloca (alloca.h): Likewise.
56608
56609 2003-08-14  Jim Meyering  <jim@meyering.net>
56610
56611         Merge from coreutils.
56612         * m4/tzset.m4: New file.
56613         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
56614         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
56615         otherwise, AIX 5.1 systems would end up using the latter.
56616         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
56617         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
56618         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
56619         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
56620
56621 2003-08-14  Jim Meyering  <jim@meyering.net>
56622
56623         Merge from coreutils.
56624         * lib/obstack.h: Whitespace changes.
56625         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
56626         and xcalloc return values.
56627         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
56628         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
56629         hang on OSF/1 5.1 for DIR on both local and remote file systems.
56630         Reported by (and fix confirmed by) Nelson H. F. Beebe.
56631         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
56632         error from mntctl.
56633         Use mntctl's return value to drive the entry-processing loop, since
56634         we can't rely on the value of the vmt_length member in the last
56635         entry.  On some systems doing so could result in exhausting
56636         virtual memory.  Based in part on a patch from Mike Jetzer.
56637
56638 2003-08-14  Jim Meyering  <jim@meyering.net>
56639         and Paul Eggert  <eggert@twinsun.com>
56640
56641         Merges from coreutils, plus other fixes.
56642         * lib/physmem.c: Merge in portability changes from gcc/libiberty
56643         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
56644         for credits and details.  Thanks to Kaveh Ghazi for helping
56645         to keep these files in sync.
56646         (ARRAY_SIZE): Define it.
56647         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
56648         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
56649         (memcasecmp): Don't assume size_t fits in unsigned int.
56650         Remove casts and duplicate code.
56651         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
56652         (memcpy): Remove definition.
56653         Merge in some clean-up and optimization changes from glibc.
56654         [BLOCKSIZE]: Move definition to top of file.
56655         Ensure that it is a multiple of 64.
56656         Rearrange loop exit tests so as to avoid performing an
56657         additional fread after encountering an error or EOF.
56658         * lib/md5.h (md5_uintptr): Define.
56659         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
56660         return to the initial working directory.  Preserve errno
56661         for caller.
56662         * lib/idcache.c: Include "xalloc.h".
56663         (xmalloc, xrealloc): Remove decls.
56664         (getuser): Remove casts no longer required in C89.
56665         * lib/human.c: Include stdio.h, for sprintf.
56666         * lib/group-member.c: Include "xalloc.h".
56667         (xmalloc, xrealloc): Remove decls.
56668         (get_group_info): Remove casts no longer required in C89.
56669         * lib/getusershell.c (readname): Remove casts no longer required in
56670         C89.
56671         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
56672         * lib/getline.c: Whitespace fix, from coreutils.
56673
56674 2003-08-13  Paul Eggert  <eggert@twinsun.com>
56675
56676         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
56677         Check for isascii.
56678
56679         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
56680         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
56681         Undo previous (whitespace-only) change.
56682
56683 2003-08-13  Paul Eggert  <eggert@twinsun.com>
56684
56685         * lib/exclude.c: Include <ctype.h>
56686         (IN_CTYPE_DOMAIN): New macro.
56687         (is_space): New fn.
56688         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
56689         and empty lines.
56690
56691         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
56692         Undo previous (whitespace-only) change.
56693
56694 2003-08-13  Paul Eggert  <eggert@twinsun.com>
56695
56696         * config/srclist-update: Change update back to the old behavior,
56697         leaving whitespace alone.  Use one 'sed' command rather than a
56698         pipeline.
56699         (fixlicense): Now a variable, not a function.
56700         (remove_trailing_blanks): Remove.
56701         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
56702         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
56703         Undo previous (whitespace-only) change.
56704
56705 2003-08-12  Paul Eggert  <eggert@twinsun.com>
56706
56707         Merge from coreutils.
56708         * modules/euidaccess: Add lib_SOURCES, include for new
56709         file euidaccess.h
56710
56711 2003-08-12  Paul Eggert  <eggert@twinsun.com>
56712
56713         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
56714         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
56715         Normalize leading white space and remove trailing white space.
56716
56717         Merge from coreutils
56718         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
56719
56720         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
56721         0.12.1.  These files are now being upgraded automatically by
56722         ../config/srclist-update.
56723
56724 2003-08-12  Paul Eggert  <eggert@twinsun.com>
56725
56726         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
56727         Normalize leading white space and remove trailing white space.
56728         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
56729         notice, as per ../config/srclist-update.
56730
56731         Merge from coreutils.
56732         * lib/euidaccess.h: New file.
56733         * lib/euidaccess.c: Include it.
56734         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
56735         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
56736         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
56737
56738 2003-08-12  Paul Eggert  <eggert@twinsun.com>
56739
56740         * config/srclist-update: Add copyright notice.
56741         (remove_id_lines, remove_trailing_blanks): New constants.
56742         (fixfile): Use them to normalize spacing a bit in copied files.
56743         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
56744         Normalize leading white space and remove trailing white space.
56745
56746         * config/texinfo.tex: Sync with texinfo.
56747
56748         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
56749         strtoul.c from libc, to merge coreutils whitespace changes.
56750
56751         * config/srclist.txt: Get the following m4 files from gettext:
56752         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
56753         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
56754         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
56755         wint_t.m4.
56756
56757 2003-08-12  Karl Berry  <karl@gnu.org>
56758
56759         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
56760         been made.
56761
56762 2003-08-11  Paul Eggert  <eggert@twinsun.com>
56763
56764         * modules/gnu-source, m4/gnu-source.m4:
56765         Remove; we're assuming Autoconf 2.54 or later now.
56766         Suggested by Bruno Haible.
56767         * MODULES.html.sh (func_all_modules): Remove gnu-source.
56768
56769 2003-08-11  Bruno Haible  <bruno@clisp.org>
56770
56771         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
56772
56773 2003-08-11  Bruno Haible  <bruno@clisp.org>
56774
56775         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
56776         (vasnprintf): Use it instead of wcslen.
56777
56778 2003-08-11  Bruno Haible  <bruno@clisp.org>
56779
56780         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
56781         value to ensure that _Bool promotes to int. Use #define for _Bool when
56782         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
56783
56784 2003-08-10  Karl Berry  <karl@gnu.org>
56785
56786         * lib/regex.h: update from libc (whitespace fix).
56787
56788 2003-08-09  Paul Eggert  <eggert@twinsun.com>
56789
56790         Merge some files from coreutils.  These changes were
56791         originally made by Jim Meyering.
56792         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
56793         many older Unixes require this.
56794         * lib/alloca.c (alloca): Remove cast to argument of free;
56795         no longer needed in C89.
56796         * lib/alloca_.h, regex.h: Fix white space to match
56797         what GNU indent does.
56798
56799 2003-08-09  Paul Eggert  <eggert@twinsun.com>
56800
56801         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
56802         apparently Emacs's Unicode mode got confused before my 2003-08-05
56803         checkin.
56804
56805 2003-08-08  Paul Eggert  <eggert@twinsun.com>
56806
56807         * m4/extensions.m4: New file.
56808         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
56809         Require gl_USE_SYSTEM_EXTENSIONS.
56810         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
56811         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
56812
56813 2003-08-08  Paul Eggert  <eggert@twinsun.com>
56814
56815         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
56816         * modules/extensions, modules/gnu-source: New files.
56817         * modules/timespec, modules/unlocked-io: Depend on extensions.
56818
56819 2003-08-07  Paul Eggert  <eggert@twinsun.com>
56820
56821         * modules/restrict: New file.
56822         * MODULES.html.sh (func_all_modules): Add restrict.
56823         * modules/regex: Depend on restrict.
56824
56825 2003-08-07  Paul Eggert  <eggert@twinsun.com>
56826
56827         * m4/restrict.m4: New file.
56828         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
56829
56830 2003-08-07  Bruno Haible  <bruno@clisp.org>
56831
56832         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
56833         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
56834
56835 2003-08-07  Bruno Haible  <bruno@clisp.org>
56836
56837         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
56838         makes the module 'getndelim2' compatible with the module 'getline'.
56839
56840 2003-08-05  Paul Eggert  <eggert@twinsun.com>
56841
56842         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
56843         byte with "\201" to avoid glitches when editing that source file
56844         with multi-gnome-terminal.
56845
56846 2003-08-05  Paul Eggert  <eggert@twinsun.com>
56847
56848         * lib/bumpalloc.h: Remove.
56849
56850 2003-08-05  Paul Eggert  <eggert@twinsun.com>
56851
56852         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
56853         * modules/bumpalloc: Remove.
56854
56855 2003-08-04  Paul Eggert  <eggert@twinsun.com>
56856
56857         * lib/getloadavg.c: Change copyright notice and spacing to conform to
56858         GNU coding style.
56859
56860         Merge from coreutils.
56861         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
56862         1. From glibc.
56863         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
56864         from Karl Berry, implemented by Jim Meyering.
56865         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
56866         from Dmitry V. Levin.
56867         Remove anachronistic cast of xrealloc.
56868         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
56869         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
56870         type. Otherwise, it wouldn't compile with at least /bin/cc on
56871         ymp-cray-unicos9.0.2.X.
56872         Combine two mostly-identical uses of alloca into one.
56873         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
56874
56875 2003-08-04  Dave Love  <d.love@dl.ac.uk>
56876
56877         [From Emacs.]
56878
56879         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
56880         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
56881         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
56882         obsolete NLIST_NAME_UNION.
56883         [__GNU__]: Undef BSD and FSCALE.
56884         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
56885
56886 2003-08-03  Paul Eggert  <eggert@twinsun.com>
56887
56888         * lib/stdbool_.h (_Bool): Make it signed char, instead of
56889         an enum type, so that it's guaranteed to promote to int.  See:
56890         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
56891
56892 2003-08-03  Karl Berry  <karl@gnu.org>
56893
56894         * config/depcomp: update from automake.
56895
56896 2003-07-31  Paul Eggert  <eggert@twinsun.com>
56897
56898         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
56899         (strerror): Don't assume that a printable int fits in 14 bytes.
56900
56901 2003-07-31  Bruno Haible  <bruno@clisp.org>
56902
56903         * modules/getpass-gnu: New file.
56904         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
56905
56906 2003-07-31  Bruno Haible  <bruno@clisp.org>
56907
56908         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
56909
56910 2003-07-24  Karl Berry  <karl@gnu.org>
56911
56912         * config/missing: update from automake.
56913
56914 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
56915             Bruno Haible  <bruno@clisp.org>
56916
56917         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
56918         * lib/getline.c (getline, getdelim): Likewise.
56919         Remove _GNU_SOURCE define; now it's defined in config.h through
56920         m4/getline.m4.
56921
56922 2003-07-23  Karl Berry  <karl@gnu.org>
56923
56924         * config/config.sub: update from prep.
56925
56926 2003-07-22  Paul Eggert  <eggert@twinsun.com>
56927
56928         * modules/xalloc (Depends-on): Add exitfail.
56929         * modules/xmemcoll: Likewise.
56930
56931 2003-07-22  Paul Eggert  <eggert@twinsun.com>
56932
56933         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
56934         over-parenthesization in macros.
56935
56936         Sync with coreutils.
56937
56938         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
56939         required by C99.
56940
56941         Use `exit_failure' for xalloc and xmemcoll instead of their own
56942         private exit-failure variables.
56943         * lib/xalloc.h (xalloc_exit_failure): Remove.
56944         * lib/xmalloc.c: Likewise.  Include exitfail.h.
56945         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
56946         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
56947         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
56948         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
56949
56950 2003-07-20  Jim Meyering  <jim@meyering.net>
56951
56952         * modules/closeout (Depends-on): Add exitfail.
56953         Suggestion from Bruno Haible.
56954
56955 2003-07-19  Karl Berry  <karl@gnu.org>
56956
56957         * config/config.sub: update from prep.
56958
56959 2003-07-18  Paul Eggert  <eggert@twinsun.com>
56960
56961         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
56962         Remove.
56963         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
56964         to test that it can stand by itself.  Include "exitfail.h".
56965         Clients should set exit_failure instead.
56966         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
56967
56968 2003-07-18  Bruno Haible  <bruno@clisp.org>
56969
56970         * modules/getndelim2: New file.
56971         * modules/getline: Share files with module getndelim2.
56972         * modules/getnline: Depend on getndelim2 instead of sharing files with
56973         it. Add getnline.c to lib_SOURCES.
56974         * MODULES.html.sh (func_all_modules): Add getndelim2.
56975
56976 2003-07-18  Bruno Haible  <bruno@clisp.org>
56977
56978         * m4/getndelim2.m4: New file.
56979         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
56980         invoke gl_PREREQ_GETNDELIM2.
56981         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
56982         gl_PREREQ_GETNDELIM2.
56983         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
56984         gl_GETNDELIM2.
56985
56986 2003-07-18  Bruno Haible  <bruno@clisp.org>
56987
56988         * lib/getndelim2.h: New file.
56989         * lib/getndelim2.c: Make into a module of its own. Include config.h,
56990         getndelim2.h.
56991         (getndelim2): Make non-static. Change return type to ssize_t.
56992         * lib/getline.h: Change argument names.
56993         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
56994         * lib/getnline.c: Include getndelim2.h.
56995
56996 2003-07-18  Andreas Schwab  <schwab@suse.de>
56997
56998         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
56999
57000 2003-07-17  Karl Berry  <karl@gnu.org>
57001
57002         * config/config.sub: update from prep.
57003
57004 2003-07-17  Bruno Haible  <bruno@clisp.org>
57005
57006         * modules/getnline: New file.
57007         * modules/getline: Add lib/getndelim2.c to source file list.
57008         * MODULES.html.sh (func_all_modules): Add getnline.
57009
57010 2003-07-17  Bruno Haible  <bruno@clisp.org>
57011
57012         * m4/getnline.m4: New file.
57013
57014 2003-07-17  Bruno Haible  <bruno@clisp.org>
57015
57016         * m4/Makefile.am.in: Remove file.
57017         * m4/Makefile.am: Remove file.
57018         * m4/Makefile.in: Remove file.
57019
57020 2003-07-17  Bruno Haible  <bruno@clisp.org>
57021
57022         * lib/getnline.h: New file.
57023         * lib/getnline.c: New file.
57024         * lib/getndelim2.c: New file, extracted from getline.c.
57025         (getndelim2): Renamed from getdelim2, with added nmax argument.
57026         * lib/getline.c: Include getndelim2.c.
57027         (getdelim2): Moved out to getndelim2.c.
57028         (getline, getdelim): Update.
57029
57030 2003-07-17  Bruno Haible  <bruno@clisp.org>
57031
57032         * lib/Makefile.am: Remove file.
57033         * lib/Makefile.in: Remove file.
57034
57035 2003-07-17  Bruno Haible  <bruno@clisp.org>
57036
57037         * configure.in: Remove file.
57038         * Makefile.in: Remove file.
57039
57040 2003-07-17  Bruno Haible  <bruno@clisp.org>
57041
57042         * MODULES.html.sh: Put the </BODY> right before </HTML>.
57043
57044 2003-07-16  Karl Berry  <karl@gnu.org>
57045
57046         * config/srclist-update: was running fixlicense twice, which caused
57047                 texinfo.tex to be nullified for some reason.  Simplify,
57048                 $gplsrc is no longer needed as far as I can see?
57049
57050 2003-07-16  Jim Meyering  <jim@meyering.net>
57051
57052         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
57053
57054 2003-07-15  Paul Eggert  <eggert@twinsun.com>
57055
57056         * config/srclist.txt: Get the following files from gettext-runtime/intl
57057         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
57058         ref-del.sin.  From Bruno Haible.
57059         * config/srclist-update (fixfile): Change grep pattern again, since the
57060         previous fix didn't work (there was another trailing $).  Use
57061         '[$]' to escape the $s.
57062
57063 2003-07-15  Karl Berry  <karl@gnu.org>
57064
57065         * lib/vasnprintf.c: update from gettext.
57066
57067 2003-07-15  Karl Berry  <karl@gnu.org>
57068
57069         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
57070         gets expanded when surrounded by '$'.
57071
57072 2003-07-15  Jim Meyering  <jim@meyering.net>
57073
57074         * modules/save-cwd: Don't depend on error.  From Derek Price.
57075
57076 2003-07-15  Jim Meyering  <jim@meyering.net>
57077
57078         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
57079
57080 2003-07-14  Simon Josefsson  <jas@extundo.com>
57081
57082         * modules/mempcpy: New file.
57083         * MODULES.html.sh (func_all_modules): Add mempcpy.
57084
57085 2003-07-14  Simon Josefsson  <jas@extundo.com>
57086
57087         * m4/mempcpy.m4: New file.
57088
57089 2003-07-14  Simon Josefsson  <jas@extundo.com>
57090
57091         * lib/mempcpy.h: New file.
57092         * lib/mempcpy.c: New file.
57093
57094 2003-07-14  Paul Eggert  <eggert@twinsun.com>
57095
57096         * modules/getdate, modules/posixtm: Depend on mktime.
57097
57098 2003-07-14  Paul Eggert  <eggert@twinsun.com>
57099
57100         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
57101         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
57102         unicodeio.c, unicodeio.h, unlocked-io.h:
57103         Switch from LGPL to GPL.
57104
57105 2003-07-14  Paul Eggert  <eggert@twinsun.com>
57106
57107         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
57108         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
57109         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
57110         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
57111         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
57112         updated automatically by ../config/srclist-update.  This changes
57113         their license from LPGL to GPL.
57114
57115 2003-07-14  Paul Eggert  <eggert@twinsun.com>
57116
57117         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
57118         assumed to refer to the root of the most recent stable gettext version.
57119         * config/srclistvars.sh: Add defaults for eggert.
57120         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
57121         Match "This program" as well as "The program".  This is needed
57122         for gettext.
57123
57124 2003-07-14  Jim Meyering  <jim@meyering.net>
57125
57126         Don't emit diagnostics.  Let callers do that.
57127         * lib/save-cwd.c: Don't include "error.h".
57128         (save_cwd): Don't call error.  Ensure that errno is valid
57129         when returning nonzero.
57130
57131         * lib/save-cwd.h (restore_cwd): Update prototype.
57132         * lib/save-cwd.c (restore_cwd): Remove two parameters.
57133         Simplify.  Don't call error upon failure.  Let callers do that.
57134         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
57135         when auditing is enabled.  But don't bother updating the #if.
57136
57137 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
57138
57139         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
57140         it breaks C++ compilation.
57141         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
57142
57143 2003-07-10  Simon Josefsson  <jas@extundo.com>
57144
57145         * modules/strchrnul (Makefile.am): Add strchrnul.h.
57146
57147 2003-07-10  Jim Meyering  <jim@meyering.net>
57148
57149         * m4/clock_time.m4: Remove trailing blank.
57150         * m4/intmax_t.m4: Likewise.
57151
57152 2003-07-10  Jim Meyering  <jim@meyering.net>
57153
57154         * lib/vasnprintf.c: Remove trailing blanks.
57155         Make cpp indentation consistent.
57156
57157 2003-07-09  Paul Eggert  <eggert@twinsun.com>
57158
57159         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
57160         posixver.c, strftime.c, strnlen.c, strverscmp.c:
57161         Switch from LGPL to GPL.
57162
57163 2003-07-09  Paul Eggert  <eggert@twinsun.com>
57164
57165         * config/srclist.txt: Sort sublists.  Add
57166         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
57167         that differ from gnulib for one reason or another; we'd like this list
57168         to be smaller but for now let's document what we have.
57169
57170 2003-07-08  Paul Eggert  <eggert@twinsun.com>
57171
57172         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
57173         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
57174         and sweeter "eval x=$x".
57175         * config/srclist.txt: Get lib/argp* from glibc.
57176
57177 2003-07-07  Paul Eggert  <eggert@twinsun.com>
57178
57179         * lib/mktime.c: Fix some boundary cases and remove need for floating
57180         point.
57181
57182         Issue a compile-time diagnostic if time_t is floating point, or if
57183         two's complement arithmetic is not in effect, or if arithmetic
57184         right shift does not propagate the sign.  These assumptions were
57185         all in the original code but they weren't checked.
57186
57187         (TIME_T_MIDPOINT, verify): New macros.
57188         (__isleap): Remove; it has integer overflow problems.
57189         (leapyear): New function, without those problems.
57190         (ydhms_tm_diff): Remove; splitting into two parts.
57191         (ydhms_diff): New function, containing the arithmetic part of
57192         the old ydhms_tm_diff function.  Issue a compile-time
57193         diagnostic if we are not using C99 integer division.
57194         Avoid casts when possible.
57195         (guess_time_tm): New function, containing the checking part of
57196         the old ydhms_tm_diff function.  Return the new value, rather than
57197         the difference between it and the old.  Accept a new argument T
57198         so that *T specifies the old value.  Check for overflow in the result.
57199
57200         (__mktime_internal): Use a time_t offset, not a long int offset.
57201         This undoes the 2003-06-04 change, which is no longer needed now
57202         that we have better overflow checking.
57203         (localtime_offset): Likewise.
57204
57205         (__mktime_internal): Avoid harmful overflow on hosts where time_t
57206         and long are 64-bit but int is only 32-bit.
57207         (ydhms_diff): Use long int to store year1 and yday1.
57208         Issue a compile-time diagnostic if long int is not wide enough.
57209
57210         (__mktime_internal): Use long int to store adjusted year and yday.
57211         Use plain C rather than preprocessor commands, if that doesn't
57212         affect efficiency.
57213         Check for overflow (and try to repair) after each probe
57214         rather than checking only at the very end.  This avoids some bugs
57215         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
57216         does not equal GMT offset at maximum time).
57217         Use integer to check for overflow rather than floating point; this
57218         is more portable to non-IEEE hosts, and is a tad faster.
57219         When we detect that we are oscillating between two values,
57220         don't check whether tm_isdst has the requested value, since
57221         we already know the answer.  When tm_isdst has the wrong value,
57222         use a different heuristic to find the right one, based on the
57223         extreme values actually observed in practice in tz2003a,
57224         rather than the (overly optimistic) "previous 3 calendar quarters".
57225
57226         (not_equal_tm, print_tm, check_result): Use "const T" rather than
57227         "T const" to accommodate glibc style.
57228         (check_result): Use less-confusing report format.  "long" -> "long int.
57229         (main): Likewise.
57230         Don't loop if the iteration overflows time_t.
57231         Allow a negative step in the iteration.
57232
57233 2003-07-06  Karl Berry  <karl@gnu.org>
57234
57235         * config/depcomp: update from automake.
57236         * config/config.sub: update from prep.
57237
57238 2003-07-03  Karl Berry  <karl@gnu.org>
57239
57240         * config/config.guess: update from prep.
57241
57242 2003-07-01  Paul Eggert  <eggert@twinsun.com>
57243
57244         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
57245         xreadlink.c now includes it unconditionally.
57246
57247 2003-07-01  Paul Eggert  <eggert@twinsun.com>
57248
57249         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
57250         having it depend on HAVE_SYS_TYPES_H.
57251
57252 2003-07-01  Bruno Haible  <bruno@clisp.org>
57253
57254         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
57255         <sys/types.h> should be sufficient.
57256         Reported by Paul Eggert.
57257
57258 2003-06-26  Karl Berry  <karl@gnu.org>
57259
57260         * config/depcomp: update from automake.
57261
57262 2003-06-26  Bruno Haible  <bruno@clisp.org>
57263
57264         * modules/human: Depend on module stdbool.
57265
57266 2003-06-25  Bruno Haible  <bruno@clisp.org>
57267
57268         * modules/readlink: New file.
57269         * modules/xreadlink: Depend on it.
57270         * MODULES.html.sh (func_all_modules): Add readlink.
57271
57272 2003-06-25  Bruno Haible  <bruno@clisp.org>
57273
57274         * m4/readlink.m4: New file.
57275
57276 2003-06-25  Bruno Haible  <bruno@clisp.org>
57277
57278         * lib/readlink.c: New file.
57279
57280 2003-06-22  Karl Berry  <karl@gnu.org>
57281
57282         * config/srclist.txt: update mkinstalldirs from automake.
57283         * config/mkinstalldirs: update.
57284
57285 2003-06-22  Bruno Haible  <bruno@clisp.org>
57286
57287         Portability to mingw32.
57288         * m4/ssize_t.m4: New file, from GNU gettext.
57289         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
57290         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
57291
57292 2003-06-22  Bruno Haible  <bruno@clisp.org>
57293
57294         * modules/safe-read: Add m4/ssize_t.m4.
57295         * modules/xreadlink: Add m4/ssize_t.m4.
57296
57297 2003-06-20  Bruno Haible  <bruno@clisp.org>
57298
57299         Assume C89, so PARAMS isn't needed.
57300         * lib/unicodeio.h (PARAMS): Remove.
57301         * lib/unicodeio.c: Don't use PARAMS.
57302
57303 2003-06-18  Karl Berry  <karl@gnu.org>
57304
57305         * config/config.{guess,sub}: update from prep.
57306
57307 2003-06-18  Jim Meyering  <jim@meyering.net>
57308
57309         Merge changes from coreutils.
57310         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
57311         Remove explicit declarations of xmalloc and realloc.
57312         Include xalloc.h.
57313         (read_utmp): Remove anachronistic cast of xmalloc.
57314
57315 2003-06-17  Paul Eggert  <eggert@twinsun.com>
57316
57317         Assume C89, so PARAMS isn't needed.
57318         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
57319         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
57320         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
57321         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
57322         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
57323         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
57324         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
57325         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
57326         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
57327         lib/xstrtod.h, lib/xstrtol.h: Likewise.
57328         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
57329         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
57330         no longer needed. Anyway, config.h should always be included before any
57331         other file.
57332
57333 2003-06-11  Simon Josefsson  <jas@extundo.com>
57334
57335         * modules/sysexits: New file.
57336         * MODULES.html.sh (func_all_modules): Add sysexits.
57337
57338 2003-06-11  Simon Josefsson  <jas@extundo.com>
57339
57340         * lib/sysexit_.h: New file.
57341
57342 2003-06-11  Derek Price  <derek@ximbiot.com>
57343
57344         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
57345         necessary.
57346
57347 2003-06-11  Bruno Haible  <bruno@clisp.org>
57348
57349         * m4/sysexits.m4: New file.
57350
57351 2003-06-10  Simon Josefsson  <jas@extundo.com>
57352
57353         * lib/argp.h: New file, from glibc.
57354         * lib/argp-ba.c: New file, from glibc.
57355         * lib/argp-eexst.c: New file, from glibc.
57356         * lib/argp-fmtstream.c: New file, from glibc.
57357         * lib/argp-fmtstream.h: New file, from glibc.
57358         * lib/argp-fs-xinl.c: New file, from glibc.
57359         * lib/argp-help.c: New file, from glibc.
57360         * lib/argp-namefrob.h: New file, from glibc.
57361         * lib/argp-parse.c: New file, from glibc.
57362         * lib/argp-pv.c: New file, from glibc.
57363         * lib/argp-pvh.c: New file, from glibc.
57364         * lib/argp-xinl.c: New file, from glibc.
57365
57366 2003-06-10  Simon Josefsson  <jas@extundo.com>
57367
57368         * modules/strchrnul: New file.
57369
57370 2003-06-10  Simon Josefsson  <jas@extundo.com>
57371
57372         * modules/argp: New file.
57373
57374 2003-06-10  Simon Josefsson  <jas@extundo.com>
57375
57376         * m4/strchrnul.m4: New file.
57377
57378 2003-06-10  Simon Josefsson  <jas@extundo.com>
57379
57380         * lib/strchrnul.h: New file.
57381         * lib/strchrnul.c: New file.
57382
57383 2003-06-10  Bruno Haible  <bruno@clisp.org>
57384
57385         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
57386
57387 2003-06-07  Karl Berry  <karl@gnu.org>
57388
57389         * config/config.{guess,sub}: update from prep.
57390
57391 2003-06-07  Jim Meyering  <jim@meyering.net>
57392
57393         * modules/strtod: Use $(...) notation, not @...@ for
57394         AC_REPLACE'd variables.
57395         * modules/localcharset: Likewise.
57396
57397 2003-06-07  Jim Meyering  <jim@meyering.net>
57398
57399         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
57400         in place of my name in the copyright comment.
57401         Remove definition and uses of __P.
57402
57403         From coreutils.
57404         * lib/stat.c: Don't declare xmalloc explicitly.
57405         Instead, include "xalloc.h".
57406         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
57407         xrealloc, and xcalloc return values.
57408         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
57409         Improve comment.
57410         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
57411
57412 2003-06-07  Bruno Haible  <bruno@clisp.org>
57413
57414         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
57415         avoid AC_CONFIG_LINKS.
57416         * modules/fnmatch (Makefile.am): Use explicit creation rule for
57417         fnmatch.h, to avoid AC_CONFIG_LINKS.
57418         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
57419
57420 2003-06-07  Bruno Haible  <bruno@clisp.org>
57421
57422         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
57423         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
57424         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
57425         directory.
57426         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
57427         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
57428         directory.
57429
57430 2003-06-06  Jim Meyering  <jim@meyering.net>
57431
57432         Merge from coreutils.
57433         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
57434         Consolidate declarations and initializations of *_base* locals.
57435
57436         Merge from coreutils.
57437         This avoids a core dump on systems without GNU putenv,
57438         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
57439         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
57440         (unsetenv): New static function, from GNU libc.
57441         (rpl_putenv): Use it.
57442
57443         * lib/modechange.c: Remove trailing blanks.
57444
57445         Merge from coreutils.
57446         * lib/fsusage.c: Remove declaration of statfs.
57447         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
57448
57449         * lib/posixtm.c: Include <stdbool.h> unconditionally.
57450
57451 2003-06-06  Jim Meyering  <jim@meyering.net>
57452
57453         * lib/stdbool_.h: Renamed from stdbool.h.in.
57454
57455 2003-06-06  Jim Meyering  <jim@meyering.net>
57456             Bruno Haible  <bruno@clisp.org>
57457
57458         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
57459         Adjust Makefile.am snippet not to redirect directly to target.
57460         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
57461
57462 2003-06-05  Paul Eggert  <eggert@twinsun.com>
57463
57464         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
57465         mismatch, look in future quarters as well as past.  This fixes a
57466         bug when processing fall-backwards gaps immediately after a long
57467         period of daylight-saving time.
57468
57469         * lib/mktime.c: Assume freestanding C89 or better.
57470         (HAVE_LIMITS_H): Remove.  Assume it's 1.
57471         (__P): Remove; not used.
57472         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
57473         (mktime, not_equal_tm, print_tm, check_result,
57474         main): Use prototypes.  Use const * where appropriate.
57475         (main): Fix typo in testing code that uncovered by above changes.
57476         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
57477
57478 2003-06-04  Paul Eggert  <eggert@twinsun.com>
57479
57480         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
57481         locale.h, localeconv.  This merges changes from coreutils.
57482
57483         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
57484         It can be removed after the next Autoconf is released.
57485         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
57486         needed.
57487
57488 2003-06-04  Paul Eggert  <eggert@twinsun.com>
57489
57490         * lib/mktime.c: Fix Debian bug 177940
57491         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
57492         (localtime_offset): Now long int, not time_t, because we want it
57493         to be guaranteed to be signed.  All uses changed.
57494         (__mktime_internal): If overflow would occur when adding offset,
57495         don't add it.
57496
57497         Merge 'human' changes from coreutils.  Rewrite to support
57498         locale-specific notations like thousands separators.
57499         * lib/human.c: Simplify authorship notice.
57500         Include human.h immediately after config.h.
57501         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
57502         <limits.h>: Do not include, since human.h does.
57503         (SIZE_MAX, UINTMAX_MAX): New macros.
57504         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
57505         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
57506         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
57507         (power_letter): Renamed from suffixes.
57508         (generate_suffix_backwards): Remove.
57509         (adjust_value): Now takes int style (because of human.h changes)
57510         and long double value (for greater precision on some platforms).
57511         (group_number): New function.
57512         (human_readable): Use it.  Use integer options, not enum.
57513         Put the options before the sizes in the arg list.
57514         Support all the new options.
57515         The old human_readable function has been removed;
57516         use inttostr.h instead.
57517         (human_readable, default_block_size, humblock):
57518         Use uintmax_t, not int, for block sizes.
57519         (human_readable_inexact, block_size_types): Remove.
57520         (block_size_opts): New constant.
57521         (human_options): Renamed from human_block_size, with new signature
57522         that allows block sizes up to UINTMAX_MAX.  All callers changed.
57523         * lib/human.h: Add copyright and authorship notice.
57524         Include <limits.h> and <stdbool.h> unconditionally.
57525         (PARAMS): Remove.  All uses removed.
57526         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
57527         (enum human_inexact_style): Remove tag; now a nameless enum.
57528         (human_floor, human_ceiling, human_round_to_even): Now have
57529         values 2, 0, 1 rather than -1, 1, 0.
57530         (human_group_digits, human_suppress_point_zero, human_autoscale,
57531         human_base_1024, human_SI, human_B): New constants.
57532         (human_readable_inexact, human_block_size): Remove.
57533         (human_readable): Size args are now uintmax_t, not int.
57534         (human_options): New decl.
57535
57536         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
57537         unnecessary now that we assume C89 or better.  This change
57538         imported from coreutils.
57539
57540         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
57541         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
57542         in the 2003-05-30 sync from glibc.
57543
57544         .h files should stand alone, but we shouldn't include <sys/types.h>
57545         if we can get away with just <stddef.h>.
57546
57547         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
57548         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
57549         rather than <sys/types.h>, as we merely need size_t.
57550         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
57551         to get size_t.
57552         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
57553         Include <stdio.h>, to get FILE.
57554         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
57555         memcasecmp.h has included <stddef.h> and all we need is size_t.
57556         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
57557         our interface, instead of including <sys/types.h>
57558
57559 2003-06-04  Paul Eggert  <eggert@twinsun.com>
57560
57561         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
57562         now, as glibc mktime is buggy on non-glibc systems.
57563
57564 2003-06-03  Karl Berry  <karl@gnu.org>
57565
57566         * config/config.sub: update from prep.
57567
57568 2003-06-02  Paul Eggert  <eggert@twinsun.com>
57569
57570         [from coreutils]
57571         Fix some minor time-related bugs with POSIX time arguments.
57572         Some valid time stamps were being rejected (notably -1, and
57573         time stamps before 1900 on 64-bit hosts).  And some invalid
57574         time stamps were being accepted, e.g. September 31.
57575
57576         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
57577         that we can return (time_t) -1 successfully.
57578         * lib/posixtm.c: Likewise.
57579         [HAVE_STDBOOL_H]: Include <stdbool.h>.
57580         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
57581         (t): Remove static var.
57582         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
57583         of static var.  All uses changed.
57584         (year): Do not reject years before 1900; they can occur with
57585         64-bit time_t.
57586         (posix_time_parse): Do not check for out-of-range components;
57587         that is now the caller's responsibility, since our checks were
57588         only approximations.
57589         (posixtime): Use mktime to check for out-of-range components,
57590         since it knows them exactly.
57591         If mktime returns (time_t) -1, check whether an error actually occurred
57592         by invoking localtime on -1.
57593         (main) [TEST_POSIXTIME]: Check for input data errors, and report
57594         posixtime failures better.
57595         Improve the test data (in comments only).
57596
57597 2003-06-02  Karl Berry  <karl@gnu.org>
57598
57599         * config/mkinstalldirs (version): new variable.
57600         (--version): new option.
57601         (usage): improve message.
57602
57603 2003-05-30  Karl Berry  <karl@gnu.org>
57604
57605         * lib/mktime.c: update from libc.
57606
57607 2003-05-30  Bruno Haible  <bruno@clisp.org>
57608
57609         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
57610         * config/config.rpath: Upgrade to gettext-0.12.1.
57611
57612 2003-05-30  Bruno Haible  <bruno@clisp.org>
57613
57614         * m4/gettext.m4: Upgrade to gettext-0.12.1.
57615         * m4/nls.m4: New file, from gettext-0.12.1.
57616         * m4/po.m4: New file, from gettext-0.12.1.
57617         * m4/progtest.m4: Upgrade to gettext-0.12.1.
57618
57619 2003-05-30  Bruno Haible  <bruno@clisp.org>
57620
57621         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
57622         * lib/localcharset.h: Likewise.
57623         * lib/localcharset.c: Likewise.
57624
57625 2003-05-29  Karl Berry  <karl@gnu.org>
57626
57627         * config/config.rpath: update from gettext.
57628
57629 2003-05-28  Paul Eggert  <eggert@twinsun.com>
57630
57631         Assume the headers required for C89 freestanding compilers.
57632         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
57633         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
57634         * m4/human.m4 (gl_HUMAN): Likewise.
57635         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
57636         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
57637         * m4/userspec.m4 (gl_USERSPEC): Likewise.
57638         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
57639         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
57640         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
57641
57642 2003-05-28  Paul Eggert  <eggert@twinsun.com>
57643
57644         Assume the headers required for C89 freestanding compilers.
57645         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
57646         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
57647         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
57648         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
57649         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
57650         define, since <limits.h> is guaranteed to do that.
57651         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
57652         * lib/exclude.c: Include <stdbool.h> unconditionally.
57653         * lib/tempname.c: Include <stddef.h> unconditionally.
57654         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
57655         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
57656         <stddef.h> does that.
57657         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
57658         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
57659         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
57660         needed.
57661         * lib/xstrtol.c: Likewise.
57662         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
57663         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
57664
57665         * lib/addext.c (addext): Use assignment rather than cast, to avoid
57666         warnings on some platforms.
57667
57668         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
57669         arbitrarily.
57670
57671 2003-05-26  Jim Meyering  <jim@meyering.net>
57672
57673         Merge in a change from coreutils:
57674         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
57675         that is guaranteed to be `no'.  Use `no_such_member' to indicate
57676         that condition, rather than `-1' which is slightly misleading.
57677         Change the name of the cache variable to have the gl_ prefix.
57678         Prompted by a patch from Richard Dawe for DJGPP.
57679
57680 2003-05-24  Karl Berry  <karl@gnu.org>
57681
57682         * config/config.guess: update from prep.
57683
57684 2003-05-22  Karl Berry  <karl@gnu.org>
57685
57686         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
57687
57688 2003-05-20  Karl Berry  <karl@gnu.org>
57689
57690         * config/config.guess: update from prep.
57691
57692 2003-05-18  Karl Berry  <karl@gnu.org>
57693
57694         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
57695         might actually be set by the user.
57696
57697         * config/depcomp, install-sh, mdate-sh: update from automake.
57698
57699 2003-05-17  Bruno Haible  <bruno@clisp.org>
57700
57701         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
57702         invalid expansion for AC_EGREP_CPP.
57703         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
57704         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
57705         Suggested by Akim Demaille <akim@epita.fr> in
57706         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
57707
57708 2003-05-12  Jim Meyering  <jim@meyering.net>
57709
57710         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
57711         the space-padded-by-default conversion specifiers, %e, %k, %l.
57712
57713 2003-05-12  Bruno Haible  <bruno@clisp.org>
57714
57715         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
57716         the string is longer than 4 KB.
57717
57718 2003-05-11  Karl Berry  <karl@gnu.org>
57719
57720         * config/config.{guess,sub}: update from prep.
57721
57722 2003-05-09  Bruno Haible  <bruno@clisp.org>
57723
57724         * modules/error: Add m4/strerror_r.m4 to file list.
57725
57726 2003-05-03  Bruno Haible  <bruno@clisp.org>
57727
57728         Upgrade to Unicode-4.0.
57729         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
57730         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
57731         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
57732         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
57733         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
57734         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
57735         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
57736         Change width of U+E0100..U+E01EF from 1 to 0.
57737
57738 2003-04-25  Jim Meyering  <jim@meyering.net>
57739
57740         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
57741         of type size_t, not int.
57742
57743 2003-04-25  Bruno Haible  <bruno@clisp.org>
57744
57745         * lib/copy-file.c: Include <stddef.h>, for size_t.
57746
57747 2003-04-21  Paul Eggert  <eggert@twinsun.com>
57748
57749         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
57750         code which expansion is under static control.  Patch imported from
57751         Akim Demaille's patch to Bison; see
57752         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
57753
57754 2003-04-14  Bruno Haible  <bruno@clisp.org>
57755
57756         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
57757
57758 2003-04-11  Jim Meyering  <jim@meyering.net>
57759
57760         Merge changes from Coreutils.
57761
57762         2003-03-22  Jim Meyering  <jim@meyering.net>
57763
57764         * lib/strftime.c (widen): Cast alloca return value to proper type.
57765
57766         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
57767
57768         From GNU libc.
57769         * lib/strftime.c (my_strftime): Handle very large width
57770         specifications for numeric values correctly.  Improve checks for
57771         overflow.
57772
57773         2003-01-19  Jim Meyering  <jim@meyering.net>
57774
57775         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
57776         definitions.
57777         (nl_get_alt_digit) [! defined my_strftime]: Define.
57778         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
57779         _nl_get_alt_digit and _nl_get_walt_digit.
57780
57781         * lib/strftime.c (my_strftime): Merge in locale-related changes from
57782         libc. These changes have no effect outside of _LIBC.
57783
57784 2003-04-10  Bruno Haible  <bruno@clisp.org>
57785
57786         * modules/findprog: New file.
57787         * MODULES.html.sh (func_all_modules): Add it.
57788
57789 2003-04-10  Bruno Haible  <bruno@clisp.org>
57790
57791         * m4/findprog.m4: New file.
57792         * m4/eaccess.m4: New file.
57793
57794 2003-04-10  Bruno Haible  <bruno@clisp.org>
57795
57796         * lib/findprog.h: New file, from GNU gettext.
57797         * lib/findprog.c: New file, from GNU gettext.
57798
57799 2003-04-05  Jim Meyering  <jim@meyering.net>
57800
57801         Merge changes from Coreutils.
57802
57803         * lib/exclude.h (PARAMS): Remove definition and uses.
57804         * lib/exclude.c: Remove uses of `PARAMS'.
57805
57806         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
57807         Add test-cases for DOS filenames. Declare program_name.
57808         (main): Set up program_name.  Patch by Rich Dawe.
57809
57810         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
57811         error from mntctl.
57812         Use mntctl's return value to drive the entry-processing loop, since
57813         we can't rely on the value of the vmt_length member in the last
57814         entry.  On some systems doing so could result in exhausting
57815         virtual memory.  Based in part on a patch from Mike Jetzer.
57816
57817 2003-04-04  Bruno Haible  <bruno@clisp.org>
57818
57819         * modules/linebreak: New file.
57820         * MODULES.html.sh (func_all_modules): Add it.
57821
57822 2003-04-04  Bruno Haible  <bruno@clisp.org>
57823
57824         * m4/linebreak.m4: New file.
57825
57826 2003-04-04  Bruno Haible  <bruno@clisp.org>
57827
57828         * lib/linebreak.h: New file, from GNU gettext.
57829         * lib/linebreak.c: New file, from GNU gettext with slight
57830         modifications.
57831         * lib/lbrkprop.h: New file, from GNU gettext.
57832
57833 2003-04-03  Bruno Haible  <bruno@clisp.org>
57834
57835         * modules/utf8-ucs4: New file.
57836         * modules/utf16-ucs4: New file.
57837         * modules/ucs4-utf8: New file.
57838         * modules/ucs4-utf16: New file.
57839         * MODULES.html.sh (func_all_modules): Add them.
57840
57841 2003-04-03  Bruno Haible  <bruno@clisp.org>
57842
57843         * m4/utf-ucs4.m4: New file.
57844         * m4/ucs4-utf.m4: New file.
57845
57846 2003-04-03  Bruno Haible  <bruno@clisp.org>
57847
57848         * lib/utf8-ucs4.h: New file, from GNU gettext.
57849         * lib/utf16-ucs4.h: New file, from GNU gettext.
57850         * lib/ucs4-utf8.h: New file, from GNU gettext.
57851         * lib/ucs4-utf16.h: New file, from GNU gettext.
57852
57853 2003-04-02  Bruno Haible  <bruno@clisp.org>
57854
57855         * modules/binary-io: New file.
57856         * MODULES.html.sh (func_all_modules): Add it.
57857
57858 2003-04-02  Bruno Haible  <bruno@clisp.org>
57859
57860         * lib/binary-io.h: New file, from GNU gettext.
57861
57862 2003-04-01  Bruno Haible  <bruno@clisp.org>
57863
57864         * modules/pathname: New file.
57865         * MODULES.html.sh (func_all_modules): Add it.
57866
57867 2003-04-01  Bruno Haible  <bruno@clisp.org>
57868
57869         * lib/pathname.h: New file, from GNU gettext.
57870         * lib/concatpath.c: New file, from GNU gettext.
57871
57872 2003-03-30  Bruno Haible  <bruno@clisp.org>
57873
57874         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
57875
57876 2003-03-30  Bruno Haible  <bruno@clisp.org>
57877
57878         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
57879         function chown() doesn't exist.
57880
57881 2003-03-28  Bruno Haible  <bruno@clisp.org>
57882
57883         * modules/copy-file: New file.
57884         * MODULES.html.sh (func_all_modules): Add it.
57885
57886 2003-03-28  Bruno Haible  <bruno@clisp.org>
57887
57888         * m4/copy-file.m4: New file.
57889
57890 2003-03-28  Bruno Haible  <bruno@clisp.org>
57891
57892         * lib/copy-file.h: New file, from GNU gettext.
57893         * lib/copy-file.c: New file, from GNU gettext.
57894
57895 2003-03-18  Jim Meyering  <jim@meyering.net>
57896
57897         * lib/quote.c (quote_n): Fix typo in comment.
57898
57899 2003-03-18  Bruno Haible  <bruno@clisp.org>
57900
57901         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
57902         checking.
57903         * m4/onceonly_2_57.m4: Likewise.
57904
57905 2003-03-17  Bruno Haible  <bruno@clisp.org>
57906
57907         * m4/onceonly.m4: Require autoconf 2.54 or newer.
57908         (m4_quote): Remove macro.
57909         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
57910
57911 2003-03-14  Jim Meyering  <jim@meyering.net>
57912
57913         Merge changes from Coreutils.
57914         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
57915         to be const, in order to avoid warnings.
57916         (obstack_room): Likewise.
57917         (obstack_empty_p): Likewise.
57918
57919 2003-03-14  Bruno Haible  <bruno@clisp.org>
57920
57921         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
57922         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
57923
57924 2003-03-13  Paul Eggert  <eggert@twinsun.com>
57925
57926         Merge changes from Bison.
57927         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
57928         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
57929         when compiling Bison 1.875's `bitset bset = obstack_alloc
57930         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
57931         * lib/hash.c: Include <stdbool.h> unconditionally.
57932
57933 2003-03-13  Paul Eggert  <eggert@twinsun.com>
57934
57935         * m4/onceonly.m4 (m4_quote): New macro.
57936         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
57937         Quote AC_FOREACH variable-expansions properly.
57938
57939 2003-03-13  Paul Eggert  <eggert@twinsun.com>
57940
57941         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
57942
57943 2003-03-09  Paul Eggert  <eggert@twinsun.com>
57944
57945         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
57946         Reported by Bruce Becker; see:
57947         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
57948
57949 2003-03-03  Paul Eggert  <eggert@twinsun.com>
57950             Bruno Haible  <bruno@clisp.org>
57951
57952         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
57953         Reported by John Hughes, see
57954         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
57955
57956 2003-02-20  Bruno Haible  <bruno@clisp.org>
57957
57958         * MODULES.html.sh (func_all_modules): Add poll.
57959
57960 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
57961
57962         * modules/poll: New file.
57963
57964 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
57965
57966         * lib/poll_.h: New file.
57967         * lib/poll.c: New file.
57968
57969 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
57970
57971         * m4/poll.m4: New file.
57972
57973 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
57974
57975         * modules/mathl: New file.
57976
57977 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
57978
57979         * lib/mathl.h: New file.
57980         * lib/acosl.c: New file.
57981         * lib/asinl.c: New file.
57982         * lib/atanl.c: New file.
57983         * lib/ceill.c: New file.
57984         * lib/cosl.c: New file.
57985         * lib/expl.c: New file.
57986         * lib/floorl.c: New file.
57987         * lib/frexpl.c: New file.
57988         * lib/ldexpl.c: New file.
57989         * lib/logl.c: New file.
57990         * lib/sincosl.c: New file.
57991         * lib/sinl.c: New file.
57992         * lib/sqrtl.c: New file.
57993         * lib/tanl.c: New file.
57994         * lib/trigl.c: New file.
57995         * lib/trigl.h: New file.
57996
57997 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
57998
57999         * m4/mathl.m4: New file.
58000
58001 2003-02-18  Bruno Haible  <bruno@clisp.org>
58002
58003         * MODULES.html.sh (func_all_modules): Add mathl.
58004
58005 2003-02-17  Bruno Haible  <bruno@clisp.org>
58006
58007         * modules/mkdtemp: New module.
58008         * MODULES.html.sh (func_all_modules): Add it.
58009
58010 2003-02-17  Bruno Haible  <bruno@clisp.org>
58011
58012         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
58013
58014 2003-02-17  Bruno Haible  <bruno@clisp.org>
58015
58016         * lib/mkdtemp.h: New file, from GNU gettext.
58017         * lib/mkdtemp.c: New file, from GNU gettext.
58018
58019 2003-02-02  Jim Meyering  <jim@meyering.net>
58020
58021         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
58022         e.g. glibc-2.2.93.
58023
58024 2003-01-31  Bruno Haible  <bruno@clisp.org>
58025
58026         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
58027         'rpl_rename'.
58028         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
58029         'rpl_strnlen'.
58030         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
58031         'rpl_strtod'.
58032         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
58033         'rpl_utime'.
58034
58035 2003-01-31  Bruno Haible  <bruno@clisp.org>
58036
58037         * lib/rename.c: #undef rename before defining rpl_rename.
58038         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
58039
58040 2003-01-30  Bruno Haible  <bruno@clisp.org>
58041
58042         * modules/vasnprintf, modules/vasprintf: New modules.
58043         * MODULES.html.sh (func_all_modules): Add them.
58044
58045 2003-01-30  Bruno Haible  <bruno@clisp.org>
58046
58047         * m4/signed.m4: New file, from GNU gettext.
58048         * m4/longdouble.m4: New file, from GNU gettext.
58049         * m4/wchar_t.m4: New file, from GNU gettext.
58050         * m4/wint_t.m4: New file, from GNU gettext.
58051         * m4/vasnprintf.m4: New file.
58052         * m4/vasprintf.m4: New file.
58053
58054 2003-01-30  Bruno Haible  <bruno@clisp.org>
58055
58056         * lib/printf-args.h: New file, from GNU gettext.
58057         * lib/printf-args.c: New file, from GNU gettext.
58058         * lib/printf-parse.h: New file, from GNU gettext.
58059         * lib/printf-parse.c: New file, from GNU gettext.
58060         * lib/vasnprintf.h: New file, from GNU gettext.
58061         * lib/vasnprintf.c: New file, from GNU gettext.
58062         * lib/asnprintf.c: New file, from GNU gettext.
58063         * lib/vasprintf.h: New file, from GNU gettext with modifications.
58064         * lib/vasprintf.c: New file, from GNU gettext.
58065         * lib/asprintf.c: New file, from GNU gettext.
58066
58067 2003-01-29  Bruno Haible  <bruno@clisp.org>
58068
58069         * modules/stpncpy: New module.
58070         * MODULES.html.sh (func_all_modules): Add it.
58071
58072 2003-01-29  Bruno Haible  <bruno@clisp.org>
58073
58074         * m4/stpncpy.m4: New file.
58075
58076 2003-01-29  Bruno Haible  <bruno@clisp.org>
58077
58078         * lib/stpncpy.h: New file, from GNU gettext with modifications.
58079         * lib/stpncpy.c: New file, from GNU gettext with modifications.
58080
58081 2003-01-28  Bruno Haible  <bruno@clisp.org>
58082
58083         * modules/c-ctype: New module.
58084         * MODULES.html.sh (func_all_modules): Add it.
58085
58086 2003-01-28  Bruno Haible  <bruno@clisp.org>
58087
58088         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
58089         Paul Eggert.
58090         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
58091         Paul Eggert.
58092
58093 2003-01-27  Bruno Haible  <bruno@clisp.org>
58094
58095         * modules/xsetenv: New module.
58096         * MODULES.html.sh (func_all_modules): Add it.
58097
58098 2003-01-27  Bruno Haible  <bruno@clisp.org>
58099
58100         * lib/xsetenv.h: New file, from GNU gettext.
58101         * lib/xsetenv.c: New file, from GNU gettext.
58102
58103 2003-01-23  Jim Meyering  <jim@meyering.net>
58104
58105         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
58106         from working on systems without dirfd (at least Irix and OSF1/Tru64).
58107
58108 2003-01-23  Bruno Haible  <bruno@clisp.org>
58109
58110         * modules/minmax: New module.
58111         * MODULES.html.sh (func_all_modules): Add it.
58112
58113 2003-01-23  Bruno Haible  <bruno@clisp.org>
58114
58115         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
58116         Eggert.
58117
58118 2003-01-22  Bruno Haible  <bruno@clisp.org>
58119
58120         * modules/exit: New module.
58121         * MODULES.html.sh (func_all_modules): Add it.
58122
58123 2003-01-22  Bruno Haible  <bruno@clisp.org>
58124
58125         * lib/exit.h: New file, from GNU gettext.
58126
58127 2003-01-19  Bruno Haible  <bruno@clisp.org>
58128
58129         * gnulib-tool: Recognize option --extract-maintainer.
58130         (func_get_maintainer): New function.
58131         * modules/*: Add Maintainer entry.
58132
58133 2003-01-16  Jim Meyering  <jim@meyering.net>
58134
58135         * m4/regex.m4: The `regex' struct is both input and output.
58136         Initialize it before each use.  Patch by Tim Waugh.
58137
58138 2003-01-16  Bruno Haible  <bruno@clisp.org>
58139
58140         * MODULES.html.sh: Add a table of contents. Add the module name as
58141         leftmost column. Add hyperlinks.
58142
58143 2003-01-15  Bruno Haible  <bruno@clisp.org>
58144
58145         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
58146
58147 2003-01-15  Bruno Haible  <bruno@clisp.org>
58148
58149         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
58150         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
58151         suffix.
58152
58153 2003-01-15  Bruno Haible  <bruno@clisp.org>
58154
58155         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
58156
58157 2003-01-15  Bruno Haible  <bruno@clisp.org>
58158
58159         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
58160         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
58161
58162 2003-01-14  Jim Meyering  <jim@meyering.net>
58163
58164         * lib/same.c (same_name): Tweak a comment.
58165
58166 2003-01-14  Bruno Haible  <bruno@clisp.org>
58167
58168         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
58169         when a string comparison is sufficient.
58170
58171 2003-01-14  Bruno Haible  <bruno@clisp.org>
58172
58173         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
58174         'unsigned int'.
58175
58176 2003-01-14  Bruno Haible  <bruno@clisp.org>
58177
58178         * lib/hash-pjw.c: Add comment about low quality of this function.
58179
58180 2003-01-13  Bruno Haible  <bruno@clisp.org>
58181
58182         * modules/stpcpy: Distribute lib/stpcpy.h.
58183         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
58184
58185 2003-01-13  Bruno Haible  <bruno@clisp.org>
58186
58187         * modules/*: Add a description.
58188         * modules/strpbrk: Fix Makefile.am snippet.
58189         * modules/strtoimax: Fix dependencies.
58190         * modules/strtoumax: Likewise.
58191
58192 2003-01-13  Bruno Haible  <bruno@clisp.org>
58193
58194         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
58195         * modules/alloca (Makefile.am): All object files depend on alloca.h.
58196         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
58197
58198 2003-01-13  Bruno Haible  <bruno@clisp.org>
58199
58200         * gnulib-tool (func_create_testdir): Store config/* files in the main
58201         directory.
58202         * config.rpath: Move to ...
58203         * config/config.rpath: ... here.
58204         * modules/gettext: Contains config/config.rpath, not config.rpath.
58205         * modules/iconv: Likewise.
58206
58207 2003-01-12  Paul Eggert  <eggert@twinsun.com>
58208
58209         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
58210         to avoid collisions with libcurses and libreadline.
58211
58212         * m4/getstr.m4: Remove.
58213         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
58214
58215 2003-01-12  Paul Eggert  <eggert@twinsun.com>
58216
58217         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
58218         to avoid collisions with libcurses and libreadline.
58219
58220         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
58221         * lib/getstr.h, getstr.c: Remove.
58222         * lib/getline.c: Include "getline.h", to check interface.
58223         Move body of old getstr.c here: this defines MIN_CHUNK and
58224         declares getdelim2, which is renamed from getstr.
58225         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
58226
58227         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
58228         All uses changed.
58229         * lib/linebuffer.h: Likewise.
58230         (readline): Remove backward-compatibility macro.
58231
58232 2003-01-12  Paul Eggert  <eggert@twinsun.com>
58233
58234         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
58235         to avoid collisions with libcurses and libreadline.
58236         * getstr: Remove.
58237         * MODULES.html.sh: Remove getstr.
58238         * modules/getline: Depend on unlocked-io, not getstr.
58239
58240 2003-01-12  Jim Meyering  <jim@meyering.net>
58241
58242         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
58243
58244 2003-01-10  Bruno Haible  <bruno@clisp.org>
58245
58246         * modules/alloca: Change Makefile.am requirements. Simplify Include
58247         requirements. Add lib/alloca_.h to file list.
58248
58249 2003-01-10  Bruno Haible  <bruno@clisp.org>
58250
58251         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
58252
58253 2003-01-10  Bruno Haible  <bruno@clisp.org>
58254
58255         * lib/alloca_.h: New file.
58256         * lib/getdate.y: Unconditionally include alloca.h.
58257         * lib/makepath.c: Likewise.
58258         * lib/setenv.c: Likewise.
58259         * lib/userspec.c: Likewise.
58260
58261 2003-01-09  Karl Berry  <karl@gnu.org>
58262
58263         * MODULES.html.sh: include `dirname $0` in PATH, to find
58264         gnulib-tool.
58265
58266 2003-01-09  Bruno Haible  <bruno@clisp.org>
58267
58268         * modules/stdbool: Change configure.ac, Makefile.am requirements.
58269         Simplify Include requirements. Add lib/stdbool.h.in to file list.
58270
58271 2003-01-09  Bruno Haible  <bruno@clisp.org>
58272
58273         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
58274
58275 2003-01-09  Bruno Haible  <bruno@clisp.org>
58276
58277         * lib/stdbool.h.in: New file.
58278
58279 2003-01-09  Bruno Haible  <bruno@clisp.org>
58280
58281         * gnulib-tool (func_all_modules): Ignore files ending in ~.
58282         * MODULES.html.sh: Likewise.
58283
58284 2003-01-08  Jim Meyering  <jim@meyering.net>
58285
58286         * lib/full-write.c: Undefine and define-away `const' after inclusion
58287         of errno.h, not before.  Suggestion from Bruno Haible.
58288
58289 2003-01-08  Bruno Haible  <bruno@clisp.org>
58290
58291         * modules/full-read: Depend on full-write.
58292
58293 2003-01-08  Bruno Haible  <bruno@clisp.org>
58294
58295         * lib/safe-read.c: Include specification header first, to ensure its
58296         selfcontainedness.
58297         * lib/full-write.c: Likewise.
58298
58299 2003-01-07  Jim Meyering  <jim@meyering.net>
58300
58301         * lib/full-write.c: Rework so that it may serve to define full_read,
58302         too.
58303         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
58304
58305 2003-01-07  Bruno Haible  <bruno@clisp.org>
58306
58307         * lib/strtoimax.c: Include <stdint.h> as an alternative to
58308         <inttypes.h>.
58309         * lib/xstrtol.h: Likewise.
58310         * lib/xstrtoimax.c: Likewise.
58311         * lib/xstrtoumax.c: Likewise.
58312         * lib/human.h: Likewise.
58313
58314         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
58315         on systems that have <inttypes.h> but not <stdint.h>.
58316
58317 2003-01-07  Bruno Haible  <bruno@clisp.org>
58318
58319         * MODULES.html.sh: Add copyright notice.
58320         (missed_files): Omit CVS directory entries.
58321         (func_module): Make it work with sed-3.02.
58322         * MODULES.txt: Remove file.
58323
58324 2003-01-06  Jim Meyering  <jim@meyering.net>
58325
58326         * lib/version-etc.c: Update year in translatable copyright string.
58327
58328 2003-01-03  Karl Berry  <karl@gnu.org>
58329
58330         * config/config.{guess,sub}: update from prep.
58331
58332 2003-01-02  Karl Berry  <karl@gnu.org>
58333
58334         * doc/COPYING.DOC: belatedly updated to 1.2.
58335
58336 2003-01-01  Karl Berry  <karl@gnu.org>
58337
58338         * gnulib-tool (func_verify_module): report module name $module in
58339         error message, not $1.
58340         * gnulib-tool (create-testdir): don't complain if destdir couldn't
58341         be created, only if it doesn't exist.
58342         * gnulib-tool (last_checkin_date): don't expand the $Date here.
58343
58344 2002-12-31  Paul Eggert  <eggert@twinsun.com>
58345
58346         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
58347
58348 2002-12-31  Paul Eggert  <eggert@twinsun.com>
58349
58350         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
58351         memcmp if strcoll doesn't work.
58352
58353 2002-12-31  Bruno Haible  <bruno@clisp.org>
58354
58355         * lib/utime.c (utime_null): No need to call ftruncate if the file was
58356         nonempty.
58357
58358 2002-12-31  Bruno Haible  <bruno@clisp.org>
58359
58360         * lib/memcoll.c (STRCOLL): New macro.
58361         (memcoll): Use it.
58362
58363 2002-12-31  Bruno Haible  <bruno@clisp.org>
58364
58365         * lib/localcharset.h: New file.
58366         * lib/localcharset.c: Include it.
58367         * lib/unicodeio.c: Likewise.
58368
58369 2002-12-31  Bruno Haible  <bruno@clisp.org>
58370
58371         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
58372         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
58373
58374 2002-12-31  Bruno Haible  <bruno@clisp.org>
58375
58376         * lib/getline.h: Include <stddef.h>, for size_t.
58377
58378         * lib/unicodeio.h: Include <stddef.h>, for size_t.
58379         * lib/unicodeio.c: Don't include <stddef.h>.
58380
58381 2002-12-31  Bruno Haible  <bruno@clisp.org>
58382
58383         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
58384         HAVE_TM_ZONE.
58385
58386 2002-12-24  Karl Berry  <karl@gnu.org>
58387
58388         * config/config.guess: update from prep.
58389
58390 2002-12-24  Bruno Haible  <bruno@clisp.org>
58391
58392         General infrasructure.
58393         * m4/README: Rewritten.
58394         * m4/onceonly.m4: New file.
58395         * m4/onceonly_2_57.m4: New file.
58396
58397         Module atexit.
58398         * m4/atexit.m4: New file.
58399
58400         Module strtod.
58401         * m4/strtod.m4: New file.
58402
58403         Module strtol.
58404         * m4/strtol.m4: New file.
58405
58406         Module strtoul.
58407         * m4/strtoul.m4: New file.
58408
58409         Module memchr.
58410         * m4/memchr.m4: New file.
58411
58412         Module memcmp.
58413         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
58414         (jm_FUNC_MEMCMP): Invoke it.
58415
58416         Module memcpy.
58417         * m4/memcpy.m4: New file.
58418
58419         Module memmove.
58420         * m4/memmove.m4: New file.
58421
58422         Module memset.
58423         * m4/memset.m4: New file.
58424
58425         Module strcspn.
58426         * m4/strcspn.m4: New file.
58427
58428         Module strpbrk.
58429         * m4/strpbrk.m4: New file.
58430
58431         Module strstr.
58432         * m4/strstr.m4: New file.
58433
58434         Module strerror.
58435         * m4/strerror.m4: New file.
58436
58437         Module mktime.
58438         * m4/mktime.m4: Renamed from jm-mktime.m4.
58439         (gl_PREREQ_MKTIME): New macro.
58440         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
58441
58442         Module malloc.
58443         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
58444         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
58445         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
58446
58447         Module realloc.
58448         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
58449         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
58450         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
58451
58452         Module strftime.
58453         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
58454         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
58455         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
58456         gl_TM_GMTOFF.
58457         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
58458
58459         Module xalloc.
58460         * m4/xalloc.m4: New file.
58461
58462         Module alloca.
58463         * m4/alloca.m4: New file.
58464
58465         Module putenv.
58466         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
58467         (jm_FUNC_PUTENV): Invoke it.
58468
58469         Module setenv.
58470         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
58471         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
58472         when invoked twice.
58473         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
58474         gt_FUNC_SETENV.
58475
58476         Module memrchr.
58477         * m4/memrchr.m4: New file.
58478
58479         Module stpcpy.
58480         * m4/stpcpy.m4: New file.
58481
58482         Module strcase.
58483         * m4/strcase.m4: New file.
58484
58485         Module strdup.
58486         * m4/strdup.m4: New file.
58487
58488         Module strnlen.
58489         * m4/strnlen.m4: New file.
58490
58491         Module strndup.
58492         * m4/strndup.m4: New file.
58493
58494         Module xstrtod.
58495         * m4/xstrtod.m4: New file.
58496
58497         Module xstrtol.
58498         * m4/xstrtol.m4: New file.
58499
58500         Module getdate.
58501         * m4/getdate.m4: New file.
58502
58503         Module unlocked-io.
58504         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
58505         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
58506         * m4/jm-glibc-io.m4n: Remove file.
58507
58508         Module long-options.
58509         * m4/long-options.m4: New file.
58510
58511         Module md5.
58512         * m4/md5.m4: New file.
58513
58514         Module sha.
58515         * m4/sha.m4: New file.
58516
58517         Module getstr.
58518         * m4/getstr.m4: New file.
58519
58520         Module getline.
58521         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
58522         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
58523         <sys/types.h>, for size_t. Use the function name gnu_getline, not
58524         simply getline. Infoke gl_PREREQ_GETLINE.
58525
58526         Module obstack.
58527         * m4/obstack.m4: New file.
58528
58529         Module hash.
58530         * m4/hash.m4: New file.
58531
58532         Module readtokens.
58533         * m4/readtokens.m4: New file.
58534
58535         Module strverscmp.
58536         * m4/strverscmp.m4: New file.
58537
58538         Module stdbool.
58539         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
58540         OSF/1.
58541
58542         Module strtoll.
58543         * m4/strtoll.m4: New file.
58544
58545         Module strtoull.
58546         * m4/strtoull.m4: New file.
58547
58548         Module strtoimax.
58549         * m4/strtoimax.m4: New file.
58550
58551         Module strtoumax.
58552         * m4/strtoumax.m4: New file.
58553
58554         Module xstrtoimax.
58555         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
58556         jm_AC_PREREQ_XSTRTOIMAX.
58557         Moved the strtol prerequisites to strtol.m4.
58558         Moved the strtoll prerequisites to strtoll.m4.
58559         Moved the strtoimax prerequisites to strtoimax.m4.
58560
58561         Module xstrtoumax.
58562         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
58563         jm_AC_PREREQ_XSTRTOUMAX.
58564         Moved the strtoul prerequisites to strtoul.m4.
58565         Moved the strtoull prerequisites to strtoull.m4.
58566         Moved the strtoumax prerequisites to strtoumax.m4.
58567
58568         Module chown.
58569         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
58570         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
58571
58572         Module dup2.
58573         * m4/dup2.m4: New file.
58574
58575         Module ftruncate.
58576         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
58577         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
58578
58579         Module getgroups.
58580         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
58581         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
58582
58583         Module gettimeofday.
58584         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
58585         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
58586         gl_PREREQ_GETTIMEOFDAY.
58587
58588         Module mkdir.
58589         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
58590         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
58591
58592         Module mkstemp.
58593         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
58594         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
58595         jm_AC_TYPE_UINTMAX_T.
58596         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
58597
58598         Module stat.
58599         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
58600         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
58601
58602         Module lstat.
58603         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
58604         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
58605
58606         Module timespec.
58607         * m4/timespec.m4 (gl_TIMESPEC): New macro.
58608         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
58609         * m4/st_mtim.m4: Indentation.
58610
58611         Module nanosleep.
58612         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
58613         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
58614         gl_PREREQ_NANOSLEEP.
58615
58616         Module regex.
58617         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
58618         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
58619         (gl_REGEX): New macro.
58620
58621         Module rename.
58622         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
58623         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
58624
58625         Module rmdir.
58626         * m4/rmdir.m4: New file.
58627
58628         Module utime.
58629         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
58630         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
58631         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
58632
58633         Module dirname.
58634         * m4/dirname.m4: New file.
58635
58636         Module getopt.
58637         * m4/getopt.m4: New file.
58638
58639         Module unistd-safer.
58640         * m4/unistd-safer.m4: New file.
58641
58642         Module fnmatch.
58643         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
58644         declaration.
58645         (gl_PREREQ_FNMATCH_EXTRA): New macro.
58646         (gl_FUNC_FNMATCH_POSIX): New macro.
58647         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
58648         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
58649         simply fnmatch.
58650
58651         Module exclude.
58652         * m4/exclude.m4: New file.
58653
58654         Module human.
58655         * m4/human.m4: New file.
58656
58657         Module acl.
58658         * m4/acl.m4: Nop.
58659
58660         Module backupfile.
58661         * m4/backupfile.m4: New file.
58662         * m4/d-ino.m4: Indentation.
58663
58664         Module fsusage.
58665         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
58666         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
58667         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
58668
58669         Module dirfd.
58670         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
58671         requirements.
58672
58673         Module euidaccess.
58674         * m4/euidaccess.m4: New file.
58675
58676         Module file-type.
58677         * m4/file-type.m4: New file.
58678
58679         Module fileblocks.
58680         * m4/fileblocks.m4: New file.
58681
58682         Module filemode.
58683         * m4/filemode.m4: New file.
58684
58685         Module isdir.
58686         * m4/isdir.m4: New file.
58687
58688         Module lchown.
58689         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
58690         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
58691
58692         Module makepath.
58693         * m4/makepath.m4: New file.
58694
58695         Module modechange.
58696         * m4/modechange.m4: New file.
58697
58698         Module mountlist.
58699         * m4/mountlist.m4: New file.
58700         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
58701         Indentation.
58702
58703         Module path-concat.
58704         * m4/path-concat.m4: New file.
58705
58706         Module pathmax.
58707         * m4/pathmax.m4: New file.
58708
58709         Module same.
58710         * m4/same.m4: New file.
58711
58712         Module save-cwd.
58713         * m4/save-cwd.m4: New file.
58714
58715         Module savedir.
58716         * m4/savedir.m4: New file.
58717
58718         Module xgetcwd.
58719         * m4/xgetcwd.m4: New file.
58720         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
58721
58722         Module xreadlink.
58723         * m4/xreadlink.m4: New file.
58724
58725         Module safe-read.
58726         * m4/safe-read.m4: New file.
58727
58728         Module safe-write.
58729         * m4/safe-write.m4: New file.
58730
58731         Module closeout.
58732         * m4/closeout.m4: New file.
58733
58734         Module stdio-safer.
58735         * m4/stdio-safer.m4: New file.
58736
58737         Module getpass.
58738         * m4/getpass.m4: New file.
58739
58740         Module getugroups.
58741         * m4/getugroups.m4: New file.
58742
58743         Module group-member.
58744         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
58745         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
58746
58747         Module idcache.
58748         * m4/idcache.m4: New file.
58749
58750         Module userspec.
58751         * m4/userspec.m4: New file.
58752
58753         Module gettime.
58754         * m4/clock_time.m4: New file.
58755         * m4/gettime.m4: New file.
58756
58757         Module settime.
58758         * m4/settime.m4: New file.
58759
58760         Module posixtm.
58761         * m4/posixtm.m4: New file.
58762
58763         Module gethostname.
58764         * m4/gethostname.m4: New file.
58765
58766         Module canon-host.
58767         * m4/canon-host.m4: New file.
58768
58769         Module gettext.
58770         * m4/codeset.m4: New file, from gettext-0.11.5.
58771         * m4/gettext.m4: New file, from gettext-0.11.5.
58772         * m4/glibc21.m4: New file, from gettext-0.11.5.
58773         * m4/iconv.m4: New file, from gettext-0.11.5.
58774         * m4/intdiv0.m4: New file, from gettext-0.11.5.
58775         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
58776         * m4/inttypes.m4: New file, from gettext-0.11.5.
58777         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
58778         * m4/isc-posix.m4: New file, from gettext-0.11.5.
58779         * m4/lcmessage.m4: New file, from gettext-0.11.5.
58780         * m4/lib-ld.m4: New file, from gettext-0.11.5.
58781         * m4/lib-link.m4: New file, from gettext-0.11.5.
58782         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
58783         * m4/progtest.m4: New file, from gettext-0.11.5.
58784         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
58785         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
58786         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
58787
58788         Module localcharset.
58789         * m4/localcharset.m4: New file.
58790
58791         Module hard-locale.
58792         * m4/hard-locale.m4: New file.
58793
58794         Module mbswidth.
58795         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
58796         onceonly macros.
58797         * m4/mbrtowc.m4: Add comment.
58798
58799         Module memcasecmp.
58800         * m4/memcasecmp.m4: New file.
58801
58802         Module memcoll.
58803         * m4/memcoll.m4: New file.
58804
58805         Module unicodeio.
58806         * m4/unicodeio.m4: New file.
58807
58808         Module rpmatch.
58809         * m4/rpmatch.m4: New file.
58810
58811         Module yesno.
58812         * m4/yesno.m4: New file.
58813
58814         Module exitfail.
58815         * m4/exitfail.m4: New file.
58816
58817         Module c-stack.
58818         * m4/c-stack.m4 (gl_C_STACK): New macro.
58819         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
58820
58821         Module error.
58822         * m4/error.m4 (gl_ERROR): New macro.
58823         (jm_PREREQ_ERROR): Use onceonly macros.
58824
58825         Module fatal.
58826         * m4/fatal.m4: New file.
58827
58828         Module getloadavg.
58829         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
58830         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
58831
58832         Module getpagesize.
58833         * m4/getpagesize.m4: New file.
58834
58835         Module getusershell.
58836         * m4/getusershell.m4: New file.
58837
58838         Module physmem.
58839         * m4/physmem.m4: New file.
58840
58841         Module posixver.
58842         * m4/posixver.m4: New file.
58843
58844         Module quotearg.
58845         * m4/quotearg.m4: New file.
58846
58847         Module quote.
58848         * m4/quote.m4: New file.
58849
58850         Module readutmp.
58851         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
58852
58853         Module sig2str.
58854         * m4/sig2str.m4: New file.
58855
58856         Other.
58857         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
58858         ulonglong.m4.
58859         * m4/intmax_t.m4: New file.
58860         * m4/d-type.m4: Indentation.
58861         * m4/jm-macros.m4: Update.
58862         * m4/prereq.m4 (jm_PREREQ): Update.
58863         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
58864         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
58865         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
58866         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
58867         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
58868         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
58869         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
58870         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
58871         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
58872         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
58873         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
58874         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
58875         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
58876         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
58877         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
58878         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
58879         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
58880         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
58881         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
58882
58883 2002-12-24  Bruno Haible  <bruno@clisp.org>
58884
58885         * MODULES.txt: Update according to m4/ changes.
58886
58887         Module gettext.
58888         * config.rpath: New file, from gettext-0.11.5.
58889
58890         * modules/*: New module descriptions.
58891         * gnulib-tool: New file.
58892         * MODULES.html.sh: New file.
58893
58894 2002-12-21  Karl Berry  <karl@gnu.org>
58895
58896         * doc/fdl.texi: update to version 1.2.
58897
58898 2002-12-19  Karl Berry  <karl@gnu.org>
58899
58900         * config/config.guess: update from prep.
58901
58902 2002-12-18  Bruno Haible  <bruno@clisp.org>
58903
58904         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
58905         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
58906
58907 2002-12-17  Bruno Haible  <bruno@clisp.org>
58908
58909         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
58910         stdlib.h, string.h.
58911
58912 2002-12-17  Bruno Haible  <bruno@clisp.org>
58913
58914         * lib/canon-host.c (strdup): Remove unused declaration.
58915
58916         * lib/fsusage.c: Include full_read.h.
58917         (get_fs_usage): Use full_read instead of safe_read.
58918
58919         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
58920
58921 2002-12-12  Karl Berry  <karl@gnu.org>
58922
58923         * config/config.guess: update from prep.
58924
58925 2002-12-11  Bruno Haible  <bruno@clisp.org>
58926
58927         * m4/setenv.m4: New file, from gettext-0.11.5.
58928
58929 2002-12-11  Bruno Haible  <bruno@clisp.org>
58930
58931         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
58932         not unsetenv().
58933         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
58934         modifications:
58935
58936         2002-12-11  Bruno Haible  <bruno@clisp.org>
58937
58938                 * setenv.c (alloca): Fall back to malloc.
58939                 (freea): New macro.
58940                 (setenv): Use freea() to free memory allocated with alloca().
58941
58942         2002-11-13  Bruno Haible  <bruno@clisp.org>
58943
58944                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
58945                 function declarations.
58946                 * unsetenv.c (unsetenv): Likewise.
58947
58948         2002-03-04  Bruno Haible  <bruno@clisp.org>
58949
58950                 Portability to AIX 4.3.3.
58951                 * unsetenv.c: New file, extracted from setenv.c.
58952                 * setenv.c: Move the unsetenv() function to unsetenv.c.
58953
58954         2001-12-20  Bruno Haible  <bruno@clisp.org>
58955
58956                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
58957                 use malloc instead. For SunOS 4.
58958
58959         2001-12-11  Bruno Haible  <bruno@clisp.org>
58960
58961                 * setenv.c: Declare alloca.
58962                 (compar_fn_t): New typedef.
58963                 (KNOWN_VALUE, STORE_VALUE): Use it.
58964
58965         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
58966         setenv.h.
58967
58968 2002-12-10  Paul Eggert  <eggert@twinsun.com>
58969
58970         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
58971         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
58972         Choose values that are less likely to collide with system fnmatch
58973         options.
58974         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
58975         defined (e.g., a pure POSIX system).
58976         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
58977         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
58978
58979 2002-12-06  Paul Eggert  <eggert@twinsun.com>
58980
58981         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
58982         a pain in practice to deal with generated m4 files.  This change
58983         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
58984
58985         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
58986         and jm-glibc-io.m4, as they are no longer a special case.
58987         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
58988         kludge and the auto-generation stuff.  Check only whether the
58989         functions are declared, not whether they exist, since older hosts
58990         that don't declare the functions can't use the optimization anyway.
58991
58992 2002-12-06  Jim Meyering  <jim@meyering.net>
58993
58994         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
58995
58996         Merge in changes from libc's misc/error.c, in preparation
58997         for the merge of gnulib's changes back into libc.
58998
58999         * lib/error.c (_): Define only if not already defined.
59000         Move definition to follow all #include directives.
59001         Include unlocked-io.h only if !_LIBC.
59002         [_LIBC]: Include <libio/libioP.h>.
59003         [USE_IN_LIBIO]: Include <libio/iolibio.h>
59004         (fflush): Tweak definition to use INTUSE.
59005         (putc): Define.
59006
59007 2002-12-05  Paul Eggert  <eggert@twinsun.com>
59008
59009         * lib/alloca.c [defined emacs]: Include "lisp.h".
59010         (xalloc_die) [defined emacs]: New macro.
59011         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
59012         [! defined emacs]: Include <xalloc.h>.
59013         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
59014         (pointer): Typedef to POINTER_TYPE *.
59015         (malloc): Remove decl; we now always use xmalloc.
59016         (alloca): Use old-style definition, since Emacs needs this.
59017         Check for arithmetic overflow when computing combined size.
59018
59019 2002-12-04  Paul Eggert  <eggert@twinsun.com>
59020
59021         Do not generate unlocked-io.h automatically, since it's easier to
59022         maintain it by hand.
59023
59024         * lib/unlocked-io.h: New file, from GNU diffutils,
59025         but with proper copyright notice and attribution.
59026         * lib/gen-uio: Remove.
59027         * lib/Makefile.am: Add copyright notice.
59028         (libfetish_a_SOURCES): Add unlocked-io.h.
59029         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
59030         (DISTCLEANFILES, io_functions): Remove macros.
59031         (EXTRA_DIST): Remove gen_uio.
59032         (unlocked-io.h): Remove rule.
59033
59034 2002-12-04  Jim Meyering  <jim@meyering.net>
59035
59036         Reflect the fact that stat.c and lstat.c are no longer generated.
59037         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
59038         (DISTCLEANFILES): Likewise.
59039         (EXTRA_DIST): Likewise.
59040         (all_local): Don't depend on stat.c or lstat.c.
59041         (stat.c, lstat.c): Remove rules.
59042         (EXTRA_DIST): Remove xstat.in.
59043
59044         * lib/xstat.in: Remove file.  Contents moved into stat.c.
59045         * lib/stat.c: New file.  Contents mostly from xstat.in.
59046         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
59047         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
59048
59049         * lib/safe-read.c: Rework so that it may serve to define safe_write,
59050         too.
59051         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
59052
59053 2002-12-03  Jim Meyering  <jim@meyering.net>
59054
59055         * lib/safe-read.c, safe-write.c: Change variable names and comments,
59056         but not semantics, to minimize the differences between these two files.
59057         (safe_read): Change comment to mention SAFE_READ_ERROR.
59058
59059         * lib/safe-read.c (IS_EINTR): Define.
59060         (safe_read): Use IS_EINTR in place of in-function cpp directives.
59061
59062 2002-12-02  Jim Meyering  <jim@meyering.net>
59063
59064         * lib/safe-read.c (EINTR): Define.
59065         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
59066         (INT_MAX): Provide fallback.
59067         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
59068
59069         * lib/safe-read.h (SAFE_READ_ERROR): Define.
59070
59071 2002-12-02  Bruno Haible  <bruno@clisp.org>
59072
59073         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
59074         Define, taken from safe-read.c.
59075         (INT_MAX): Provide fallback.
59076         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
59077         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
59078
59079         * lib/safe-read.c (EINTR): Remove definition.
59080         (safe_read): Don't use EINTR if it is absent.
59081
59082 2002-12-01  Jim Meyering  <jim@meyering.net>
59083
59084         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
59085         zero.
59086         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
59087
59088 2002-11-27  Paul Eggert  <eggert@twinsun.com>
59089
59090         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
59091         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
59092         with `if (! (value < limit)) abort ();', for readability.
59093
59094 2002-11-26  Karl Berry  <karl@gnu.org>
59095
59096         * lib/strdup.c: copy from libc again, with jim's ok.
59097         * lib/.cppi-disable: re-add strdup.c
59098
59099 2002-11-25  Karl Berry  <karl@gnu.org>
59100
59101         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
59102         instead of "strtol.c".
59103
59104 2002-11-25  Karl Berry  <karl@gnu.org>
59105
59106         * config/install-sh: update from automake for variable quoting, $0 in
59107         error msgs, etc.
59108
59109         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
59110         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
59111         entry.
59112
59113 2002-11-25  Jim Meyering  <jim@meyering.net>
59114
59115         * lib/mktime.c: Sync from libc, now that it has the latest fix.
59116
59117 2002-11-24  Karl Berry  <karl@gnu.org>
59118
59119         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
59120         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
59121
59122 2002-11-24  Jim Meyering  <jim@meyering.net>
59123
59124         Update from coreutils:
59125
59126         * lib/mktime.c: Merge in changes from libc.
59127
59128         Avoid a link-time failure on some Linux systems.
59129         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
59130         (otherwise).
59131         (__mon_yday): Declare with the STATIC attribute.
59132         (__mktime_internal): Likewise.
59133         Based on a report from Greg Schafer.
59134
59135 2002-11-23  Jim Meyering  <jim@meyering.net>
59136
59137         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
59138         Use `unsigned', not `int', as type of index.
59139
59140         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
59141
59142         * lib/fsusage.c: Remove unneeded parentheses around operands of
59143         `defined'.
59144
59145 2002-11-22  Paul Eggert  <eggert@twinsun.com>
59146
59147         * lib/quotearg.h: Allow multiple inclusion by surrounding with
59148         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
59149         so that we can be included first.
59150         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
59151         * lib/quotearg.c: Include quotearg.h immediately after config.h.
59152         No need to include stddef.h or sys/types.h any more.
59153         Surround local include files with "", not "<>".
59154         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
59155         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
59156         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
59157         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
59158         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
59159         (ISPRINT): Remove; no longer needed now that we assume C89.
59160
59161         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
59162         Preserve errno.
59163
59164         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
59165         quotearg_char): Use SIZE_MAX rather than
59166         (size_t) -1 when we are talking about "infinity".
59167
59168         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
59169
59170 2002-11-22  Paul Eggert  <eggert@twinsun.com>
59171
59172         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
59173         hint that one should use `if (! x) abort ();' rather than `assert
59174         (x);', and anyway it's one less thing to worry about configuring.
59175         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
59176         hash_rehash, hash_insert): Use abort rather than assert.
59177
59178 2002-11-22  Bruno Haible  <bruno@clisp.org>
59179
59180         * lib/safe-read.h: Assume C89. Add comments.
59181         (safe_read): Change return type to size_t.
59182         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
59183         byte counts > SSIZE_MAX correctly.
59184         * lib/safe-write.h: New file.
59185         * lib/safe-write.c: New file.
59186         * lib/full-read.h: New file.
59187         * lib/full-read.c: New file.
59188         * lib/full-write.h: Assume C89. Add comments.
59189         * lib/full-write.c: Include safe-write.h.
59190         (full_write): Rewritten to use safe_write.
59191         Suggested by Jim Meyering and Paul Eggert.
59192
59193 2002-11-21  Jim Meyering  <jim@meyering.net>
59194
59195         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
59196
59197         Merge in changes from the coreutils.
59198
59199         2002-09-25  Paul Eggert  <eggert@twinsun.com>
59200         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
59201         <stdint.h>.
59202         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
59203         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
59204         int.  Work more efficiently if X is the same width as uintmax_t.
59205         Do not compare X to -1, to avoid bogus compiler warning.
59206         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
59207         Don't assume that f_frsize and f_bsize are the same type.
59208
59209         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
59210         warning on FreeBSD.
59211
59212         * lib/makepath.c (make_path): Restore umask *before* creating the final
59213         component.
59214         (make_path): Minor reformatting.
59215
59216         * lib/xmalloc.c: Adjust to work with new autoconf macros,
59217         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
59218         HAVE_MALLOC/HAVE_REALLOC.
59219
59220         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
59221         dummy ones.  At least on GNU/Linux systems, `auto' means something
59222         else.
59223         From Michael Stone.
59224
59225 2002-11-21  Bruno Haible  <bruno@clisp.org>
59226
59227         Remove case insensitive option matching.
59228         * lib/argmatch.h (argcasematch): Remove declaration.
59229         (ARGCASEMATCH): Remove macro.
59230         (__xargmatch_internal): Remove case_sensitive argument.
59231         (XARGMATCH): Update.
59232         (XARGCASEMATCH): Remove macro.
59233         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
59234         case_sensitive argument.
59235         (argcasematch): Remove function.
59236         (__xargmatch_internal): Remove case_sensitive argument.
59237         (main): Use XARGMATCH instead of XARGCASEMATCH.
59238
59239         * lib/xmalloc.c: Change compile-time error message. Add comment about
59240         required autoconf version.
59241
59242 2002-11-20  Paul Eggert  <eggert@twinsun.com>
59243
59244         Merge argmatch cleanups from Bison.  Assume C89.
59245
59246         * lib/argmatch.c: Include config.h here, not in argmatch.h.
59247         Include stdlib.h, for EXIT_FAILURE.
59248         Always include <string.h>, since we assume C89.
59249         (EXIT_FAILURE): Remove pre-C89 bug workaround.
59250         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
59251         Include <stddef.h> instead, since it's all we need for size_t.
59252         (PARAMS): Remove.  All uses removed.
59253         (ARRAY_CARDINALITY): Do not bother to #undef.
59254         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
59255         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
59256         Remove unnecessary parentheses.
59257         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
59258         Insert necessary parentheses.
59259         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
59260         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
59261
59262 2002-11-19  Bruno Haible  <bruno@clisp.org>
59263
59264         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
59265         * lib/mbswidth.h: Include <stddef.h>, for size_t.
59266
59267         * lib/mbswidth.h (PARAMS): Remove macro.
59268         (mbswidth, mbsnwidth): Use ANSI C function declarations.
59269         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
59270
59271         * lib/gcd.h (PARAMS): Remove macro.
59272         (gcd): Use ANSI C function declarations.
59273         * lib/gcd.c (gcd): Likewise.
59274
59275 2002-11-15  Bruno Haible  <bruno@clisp.org>
59276
59277         * lib/strcspn.c: Include <stddef.h>.
59278         (strcspn): Use ANSI C function declaration. Change return type to
59279         size_t. Use NULL.
59280         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
59281         (strpbrk): Use NULL.
59282         * lib/strpbrk.h (PARAMS): Remove macro.
59283         (strpbrk): Use ANSI C function declaration.
59284         * lib/strstr.c: Don't include <sys/types.h>.
59285         * lib/strstr.h (PARAMS): Remove macro.
59286         (strstr): Use ANSI C function declarations.
59287
59288 2002-11-14  Karl Berry  <karl@gnu.org>
59289
59290         * config/mkinstalldirs: `do' on separate line, instead of
59291         `for var; do'.
59292
59293 2002-11-06  Bruno Haible  <bruno@clisp.org>
59294
59295         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
59296         * lib/gcd.c (gcd): Likewise.
59297
59298 2002-11-05  Bruno Haible  <bruno@clisp.org>
59299
59300         * lib/gcd.h: New file, from gettext-0.11.5.
59301         * lib/gcd.c: New file, from gettext-0.11.5.
59302
59303 2002-11-05  Bruno Haible  <bruno@clisp.org>
59304
59305         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
59306         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
59307         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
59308         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
59309
59310         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
59311         <libintl.h>.
59312         * lib/makepath.c: Include gettext.h instead of <locale.h> and
59313         <libintl.h>.
59314
59315         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
59316         * lib/human.c: Include gettext.h instead of <libintl.h>.
59317         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
59318         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
59319         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
59320         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
59321         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
59322         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
59323         (textdomain): Remove definition.
59324         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
59325
59326         * lib/long-options.c: Remove include of <libintl.h> and definition of
59327         _.
59328         * lib/same.c: Remove include of <libintl.h> and definition of _.
59329
59330 2002-11-04  Owen Taylor  <otaylor@redhat.com>
59331
59332         * lib/config.charset: A few additions for Solaris.
59333
59334 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
59335
59336         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
59337         * lib/localcharset.c (locale_charset): Declare as extern "C".
59338
59339 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
59340
59341         * lib/config.charset: msdos in uk_UA uses CP1125.
59342
59343 2002-11-04  Bruno Haible  <bruno@clisp.org>
59344
59345         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
59346         * lib/strcase.h: New file, from GNU gettext-0.11.5.
59347         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
59348         * lib/strstr.h: New file, from GNU gettext-0.11.5.
59349         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
59350
59351 2002-11-04  Bruno Haible  <bruno@clisp.org>
59352
59353         * lib/localcharset.c (locale_charset): Don't return an empty string.
59354
59355 2002-11-04  Bruno Haible  <bruno@clisp.org>
59356
59357         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
59358         aliases.
59359
59360 2002-11-04  Bruno Haible  <bruno@clisp.org>
59361
59362         * lib/config.charset: Update for newest glibc. Add canonical names
59363         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
59364
59365 2002-11-04  Bruno Haible  <bruno@clisp.org>
59366
59367         * lib/config.charset: Add support for NetBSD.
59368
59369 2002-11-04  Bruno Haible  <bruno@clisp.org>
59370
59371         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
59372
59373 2002-11-01  Bruno Haible  <bruno@clisp.org>
59374
59375         * configure.in: Add AC_CONFIG_AUX_DIR call.
59376         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
59377         test/Makefile.
59378         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
59379
59380 2002-09-28  Karl Berry  <karl@gnu.org>
59381
59382         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
59383         installed automake until the next release, since changes have been
59384         made.
59385
59386 2002-09-25  Karl Berry  <karl@gnu.org>
59387
59388         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
59389         * lib/getopt*: copy from libc/posix.
59390         * lib/gettext.h: copy from gettext.
59391         * lib/.cppi-disable: add strdup.c, gettext.h.
59392
59393 2002-09-25  Karl Berry  <karl@gnu.org>
59394
59395         * config/srclist.txt: enable gettext.h check.
59396         * config/config.{guess,sub}: update from prep.
59397         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
59398                 from automake 1.6.3.
59399         See srclist*.
59400
59401 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
59402
59403         * regex.c (PATFETCH): Remove the translating fetch.
59404         (PATFETCH_RAW): Rename to PATFETCH.
59405         (set_image_of_range): New fun.
59406         (SET_RANGE_TABLE_WORK_AREA): Use it.
59407         (regex_compile): Don't translate the pattern chars so eagerly.
59408         Only do it when inserting an `exactn' bytecode or when handling
59409         a char-range.
59410         (mutually_exclusive_p): Avoid empty statement.
59411
59412 2002-07-06  Jim Meyering  <meyering@lucent.com>
59413
59414         * m4/README: Don't mention Makefile.am.in.
59415         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
59416
59417 2002-07-01  Jim Meyering  <meyering@lucent.com>
59418
59419         * lib/c-stack.c: Include sys/time.h.
59420         From Volker Borchert.
59421
59422 2002-06-26  Paul Eggert  <eggert@twinsun.com>
59423
59424         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
59425
59426 2002-06-26  Paul Eggert  <eggert@twinsun.com>
59427
59428         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
59429         New macro.  Use it uniformly instead of
59430         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
59431         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
59432         reported by Vin Shelton.
59433
59434 2002-06-22  Paul Eggert  <eggert@twinsun.com>
59435
59436         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
59437         Do not assume SA_SIGINFO behavior.
59438         Bug reported by Jim Meyering on NetBSD 1.5.2.
59439
59440 2002-06-22  Jim Meyering  <meyering@lucent.com>
59441
59442         * m4/c-stack.m4: New file, from diffutils-2.8.2.
59443         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
59444
59445         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
59446         now that configure.ac uses AC_GNU_SOURCE.
59447         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
59448         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
59449
59450         Update to latest tools.  Suggestions from Paul Eggert.
59451         * m4/stdbool.m4: New file, from diffutils-2.8.2.
59452         * m4/gnu-source.m4: Update from diffutils-2.8.2.
59453         * m4/fnmatch.m4: Likewise.
59454         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
59455         to AC_HEADER_STDBOOL
59456
59457 2002-06-22  Jim Meyering  <meyering@lucent.com>
59458
59459         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
59460         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
59461
59462 2002-06-22  Jim Meyering  <meyering@lucent.com>
59463
59464         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
59465
59466         * lib/exitfail.c, exitfail.h: Likewise.
59467         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
59468
59469         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
59470         of fnmatch.h.
59471         (EXTRA_DIST): Add fnmatch_loop.c.
59472         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
59473
59474         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
59475         * lib/fnmatch.c: Update from diffutils-2.8.2.
59476         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
59477         * lib/fnmatch.h: Remove file.
59478
59479 2002-06-21  Jim Meyering  <meyering@lucent.com>
59480
59481         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
59482         * m4/mbrtowc.m4: Likewise.
59483
59484         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
59485         * m4/mbswidth.m4: Reflect name change:
59486         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
59487         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
59488
59489         * m4/lib-link.m4: Update from gettext-0.11.2.
59490         * m4/gettext.m4: Likewise.
59491
59492         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
59493         From Alfred M. Szmidt.
59494
59495 2002-06-18  Paul Eggert  <eggert@twinsun.com>
59496
59497         * lib/file-type.h: Report an error if neither S_ISREG nor
59498         S_IFREG is defined, instead of using a test specific to glibc
59499         2.2.  This should be safe, since POSIX requires S_ISREG and
59500         Unix Version 7 had S_IFREG.  We don't need to check for
59501         <sys/types.h> since we don't use any symbols that it defines.
59502
59503 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
59504
59505         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
59506         $@-t, so that each temporary file name is unique and valid in the first
59507         8 characters, for operation under DOS.
59508
59509 2002-06-15  Paul Eggert  <eggert@twinsun.com>
59510
59511         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
59512
59513 2002-06-15  Jim Meyering  <meyering@lucent.com>
59514
59515         Work even with DJGPP 2.03, which lacks support for symlinks.
59516         From Richard Dawe.
59517         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
59518         is defined.
59519         * lib/lchown.c (S_ISLNK): Likewise.
59520
59521 2002-06-15  Jim Meyering  <meyering@lucent.com>
59522
59523         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
59524         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
59525         have been included before this file.
59526
59527 2002-06-14  Jim Meyering  <meyering@lucent.com>
59528
59529         * lib/file-type.h: Use the version from diffutils-2.8.2.
59530         * lib/file-type.c: Likewise.
59531
59532 2002-06-07  Jim Meyering  <meyering@lucent.com>
59533
59534         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
59535         They're needed at least for NetBSD 1.5.2.
59536         ($statxfs_includes): Include those same headers.
59537         ($statxfs_includes): Include sys/vfs.h if available.
59538         ($statxfs_includes): Likewise for sys/statvfs.h.
59539         Check for the following members in both structs statfs and statvfs:
59540         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
59541
59542 2002-06-01  Jim Meyering  <meyering@lucent.com>
59543
59544         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
59545         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
59546
59547 2002-05-28  Jim Meyering  <meyering@lucent.com>
59548
59549         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
59550         Reported by Volker Borchert.
59551
59552 2002-05-27  Jim Meyering  <meyering@lucent.com>
59553
59554         Fix a problem seen only on nonconforming systems whereby ls.c's
59555         use of localtime, and then of gettimeofday would cause trouble:
59556         the localtime call used to initialize rpl_gettimeofday's save
59557         mechanism would clobber ls's current local time information so
59558         that in any long listing the first file would always be listed
59559         with date 1970-01-01.  Analysis by Volker Borchert.
59560
59561         * lib/gettimeofday.c (localtime): Undefine.
59562         (rpl_localtime): New function.
59563
59564 2002-05-27  Jim Meyering  <meyering@lucent.com>
59565
59566         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
59567         localtime.
59568
59569         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
59570         use the replacement function; it wouldn't resolve at link time.
59571         Reported by Volker Borchert.
59572
59573 2002-05-22  Jim Meyering  <meyering@lucent.com>
59574
59575         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
59576         file-type.h.
59577         * lib/file-type.h: New file.
59578         * lib/file-type.c (file_type): New file/function.  Extracted from
59579         diffutils.
59580
59581 2002-04-30  Jim Meyering  <meyering@lucent.com>
59582
59583         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
59584
59585 2002-04-29  Paul Eggert  <eggert@twinsun.com>
59586
59587         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
59588
59589 2002-04-29  Paul Eggert  <eggert@twinsun.com>
59590
59591         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
59592         Do not check for alloca.h (no longer used) or stdbool.h (was never
59593         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
59594
59595 2002-04-29  Paul Eggert  <eggert@twinsun.com>
59596
59597         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
59598
59599 2002-04-29  Jim Meyering  <meyering@lucent.com>
59600
59601         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
59602         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
59603         Use AC_FUNC_STRNLEN here instead.
59604
59605         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
59606         With autoconf-2.53a, it's part of AC_PROG_CC.
59607
59608 2002-04-28  Paul Eggert  <eggert@twinsun.com>
59609
59610         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
59611         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
59612
59613 2002-04-28  Paul Eggert  <eggert@twinsun.com>
59614
59615         * lib/sig2str.h, lib/sig2str.c: New files.
59616         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
59617
59618 2002-04-28  Paul Eggert  <eggert@twinsun.com>
59619
59620         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
59621         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
59622         of 127, since 64 is the largest conceivable number for ancient
59623         nonstandard hosts.
59624         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
59625
59626 2002-04-28  Jim Meyering  <meyering@lucent.com>
59627
59628         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
59629
59630 2002-04-24  Jim Meyering  <meyering@lucent.com>
59631
59632         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
59633         (jm_PREREQ): Use it.
59634
59635         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
59636         mach/mach.h fcntl.h.
59637         Check for this function: setlocale.
59638
59639 2002-04-24  Jim Meyering  <meyering@lucent.com>
59640
59641         * lib/gettext.h: New file, from Gettext.
59642         * lib/Makefile.am (INCLUDES): Remove -I../intl.
59643         (libfetish_a_SOURCES): Add gettext.h.
59644
59645 2002-04-16  Jim Meyering  <meyering@lucent.com>
59646
59647         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
59648         ut_pid, ut_id, ut_exit.
59649
59650 2002-04-16  Jim Meyering  <meyering@lucent.com>
59651
59652         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
59653         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
59654         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
59655
59656 2002-04-12  Jim Meyering  <meyering@lucent.com>
59657
59658         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
59659         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
59660         existence of the getmntinfo function.  Needed for Darwin 5.3.
59661
59662         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
59663         This is necessary at least on Darwin 5.3.
59664
59665         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
59666         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
59667         strnlen.o in the library, and that makes some versions of ranlib
59668         object.
59669
59670 2002-04-12  Jim Meyering  <meyering@lucent.com>
59671
59672         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
59673
59674 2002-04-09  Jim Meyering  <meyering@lucent.com>
59675
59676         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
59677         to be more precise.  Rather than saying we're checking whether the
59678         function `works', say what we're testing.
59679         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
59680         Reported by Bruno Haible.
59681
59682 2002-03-10  Jim Meyering  <meyering@lucent.com>
59683
59684         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
59685         Suggestion from Santiago Vila.
59686
59687 2002-03-08  Jim Meyering  <meyering@lucent.com>
59688
59689         * lib/rename.c: Mention that this wrapper is needed also on
59690         mips-dec-ultrix4.4 systems.
59691
59692 2002-03-02  Jim Meyering  <meyering@lucent.com>
59693
59694         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
59695         not HAVE_CLOCK_SETTIME.
59696
59697 2002-02-27  Paul Eggert  <eggert@twinsun.com>
59698
59699         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
59700         Check for clock_settime.
59701
59702 2002-02-27  Paul Eggert  <eggert@twinsun.com>
59703
59704         * lib/nanosleep.h: Rename to....
59705         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
59706
59707         * lib/gettime.c: New file.
59708         * lib/settime.c: New file.
59709         * lib/stime.c: Remove.
59710
59711         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
59712         timespec.h.  Remove nanosleep.h.
59713
59714 2002-02-25  Paul Eggert  <eggert@twinsun.com>
59715
59716         * m4/acl.m4: New file.
59717         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
59718         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
59719
59720 2002-02-25  Paul Eggert  <eggert@twinsun.com>
59721
59722         * lib/acl.c, lib/acl.h: New files.
59723         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
59724
59725 2002-02-24  Jim Meyering  <meyering@lucent.com>
59726
59727         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
59728         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
59729         cause trouble.  Reported by Nelson Beebe.
59730
59731 2002-02-23  Paul Eggert  <eggert@twinsun.com>
59732
59733         * lib/path-concat.c (xpath_concat): Reorder code to pacify
59734         compilers that don't know that xalloc_die never returns.
59735
59736 2002-02-20  Jim Meyering  <meyering@lucent.com>
59737
59738         * lib/getdate.c: Regenerate using bison-1.33.
59739
59740 2002-02-17  Jim Meyering  <meyering@lucent.com>
59741
59742         * config/config.guess (main): Don't use `head -1'; it's no longer
59743         portable. Use `sed 1q' instead.
59744
59745 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
59746
59747         * m4/codeset.m4: Upgrade to gettext-0.11.
59748         * m4/gettext.m4: Upgrade to gettext-0.11.
59749         * m4/glibc21.m4: Upgrade to gettext-0.11.
59750         * m4/iconv.m4: Upgrade to gettext-0.11.
59751         * m4/isc-posix.m4: Upgrade to gettext-0.11.
59752         * m4/lcmessage.m4: Upgrade to gettext-0.11.
59753         * m4/lib-ld.m4: New file, from gettext-0.11.
59754         * m4/lib-link.m4: New file, from gettext-0.11.
59755         * m4/lib-prefix.m4: New file, from gettext-0.11.
59756         * m4/progtest.m4: Upgrade to gettext-0.11.
59757
59758 2002-02-15  Paul Eggert  <eggert@twinsun.com>
59759
59760         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
59761         (jm_PREREQ): Use it.
59762
59763 2002-02-15  Paul Eggert  <eggert@twinsun.com>
59764
59765         * lib/posixver.c, lib/posixver.h: New files.
59766         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
59767
59768 2002-02-02  Paul Eggert  <eggert@twinsun.com>
59769             Bruno Haible  <bruno@clisp.org>
59770
59771         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
59772         (fwrite_success_callback): New declaration.
59773         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
59774         print_unicode_char. Call failure callback instead of error.
59775         (fwrite_success_callback): New function.
59776         (exit_failure_callback): New function.
59777         (fallback_failure_callback): New function.
59778         (print_unicode_char): Call unicode_to_mb.
59779
59780 2002-01-26  Jim Meyering  <meyering@lucent.com>
59781
59782         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
59783         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
59784
59785 2002-01-26  Jim Meyering  <meyering@lucent.com>
59786
59787         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
59788
59789 2002-01-22  Paul Eggert  <eggert@twinsun.com>
59790
59791         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
59792
59793 2002-01-22  Jim Meyering  <meyering@lucent.com>
59794
59795         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
59796         Otherwise, some versions of automake would omit the rule that makes
59797         Makefile from Makefile.in.
59798
59799 2002-01-21  Paul Eggert  <eggert@twinsun.com>
59800
59801         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
59802         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
59803         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
59804         (memcoll): Set errno to zero if there is no error.
59805
59806         * lib/quotearg.c (quotearg_buffer_restyled):
59807         Fix bug with quoting buffers containing NUL when backslashing escapes.
59808         This bug was exposed by the other changes in this patch.
59809         (quotearg_n_options): New arg ARGSIZE.
59810         All callers changed.
59811         (quoting_options_from_style): New function.
59812         (quotearg_n_style): Use it.
59813         (quotearg_n_style_mem): New function.
59814
59815         * lib/quotearg.h (quotearg_n_style_mem): New function.
59816
59817 2002-01-19  Jim Meyering  <meyering@lucent.com>
59818
59819         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
59820         Remove useless quotes: DF_PROG="df".
59821         * m4/strnlen.m4: New file.
59822
59823 2002-01-16  Paul Eggert  <eggert@twinsun.com>
59824
59825         * lib/backupfile.c (ISDIGIT): Comment fix.
59826         * lib/getdate.y (ISDIGIT): Likewise.
59827         * lib/posixtm.c (ISDIGIT, year): Likewise.
59828         * lib/strverscmp.c (ISDIGIT): Likewise.
59829         * lib/userspec.c (ISDIGIT): Likewise.
59830
59831 2002-01-16  Jim Meyering  <meyering@lucent.com>
59832
59833         * lib/getdate.y: Add three semicolons, each just before a closing
59834         brace. Bison (as of version 1.31) no longer papers over that mistake.
59835
59836 2002-01-05  Jim Meyering  <meyering@lucent.com>
59837
59838         * lib/version-etc.c (version_etc_copyright): Update copyright year.
59839
59840 2001-12-19  Paul Eggert  <eggert@twinsun.com>
59841
59842         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
59843         not silently exit merely because the output buffer happens to
59844         have nothing pending.
59845
59846 2001-12-18  Paul Eggert  <eggert@twinsun.com>
59847
59848         See the big note in ../ChangeLog.
59849         * lib/human.c (suffixes): Prefer K to k for 1024.
59850         (generate_suffix_backwards): New function.
59851         (human_readable_inexact): Use it.
59852         * lib/xstrtol.c (__xstrtol): If there is no number but there
59853         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
59854         Accept 'K' as well as 'k'.
59855
59856 2001-12-15  Jim Meyering  <meyering@lucent.com>
59857
59858         * lib/regex.h (__restrict_arr): Update from libc.
59859
59860         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
59861         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
59862         (STREQ): Define.
59863
59864 2001-12-14  Jim Meyering  <meyering@lucent.com>
59865
59866         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
59867         Suggestion from Bruno Haible.
59868
59869 2001-12-10  Jim Meyering  <meyering@lucent.com>
59870
59871         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
59872         xrealloc, Instead, include "xalloc.h".
59873         (initbuffer): Don't cast xmalloc return value to char*.
59874         (readline): Reword comment.
59875         Don't cast xrealloc return value to char*
59876         Return NULL, not 0.
59877
59878 2001-12-09  Jim Meyering  <meyering@lucent.com>
59879
59880         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
59881         about `signed and unsigned type in conditional expression'.
59882         * lib/posixtm.c (posix_time_parse): Likewise.
59883
59884         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
59885
59886         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
59887         to avoid a pedantic warning.
59888
59889         * lib/getstr.c: Don't include assert.h.
59890         (getstr): Remove warning-evoking assertions.
59891         Return -1 if offset parameter is out of bounds.
59892         Change the type of a local from int to size_t.
59893
59894         * lib/strftime.c (my_strftime_localtime_r): Include this function
59895         definition in the `#if ! HAVE_TM_GMTOFF' block.
59896
59897         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
59898         Include xalloc.h instead.
59899
59900 2001-12-02  Jim Meyering  <meyering@lucent.com>
59901
59902         * lib/tempname.c: Don't declare getenv, thus reverting the change of
59903         2001-11-18.  It's no longer necessary, now that stdlib.h is always
59904         included.
59905
59906         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
59907         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
59908
59909 2001-11-30  Akim Demaille  <akim@epita.fr>
59910
59911         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
59912         before being defined.
59913
59914 2001-11-27  Paul Eggert  <eggert@twinsun.com>
59915
59916         * lib/quotearg.h (quotearg_n, quotearg_n_style):
59917         First arg is int, not unsigned.
59918         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
59919         (SIZE_MAX, UINT_MAX): New macros.
59920         (quotearg_n_options): Abort if N is negative.
59921         Avoid overflow check on hosts where size_t is 64 bits and int
59922         is 32 bits, as overflow is impossible there.
59923         Fix off-by-one typo that caused unnecessary reallocation.
59924
59925 2001-11-27  Jim Meyering  <meyering@lucent.com>
59926
59927         * lib/tempname.c: Merge with version from libc.
59928         * lib/regex.c: Likewise.
59929
59930         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
59931         systems for which STDC_HEADERS is 0, it was not included, resulting in
59932         a warning about an integer-to-pointer conversion problem with getenv.
59933         Reported by Volker Borchert.
59934
59935 2001-11-26  Jim Meyering  <meyering@lucent.com>
59936
59937         * lib/gtod.h: Remove file.
59938         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
59939         * lib/gettimeofday.c: Don't include gtod.h.
59940         (GTOD_init): Remove function.
59941         (rpl_gettimeofday): Do its job here instead, rather than aborting.
59942         Suggestion from Volker Borchert.
59943
59944 2001-11-23  Jim Meyering  <meyering@lucent.com>
59945
59946         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
59947         it.
59948         * lib/hash.c (struct hash_table): Define it here instead.
59949
59950 2001-11-22  Jim Meyering  <meyering@lucent.com>
59951
59952         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
59953
59954 2001-11-20  Jim Meyering  <meyering@lucent.com>
59955
59956         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
59957         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
59958
59959 2001-11-19  Jim Meyering  <meyering@lucent.com>
59960
59961         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
59962         directory.  Use "conftestXXXXXX" as the template.
59963         Suggestion from Paul Eggert.
59964
59965         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
59966         immediately, so the test doesn't mistakenly hit the max-open-files
59967         limit.
59968
59969 2001-11-18  Paul Eggert  <eggert@twinsun.com>
59970
59971         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
59972         (TEMPORARIES): New macro.
59973         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
59974         removes an artificial limitation (e.g. HP-UX 10.20, where
59975         TMP_MAX is 17576).
59976
59977 2001-11-18  Jim Meyering  <meyering@lucent.com>
59978
59979         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
59980
59981 2001-11-18  Jim Meyering  <meyering@lucent.com>
59982
59983         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
59984         on SunOS 4.
59985
59986         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
59987         files will be created before anything else.
59988
59989 2001-11-17  Paul Eggert  <eggert@twinsun.com>
59990
59991         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
59992         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
59993
59994 2001-11-17  Jim Meyering  <meyering@lucent.com>
59995
59996         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
59997         Prompted by a report from Bob Proulx.
59998
59999         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
60000         Instead, require UTILS_FUNC_MKSTEMP.
60001
60002 2001-11-17  Jim Meyering  <meyering@lucent.com>
60003
60004         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
60005         Now, that's done as part of AC_FUNC_STRTOD.
60006
60007 2001-11-17  Jim Meyering  <meyering@lucent.com>
60008
60009         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
60010         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
60011         rather than group writable.  Patch by Juan F. Codagnone.
60012
60013         * lib/readtokens.c: Remove explicit declarations of xmalloc and
60014         xrealloc, Instead, include "xalloc.h".
60015
60016         * lib/mountlist.c: Include unlocked-io.h after all system headers.
60017         Remove explicit declarations of xmalloc, xrealloc,
60018         and xstrdup.  Instead, include "xalloc.h".
60019
60020         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
60021         unlocked-io.h.
60022         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
60023         Likewise.
60024         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
60025
60026         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
60027         Reported by Padraig Brady.
60028
60029         * lib/mkstemp.c: #undef mkstemp.
60030         Include config.h.
60031         (rpl_mkstemp): Rename from mkstemp.
60032         Protoize.
60033
60034 2001-11-16  Jim Meyering  <meyering@lucent.com>
60035
60036         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
60037         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
60038         determine the amount of total physical memory, use pstat_getstatic.
60039         HPUX-11 doesn't define _SC_PHYS_PAGES.
60040         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
60041         If sysconf couldn't be used to determine the amount of available
60042         physical memory, use both pstat_getstatic and pstat_getdynamic.
60043         Based on a patch from Bob Proulx.
60044
60045 2001-11-10  Jim Meyering  <meyering@lucent.com>
60046
60047         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
60048         (jm_PREREQ): Use it.
60049
60050 2001-11-09  Jim Meyering  <meyering@lucent.com>
60051
60052         * m4/jm-macros.m4: Require autoconf-2.52f.
60053         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
60054         Use these AC_-prefixed names, not the AM_-prefixed ones.
60055
60056         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
60057
60058 2001-11-05  Jim Meyering  <meyering@lucent.com>
60059
60060         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
60061
60062 2001-11-04  Jim Meyering  <meyering@lucent.com>
60063
60064         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
60065         $DEFS.
60066
60067 2001-11-03  Jim Meyering  <meyering@lucent.com>
60068
60069         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
60070         of AC_DEFUN.
60071
60072         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
60073         know the name of the variable in the macro definition.
60074
60075 2001-11-03  Jim Meyering  <meyering@lucent.com>
60076
60077         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
60078         in argmatch_to_argument call.
60079
60080         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
60081         argument.
60082
60083         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
60084         e.g., a fault due to an attempt to free a NULL pointer.
60085
60086 2001-11-01  Jim Meyering  <meyering@lucent.com>
60087
60088         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
60089         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
60090
60091 2001-11-01  Jim Meyering  <meyering@lucent.com>
60092
60093         * lib/dirfd.c, lib/dirfd.h: New files.
60094         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
60095
60096         * lib/hash.c (hash_print) [TESTING]: Clean up.
60097
60098 2001-10-22  Paul Eggert  <eggert@twinsun.com>
60099
60100         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
60101         to avoid a warning if -Wall.
60102
60103 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
60104
60105         * README: New file
60106         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
60107         (per RMS's instructions, this is now the canonical source)
60108         * lgpl/, gpl/: New directories.
60109
60110 2001-10-21  Paul Eggert  <eggert@twinsun.com>
60111
60112         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
60113
60114 2001-10-21  Jim Meyering  <meyering@lucent.com>
60115
60116         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
60117         this code would end up calling gettext even in packages built
60118         with --disable-nls.
60119         * lib/getopt.c (_): Likewise.
60120         * lib/regex.c (_): Likewise.
60121
60122 2001-10-20  Paul Eggert  <eggert@twinsun.com>
60123
60124         * m4/error.m4 (jm_PREREQ_ERROR):
60125         Do not invoke AC_CHECK_FUNCS with strerror_r, as
60126         AC_FUNC_STRERROR_R does that.
60127         Check for strerror declaration.
60128
60129         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
60130         are supposed to have them these days.
60131         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
60132         Merge changes from latest Autoconf CVS.
60133         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
60134         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
60135         POSIX decided to standardize on the int flavor of strerror_r.
60136
60137 2001-10-20  Paul Eggert  <eggert@twinsun.com>
60138
60139         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
60140         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
60141         Use strerror_r that is only a macro, even if it is not a function.
60142         (strerror): Check for HAVE_DECL_STRERROR before declaring.
60143         (private_strerror): Use prototypes, not old-style function definition.
60144         (print_errno_message): New function.
60145         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
60146         char*-flavored one.
60147         (error_tail, error, error_at_line): Use it.
60148
60149 2001-10-11  Jim Meyering  <meyering@lucent.com>
60150
60151         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
60152         and quote_n (1, ... to avoid clobbering a buffer.
60153
60154 2001-10-05  Jim Meyering  <meyering@lucent.com>
60155
60156         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
60157         hash-pjw.h.
60158         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
60159         * lib/hash-pjw.h: New file.
60160
60161 2001-09-30  Jim Meyering  <meyering@lucent.com>
60162
60163         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
60164         `struct fsstat' has the `f_fstypename' member.
60165         Use that to define FS_TYPE, which is now used to make
60166         the getfsstat link test tighter.
60167
60168 2001-09-30  Jim Meyering  <meyering@lucent.com>
60169
60170         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
60171         Include <sys/ucred.h>, for Apple Darwin.
60172         Include sys/mount.h and sys/fs_types.h only if available.
60173         (FS_TYPE): Define.
60174         (read_filesystem_list): Use FS_TYPE.
60175
60176 2001-09-29  Paul Eggert  <eggert@twinsun.com>
60177
60178         * lib/exclude.c (excluded_filename): 0 -> false, since it's
60179         a boolean context.
60180
60181 2001-09-29  Jim Meyering  <meyering@lucent.com>
60182
60183         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
60184         [one-argument getmntent function]): Include stdio.h before mntent.h.
60185         SunOS 4.1.x needs it for the declaration of `FILE'.
60186         Patch by Volker Borchert.
60187
60188         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
60189         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
60190         sys/fs_types.h, and make the link-test for getfsstat guard #include
60191         directives with appropriate #if HAVE_*_H tests so that we can
60192         detect getfsstat on Apple Darwin1.3.7 systems.
60193         Reported by Nelson Beebe.
60194         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
60195
60196 2001-09-28  Paul Eggert  <eggert@twinsun.com>
60197
60198         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
60199         #defines strtoimax.  Also treat the other strto* functions
60200         like strtoimax.
60201
60202         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
60203         Check for strtoul and strtoumax,
60204         as those declarations are made even in the signed case.
60205         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
60206         Likewise, for strtol and strtoimax.
60207
60208 2001-09-28  Paul Eggert  <eggert@twinsun.com>
60209
60210         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
60211         #defines strtoimax.  Also treat the other strto* functions
60212         like strtoimax.
60213
60214         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
60215         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
60216         (strtoimax, strtoumax): Do not declare if already defined as a macro.
60217
60218 2001-09-26  Jim Meyering  <meyering@lucent.com>
60219
60220         Most macros in unlocked-io.h had the wrong number of arguments.
60221         * lib/gen-uio: New script.
60222         (USE_UNLOCKED_IO): Define to 1 if not already defined.
60223         * lib/unlocked-io.hin: Remove file.
60224         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
60225         rather than trying to embed it here.
60226         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
60227         Reported by Padraig Brady.
60228
60229 2001-09-25  Volker Borchert  <bt@teknon.de>
60230
60231         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
60232         `result'.
60233
60234 2001-09-24  Jim Meyering  <meyering@lucent.com>
60235
60236         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
60237
60238 2001-09-23  Jim Meyering  <meyering@lucent.com>
60239
60240         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
60241         instead of the mere test for existence of mntent.h.  The latter
60242         would get a false-positive on AIX 3.4 systems.
60243         In the outer getmntent if-block, don't die if neither of the getmntent
60244         tests succeeds.  Instead, just fall through and continue with the
60245         remaining tests.
60246
60247 2001-09-23  Jim Meyering  <meyering@lucent.com>
60248
60249         * lib/mountlist.c: Remove useless parentheses in #if directives.
60250         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
60251         the deprecated MOUNTED symbol is no longer defined in mntent.h.
60252
60253 2001-09-22  Jim Meyering  <meyering@lucent.com>
60254
60255         * m4/gettext.m4: New file.  From gettext.
60256         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
60257         * m4/progtest.m4: Likewise
60258         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
60259         * m4/glibc21.m4: Likewise.
60260
60261         * m4/libintl.m4: Remove.  No longer used.
60262
60263 2001-09-22  Jim Meyering  <meyering@lucent.com>
60264
60265         * lib/localcharset.c: Update from latest gettext.
60266         * lib/config.charset: Likewise.
60267
60268 2001-09-20  Jim Meyering  <meyering@lucent.com>
60269
60270         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
60271         strtoimax.
60272         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
60273         strtoumax.
60274
60275 2001-09-20  Jim Meyering  <meyering@lucent.com>
60276
60277         * lib/xstrtol.c (strtoimax): Guard declaration with
60278         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
60279         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
60280         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
60281         (strtoumax): Likewise, for completeness (it wasn't necessary).
60282
60283 2001-09-17  Paul Eggert  <eggert@twinsun.com>
60284
60285         * lib/strtoimax.c (HAVE_LONG_LONG):
60286         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
60287         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
60288         to work around bug in IBM C compiler.
60289
60290 2001-09-17  Jim Meyering  <meyering@lucent.com>
60291
60292         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
60293         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
60294         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
60295         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
60296         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
60297         whenever the right hand side need not be expanded by the shell.
60298
60299 2001-09-16  Paul Eggert  <eggert@twinsun.com>
60300
60301         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
60302         library.  It's not correct, as some older glibcs are buggy.
60303         fnmatch wasn't fixed until glibc 2.2.
60304
60305         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
60306         special shell magic here.
60307
60308 2001-09-16  Jim Meyering  <meyering@lucent.com>
60309
60310         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
60311         * m4/jm-macros.m4: Require it.
60312
60313 2001-09-16  Jim Meyering  <meyering@lucent.com>
60314
60315         * lib/mkdir.c: New file.
60316
60317 2001-09-15  Jim Meyering  <meyering@lucent.com>
60318
60319         * m4/jm-macros.m4: Check for help2man.
60320
60321 2001-09-11  Jim Meyering  <meyering@lucent.com>
60322
60323         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
60324         The body, by Paul Eggert, was moved here from configure.in.
60325         * m4/jm-macros.m4: Require UTILS_HOST_OS.
60326
60327 2001-09-04  Paul Eggert  <eggert@twinsun.com>
60328
60329         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
60330         (jm_PREREQ): Use it.
60331
60332 2001-09-04  Paul Eggert  <eggert@twinsun.com>
60333
60334         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
60335         Use ssize_t, not int, to store result of readlink.
60336         Check for ssize_t overflow as well as size_t overflow,
60337         as POSIX says the result of readlink is implementation-defined
60338         when ssize_t overflows.
60339         Remove unnecessary cast to char*.
60340         Use free+malloc instead of realloc, as the storage doesn't need
60341         to be preserved and it's clearer and can be more efficient that way.
60342         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
60343         * lib/xreadlink.h (xreadlink): Update prototype.
60344
60345 2001-09-04  Paul Eggert  <eggert@twinsun.com>
60346
60347         * lib/xgetcwd.c: Revert some of the previous change; intead,
60348         fix the HAVE_GETCWD_NULL code to behave more like the
60349         !HAVE_GETCWD_NULL code used to.
60350
60351         Include "xalloc.h".
60352         (xgetcwd): Do not return NULL when memory is exhausted; instead,
60353         invoke xalloc_die.
60354
60355 2001-09-03  Paul Eggert  <eggert@twinsun.com>
60356
60357         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
60358         sys/param.h, as pathmax.h includes them.
60359
60360 2001-09-03  Paul Eggert  <eggert@twinsun.com>
60361
60362         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
60363         (jm_PREREQ_XGETCWD): New macro.
60364
60365         * m4/getcwd.m4: New file.
60366
60367 2001-09-03  Paul Eggert  <eggert@twinsun.com>
60368
60369         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
60370         like the HAVE_GETCWD_NULL code.
60371         Include pathmax.h if not HAVE_GETCWD.
60372         Do not include xalloc.h.
60373         (INITIAL_BUFFER_SIZE): New symbol.
60374         Do not use xmalloc / xrealloc, since the caller is responsible for
60375         handling errors.  Preserve errno around `free' during failure.
60376         Do not overrun buffer when using getwd.
60377
60378 2001-09-03  Paul Eggert  <eggert@twinsun.com>
60379
60380         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
60381         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
60382         getcwd (NULL, 0).
60383
60384 2001-09-03  Paul Eggert  <eggert@twinsun.com>
60385
60386         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
60387         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
60388         spotted by Jim Meyering.
60389
60390 2001-09-03  Jim Meyering  <meyering@lucent.com>
60391
60392         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
60393         failure.
60394
60395 2001-09-02  Jim Meyering  <meyering@lucent.com>
60396
60397         * lib/error.c: Update from GNU libc.
60398
60399 2001-09-01  Jim Meyering  <meyering@lucent.com>
60400
60401         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
60402         Used by df.
60403
60404 2001-09-01  Jim Meyering  <meyering@lucent.com>
60405
60406         * lib/xreadlink.c: New file.
60407         * lib/xreadlink.h: New file.
60408         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
60409         xreadlink.h.
60410
60411         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
60412         doesn't conflict with sparc Solaris 7's definition in
60413         /usr/include/sys/int_types.h.
60414
60415         * lib/exclude.c: Use `""', not `<>' to #include non-system header
60416         files.
60417         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
60418         and strncasecmp as r-values.  Unixware didn't have declarations.
60419
60420 2001-08-31  Paul Eggert  <eggert@twinsun.com>
60421
60422         * lib/xstrtol.h: Add copyright notice.
60423         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
60424         LONGINT_INVALID_SUFFIX_CHAR.
60425
60426 2001-08-31  Paul Eggert  <eggert@twinsun.com>
60427
60428         * lib/xstrtol.c (strtoimax): New decl.
60429
60430 2001-08-31  Paul Eggert  <eggert@twinsun.com>
60431
60432         * lib/xgetcwd.c: Don't include pathmax.h.
60433         Include stdlib.h and unistd.h if available.
60434         Include xalloc.h.
60435         (xmalloc, xstrdup, free): Remove decls.
60436         (xgetcwd): Don't assume sizes fit in unsigned.
60437         Check for overflow when computing sizes.
60438         Simplify reallocation code.
60439
60440 2001-08-31  Paul Eggert  <eggert@twinsun.com>
60441
60442         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
60443         a directory's st_size can have an arbitrary value, so the old
60444         usage could waste an arbitrary amount of memory.  All uses
60445         changed.
60446         * lib/savedir.h: Update prototype.
60447
60448 2001-08-31  Paul Eggert  <eggert@twinsun.com>
60449
60450         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
60451
60452         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
60453         old strtoimax.c.
60454
60455         Also, make the following further changes to make this file's
60456         configuration more similar to that of strtol.c:
60457         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
60458         (strtoumax, uintmax_t, strtoull, strtol): Remove.
60459         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
60460         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
60461         changed to signed values.
60462
60463         And make the following changes as well:
60464         Fix copyright notice, as 1999 was missing.
60465         (verify): New macro.
60466         (strtoimax): Check sizes at compile-time, not run-time.
60467         Prefer strtol to strtoll if both work.
60468         (main): Remove; it was not that useful and was a pain to maintain.
60469
60470         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
60471
60472 2001-08-31  Jim Meyering  <meyering@lucent.com>
60473
60474         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
60475         Use an initial, malloc'd, buffer of length 128 rather than
60476         a statically allocated one of length 1024.
60477
60478 2001-08-30  Paul Eggert  <eggert@twinsun.com>
60479
60480         Simplify code, partly by assuming autoconf 2.52 semantics.
60481
60482         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
60483
60484         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
60485         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
60486         All uses removed.
60487         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
60488         Move AC_REQUIRE to next-to-top level, to avoid confusion.
60489         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
60490         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
60491         jm_AC_HEADER_INTTYPES_H.
60492         * m4/jm-macros.m4 (jm_MACROS): Likewise.
60493
60494         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
60495
60496         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
60497         Quote first arg of AC_DEFUN.
60498         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
60499         since they are needed to parse the include file even if we need
60500         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
60501         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
60502         but with opposite signedness.
60503
60504 2001-08-30  Paul Eggert  <eggert@twinsun.com>
60505
60506         Merge 'exclude' changes from tar 1.13.22.
60507         This fixes one or two unlikely storage allocation overflow bugs,
60508         but doesn't change user-visible behavior otherwise.
60509
60510 2001-08-30  Paul Eggert  <eggert@twinsun.com>
60511
60512         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
60513         (jm_PREREQ_EXCLUDE): New macro.
60514
60515 2001-08-30  Paul Eggert  <eggert@twinsun.com>
60516
60517         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
60518         tm to be declared.
60519
60520 2001-08-30  Paul Eggert  <eggert@twinsun.com>
60521
60522         * lib/hash.c: Remove '2001' from copyright notice.
60523
60524 2001-08-30  Paul Eggert  <eggert@twinsun.com>
60525
60526         * lib/full-write.h: New file.
60527         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
60528         * lib/full-write.c: Correct credits, as cccp.c no longer
60529         exists and anyway it was so heavily changed from the old cccp
60530         code as to be unrecognizable.  Include full-write.h.
60531         (full_write) Return size_t, with short writes meaning failure.
60532         All callers changed.  This fixes a bug with large buffers
60533         on 64-bit hosts.
60534         * lib/utime.c: Include full-write.h.
60535
60536 2001-08-30  Paul Eggert  <eggert@twinsun.com>
60537
60538         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
60539         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
60540         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
60541         Include if available.
60542         (<xalloc.h>): Include
60543         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
60544         (verify): New macro.  Use it to verify that EXCLUDE macros do not
60545         collide with FNM macros.
60546         (struct patopts): New struct.
60547         (struct exclude): Use it, as exclude patterns now come with options.
60548         (new_exclude): Support above changes.
60549         (new_exclude, add_exclude_file):
60550         Initial size must now be a power of two to simplify overflow checking.
60551         (free_exclude, fnmatch_no_wildcards): New function.
60552         (excluded_filename): No longer requires options arg, as the options
60553         are determined by add_exclude.  Now returns bool, not int.
60554         (excluded_filename, add_exclude):
60555         Add support for the fancy new exclusion options.
60556         (add_exclude, add_exclude_file): Now takes int options arg.
60557         Check for arithmetic overflow when computing sizes.
60558         (add_exclude_file): xrealloc might modify errno, so don't
60559         realloc until after errno might be used.
60560
60561         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
60562         New macros.
60563         (free_exclude): New decl.
60564         (add_exclude, add_exclude_file): Now takes int options arg.
60565         (excluded_filename): No longer requires options arg, as the options
60566         are determined by add_exclude.  Now returns bool, not int.
60567
60568 2001-08-30  Paul Eggert  <eggert@twinsun.com>
60569
60570         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
60571
60572 2001-08-27  Jim Meyering  <meyering@lucent.com>
60573
60574         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
60575
60576         * lib/version-etc.c (N_): Remove definition.
60577         Revert most of last change.
60578         Instead, simply don't mark the `Copyright...' string for translation.
60579         Based on advice from Paul Eggert.
60580
60581         * lib/strtoxmax.c: Tweak comment.
60582
60583 2001-08-26  Jim Meyering  <meyering@lucent.com>
60584
60585         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
60586
60587         * m4/xstrtoimax.m4: New file.
60588         * m4/xstrtoumax.m4: Add comments explaining why we
60589         AC_REPLACE_FUNCS(strtol).
60590
60591 2001-08-26  Jim Meyering  <meyering@lucent.com>
60592
60593         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
60594         of copyright with `%s' so translators don't get an untranslated
60595         message in 2002.
60596         (COPYRIGHT_YEAR): Define.
60597         (version_etc): Use fprintf rather than fputs.
60598         Suggestion from Ulrich Drepper.
60599
60600         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
60601
60602         * lib/strtoll.c: New file, from GNU libc.
60603         * lib/xstrtoimax.c: New file.
60604
60605         * lib/xstrtol.h: Add xstrtoimax.
60606         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
60607         * lib/strtoimax.c: New file.  Likewise, but first define
60608         STRTOUXMAX_SIGNED.
60609
60610         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
60611         ...
60612         * lib/strtoxmax.c: ... then renamed to this.
60613
60614 2001-08-18  Paul Eggert  <eggert@twinsun.com>
60615
60616         * m4/inttypes.m4: Add AC_PREREQ(2.13).
60617         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
60618         (jm_AC_TYPE_INTMAX_T): New macro.
60619         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
60620
60621         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
60622
60623         * m4/longlong.m4: Renamed from ulonglong.m4.
60624         * m4/inttypes.m4: Renamed from inttypes_h.m4.
60625         * m4/uintmax_t.m4: Removed.
60626
60627 2001-08-13  Paul Eggert  <eggert@twinsun.com>
60628
60629         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
60630         Port to Solaris 8, where 'sed' requires a space after the 'r'
60631         command, and where sh dislikes "$/".  Clean up the spacing a bit.
60632         Redirect output to $tmp just once.
60633
60634 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
60635
60636         * lib/addext.c (<errno.h>): Include.
60637         (errno): Declare if not defined.
60638         (addext): Work correctly when pathconf returns -1 and leaves
60639         errno alone because there is no limit.  Also, work even if
60640         pathconf returns a value greater than SIZE_MAX.
60641
60642 2001-08-12  Jim Meyering  <meyering@lucent.com>
60643
60644         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
60645         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
60646         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
60647         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
60648         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
60649         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
60650         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
60651         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
60652         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
60653         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
60654         utime.m4, utimes.m4, xstrtoumax.m4:
60655         Quote the first argument in each use of AC_DEFUN.
60656
60657 2001-08-12  Jim Meyering  <meyering@lucent.com>
60658
60659         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
60660         Simply `return getcwd (NULL, 0);'.
60661         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
60662         Use 1300 as initial value for length, not PATH_MAX.
60663
60664         * lib/pathmax.h: Clean up cpp syntax.
60665
60666 2001-08-12  Jim Meyering  <meyering@lucent.com>
60667
60668         * lib/gettimeofday.c: New file.
60669         * lib/gtod.h: New file.
60670         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
60671
60672 2001-08-05  Jim Meyering  <meyering@lucent.com>
60673
60674         * m4/jm-macros.m4: Require autoconf-2.52.
60675
60676 2001-08-04  Jim Meyering  <meyering@lucent.com>
60677
60678         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
60679         stmt, to get in sync with glibc.
60680
60681 2001-08-03  Paul Eggert  <eggert@twinsun.com>
60682
60683         The following changes are from gettext 0.10.39 as maintained by
60684         Bruno Haible.
60685
60686         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
60687         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
60688         with inverted sense.  All uses changed.
60689
60690         * lib/mbswidth.c: Don't include <limits.h>.
60691         Include <stdlib.h> and <string.h> unconditionally.
60692         (iswcntrl, mbsinit, ISCNTRL): New macros.
60693         (mbsnwidth): Use K&R style function declarations.
60694         Don't bother checking for MB_LEN_MAX == 1, since the compiler
60695         can optimize it when MB_CUR_MAX == 1.
60696         The width of control characters is zero, not 1.
60697
60698 2001-08-03  Paul Eggert  <eggert@twinsun.com>
60699
60700         The following changes are from gettext 0.10.39 as maintained by
60701         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
60702
60703         * m4/codeset.m4: Upgrade to serial AM1.
60704         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
60705         all uses changed.  Quote first arg of AC_DEFUN.
60706         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
60707
60708         * m4/iconv.m4: Upgrade to serial AM2.
60709         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
60710         Add --with-libconv-prefix.
60711         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
60712         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
60713         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
60714         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
60715         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
60716
60717         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
60718         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
60719         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
60720         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
60721         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
60722         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
60723         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
60724         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
60725         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
60726
60727         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
60728         string.h any more.
60729
60730         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
60731         not the default value.
60732
60733         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
60734         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
60735         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
60736         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
60737         Also check for iswcntrl, used for wcwidth fallback.
60738         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
60739         to Autoconf 2.13.
60740
60741 2001-08-03  Jim Meyering  <meyering@lucent.com>
60742
60743         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
60744         as it was in the original.  Reported by Paul Eggert.
60745
60746 2001-07-16  Jim Meyering  <meyering@lucent.com>
60747
60748         * m4/gettimeofday.m4: New file.
60749         Prompted by a report from Bernhard Baehr.
60750
60751 2001-07-15  Jim Meyering  <meyering@lucent.com>
60752
60753         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
60754         stuff. Now it's in ../Makefile.cfg.
60755
60756 2001-07-15  Jim Meyering  <meyering@lucent.com>
60757
60758         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
60759         (BUILT_SOURCES): Add unlocked-io.h.
60760         (io_functions): Define.
60761         (unlocked-io.h): New rule.
60762         (DISTCLEANFILES): Add unlocked-io.h.
60763         (all-local): Depend on unlocked-io.h, to ensure it is created.
60764
60765         * lib/unlocked-io.hin: New file
60766
60767         * lib/regex.c: Update from glibc.
60768
60769 2001-07-05  Jim Meyering  <meyering@lucent.com>
60770
60771         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
60772         recommendation.
60773         (libfetish_a_SOURCES): Put all .h files here instead.
60774         Remove a thus-exposed (better checks in automake) duplicate and
60775         two unnecessary .h files.
60776
60777 2001-07-04  Jim Meyering  <meyering@lucent.com>
60778
60779         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
60780         that generates jm-glibc-io.m4 so that it doesn't trigger any make
60781         distcheck failure.
60782
60783 2001-07-02  Jim Meyering  <meyering@lucent.com>
60784
60785         The following changes were prompted by suggestions from Bruno Haible.
60786
60787         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
60788         is now generated.
60789         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
60790         definition of EXTRA_DIST.
60791         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
60792         ensure that the generated file is created/updated whenever the list
60793         of $(unlocked_functions) is changed.
60794         (jm-glibc-io.m4): New rule.
60795         (unlocked-io.h): New rule -- currently unused.
60796
60797 2001-06-24  Jim Meyering  <meyering@lucent.com>
60798
60799         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
60800         unmatched right bracket, rather than kludging it with an extra,
60801         falsely-matching quote in a comment.  Patch by Akim Demaille.
60802
60803 2001-06-11  Jim Meyering  <meyering@lucent.com>
60804
60805         * lib/regex.c: Update from GNU libc.
60806
60807 2001-05-27  Jim Meyering  <meyering@lucent.com>
60808
60809         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
60810         Check for ut_type in struct utmp.
60811
60812 2001-05-27  Jim Meyering  <meyering@lucent.com>
60813
60814         * lib/readutmp.h (UT_TYPE): Define.
60815
60816 2001-05-24  Jim Meyering  <meyering@lucent.com>
60817
60818         * lib/argmatch.c: Include "quote.h".
60819         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
60820         quote function.  Reported by Göran Uddeborg.
60821
60822 2001-05-22  Jim Meyering  <meyering@lucent.com>
60823
60824         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
60825         now that we use the package-supplied version unconditionally.
60826         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
60827
60828 2001-05-21  Jim Meyering  <meyering@lucent.com>
60829
60830         * m4/regex.m4: Change a couple backticks to single quotes to avoid
60831         shell syntax errors.
60832
60833 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
60834
60835         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
60836
60837 2001-05-20  Paul Eggert  <eggert@twinsun.com>
60838
60839         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
60840         Don't bother to check library strftime, since
60841         we'll be using our own my_strftime function anyway.
60842         Define my_strftime instead of strftime.
60843
60844 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
60845
60846         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
60847         which is not yet declared.
60848
60849 2001-05-15  Jim Meyering  <meyering@lucent.com>
60850
60851         * m4/regex.m4: Use proper quoting so brackets appear in the test
60852         program.
60853         Reported by, and with help from, Bruno Haible.
60854
60855 2001-05-13  Jim Meyering  <meyering@lucent.com>
60856
60857         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
60858         undefined.
60859
60860 2001-05-11  Paul Eggert  <eggert@twinsun.com>
60861
60862         dirname code cleanup.  base_name now behaves more compatibly
60863         with POSIX basename when given file names that have trailing
60864         slashes, and similarly for dir_name.  Add new primitives
60865         base_len and dir_len.  Put the directory-name-related decls
60866         into dirname.h.
60867
60868         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
60869         * lib/backupfile.c (base_name): Likewise.
60870         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
60871         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
60872         * lib/makepath.c (strip_trailing_slashes): Likewise.
60873         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
60874         ISSLASH): Likewise.
60875         * lib/rename.c (strip_trailing_slashes): Likewise.
60876         * lib/same.c (base_name): Likewise.
60877         * lib/stripslash.c (ISSLASH): Likewise.
60878
60879         * lib/addext.c: Include <dirname.h> after size_t is defined.
60880         * lib/backupfile.c: Likewise.
60881
60882         * lib/addext.c (addext): Use base_len to trim redundant
60883         trailing slashes instead of doing it ourselves.
60884         But do not trim the last slash if it is not redundant.
60885
60886         * lib/backupfile.c (find_backup_file_name,
60887         max_backup_version): Use base_len instead of rolling it ourselves.
60888         Handle the case of "" and (on DOS) "C:" correctly.
60889
60890         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
60891         needed. Include <string.h>, <dirname.h>.
60892         (base_name): Allow file names ending in slashes, other than names
60893         that are all slashes.  In this case, return the basename followed
60894         by the slashes.  This is more general, and can be used in places
60895         where the original base_name purposely had an assertion failure.
60896         (base_len): New function.
60897
60898         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
60899         Do not include <assert.h>; no longer needed.
60900         Include xalloc.h.
60901         (memrchr): Remove decl.
60902         (dir_name_r): Remove.
60903         (dir_len): Renamed from dirlen.  All callers changed.
60904         Rewrite in terms of base_name, for simplicity and consistency.
60905         (dir_name): Never return NULL.  All callers changed.
60906         Do not include <stdlib.h> in test program; no longer needed.
60907         return 0; is fine for test program.
60908
60909         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
60910         New macros.
60911         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
60912
60913         * lib/path-concat.c (path_concat): Use base_len to compute
60914         base length, not strlen; this means we cannot rely on memcpy
60915         to null-terminate.
60916
60917         * lib/same.c (STREQ): Remove.
60918         (same_name): Handle the case where the basename ends in trailing '/'.
60919
60920         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
60921         a slash was stripped.  Do not strip the last slash after a
60922         file system prefix.
60923
60924 2001-05-11  Paul Eggert  <eggert@twinsun.com>
60925
60926         * lib/Makefile.am (libfetish_a_SOURCES):
60927         Add strftime.c, since we now compile it on all hosts.
60928
60929         * lib/strftime.c (my_strftime):
60930         Define to nstrftime if emacs, but only if my_strftime is not defined.
60931         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
60932         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
60933         Add one more extra argument: a nanoseconds value.
60934         All uses changed.
60935         (ns): New macro.
60936         (my_strftime function): Add %N format.
60937         (emacs_strftimeu): Renamed from emacs_strftime,
60938         with extra ut argument.
60939
60940 2001-05-09  Paul Eggert  <eggert@twinsun.com>
60941
60942         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
60943
60944 2001-04-21  Jim Meyering  <meyering@lucent.com>
60945
60946         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
60947         doesn't interfere.
60948
60949 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
60950
60951         * m4/ftruncate.m4: Check for chsize.
60952         Link with ftruncate.o unconditionally if ftruncate is missing.
60953         This was required when cross-compiling to i586-mingw32msvc.
60954
60955 2001-04-08  Jim Meyering  <meyering@lucent.com>
60956
60957         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
60958         recomputed; that's necessary when the offset spans a DST transition.
60959         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
60960
60961 2001-04-02  Jim Meyering  <meyering@lucent.com>
60962
60963         * lib/regex.h, regex.c: Update from GNU libc.
60964
60965 2001-03-24  Jim Meyering  <meyering@lucent.com>
60966
60967         * m4/jm-macros.m4: Require autoconf-2.49d.
60968
60969 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
60970
60971         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
60972
60973 2001-03-19  Paul Eggert  <eggert@twinsun.com>
60974
60975         * lib/version-etc.c (version_etc_copyright): Update to 2001.
60976
60977 2001-03-17  Jim Meyering  <meyering@lucent.com>
60978
60979         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
60980         now that the version in autoconf is equivalent.
60981         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
60982
60983         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
60984         Suggestion from Akim Demaille.
60985
60986         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
60987         (jm_PREREQ_TEMPNAME): New function.
60988
60989 2001-03-16  Paul Eggert  <eggert@twinsun.com>
60990
60991         * lib/tempname.c (uint64_t): Define to uintmax_t if
60992         not defined, and if UINT64_MAX is not defined.
60993         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
60994         Reported by John David Anglin.
60995
60996 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
60997
60998         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
60999         resolve alias if codeset is empty.
61000         * lib/config.charset (BeOS): Use wildcard syntax.
61001
61002 2001-03-13  Jim Meyering  <meyering@lucent.com>
61003
61004         * lib/path-concat.c (path_concat)
61005         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
61006         concatenating e.g., `C:' and `foo'.
61007         From Bruno Haible.
61008
61009 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
61010
61011         * lib/localcharset.c (locale_charset): Don't use
61012         setlocale(LC_CTYPE,NULL). Don't return NULL.
61013         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
61014
61015 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
61016
61017         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
61018         support for DOS/DJGPP.
61019
61020 2001-03-01  Paul Eggert  <eggert@twinsun.com>
61021
61022         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
61023         lacks mkstemp.  Compile our own tempname.c if we compile our own
61024         mkstemp.c, as mkstemp relies on tempname.
61025
61026 2001-03-01  Jim Meyering  <meyering@lucent.com>
61027
61028         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
61029         AH_VERBATIM really does output its argument verbatim.
61030
61031 2001-02-28  Paul Eggert  <eggert@twinsun.com>
61032
61033         * lib/Makefile.am (libfetish_a_SOURCES):
61034         Add dup-safer.c, fopen-safer.c.
61035         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
61036
61037         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
61038         * lib/unistd-safer.h: New files.
61039
61040 2001-02-25  Paul Eggert  <eggert@twinsun.com>
61041
61042         The mkstemp replacement is taken from glibc 2.2.2, with some
61043         portability fixes for use outside glibc, as follows:
61044
61045         * lib/tempname.c (struct_stat64): New macro.
61046         (direxists, __gen_tempname): Use it.
61047         This avoids a portability problem with Solaris 8.
61048
61049         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
61050         (<stddef.h>, <stdint.h>, <string.h>):
61051         Include only if STDC_HEADERS || _LIBC.
61052         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
61053         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
61054         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
61055         (__set_errno): Define this macro if <errno.h> doesn't.
61056         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
61057         Define these macros if <stdio.h> doesn't.
61058         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
61059         Define these macros if <sys/stat.h>
61060         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
61061         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
61062         __xstat64): Define if not _LIBC.
61063         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
61064         (__gen_tempname): Invoke gettimeofday only if
61065         HAVE_GETTIMEOFDAY || _LIBC;
61066         otherwise, fall back on plain "time".
61067         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
61068
61069         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
61070
61071         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
61072
61073 2001-02-18  Paul Eggert  <eggert@twinsun.com>
61074
61075         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
61076
61077 2001-02-17  Paul Eggert  <eggert@twinsun.com>
61078
61079         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
61080         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
61081         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
61082         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
61083
61084 2001-02-17  Paul Eggert  <eggert@twinsun.com>
61085
61086         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
61087         Remove workaround macros for hosts that have mbrtowc but not
61088         mbstate_t, as we now insist on proper declarations for both
61089         before using mbrtowc.
61090
61091 2001-02-17  Jim Meyering  <meyering@lucent.com>
61092
61093         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
61094         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
61095         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
61096         UnixWare 7.1.1.
61097
61098         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
61099         rather than AC_CACHE_VAL.
61100
61101 2001-02-17  Jim Meyering  <meyering@lucent.com>
61102
61103         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
61104         around included file name.
61105
61106         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
61107
61108         * lib/strftime.c: Update from GNU libc (the only changes were to
61109         comments).
61110
61111 2001-02-17  Jim Meyering  <meyering@lucent.com>
61112
61113         * lib/regex.c: Update from libc.
61114
61115 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
61116
61117         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
61118         clash.
61119
61120 2001-02-16  Paul Eggert  <eggert@twinsun.com>
61121
61122         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
61123         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
61124         Reported by Mark Hounschell via Paul Eggert.
61125
61126 2001-02-07  Jim Meyering  <meyering@lucent.com>
61127
61128         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
61129
61130 2001-02-05  Jim Meyering  <meyering@lucent.com>
61131
61132         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
61133         it includes the patch required for `large file' support with at least
61134         HP-UX's 10.20 /bin/cc.
61135
61136 2001-02-03  Jim Meyering  <meyering@lucent.com>
61137
61138         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
61139         AS_IF, now that it works once again (mysteriously).
61140         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
61141
61142 2001-01-30  Jim Meyering  <meyering@lucent.com>
61143
61144         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
61145         * m4/chown.m4: Rename conftestchown to conftest.chown.
61146         * m4/rename.m4: s/conftestdir/conftest.d1/ and
61147         s/conftestdir2/conftest.d2/.
61148         * m4/utimes.m4: s/conftestdata/conftest.data/
61149         Inspired by Pavel Roskin's change in autoconf.
61150
61151 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
61152
61153         * lib/config.charset: Update for FreeBSD 4.2.
61154
61155 2001-01-27  Jim Meyering  <meyering@lucent.com>
61156
61157         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
61158         a use of AS_IF.
61159         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
61160
61161 2001-01-26  Jim Meyering  <meyering@lucent.com>
61162
61163         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
61164         quotearg.c includes it.
61165
61166 2001-01-26  Jim Meyering  <meyering@lucent.com>
61167
61168         * lib/quotearg.c: Include stddef.h.
61169         * lib/quote.c: Include stddef.h.
61170         Reported by Axel Kittenberger.
61171
61172         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
61173         line in double quotes so that it evokes a better diagnostic.
61174         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
61175         Reported by Axel Kittenberger.
61176
61177 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
61178
61179         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
61180         as if it was a `charset'.
61181
61182 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
61183
61184         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
61185         has const.
61186
61187 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
61188
61189         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
61190         to avoid a warning.  Add back 'const' to inptr.
61191
61192 2001-01-20  Jim Meyering  <meyering@lucent.com>
61193
61194         Be sure that headers are checked before used in code compiled
61195         for the type checks.
61196         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
61197         In place of that, invoke jm_CHECK_ALL_TYPES.
61198         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
61199         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
61200         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
61201         The check for ssize_t was mistakenly run before the test for unistd.h.
61202
61203         The configure-time check for stdbool.h was missing.
61204         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
61205         (jm_PREREQ_HASH): New function.
61206
61207 2001-01-17  Jim Meyering  <meyering@lucent.com>
61208
61209         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
61210         for autoconf-2.49c.
61211         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
61212
61213 2001-01-16  Jim Meyering  <meyering@lucent.com>
61214
61215         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
61216         From Bruno Haible.
61217
61218 2001-01-14  Jim Meyering  <meyering@lucent.com>
61219
61220         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
61221         foo and bar.  Create conftestdir/ in the script, not in the C code.
61222         Remove directories in the script, not in the C code.
61223         Remove conftestdir{,2} before trying to create the directory.
61224         Make the entire configure script fail if the mkdir fails.
61225
61226 2001-01-14  Jim Meyering  <meyering@lucent.com>
61227
61228         * lib/rename.c: New file.  From Volker Borchert.
61229         Include stdlib.h, string.h or strings.h, and xalloc.h.
61230         Use strip_trailing_slashes rather than open-coding it.
61231
61232 2001-01-03  Paul Eggert  <eggert@twinsun.com>
61233
61234         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
61235
61236 2001-01-03  Jim Meyering  <meyering@lucent.com>
61237
61238         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
61239         of local `inptr' to avoid warning with some system declarations of
61240         iconv.
61241
61242 2001-01-02  Volker Borchert  <bt@teknon.de>
61243
61244         * m4/rename.m4: New file.
61245         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
61246
61247 2001-01-01  Jim Meyering  <meyering@lucent.com>
61248
61249         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
61250         even on systems with utmpx.h.  It's necessary for the declaration of
61251         utmp's ut_user member.  Reported by Andreas Jaeger.
61252
61253         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
61254         available. They are required for the declarations of getgrgid and
61255         getpwuid resp.
61256         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
61257         Reported by Andreas Jaeger.
61258
61259 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
61260
61261         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
61262         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
61263         so `make install' also works in VPATH builds.
61264
61265 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
61266
61267         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
61268         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
61269         can be used in subdirectories.
61270
61271 2000-12-29  Paul Eggert  <eggert@twinsun.com>
61272
61273         * lib/modechange.c: Do not assume that mode_t uses the
61274         traditional octal encoding.  E.g. "chmod 1 FOO" should set
61275         the other-execute bit of FOO even if S_IXOTH != 1.
61276
61277         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
61278         WOTH, XOTH, ALLM): New macros.
61279         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
61280          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
61281         Use them.
61282         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
61283         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
61284         (mode_compile):
61285         No need to use uintmax_t; unsigned long is long enough.
61286         Don't bother to get suffix since we don't use it.
61287
61288 2000-12-26  Jim Meyering  <meyering@lucent.com>
61289
61290         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
61291         better with autoheader.
61292
61293 2000-12-24  Jim Meyering  <meyering@lucent.com>
61294
61295         * lib/hash.c (is_prime): Return explicit boolean values.
61296         (hash_get_first): Return NULL to appease Irix5.6's 89.
61297         Reported by Nelson Beebe.
61298
61299 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
61300
61301         * lib/localcharset.c (locale_charset): Add support for Win32.
61302
61303 2000-12-18  Paul Eggert  <eggert@twinsun.com>
61304
61305         * lib/physmem.h, lib/physmem.c: New files.
61306
61307         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
61308         (noinst_HEADERS): Add physmem.h.
61309
61310         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
61311         't' for compatibility with Solaris 8 sort.
61312
61313 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
61314
61315         * lib/config.charset: Add support for BeOS.
61316
61317 2000-12-17  Jim Meyering  <meyering@lucent.com>
61318
61319         * m4/dos.m4 (jm_AC_DOS): New file and macro.
61320         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
61321
61322 2000-12-16  Jim Meyering  <meyering@lucent.com>
61323
61324         This bug had a serious impact on chown: `chown N:M FILE' (for integer
61325         N and M) would have treated it like `chown N:N FILE'.
61326
61327         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
61328
61329 2000-12-16  Jim Meyering  <meyering@lucent.com>
61330
61331         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
61332         SHELLS_FILE to a file name that's useful on djgpp systems.
61333         Include stdlib.h.
61334         (ADDITIONAL_DEFAULT_SHELLS): Define.
61335         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
61336         Based mostly on a patch from Prashant TR.
61337
61338 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
61339
61340         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
61341         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
61342         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
61343
61344 2000-12-08  Andreas Schwab  <schwab@suse.de>
61345
61346         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
61347         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
61348
61349 2000-12-07  Jim Meyering  <meyering@lucent.com>
61350
61351         * lib/stripslash.c (ISSLASH): Define.
61352         (strip_trailing_slashes): Use ISSLASH rather than comparing against
61353         `/'.
61354         From Prashant TR.
61355
61356         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
61357         (dir_name_r): Declare this function as static.
61358         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
61359         manifest itself on a name containing a mix of slashes and
61360         backslashes.
61361         Make this function work with names starting with a DOS-style
61362         drive letter and colon prefix.
61363         (dir_name): Append `.' if necessary.
61364         Based mostly on patches from Prashant TR and Eli Zaretskii.
61365
61366         * lib/dirname.h (dir_name_r): Remove prototype.
61367
61368 2000-12-06  Paul Eggert  <eggert@twinsun.com>
61369
61370         * m4/off_t-format.m4: Remove this file.
61371         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
61372
61373 2000-12-06  Jim Meyering  <meyering@lucent.com>
61374
61375         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
61376         replacement strtoull, we may well need the replacement strtoul, too.
61377         Check for declarations of strtoul and strtoull.
61378         Check for strtol.  Mainly as a cue to cause automake to include
61379         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
61380         Check for limits.h -- strtol.c needs it.
61381
61382 2000-12-05  Jim Meyering  <meyering@lucent.com>
61383
61384         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
61385
61386 2000-12-04  Jim Meyering  <meyering@lucent.com>
61387
61388         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
61389         Also include memory.h, stdlib.h, unistd.h if appropriate.
61390         Reported by Andreas Jaeger (conflicting declaration of malloc).
61391
61392 2000-12-02  Jim Meyering  <meyering@lucent.com>
61393
61394         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
61395         * m4/jm-macros.m4 (jm_MACROS): require it.
61396
61397 2000-12-02  Jim Meyering  <meyering@lucent.com>
61398
61399         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
61400
61401 2000-12-01  Paul Eggert  <eggert@twinsun.com>
61402
61403         * lib/memrchr.c: Include <config.h> before any system include file.
61404
61405 2000-11-30  Jim Meyering  <meyering@lucent.com>
61406
61407         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
61408
61409 2000-11-30  Jim Meyering  <meyering@lucent.com>
61410
61411         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
61412
61413 2000-11-29  Paul Eggert  <eggert@twinsun.com>
61414
61415         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
61416
61417 2000-11-26  Jim Meyering  <meyering@lucent.com>
61418
61419         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
61420
61421 2000-11-22  Paul Eggert  <eggert@twinsun.com>
61422
61423         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
61424         size of (size_t) -1; it's not portable.
61425
61426 2000-11-17  Jim Meyering  <meyering@lucent.com>
61427
61428         * lib/strstr.c: Update from GNU libc.
61429
61430 2000-11-17  Akim Demaille  <akim@epita.fr>
61431
61432         * lib/obstack.h: Formatting changes.
61433         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
61434         prevent type checking.
61435         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
61436         cast the value to (void *): assigning a `foo *' to a `void *'
61437         variable is valid.
61438         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
61439
61440 2000-11-16  Jim Meyering  <meyering@lucent.com>
61441
61442         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
61443
61444 2000-11-11  Jim Meyering  <meyering@lucent.com>
61445
61446         * lib/error.c: Add a couple #includes, merging from GNU libc version.
61447
61448 2000-11-10  Jim Meyering  <meyering@lucent.com>
61449
61450         * lib/obstack.h: Update from GNU libc.
61451         * lib/obstack.c: Likewise.
61452
61453 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
61454
61455         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
61456
61457 2000-11-06  Paul Eggert  <eggert@twinsun.com>
61458
61459         * lib/getusershell.c (setusershell): Use rewind rather than
61460         fseek/fseeko, to avoid configuration hassles with fseeko.
61461         Don't bother opening SHELLS_FILE if shellstream is NULL;
61462         it's not necessary.
61463
61464 2000-11-05  Jim Meyering  <meyering@lucent.com>
61465
61466         * lib/makepath.h (make_dir): Declare.
61467         * lib/makepath.c (make_dir): Remove `static' attribute.
61468         Tweak a comment.
61469
61470 2000-11-04  Jim Meyering  <meyering@lucent.com>
61471
61472         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
61473
61474 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
61475
61476         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
61477         last one in a bucket, advance to the next bucket.
61478
61479 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
61480
61481         * lib/fnmatch.c: Do not comment out all the code if we are using
61482         the GNU C library, because in some cases we are replacing buggy
61483         code in the GNU C library itself.
61484
61485 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
61486
61487         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
61488         (regex_compile): Catch bogus \(\1\).
61489
61490 2000-10-30  Paul Eggert  <eggert@twinsun.com>
61491
61492         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
61493         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
61494         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
61495
61496 2000-10-30  Paul Eggert  <eggert@twinsun.com>
61497
61498         * lib/error.h, getline.h, modechange.h:
61499         Remove "2000" from Copyright line, as the file hasn't been
61500         changed this year other than in the copyright notice.
61501
61502         * lib/xalloc.h: Add "2000" to Copyright line, as this file
61503         was changed this year.
61504
61505 2000-10-29  Jim Meyering  <meyering@lucent.com>
61506
61507         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
61508         renaming.
61509         * m4/ls-mntd-fs.m4: Likewise
61510
61511 2000-10-29  Jim Meyering  <meyering@lucent.com>
61512
61513         * lib/xstat.in: Fix grammar in comment.
61514
61515 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
61516
61517         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
61518         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
61519         doesn't define __restrict_arr.
61520
61521 2000-10-28  Jim Meyering  <meyering@lucent.com>
61522
61523         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
61524         (jm_PREREQ_MEMCHR): New function.
61525
61526 2000-10-28  Jim Meyering  <meyering@lucent.com>
61527
61528         * lib/memchr.c: Update from libc.
61529         Adjust for portability:
61530         [HAVE_STDLIB_H]: Include stdlib.h.
61531         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
61532         Undef __memchr, too.
61533         [!weak_alias]: Define __memchr to memchr.
61534
61535         * lib/regex.c: Update from libc.
61536         * lib/regex.h: Likewise.
61537         * lib/getopt1.c: Likewise.
61538         * lib/memcmp.c: Likewise.
61539
61540         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
61541         Avoid using fseek, when possible -- it's broken by design.
61542         Patch by Ulrich Drepper.
61543
61544 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
61545
61546         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
61547         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
61548         Giving in to popular pressure to shut up the compiler with casts.
61549
61550 2000-10-26  Jim Meyering  <meyering@lucent.com>
61551
61552         * lib/strftime.c: Update from libc.
61553
61554 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
61555
61556         * regex.c: More `unsigned char' -> `re_char' changes.
61557         Also change several `int' into `re_wchar_t'.
61558         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
61559         (PUSH_FAILURE_POINTER): Don't cast any more.
61560         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
61561         We want GCC to complain, since this piece of code makes
61562         re_match non-reentrant, which *should* be fixed.
61563         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
61564         (EXTEND_BUFFER): Use RETALLOC.
61565         (SET_LIST_BIT): Don't cast.
61566         (re_wchar_t): New type.
61567         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
61568         that those two functions will always properly return.
61569         (IMMEDIATE_QUIT_CHECK): Cast to void.
61570         (analyse_first): Use recursion rather than an explicit stack.
61571         (re_compile_fastmap): Can't fail anymore.
61572         (re_search_2): Don't check re_compile_fastmap for failure.
61573         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
61574         Now also sets the new value (passed in a new argument).
61575         (re_match_2_internal): Use it.
61576         Also, use a new var `reg' of type size_t when looping through regs
61577         rather than reuse the inappropriate `mcnt'.
61578
61579 2000-10-25  Jim Meyering  <meyering@lucent.com>
61580
61581         * lib/obstack.c: Update from libc.
61582
61583 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
61584
61585         * regex.c (regex_compile): Change the way of handling a range from
61586         a char less than 256 to a char not less than 256.
61587
61588 2000-10-24  Andrew Innes  <andrewi@gnu.org>
61589
61590         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
61591         NT-Emacs only.
61592         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
61593         so that re_search functions only quit when callers expect them to.
61594
61595 2000-10-23  Jim Meyering  <meyering@lucent.com>
61596
61597         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
61598         wrong.  That set_locale call must not have any side effects.
61599         From Paul Eggert.
61600
61601 2000-10-22  Jim Meyering  <meyering@lucent.com>
61602
61603         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
61604         [CYCLIC]: Remove now-unused definition.
61605
61606         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
61607         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
61608         Suggestion from Ulrich Drepper.
61609
61610 2000-10-21  Jim Meyering  <meyering@lucent.com>
61611
61612         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
61613         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
61614         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
61615
61616 2000-10-21  Jim Meyering  <meyering@lucent.com>
61617
61618         * lib/dirname.c (memrchr): Declare if necessary.
61619         (dir_name): Remove the restriction that there be no
61620         trailing slashes.  Now, this code skips past them, effectively
61621         ignoring them.
61622         [TEST_DIRNAME] (main): New unit tests.
61623
61624         * lib/memrchr.c: New file from GNU libc.
61625         Undef __memrchr, too.
61626         [!weak_alias]: Define __memrchr to memrchr.
61627         Guard weak_alias use with `#ifdef weak_alias'.
61628
61629 2000-10-21  Jim Meyering  <meyering@lucent.com>
61630
61631         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
61632         (dir_name): Use dir_name_r.
61633         * lib/dirname.h (dir_name_r): Declare it.
61634
61635 2000-10-17  Jim Meyering  <meyering@lucent.com>
61636
61637         * lib/quote.h (PARAMS): Define and use.
61638         Reported by Akim Demaille.
61639
61640         * lib/getopt.c: Update from libc.
61641
61642 2000-10-16  Jim Meyering  <meyering@lucent.com>
61643
61644         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
61645         setlocale.
61646         From Jan Fedak.
61647
61648 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
61649
61650         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
61651
61652 2000-09-25  Jim Meyering  <meyering@lucent.com>
61653
61654         * lib/md5.h (rol): Define (from GnuPG).
61655
61656         * lib/sha.c: Give credit (GnuPG) where due.
61657         (M): Use rol rather than open-coding it.
61658         Add a FIXME comment.
61659
61660 2000-09-21  Jim Meyering  <meyering@lucent.com>
61661
61662         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
61663         Reported by Michael Stone.
61664
61665 2000-09-20  Jim Meyering  <meyering@lucent.com>
61666
61667         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
61668         (noinst_HEADERS): Add sha.h.
61669         Based on code from Scott G. Miller and from GnuPG.
61670
61671 2000-09-18  Jim Meyering  <meyering@lucent.com>
61672
61673         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
61674         LIBS. Otherwise, everyone ends up linking with -lelf for some
61675         configurations.
61676         Reported by Mike Stone.
61677
61678 2000-09-15  Jim Meyering  <meyering@lucent.com>
61679
61680         * lib/regex.c: Update from libc.
61681
61682 2000-09-10  Jim Meyering  <meyering@lucent.com>
61683
61684         * lib/getopt.c (_getopt_internal): Update from glibc.
61685
61686 2000-09-09  Jim Meyering  <meyering@lucent.com>
61687
61688         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
61689         think it should be used as a general replacement for isascii.
61690         * lib/fnmatch.c: Likewise.
61691         * lib/mbswidth.c: Likewise
61692         * lib/regex.c: Likewise.
61693
61694         Don't use atoi.
61695         * lib/userspec.c: Include sys/param.h and limits.h.
61696         Include xstrtol.h.
61697         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
61698         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
61699         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
61700         UID, GID.  Check range.
61701
61702 2000-09-06  Jim Meyering  <meyering@lucent.com>
61703
61704         * lib/getopt.c (_getopt_internal): Update from glibc.
61705
61706 2000-08-30  Jim Meyering  <meyering@lucent.com>
61707
61708         * lib/strftime.c: Merge in changes from GNU libc.
61709
61710 2000-08-26  Jim Meyering  <meyering@lucent.com>
61711
61712         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
61713         * m4/fpending.m4: New file.
61714
61715 2000-08-26  Jim Meyering  <meyering@lucent.com>
61716
61717         * lib/closeout.c: Include "__fpending.h".
61718         (close_stdout_status): Return right away if there's nothing to flush.
61719
61720         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
61721         * lib/__fpending.c: New file.
61722         * lib/__fpending.h: New file.
61723
61724 2000-08-20  Jim Meyering  <meyering@lucent.com>
61725
61726         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
61727         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
61728         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
61729
61730 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
61731
61732         Improve fileutils installation on systems where running
61733         programs (like install) can't be unlinked.
61734         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
61735         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
61736
61737 2000-08-07  Paul Eggert  <eggert@twinsun.com>
61738
61739         Standardize on "memory exhausted" instead of "Memory exhausted"
61740         or "virtual memory exhausted".
61741         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
61742         "virtual memory exhausted".
61743         * lib/same.c (same_name): Invoke xalloc_die instead of printing
61744         our own message.
61745         * lib/userspec.c (parse_user_spec): Likewise.
61746         * lib/bumpalloc.h: comment fix
61747         * lib/same.c, userspec.c: Include xalloc.h.
61748
61749         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
61750         not char *const and pointing to a constant array.
61751         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
61752         (xrealloc): Comment fix.
61753
61754         * lib/userspec.c (parse_user_spec):
61755         Don't translate a message until just before returning,
61756         to avoid unnecessary translation.
61757
61758 2000-08-07  Jim Meyering  <meyering@lucent.com>
61759
61760         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
61761         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
61762         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
61763         getgroups.c, gethostname.c, getopt.h, group-member.c,
61764         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
61765         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
61766         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
61767         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
61768         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
61769         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
61770         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
61771         yesno.c: Back out Copyright date changes for each file with no change
61772         this year.  This eases coordination with other programs using the same
61773         source code modules.  From Paul Eggert.
61774
61775 2000-08-06  Paul Eggert  <eggert@twinsun.com>
61776
61777         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
61778         not char, for compatibility with glibc 2.1.3 strftime.c.
61779
61780 2000-08-03  Greg McGary  <greg@mcgary.org>
61781
61782         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
61783         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
61784         (EXTEND_BUFFER): Use them.
61785
61786 2000-08-01  Jim Meyering  <meyering@lucent.com>
61787
61788         * lib/dirname.c (ISSLASH): Define.
61789         (BACKSLASH_IS_PATH_SEPARATOR): Define.
61790         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
61791         both `\' and `/' may be use as path separators.
61792         Based on a patch from Prashant TR.
61793
61794 2000-07-31  Paul Eggert  <eggert@twinsun.com>
61795
61796         * lib/quotearg.c (quotearg_n_options): Don't make the initial
61797         slot vector a constant, since it might get modified.
61798
61799 2000-07-31  Jim Meyering  <meyering@lucent.com>
61800
61801         * lib/xmalloc.c: Use `virtual memory exhausted', not
61802         `Memory exhausted'.
61803         * lib/obstack.c (print_and_abort): Likewise.
61804
61805 2000-07-30  Paul Eggert  <eggert@twinsun.com>
61806
61807         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
61808         buffer, so that the caller can always quote one small
61809         component of a "memory exhausted" message in slot 0.
61810         From a suggestion by Jim Meyering.
61811
61812 2000-07-30  Jim Meyering  <meyering@lucent.com>
61813
61814         * lib/makepath.c (make_path): Quote the other instance, too.
61815
61816         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
61817         (STATIC_BUF_SIZE): Define.
61818         (quotearg_n_options): Use only statically allocated storage when
61819         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
61820         than STATIC_BUF_SIZE.
61821
61822 2000-07-29  Jim Meyering  <meyering@lucent.com>
61823
61824         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
61825         * lib/dirname.c (dir_name): Likewise.
61826
61827         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
61828         `/'.
61829
61830         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
61831         (dir_name): Assert that there are no trailing slashes.
61832
61833 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
61834
61835         * lib/mbswidth.h (mbswidth): Add a flags argument.
61836         (mbswidth): New declaration.
61837         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
61838         * lib/mbswidth.c (mbswidth): Add a flags argument.
61839         (mbsnwidth): New function.
61840
61841 2000-07-24  Jim Meyering  <meyering@lucent.com>
61842
61843         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
61844
61845 2000-07-23  Paul Eggert  <eggert@twinsun.com>
61846
61847         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
61848
61849 2000-07-23  Paul Eggert  <eggert@twinsun.com>
61850
61851         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
61852         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
61853         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
61854         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
61855         invoke multibyte primitives.
61856
61857 2000-07-23  Paul Eggert  <eggert@twinsun.com>
61858
61859         * lib/quotearg.c:
61860         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
61861         so that mbstate_t is always defined.
61862
61863         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
61864         be 1 in at least one GCC installation, and this configuration
61865         error is likely to be common.  Ignoring MB_LEN_MAX hurts
61866         performance on hosts that have mbrtowc but have only unibyte
61867         locales, but I assume these hosts are rare.
61868
61869 2000-07-23  Paul Eggert  <eggert@twinsun.com>
61870
61871         * lib/mbswidth.c (_XOPEN_SOURCE):
61872         Don't define; this causes problems on Solaris 7.
61873         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
61874
61875 2000-07-23  Jim Meyering  <meyering@lucent.com>
61876
61877         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
61878         too: getgrgid, getpwuid, getuid.
61879
61880 2000-07-23  Jim Meyering  <meyering@lucent.com>
61881
61882         * lib/basename.c (base_name): Add an assertion.
61883
61884 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
61885
61886         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
61887         shadow its mbsinit function.
61888
61889 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
61890
61891         * lib/mbswidth.h: New file.
61892         * lib/mbswidth.c: New file.
61893         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
61894         (noinst_HEADERS): Add mbswidth.h.
61895
61896 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
61897
61898         * lib/config.charset: Add support for FreeBSD. Improve support for
61899         HP-UX and IRIX 6.
61900
61901 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
61902
61903         * m4/mbswidth.m4: New file.
61904         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
61905
61906 2000-07-15  Jim Meyering  <meyering@lucent.com>
61907
61908         * lib/makepath.c: Include quote.h.
61909         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
61910         corresponding argument in a `quote (...)' call.
61911         Give better diagnostics.
61912
61913         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
61914         (noinst_HEADERS): Add quote.h.
61915
61916         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
61917         from tar's src/misc.c.
61918         * lib/quote.h: New file.  Prototypes for same.
61919
61920 2000-07-14  Paul Eggert  <eggert@twinsun.com>
61921
61922         From a suggestion by Bruno Haible.
61923         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
61924         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
61925         to decide whether to define the BeOS workaround macro;
61926         this adjusts to the change to AC_MBSTATE_T.
61927
61928 2000-07-14  Jim Meyering  <meyering@lucent.com>
61929
61930         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
61931         jm_AC_TYPE_UINTMAX_T.
61932
61933 2000-07-13  Paul Eggert  <eggert@twinsun.com>
61934
61935         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
61936
61937         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
61938         quotearg_buffer_restyled): Add support for
61939         clocale_quoting_style.  Undo previous change to
61940         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
61941         and "{RIGHT QUOTATION MARK}" msgids.
61942
61943 2000-07-10  Paul Eggert  <eggert@twinsun.com>
61944
61945         From a suggestion by Bruno Haible.
61946         * m4/mbstate_t.m4 (AC_MBSTATE_T):
61947         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
61948         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
61949         and mbstate_t, to a single-part test that simply defines mbstate_t.
61950         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
61951         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
61952
61953 2000-07-10  Jim Meyering  <meyering@lucent.com>
61954
61955         * m4/strerror_r.m4: Mirror the correction made in autoconf.
61956
61957         * m4/gnu-source.m4: Output to confdefs.h directly.
61958         Suggestion from Akim Demaille.
61959
61960 2000-07-09  Paul Eggert  <eggert@twinsun.com>
61961
61962         The old behavior of quoting `like this' doesn't look good with
61963         newer, ISO-style fonts.  See:
61964         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
61965
61966         Instead, quote "like this" by default.  Let the translator
61967         tailor the locale-specific quoting behavior by providing
61968         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
61969
61970         * lib/quotearg.c (N_): New macro.
61971         (gettext_default): New function.
61972         (quotearg_buffer_restyled): Use
61973         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
61974         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
61975
61976 2000-07-09  Jim Meyering  <meyering@lucent.com>
61977
61978         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
61979         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
61980
61981         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
61982         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
61983
61984 2000-07-09  Jim Meyering  <meyering@lucent.com>
61985
61986         * lib/Most files: Update copyright dates to include 2000.
61987
61988 2000-07-08  Jim Meyering  <meyering@lucent.com>
61989
61990         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
61991         if not defined.
61992         (xgethostname): Remove now-unnecessary #ifdef.
61993         Move declaration of `err' into loop where it's used.
61994
61995 2000-07-05  Paul Eggert  <eggert@twinsun.com>
61996         and Bruno Haible  <haible@clisp.cons.org>
61997
61998         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
61999         only if the test for an object-type mbstate_t fails.  This
62000         prevents us from mistakenly reporting that mbstate_t is a
62001         system object type after we "#define mbstate_t int" to work
62002         around its lack.
62003
62004 2000-07-05  Paul Eggert  <eggert@twinsun.com>
62005         and Bruno Haible  <haible@clisp.cons.org>
62006
62007         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
62008
62009 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
62010
62011         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
62012         to strerror_r.
62013         Include <ctype.h> for use of isalpha.
62014
62015 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
62016
62017         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
62018         by allocating a larger buffer. Test the gethostname return value for
62019         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
62020         returns an error and ENAMETOOLONG isn't defined.
62021
62022 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
62023
62024         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
62025         dimension.
62026
62027 2000-07-04  Jim Meyering  <meyering@lucent.com>
62028
62029         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
62030         of the deprecated AC_CHECKING.
62031
62032 2000-07-04  Jim Meyering  <meyering@lucent.com>
62033
62034         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
62035         Reported by Bruno Haible.
62036
62037 2000-07-04  Jim Meyering  <meyering@lucent.com>
62038
62039         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
62040         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
62041         lacks mbrtowc.
62042
62043 2000-07-03  Paul Eggert  <eggert@twinsun.com>
62044
62045         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
62046         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
62047
62048 2000-07-03  Paul Eggert  <eggert@twinsun.com>
62049         and Bruno Haible  <haible@clisp.cons.org>
62050
62051         * lib/quotearg.c (mbrtowc):
62052         Assign to *pwc, and return 1 only if result is nonzero.
62053         (iswprint): Use ISPRINT when substituting our own mbrtowc.
62054
62055 2000-07-03  Jim Meyering  <meyering@lucent.com>
62056
62057         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
62058
62059 2000-07-03  Jim Meyering  <meyering@lucent.com>
62060
62061         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
62062         This is necessary to get a definition of e.g., UTMP_FILE on
62063         HP-UX 10.20.
62064         From Bob Proulx.
62065
62066 2000-07-02  Jim Meyering  <meyering@lucent.com>
62067
62068         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
62069
62070         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
62071         AC_LIBOBJ(function_name).
62072         * m4/chown.m4: Likewise.
62073         * m4/fnmatch.m4: Likewise.
62074         * m4/ftruncate.m4: Likewise.
62075         * m4/getgroups.m4: Likewise.
62076         * m4/getline.m4: Likewise.
62077         * m4/group-member.m4: Likewise.
62078         * m4/jm-macros.m4: Likewise.
62079         * m4/lstat.m4: Likewise.
62080         * m4/malloc.m4: Likewise.
62081         * m4/memcmp.m4: Likewise.
62082         * m4/nanosleep.m4: Likewise.
62083         * m4/putenv.m4: Likewise.
62084         * m4/realloc.m4: Likewise.
62085         * m4/regex.m4: Likewise.
62086         * m4/stat.m4: Likewise.
62087         * m4/strftime.m4: Likewise.
62088
62089 2000-07-02  Jim Meyering  <meyering@lucent.com>
62090
62091         * lib/quotearg.c (mbstate_t): Don't define here.
62092
62093 2000-07-02  Jim Meyering  <meyering@lucent.com>
62094
62095         * lib/nanosleep.c (SIGCONT): Define if not already defined.
62096
62097 2000-07-01  Jim Meyering  <meyering@lucent.com>
62098
62099         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
62100
62101 2000-07-01  Jim Meyering  <meyering@lucent.com>
62102
62103         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
62104         problem.
62105
62106 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
62107
62108         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
62109         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
62110
62111 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
62112
62113         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
62114         per change in ../m4/ls-mntd-fs.m4.
62115         (read_filesystem_list): Ignore symbolic links.
62116
62117 2000-06-29  Jim Meyering  <meyering@lucent.com>
62118
62119         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
62120         for declaration of strcmp.
62121
62122         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
62123
62124         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
62125         Avoid warning by casting result to `char *' to remove `const'.
62126
62127 2000-06-28  Jim Meyering  <meyering@lucent.com>
62128
62129         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
62130         included by quotearg.c, for which we perform this test.  From
62131         Bruno Haible.
62132
62133 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
62134
62135         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
62136         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
62137         <utmpx.h> exists, put readutmp.o into LIBOBJS.
62138
62139 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
62140
62141         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
62142
62143 2000-06-26  Paul Eggert  <eggert@twinsun.com>
62144
62145         savedir now sets errno on failure and invokes xmalloc to get memory.
62146         Fix a couple of other minor bugs while we're at it.
62147
62148         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
62149         (NAMLEN): Remove macro.
62150         (malloc, realloc): Remove decls.
62151         (stpcpy): Likewise.
62152         ("xalloc.h"): Include.
62153         (NAME_SIZE_DEFAULT): New macro.
62154         (savedir): Use xmalloc / xrealloc to allocate memory.
62155         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
62156         Skip "" directory entries.
62157         Use strlen to calculate directory entry length, since the old method
62158         is rarely used these days and isn't worth supporting.
62159         Don't use a pointer after freeing it.
62160         Check for integer overflow when calculating allocation size.
62161         Use memcpy to copy entries, instead of stpcpy.
62162         Set errno properly when returning NULL.
62163         Check for readdir error.
62164
62165 2000-06-26  Jim Meyering  <meyering@lucent.com>
62166
62167         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
62168
62169 2000-06-25  Jim Meyering  <meyering@lucent.com>
62170
62171         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
62172         Linux header bug when _XOPEN_SOURCE is defined to 500.
62173
62174 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
62175
62176         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
62177         deficiency.
62178
62179 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
62180
62181         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
62182         Include xalloc.h.
62183         Don't include <stdlib.h>.  Don't declare malloc, realloc.
62184
62185 2000-06-24  Jim Meyering  <meyering@lucent.com>
62186
62187         * m4/strerror_r.m4: Revive this file -- to try out an experimental
62188         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
62189         for which strerror does return char*, but which lacks a conveniently
62190         accessible declaration of the function.  If the compile-test says
62191         strerror_r doesn't work, then resort to a `run'-test that works on
62192         BeOS and segfaults on DEC Unix.
62193
62194 2000-06-24  Jim Meyering  <meyering@lucent.com>
62195
62196         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
62197
62198 2000-06-23  Paul Eggert  <eggert@twinsun.com>
62199
62200         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
62201         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
62202
62203 2000-06-23  Paul Eggert  <eggert@twinsun.com>
62204
62205         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
62206         (mbrtowc, mbstate_t): Define substitutes if
62207         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
62208         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
62209         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
62210
62211 2000-06-23  Jim Meyering  <meyering@lucent.com>
62212
62213         * m4/afs.m4: Add missing AC_MSG_RESULT.
62214         Reported by Bruno Haible.
62215
62216         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
62217         Suggestion from Bruno Haible.
62218
62219 2000-06-23  Jim Meyering  <meyering@lucent.com>
62220
62221         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
62222
62223 2000-06-21  Jim Meyering  <meyering@lucent.com>
62224
62225         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
62226
62227 2000-06-21  Jim Meyering  <meyering@lucent.com>
62228
62229         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
62230         (noinst_HEADERS): Add getstr.h.
62231
62232         * lib/getline.c (getstr): Move into a separate file.
62233         * lib/getstr.c (getstr): New file, extracted from getline.c, with
62234         the following changes: new parameter, delim2; both delim[12]
62235         parameters have type `int', not `char'.  The latter would lose
62236         with 8-bit delimiters.
62237         * lib/getstr.h: New file.
62238
62239 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
62240
62241         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
62242         than 1024, return a memory chunk of least possible size, instead
62243         of size PATH_MAX + 2. In the loop, increment the size proportionally.
62244         Use free/xmalloc instead of xrealloc to avoid copying for very long
62245         paths.
62246
62247 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
62248
62249         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
62250         the empty string.
62251
62252 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
62253
62254         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
62255         address, not strdup.  Include <stdlib.h> and don't declare free().
62256
62257 2000-06-19  Jim Meyering  <meyering@lucent.com>
62258
62259         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
62260
62261 2000-06-18  Jim Meyering  <meyering@lucent.com>
62262
62263         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
62264
62265         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
62266         `checking whether...' message to be consistent with that of the
62267         lstat test.
62268
62269 2000-06-18  Jim Meyering  <meyering@lucent.com>
62270
62271         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
62272         Besides, these days every porting target provides a mkdir function.
62273
62274         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
62275         needed. (this snippet comes from src/system.h).
62276
62277 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
62278
62279         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
62280
62281 2000-06-15  Paul Eggert  <eggert@twinsun.com>
62282
62283         * lib/human.c (adjust_value): New function.
62284         (human_readable_inexact): Apply rounding style even when
62285         printing approximate values.
62286
62287 2000-06-14  Paul Eggert  <eggert@twinsun.com>
62288
62289         * lib/human.c (human_readable_inexact): Allow an input block
62290         size that is not a multiple of the output block size, and vice versa.
62291         Reported by Piergiorgio Sartor.
62292
62293 2000-06-14  Paul Eggert  <eggert@twinsun.com>
62294
62295         * lib/getdate.y (get_date): Apply relative times after time
62296         zone indicator, not before.  Reported by Todd A. Jacobs.
62297
62298 2000-06-13  Jim Meyering  <meyering@lucent.com>
62299
62300         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
62301
62302         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
62303
62304 2000-06-12  Paul Eggert  <eggert@twinsun.com>
62305
62306         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
62307
62308 2000-06-12  Jim Meyering  <meyering@lucent.com>
62309
62310         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
62311         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
62312         optional argument.
62313         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
62314         the optional argument, `lib'.
62315
62316 2000-06-08  Jim Meyering  <meyering@lucent.com>
62317
62318         * m4/largefile.m4: Remove file (now that it's part of autoconf).
62319
62320 2000-06-04  Paul Eggert  <eggert@twinsun.com>
62321
62322         Rewrite largefile configuration so that we don't need to run
62323         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
62324         AC_CANONICAL_HOST in configure.in -- jmm]
62325
62326         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
62327         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
62328         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
62329         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
62330         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
62331         All uses changed.
62332         Instead of inspecting the output of getconf, try to compile the
62333         test program without and with the macro definition.
62334         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
62335         for getconf.  Instead, check for the needed flags by compiling
62336         test programs.
62337
62338 2000-06-04  Paul Eggert  <eggert@twinsun.com>
62339
62340         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
62341
62342 2000-06-04  Jim Meyering  <meyering@lucent.com>
62343
62344         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
62345         SunOS 4.1.4 for which gid_t is an unsigned type.
62346
62347 2000-06-03  Jim Meyering  <meyering@lucent.com>
62348
62349         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
62350         now that autoconf requires that.
62351
62352         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
62353         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
62354         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
62355
62356 2000-06-03  Jim Meyering  <meyering@lucent.com>
62357
62358         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
62359
62360 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
62361
62362         * m4/glibc21.m4: New file.
62363         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
62364
62365 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
62366
62367         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
62368         newer, don't install charset.alias.
62369         * lib/config.charset: Change the Linux/glibc rules so they become empty
62370         on glibc-2.1 or newer.
62371
62372 2000-06-02  Jim Meyering  <meyering@lucent.com>
62373
62374         * lib/mountlist.c: Back out last change.  Instead, do this...
62375         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
62376         me_dummy member using the same `ignore'-testing code.
62377         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
62378         fs_type strings.
62379         From Mark D. Roth.
62380
62381 2000-05-29  Jim Meyering  <meyering@lucent.com>
62382
62383         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
62384         mounts with the `ignore' attribute.  Based on a patch from
62385         Mark D. Roth.
62386
62387 2000-05-28  Jim Meyering  <meyering@lucent.com>
62388
62389         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
62390         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
62391         * m4/stat.m4: Likewise.
62392         * m4/lstat.m4: Likewise.
62393         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
62394
62395         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
62396         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
62397
62398 2000-05-26  Jim Meyering  <meyering@lucent.com>
62399
62400         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
62401
62402 2000-05-24  Jim Meyering  <meyering@lucent.com>
62403
62404         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
62405         autoconf requires that.
62406         * m4/lib-check.m4: Likewise.
62407         * m4/jm-macros.m4: Likewise.
62408         * m4/strftime.m4: Likewise.
62409
62410         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
62411         AC_CHECK_DECLS, now that autoconf requires that.
62412
62413 2000-05-22  Jim Meyering  <meyering@lucent.com>
62414
62415         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
62416         * m4/lstat.m4: Likewise.
62417
62418 2000-05-22  Jim Meyering  <meyering@lucent.com>
62419
62420         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
62421
62422 2000-05-20  Jim Meyering  <meyering@lucent.com>
62423
62424         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
62425         (jm_PREREQ): Use it.
62426
62427 2000-05-18  Jim Meyering  <meyering@lucent.com>
62428
62429         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
62430         back, too, since it may have been modified by allocate_entry.
62431         (hash_delete): Rewrite to use neither the assignment operator
62432         nor the comma operator in an if-expression.
62433
62434 2000-05-15  Paul Eggert  <eggert@twinsun.com>
62435
62436         * lib/closeout.c:
62437         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
62438         Remove; no longer needed.
62439         "quotearg.h": Add include.
62440         (file_name): Do not bother to explicitly initialize to NULL; it's less
62441         efficient on some hosts.
62442         (close_stdout_status): Remove test as to whether stdout was already
62443         closed; it breaks for the case "echo x | sort >&-".
62444         Quote file name colons.
62445         Do not assume that _("write error") lacks format strings.
62446
62447 2000-05-15  Jim Meyering  <meyering@lucent.com>
62448
62449         * lib/version-etc.c (version_etc_copyright): Update the copyright
62450         string used in all --version output.
62451
62452 2000-05-14  Jim Meyering  <meyering@lucent.com>
62453
62454         * lib/closeout.c (close_stdout_set_file_name): New function.
62455         (close_stdout_status): Use new file-scoped global.
62456         Return right away if fstat says the stdout file descriptor is invalid.
62457         * lib/closeout.h (close_stdout_set_file_name): Declare.
62458
62459 2000-05-10  Jim Meyering  <meyering@lucent.com>
62460
62461         * lib/closeout.c [default_exit_status]: New file-scoped variable.
62462         (close_stdout_set_status): New function.
62463         * lib/closeout.h (close_stdout_set_status): Declare.
62464
62465 2000-05-09  Jim Meyering  <meyering@lucent.com>
62466
62467         * m4/gettext.m4: Rename this...
62468         * m4/libintl.m4: ...to this.
62469
62470 2000-05-08  Jim Meyering  <meyering@lucent.com>
62471
62472         * lib/long-options.c: Don't include closeout.h.
62473         (parse_long_options): Don't call close_stdout for --version.
62474
62475 2000-05-06  Paul Eggert  <eggert@twinsun.com>
62476
62477         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
62478         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
62479         2.1.3 bug.  This avoids a clash when files like regex.c define
62480         _GNU_SOURCE.
62481
62482 2000-05-06  Jim Meyering  <meyering@lucent.com>
62483
62484         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
62485         (AC_REPLACE_FUNCS): Add strnlen.
62486
62487         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
62488         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
62489
62490         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
62491         AC_SEARCH_LIBS call for nanosleep.
62492         (LIB_NANOSLEEP): Set and AC_SUBST.
62493
62494 2000-05-06  Jim Meyering  <meyering@lucent.com>
62495
62496         * lib/strnlen.c: Undefine __strnlen and strnlen.
62497         [!weak_alias]: Define __strnlen to strnlen.
62498
62499         * lib/atexit.c: New file, from libiberty.
62500
62501 2000-05-06  Jim Meyering  <meyering@lucent.com>
62502
62503         * lib/closeout.c (close_stdout_status): Also check for errors on the
62504         stderr stream.
62505
62506 2000-05-05  Jim Meyering  <meyering@lucent.com>
62507
62508         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
62509         AC_SEARCH_LIBS call for clock_gettime.
62510         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
62511
62512         * m4/search-libs.m4: Update from autoconf.
62513
62514         su doesn't work on Solaris 2.6.
62515         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
62516         <shadow.h>.  Reported by Dragos Harabor.
62517
62518 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
62519
62520         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
62521         memcpy instead of xmalloc, xrealloc, path_concat.
62522         (locale_charset): Treat empty environment variables as absent.
62523         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
62524
62525 2000-05-04  Jim Meyering  <meyering@lucent.com>
62526
62527         * lib/getopt.c: Update from glibc.
62528         * lib/obstack.c: Likewise.
62529         * lib/obstack.h: Likewise.
62530         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
62531         file
62532
62533         * lib/regex.h: Likewise.
62534         * lib/strndup.c: Likewise.
62535         * lib/strnlen.c: New file, from glibc.
62536
62537 2000-05-03  Jim Meyering  <meyering@lucent.com>
62538
62539         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
62540
62541 2000-05-02  Paul Eggert  <eggert@twinsun.com>
62542
62543         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
62544         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
62545         compile-time test, rather than inspecting host and OS, to
62546         decide whether to define _LARGEFILE_SOURCE.
62547
62548 2000-05-01  Jim Meyering  <meyering@lucent.com>
62549
62550         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
62551
62552         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
62553         Based on a patch from Bruno Haible.
62554
62555 2000-05-01  Jim Meyering  <meyering@lucent.com>
62556
62557         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
62558
62559 2000-04-29  Jim Meyering  <meyering@lucent.com>
62560
62561         * lib/path-concat.c: Declare strdup only if it's not defined.
62562         * lib/canon-host.c: Likewise.
62563
62564 2000-04-28  Jim Meyering  <meyering@lucent.com>
62565
62566         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
62567         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
62568         is included first, then limits.h is included by locale.h by libintl.h.
62569         From John David Anglin.
62570
62571 2000-04-25  Jim Meyering  <meyering@lucent.com>
62572
62573         * lib/makepath.c (S_IRWXUGO): Define.
62574         (make_path): Always perform explicit chmod if MODE specifies any
62575         of the `special' permission bits.  Prompted by a bug report against
62576         install from Mate Wierdl and Joost van Baal.
62577
62578 2000-04-18  Jim Meyering  <meyering@lucent.com>
62579
62580         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
62581         (jm_PREREQ): Use it.
62582
62583 2000-04-18  Jim Meyering  <meyering@lucent.com>
62584
62585         * lib/README: New file.
62586
62587         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
62588         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
62589
62590 2000-04-17  Jim Meyering  <meyering@lucent.com>
62591
62592         Get it right :-)
62593         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
62594         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
62595         Suggestion from Akim Demaille.
62596
62597 2000-04-17  Jim Meyering  <meyering@lucent.com>
62598
62599         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
62600         the definition of it to rpl_strftime also defined-away the system's
62601         declaration.
62602
62603 2000-04-15  Jim Meyering  <meyering@lucent.com>
62604
62605         Use `C' to denote so-called `contiguous' files, the same way
62606         that tar does.
62607         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
62608         (ftypelet): Use S_ISCTG.
62609         From Michael Deutschmann.
62610
62611 2000-04-14  Jim Meyering  <meyering@lucent.com>
62612
62613         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
62614         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
62615         clobbered.
62616
62617 2000-04-14  Jim Meyering  <meyering@lucent.com>
62618
62619         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
62620
62621 2000-04-13  Jim Meyering  <meyering@lucent.com>
62622
62623         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
62624         AH_VERBATIM to insert required #ifndef into config.h.in.
62625         Suggestion from Akim Demaille.
62626
62627 2000-04-12  Jim Meyering  <meyering@lucent.com>
62628
62629         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
62630         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
62631         Christian Krackowizer.
62632
62633         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
62634         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
62635         (AC_SYS_LARGEFILE): Require.
62636         (AM_C_PROTOTYPES): Require.
62637
62638 2000-04-08  Jim Meyering  <meyering@lucent.com>
62639
62640         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
62641         names don't conflict.  Reported by Eli Zaretskii.
62642
62643 2000-04-07  Jim Meyering  <meyering@lucent.com>
62644
62645         * lib/putenv.c: Move inclusion of errno.h so it follows that of
62646         sys/types.h, to work around system header problems on AIX 3.2.5.
62647         From Bruno Haible.
62648
62649 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
62650
62651         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
62652         bug.  Deal with the different error behavior of Irix iconv.
62653
62654 2000-04-05  Paul Eggert  <eggert@twinsun.com>
62655
62656         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
62657         IRIX if the installer said otherwise.
62658
62659 2000-04-05  Jim Meyering  <meyering@lucent.com>
62660
62661         Portability tweaks required for ultrix4.3.
62662         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
62663         (jm_CHECK_DECLS): Add getutent to the list of functions.
62664         (_jm_DECL_HEADERS): Add utmpx.h.
62665         From John David Anglin.
62666
62667         * m4/strftime.m4: Back out the 2000-04-02 change.
62668         Instead of that change, simply undefine putenv in the test program.
62669
62670 2000-04-05  Jim Meyering  <meyering@lucent.com>
62671
62672         Portability tweaks required for ultrix4.3.
62673         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
62674         getutent.
62675         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
62676         * lib/canon-host.c: Declare strdup.
62677         * lib/path-concat.c: Likewise.
62678         From John David Anglin.
62679
62680 2000-04-04  Jim Meyering  <meyering@lucent.com>
62681
62682         Be more DOS 8.3-friendly.
62683         * lib/ref-add.sin: Renamed from ref-add.sed.in.
62684         * lib/ref-del.sin: Renamed from ref-del.sed.in.
62685         * lib/Makefile.am: Reflect renaming.
62686         Reported by Eli Zaretskii.
62687
62688         Use a temporary file name that won't clash with `charset.alias'
62689         in the DOS 8.3 name space.
62690         * lib/Makefile.am (charset_tmp): Define.
62691         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
62692         (uninstall-local): Likewise.
62693         Reported by Eli Zaretskii.
62694
62695 2000-04-03  Jim Meyering  <meyering@lucent.com>
62696
62697         * m4/gettext.m4: Fix typo in comment.
62698
62699         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
62700         textutils/configure.in).  Suggestion from Paul Eggert.
62701         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
62702
62703 2000-04-02  Paul Eggert  <eggert@twinsun.com>
62704
62705         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
62706         variable in the shell rather than using putenv, which isn't
62707         portable.  This avoids the configure-time inter-test dependency
62708         on the potentially-renamed putenv function.
62709
62710 2000-03-30  Paul Eggert  <eggert@twinsun.com>
62711
62712         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
62713         before checking struct stat.st_blksize, so that
62714         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
62715
62716 2000-03-29  Paul Eggert  <eggert@twinsun.com>
62717
62718         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
62719         since strftime.c uses HAVE_STRFTIME to decide whether to use
62720         the underlying strftime.
62721
62722 2000-03-29  Paul Eggert  <eggert@twinsun.com>
62723
62724         * lib/time/strftime.c (my_strftime): Make sure we call the system
62725         strftime, not ourselves, when invoking the underlying strftime.
62726
62727 2000-03-24  Jim Meyering  <meyering@lucent.com>
62728
62729         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
62730         (charset_alias): Define.
62731         (install-exec-local): Factor out common code.
62732         (uninstall-local): Split lines longer than 80.
62733         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
62734         (SUFFIXES): Define.
62735         (.sed.in.sed): New rule.  Don't redirect directly to $@.
62736         (CLEANFILES): Add ref-add.sed and ref-del.sed.
62737
62738 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
62739
62740         * lib/config.charset: Output a line containing "Packages using this
62741         file".
62742         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
62743         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
62744         ref-del.sed): New rules.
62745
62746 2000-03-17  Jim Meyering  <meyering@lucent.com>
62747
62748         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
62749         Otherwise, include <strings.h>
62750
62751 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
62752
62753         * lib/unicodeio.c (utf8_wctomb): New function.
62754         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
62755         format instead of in UCS-4 with platform dependent endianness.
62756
62757 2000-03-10  Jim Meyering  <meyering@lucent.com>
62758
62759         * m4/lib-check.m4: Look for getspnam in -lgen, too.
62760         From Marco Franzen.
62761
62762 2000-03-07  Paul Eggert  <eggert@twinsun.com>
62763
62764         * lib/savedir.c (savedir): Work even if directory size is
62765         negative; this can happen with some screwy NFS configurations.
62766
62767 2000-03-06  Jim Meyering  <meyering@lucent.com>
62768
62769         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
62770         if it's NULL (because we ran out of memory).  From Bruno Haible.
62771
62772 2000-03-05  Jim Meyering  <meyering@lucent.com>
62773
62774         * lib/localcharset.c ("path-concat.h"): Include.
62775         (get_charset_aliases): Use path_concat instead of ANSI string
62776         concatenation.
62777
62778         * lib/unicodeio.h (PARAMS): Define.
62779         Use it to guard prototype.
62780
62781 2000-03-04  Jim Meyering  <meyering@lucent.com>
62782
62783         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
62784         for lib/localcharset.c.
62785
62786 2000-03-04  Jim Meyering  <meyering@lucent.com>
62787
62788         * lib/Makefile.am (install-exec-local): Create $(libdir) before
62789         installing into it.
62790         (uninstall-local): Uncomment this rule so `make distcheck' works
62791         once again.
62792
62793         * lib/unicodeio.c (<errno.h>): Include it.
62794         (errno): Declare if not defined.
62795
62796         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
62797
62798         * lib/config.charset: New version, incorporating remarks from a linux
62799         i18n mailing list.  From Bruno Haible.
62800
62801 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
62802
62803         * m4/codeset.m4: New file.
62804         * m4/iconv.m4: New file.
62805         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
62806
62807 2000-03-03  Jim Meyering  <meyering@lucent.com>
62808
62809         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
62810
62811 2000-03-02  Jim Meyering  <meyering@lucent.com>
62812
62813         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
62814         the messages come out on separate lines.
62815
62816         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
62817         rather than jm_CHECK_DECLARATIONS.
62818         * m4/decl.m4: Remove now-unused file.
62819
62820         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
62821         geteuid.
62822
62823 2000-03-02  Jim Meyering  <meyering@lucent.com>
62824
62825         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
62826
62827 2000-03-01  Jim Meyering  <meyering@lucent.com>
62828
62829         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
62830         * lib/unicodeio.c: Likewise.
62831
62832 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
62833
62834         * lib/config.charset: New file.
62835         * lib/localcharset.c: New file.
62836         * lib/unicodeio.h, lib/unicodeio.c: New files.
62837         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
62838         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
62839         (noinst_HEADERS): Add unicodeio.h.
62840         (all-local, install-exec-local, charset.alias): New targets.
62841
62842 2000-02-28  Paul Eggert  <eggert@twinsun.com>
62843
62844         * lib/quotearg.c (ALERT_CHAR): New macro.
62845         (quotearg_buffer_restyled): Use it.
62846
62847 2000-02-27  Jim Meyering  <meyering@lucent.com>
62848
62849         * m4/check-decl.m4: Add getenv to the list.
62850
62851 2000-02-27  Jim Meyering  <meyering@lucent.com>
62852
62853         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
62854         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
62855
62856         * lib/backupfile.c: Guard inclusion of stdlib.h with
62857         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
62858         Declare malloc if needed.
62859
62860         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
62861         `#ifndef HAVE_DECL..'
62862         now that autoconf always defines the HAVE_DECL_ symbols.
62863         * lib/human.c: Likewise.
62864         * lib/same.c: Likewise.
62865         * lib/strtoumax.c: Likewise.
62866
62867         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
62868         declaration check was not run.
62869         * lib/hash.c: Likewise.
62870         * lib/human.c: Likewise.
62871         * lib/same.c: Likewise.
62872         * lib/strtoumax.c: Likewise.
62873
62874         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
62875         `.', then first look up the entire `.'-containing string as a login
62876         name.
62877
62878 2000-02-23  Jim Meyering  <meyering@lucent.com>
62879
62880         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
62881         in place of my hack.
62882
62883 2000-02-18  Paul Eggert  <eggert@twinsun.com>
62884
62885         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
62886         (textint): New typedef.
62887         (parser_control): Member year changed from int to textint.
62888         All uses changed.
62889         (YYSTYPE): Removed; replaced by %union with int and textint members.
62890         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
62891         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
62892         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
62893         (tSNUMBER, tUNUMBER): Now of type <textintval>.
62894         (date, number, to_year): Use width of number in digits, not its value,
62895         to determine whether it's a 2-digit year, or a 2-digit time.
62896         (yylex): Store number of digits of numeric tokens.
62897         Reported by John Kendall.
62898
62899         (parser_control): Changed from struct parser_control to typedef (for
62900         consistency).  All uses changed.
62901
62902         (tID): Removed; not used.
62903         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
62904
62905 2000-02-14  Paul Eggert  <eggert@twinsun.com>
62906
62907         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
62908         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
62909
62910 2000-02-12  Jim Meyering  <meyering@lucent.com>
62911
62912         * lib/userspec.c (ISDIGIT): Define it.
62913         (isdigit): Remove definition.
62914         (is_number): Use ISDIGIT, not isdigit.
62915         <libintl.h>: Include.
62916         (_ and N_): Define.
62917         (parse_user_spec): Mark translatable strings.
62918
62919 2000-02-10  Jim Meyering  <meyering@lucent.com>
62920
62921         With these changes, nanosleep.[ch] are finally enough like the other
62922         lib/* replacement files to compile on a few more losing systems.
62923
62924         * lib/nanosleep.h: Don't include config.h.
62925         Remove prototype from declaration of nanosleep.
62926         (PARAMS): Remove now-unneeded definition.
62927         * lib/nanosleep.c: #undef nanosleep.
62928         (rpl_nanosleep): Rename from nanosleep.
62929
62930 2000-02-10  Jim Meyering  <meyering@lucent.com>
62931
62932         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
62933         gnu_nanosleep to rpl_nanosleep.
62934
62935 2000-02-09  Jim Meyering  <meyering@lucent.com>
62936
62937         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
62938         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
62939
62940 2000-02-08  Akim Demaille  <akim@epita.fr>
62941
62942         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
62943         `[' and `]' and remove uses of `changequote'.
62944         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
62945         (AC_SYS_LARGEFILE): Likewise.
62946         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
62947         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
62948         of changequote.
62949         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
62950         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
62951         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
62952         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
62953
62954 2000-02-05  Jim Meyering  <meyering@lucent.com>
62955
62956         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
62957         Remove explicit use of AC_HEADER_TIME.  It is required by
62958         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
62959         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
62960         in autoconf whereby the expansion of the latter ended up preceding
62961         the expansion of its prerequisite, AC_HEADER_TIME.
62962         Reported by Volker Borchert.
62963
62964 2000-02-03  Jim Meyering  <meyering@lucent.com>
62965
62966         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
62967
62968 2000-02-03  Jim Meyering  <meyering@lucent.com>
62969
62970         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
62971         rather than with `#if HAVE_UTMPNAME'.
62972
62973 2000-02-02  Jim Meyering  <meyering@lucent.com>
62974
62975         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
62976         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
62977         Reported by Eli Zaretskii.
62978
62979 2000-02-01  Jim Meyering  <meyering@lucent.com>
62980
62981         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
62982
62983 2000-01-31  Jim Meyering  <meyering@lucent.com>
62984
62985         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
62986         functions.  Add the time.h and sys/time.h headers along with the
62987         AC_REQUIRE'ment of AC_HEADER_TIME.
62988
62989 2000-01-31  Jim Meyering  <meyering@lucent.com>
62990
62991         * lib/nanosleep.h (nanosleep): Guard declaration with
62992         `#if ! HAVE_DECL_NANOSLEEP'.
62993         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
62994         the declaration in that vendor's sys/timers.h.
62995         Reported by Christian Krackowizer.
62996
62997         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
62998         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
62999         (ISPRINT): Likewise.
63000         Reported by Tom Tromey.
63001
63002 2000-01-30  Jim Meyering  <meyering@lucent.com>
63003
63004         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
63005
63006         * m4/prereq.m4 (utmp_includes): Define.
63007         Check for ut_user and ut_name members in both struct utmpx
63008         and struct utmp.
63009
63010 2000-01-30  Jim Meyering  <meyering@lucent.com>
63011
63012         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
63013         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
63014         header files where only utmpx.ut_user is declared.
63015
63016         * lib/readutmp.h (UT_USER): Define.
63017
63018 2000-01-29  Jim Meyering  <meyering@lucent.com>
63019
63020         * m4/lib-check.m4: New file containing library-related checks from
63021         fileutils and sh-utils (textutils had none).
63022
63023 2000-01-28  Jim Meyering  <meyering@lucent.com>
63024
63025         * m4/perl.m4: Change format of warning message to look more like that
63026         from the missing script.  Suggestion from François Pinard.
63027
63028 2000-01-25  Jim Meyering  <meyering@lucent.com>
63029
63030         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
63031         well as time.h in the compile check.
63032         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
63033         Fix typo in cross-compiling case: s/yes/no/.
63034
63035 2000-01-23  Jim Meyering  <meyering@lucent.com>
63036
63037         * m4/jm-macros.m4: Move df-related tests here from
63038         fileutils/configure.in
63039
63040         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
63041         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
63042
63043         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
63044         s/space/ac_fsusage_space/.
63045         (jm_FILE_SYSTEM_USAGE): Take two parameters.
63046
63047         * m4/ftruncate.m4: New file (derived from part of
63048         fileutils/configure.in).
63049         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
63050         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
63051
63052         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
63053         AC_SUBST these here, rather than just in sh-util/configure.in, so
63054         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
63055         all the same.
63056         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
63057         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
63058         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
63059         (AC_SUBST(POW_LIBM)): Likewise.
63060         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
63061
63062 2000-01-23  Jim Meyering  <meyering@lucent.com>
63063
63064         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
63065         obstack.c.
63066
63067 2000-01-22  Jim Meyering  <meyering@lucent.com>
63068
63069         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
63070
63071         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
63072
63073         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
63074         configure.in
63075         (AC_CHECK_HEADERS): Likewise for sh-utils.
63076         (AC_CHECK_HEADERS): Likewise for textutils.
63077         Merge the three lists of headers.
63078
63079         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
63080         from fileutils' configure.in.
63081
63082         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
63083         code. Moved tests into their own function (_jm_DECL_HEADERS) in
63084         check-decl.m4.
63085
63086         * m4/check-decl.m4: Use #if rather than #ifdef.
63087         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
63088         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
63089         (_jm_DECL_HEADERS): Define new function.
63090         (jm_CHECK_DECLARATIONS): Require it.
63091
63092 2000-01-22  Jim Meyering  <meyering@lucent.com>
63093
63094         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
63095         [! HAVE_DECL_STRTOULL]: Declare strtoull.
63096         Required for some AIX systems.  Reported by Christian Krackowizer.
63097         [TESTING] (main): New function.
63098
63099         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
63100         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
63101         letters.
63102
63103         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
63104         iswprint.
63105
63106         * lib/strverscmp.c (ISDIGIT): Define.
63107         (strverscmp): Use ISDIGIT, not isdigit.
63108
63109 2000-01-19  Jim Meyering  <meyering@lucent.com>
63110
63111         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
63112         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
63113         defines `struct timespec' in <sys/time.h>
63114
63115         * m4/c-bs-a.m4: Remove uses of changequote altogether.
63116         Thanks to Akim for explaining.
63117
63118 2000-01-17  Paul Eggert  <eggert@twinsun.com>
63119
63120         * lib/nanosleep.c (nanosleep):
63121         Don't use SA_INTERRUPT to decide whether to call sigaction, as
63122         POSIX.1 doesn't require SA_INTERRUPT and some systems
63123         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
63124         it's been part of POSIX.1 since day 1 (in 1988).
63125
63126 2000-01-17  Jim Meyering  <meyering@lucent.com>
63127
63128         * lib/interlock: Remove unused file.  Reported by François Pinard.
63129
63130 2000-01-16  Paul Eggert  <eggert@twinsun.com>
63131
63132         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
63133         alert, backslash, formfeed, and vertical tab unnecessarily in
63134         shell quoting style.
63135
63136 2000-01-16  Jim Meyering  <meyering@lucent.com>
63137
63138         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
63139         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
63140         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
63141         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
63142
63143 2000-01-16  Jim Meyering  <meyering@lucent.com>
63144
63145         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
63146         because the latter didn't work.
63147
63148 2000-01-15  Jim Meyering  <meyering@lucent.com>
63149
63150         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
63151         (AC_REPLACE_FUNCS): Add memcpy and memset.
63152         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
63153         Add strpbrk.
63154         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
63155
63156 2000-01-12  Jim Meyering  <meyering@lucent.com>
63157
63158         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
63159         (jm_PREREQ): Use it.
63160         (jm_PREREQ_READUTMP): New macro.
63161         (jm_PREREQ): Use it.
63162
63163 2000-01-11  Paul Eggert  <eggert@twinsun.com>
63164
63165         Quote multibyte characters correctly.
63166         * m4/c-bs-a.m4: New file.
63167         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
63168         (jm_PREREQ): Use it.
63169
63170 2000-01-11  Paul Eggert  <eggert@twinsun.com>
63171
63172         * m4/uintmax_t.m4: Port to autoconf 2.13.
63173
63174 2000-01-08  Jim Meyering  <meyering@ascend.com>
63175
63176         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
63177         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
63178
63179 2000-01-04  Jim Meyering  <meyering@ascend.com>
63180
63181         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
63182         jm_STRUCT_DIRENT_D_TYPE.
63183         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
63184         jm_STRUCT_DIRENT_D_INO.
63185         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
63186         jm_STRUCT_UTIMBUF.
63187         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
63188         renamings.
63189         * m4/utime.m4: Likewise.
63190
63191         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
63192         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
63193
63194 2000-01-03  Paul Eggert  <eggert@twinsun.com>
63195
63196         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
63197         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
63198
63199 2000-01-02  Jim Meyering  <meyering@ascend.com>
63200
63201         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
63202         remember if this is necessary.
63203
63204 1999-12-26  Jim Meyering  <meyering@ascend.com>
63205
63206         * m4/jm-macros.m4: Use it here.
63207         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
63208
63209 1999-12-23  Jim Meyering  <meyering@ascend.com>
63210
63211         * m4/jm-macros.m4: Check for clock_gettime (moved from
63212         fileutils/configure.in)
63213         Check for gettimeofday.
63214
63215 1999-12-20  Jim Meyering  <meyering@ascend.com>
63216
63217         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
63218         autoconf-2.14a-1999-12-20.
63219
63220 1999-12-19  Jim Meyering  <meyering@ascend.com>
63221
63222         * m4/lstat-slash.m4: New file.
63223         * m4/jm-macros.m4: Use the new macro:
63224         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
63225
63226 1999-12-07  Jim Meyering  <meyering@ascend.com>
63227
63228         * m4/perl.m4: Require that File::Compare be available, too.
63229         Too many systems seem to lack it.
63230
63231         * m4/strftime.m4: Add checks for most of the cpp macros tested in
63232         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
63233
63234 1999-11-18  Paul Eggert  <eggert@twinsun.com>
63235
63236         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
63237         problem with the QNX 4.25 shell, which doesn't propagate exit
63238         status of failed commands inside shell assignments.
63239
63240 1999-11-17  Jim Meyering  <meyering@ascend.com>
63241
63242         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
63243
63244 1999-11-07  Jim Meyering  <meyering@ascend.com>
63245
63246         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
63247
63248 1999-11-06  Jim Meyering  <meyering@ascend.com>
63249
63250         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
63251         * m4/jm-macros.m4 (jm_MACROS): Use it here.
63252
63253 1999-11-05  Jim Meyering  <meyering@ascend.com>
63254
63255         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
63256         configure.in of textutils, fileutils, and sh-utils into this one
63257         (shared between those packages) file.
63258         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
63259         AC_STRUCT_ST_BLKSIZE.
63260
63261 1999-11-03  Jim Meyering  <meyering@ascend.com>
63262
63263         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
63264         of AC_CHECK_TYPE checks includes unistd.h.
63265         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
63266         Suggestion from Akim Demaille.
63267
63268 1999-10-30  Jim Meyering  <meyering@ascend.com>
63269
63270         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
63271         m4-quoted string.
63272         * m4/ls-mntd-fs.m4: Likewise.
63273         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
63274         * m4/jm-winsz1.m4: Likewise.
63275
63276         * m4/const.m4: Remove file, since the fix made it into the experimental
63277         version of autoconf.
63278         * m4/mktime.m4: Likewise.
63279
63280         * m4/check-type.m4: Remove file, now that the latest version of
63281         AC_CHECK_TYPE takes a third arg to specify additional #includes.
63282
63283         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
63284         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
63285         AC_CHECK_TYPE.
63286
63287 1999-10-04  Jim Meyering  <meyering@ascend.com>
63288
63289         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
63290
63291 1999-09-22  Paul Eggert  <eggert@twinsun.com>
63292
63293         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
63294         2.95.1 bug with HP-UX 10.20.
63295
63296 1999-09-17  Jim Meyering  <meyering@ascend.com>
63297
63298         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
63299         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
63300         due to missing strdup (against sh-utils-2.0).
63301
63302 1999-08-29  Jim Meyering  <meyering@ascend.com>
63303
63304         * m4/jm-macros.m4: Require jm_BISON.
63305         * m4/bison.m4: New file.
63306
63307 1999-08-17  Paul Eggert  <eggert@twinsun.com>
63308
63309         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
63310         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
63311
63312 1999-08-05  Jim Meyering  <meyering@ascend.com>
63313
63314         * m4/getline.m4: Rename test file from conftestdata to conftest.data
63315         to avoid conflicts with `conftest' on 8+3 filesystems.
63316         Suggestion from Eli Zaretskii.
63317
63318 1999-08-04  Jim Meyering  <meyering@ascend.com>
63319
63320         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
63321         fileutils and sh-utils (textutils's getline test was inadequate).
63322         (AM_FUNC_GETLINE): Run this test.
63323         (AC_CHECK_FUNCS): Check for getdelim.
63324         Reported by Bob Proulx.
63325
63326 1999-08-02  Jim Meyering  <meyering@ascend.com>
63327
63328         * m4/jm-macros.m4: Add a comment.
63329
63330 1999-08-01  Paul Eggert  <eggert@twinsun.com>
63331
63332         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
63333         <inttypes.h> defines strtoumax as a macro (and not as a
63334         function).
63335
63336 1999-08-01  Paul Eggert  <eggert@twinsun.com>
63337
63338         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
63339         that we can shift, multiply and divide unsigned long long
63340         values; Ultrix cc can't do it.
63341
63342 1999-08-01  Paul Eggert  <eggert@twinsun.com>
63343
63344         * m4/mktime.m4: New file, which is a preview of what should appear
63345         in the next public autoconf release.
63346
63347 1999-08-01  Paul Eggert  <eggert@twinsun.com>
63348
63349         * m4/lfs.m4: Remove this file.
63350         * m4/largefile.m4: New file.  It contains the old contents of
63351         lfs.m4, except that all names with prefix AC_LFS have been
63352         changed to use the prefix AC_SYS_LARGEFILE instead, to be
63353         compatible with future autoconf versions.  Also, some minor m4
63354         quoting problems have been fixed.
63355
63356 1999-08-01  Paul Eggert  <eggert@twinsun.com>
63357
63358         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
63359         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
63360         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
63361         and simplify the shell code.
63362
63363 1999-08-01  Jim Meyering  <meyering@ascend.com>
63364
63365         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
63366         m4.
63367
63368 1999-07-20  Jim Meyering  <meyering@ascend.com>
63369
63370         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
63371
63372 1999-07-15  Jim Meyering  <meyering@ascend.com>
63373
63374         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
63375
63376 1999-05-22  Jim Meyering  <meyering@ascend.com>
63377
63378         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
63379
63380 1999-05-20  Jim Meyering  <meyering@ascend.com>
63381
63382         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
63383         Add a colon after each `then' in case $4 is empty.
63384
63385 1999-05-16  Jim Meyering  <meyering@ascend.com>
63386
63387         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
63388
63389 1999-05-10  Jim Meyering  <meyering@ascend.com>
63390
63391         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
63392
63393         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
63394         AC_FUNC_MKTIME.
63395
63396 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
63397
63398         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
63399
63400 1999-05-04  Paul Eggert  <eggert@twinsun.com>
63401
63402         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
63403         not CPPFLAGS, so that linking works correctly in IRIX.
63404
63405 1999-04-30  Paul Eggert  <eggert@twinsun.com>
63406
63407         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
63408
63409 1999-04-20  Paul Eggert  <eggert@twinsun.com>
63410
63411         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
63412         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
63413         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
63414         jm_AC_TYPE_UNSIGNED_LONG_LONG.
63415         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
63416
63417         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
63418
63419 1999-04-20  Jim Meyering  <meyering@ascend.com>
63420
63421         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
63422         AC_REPLACE xstroull if necessary.  From Paul Eggert.
63423         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
63424
63425 1999-04-18  Jim Meyering  <meyering@ascend.com>
63426
63427         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
63428         * m4/jm-macros.m4: Use it.
63429
63430 1999-04-06  Jim Meyering  <meyering@ascend.com>
63431
63432         * m4/strftime.m4: Remove test for %f.
63433
63434 1999-03-29  Jim Meyering  <meyering@ascend.com>
63435
63436         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
63437         superset of the AC_TYPE_* checks in the textutils, fileutils,
63438         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
63439         AC_TYPE_PID_T.
63440
63441 1999-03-28  Jim Meyering  <meyering@ascend.com>
63442
63443         * m4/jm-macros.m4: Define GNU_PACKAGE here.
63444         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
63445         replaced e.g., in the *.sh files of the sh-utils.
63446
63447 1999-03-20  Jim Meyering  <meyering@ascend.com>
63448
63449         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
63450         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
63451         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
63452
63453 1999-03-19  Jim Meyering  <meyering@ascend.com>
63454
63455         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
63456
63457 1999-03-12  Jim Meyering  <meyering@ascend.com>
63458
63459         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
63460
63461 1999-03-07  Jim Meyering  <meyering@ascend.com>
63462
63463         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
63464         declared.
63465
63466 1999-02-17  Jim Meyering  <meyering@ascend.com>
63467
63468         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
63469         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
63470
63471 1999-02-07  Jim Meyering  <meyering@ascend.com>
63472
63473         * m4/group-member.m4: New file -- extracted from sh-utils'
63474         configure.in.
63475
63476         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
63477         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
63478
63479 1999-02-06  Jim Meyering  <meyering@ascend.com>
63480
63481         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
63482         * m4/fnmatch.m4: Likewise.
63483         * m4/getgroups.m4: Likewise.
63484         * m4/lstat.m4: Likewise.
63485         * m4/malloc.m4: Likewise.
63486         * m4/putenv.m4: Likewise.
63487         * m4/realloc.m4: Likewise.
63488         * m4/regex.m4: Likewise.
63489         * m4/stat.m4: Likewise.
63490         * m4/strftime.m4: Likewise.
63491         Suggestion from Alain Magloire.
63492
63493         * m4/chown.m4: Use `.$ac_objext', not `.o'.
63494         * m4/fnmatch.m4: Likewise.
63495         * m4/getgroups.m4: Likewise.
63496         * m4/getline.m4: Likewise.
63497         * m4/lstat.m4: Likewise.
63498         * m4/malloc.m4: Likewise.
63499         * m4/memcmp.m4: Likewise.
63500         * m4/putenv.m4: Likewise.
63501         * m4/realloc.m4: Likewise.
63502         * m4/regex.m4: Likewise.
63503         * m4/stat.m4: Likewise.
63504         * m4/strftime.m4: Likewise.
63505         Suggestion from Alain Magloire.
63506
63507         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
63508         an argument.
63509
63510         * m4/regex.m4: Add a run-time Test for proper operation of
63511         re_compile_pattern.
63512
63513 1999-01-31  Jim Meyering  <meyering@ascend.com>
63514
63515         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
63516
63517 1999-01-30  Jim Meyering  <meyering@ascend.com>
63518
63519         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
63520
63521         * m4/jm-mktime.m4: Make this a wrapper around the official
63522         AM_FUNC_MKTIME rather than my private copy, now that the official one
63523         is up to date.
63524         * m4/mktime.m4: Remove file.
63525
63526         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
63527         * m4/uptime.m4: Likewise.
63528         * m4/uintmax_t.m4: Likewise.
63529
63530 1999-01-28  Jim Meyering  <meyering@ascend.com>
63531
63532         * m4/jm-macros.m4: Use jm_AFS.
63533         * m4/afs.m4: New file (from fileutils' configure.in).
63534
63535         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
63536         * m4/chown.m4: Likewise.
63537         * m4/d-ino.m4: Likewise.
63538         * m4/d-type.m4: Likewise.
63539         * m4/fnmatch.m4: Likewise.
63540         * m4/getgroups.m4: Likewise.
63541         * m4/gettext.m4: Likewise.
63542         * m4/jm-mktime.m4: Likewise.
63543         * m4/jm-winsz2.m4: Likewise.
63544         * m4/lcmessage.m4: Likewise.
63545         * m4/ls-mntd-fs.m4: Likewise.
63546         * m4/malloc.m4: Likewise.
63547         * m4/memcmp.m4: Likewise.
63548         * m4/putenv.m4: Likewise.
63549         * m4/realloc.m4: Likewise.
63550         * m4/st_mtim.m4: Likewise.
63551         * m4/strftime.m4: Likewise.
63552
63553 1999-01-16  Jim Meyering  <meyering@ascend.com>
63554
63555         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
63556         (ARGMATCH_DIE_DECL): Define.
63557
63558 1999-01-12  Jim Meyering  <meyering@ascend.com>
63559
63560         * m4/Makefile.am.in: Rewrite to avoid using fmt.
63561         Reported by Lars Hecking.
63562
63563 1999-01-10  Jim Meyering  <meyering@ascend.com>
63564
63565         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
63566         gross kludge.
63567         * m4/inttypes_h.m4: Likewise.
63568         * m4/lstat.m4: Likewise.
63569         * m4/malloc.m4: Likewise.
63570         * m4/readdir.m4: Likewise.
63571         * m4/realloc.m4: Likewise.
63572         * m4/st_dm_mode.m4: Likewise.
63573         * m4/stat.m4: Likewise.
63574         * m4/utimbuf.m4: Likewise.
63575         * m4/utimes.m4: Likewise.
63576
63577         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
63578         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
63579         comments in config.h.in are meaningful.
63580
63581         * m4/jm-macros.m4: Require autoconf-2.13 here.
63582
63583         * m4/regex.m4: By default, don't use the included regex.c on systems
63584         with glibc 2.  Suggestion from Uli Drepper.
63585
63586 1999-01-02  Jim Meyering  <meyering@ascend.com>
63587
63588         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
63589
63590 1998-12-18  Jim Meyering  <meyering@ascend.com>
63591
63592         * m4/Makefile.am.in (Makefile.am): Simplify rule.
63593         Based on a suggestion from Lars Hecking.
63594
63595 1998-11-16  Paul Eggert  <eggert@twinsun.com>
63596
63597         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
63598
63599 1998-11-16  Jim Meyering  <meyering@ascend.com>
63600
63601         * m4/lfs.m4: Double-quote the `uname...` expression.
63602
63603 1998-11-14  Jim Meyering  <meyering@ascend.com>
63604
63605         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
63606         * m4/stat.m4: Likewise.
63607
63608 1998-11-03  Jim Meyering  <meyering@ascend.com>
63609
63610         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
63611         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
63612
63613 1998-10-18  Jim Meyering  <meyering@ascend.com>
63614
63615         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
63616
63617 1998-10-17  Jim Meyering  <meyering@ascend.com>
63618
63619         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
63620         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
63621         calls for those previously hard-coded headers.  Instead, take a new
63622         parameter.
63623         (jm_CHECK_DECLARATIONS): Reflect interface change.
63624         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
63625         (jm_CHECK_DECL_LOCALTIME_R): New macro.
63626
63627         * m4/mktime.m4: Test for spring-forward gap before long-running test.
63628
63629 1998-10-14  Jim Meyering  <meyering@ascend.com>
63630
63631         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
63632         instead of "TZ=America/Vancouver".  From Paul Eggert.
63633
63634 1998-10-11  Jim Meyering  <meyering@ascend.com>
63635
63636         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
63637         This adds a test for a recently added compatibility fix for mktime.c.
63638         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
63639
63640 1998-09-27  Jim Meyering  <meyering@ascend.com>
63641
63642         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
63643
63644         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
63645         ../configure.in, including a change from Gordon Matzigkeit to allow
63646         cross-compiling for the Hurd.
63647
63648         * m4/glibc.m4: New file/macro to test for the GNU C Library
63649         versions 1 and 2.  From Gordon Matzigkeit.
63650         Indent.
63651
63652 1998-09-21  Jim Meyering  <meyering@ascend.com>
63653
63654         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
63655
63656 1998-08-18  Paul Eggert  <eggert@twinsun.com>
63657
63658         Port nanosecond-resolution times to UnixWare 2.1.2 and
63659         pedantic Solaris 2.6.
63660
63661         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
63662         AC_STRUCT_ST_MTIM.
63663         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
63664         Generate name of ns member, instead of just 1 or undef.
63665         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
63666
63667 1998-08-15  Jim Meyering  <meyering@ascend.com>
63668
63669         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
63670         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
63671         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
63672         instead of jm_TYPE_SSIZE_T.
63673
63674 1998-08-12  Jim Meyering  <meyering@ascend.com>
63675
63676         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
63677
63678 1998-08-02  Jim Meyering  <meyering@ascend.com>
63679
63680         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
63681         in acconfig.h manually.
63682
63683 1998-07-31  Paul Eggert  <eggert@twinsun.com>
63684
63685         * m4/st_mtim.m4: New file.
63686
63687 1998-07-28  Jim Meyering  <meyering@ascend.com>
63688
63689         * m4/utimes.m4: Undef stat.
63690
63691 1998-07-25  Jim Meyering  <meyering@ascend.com>
63692
63693         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
63694         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
63695
63696 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
63697
63698         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
63699         uid and gid actually remain unchanged.
63700
63701 1998-07-07  Jim Meyering  <meyering@ascend.com>
63702
63703         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
63704
63705 1998-07-04  Jim Meyering  <meyering@ascend.com>
63706
63707         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
63708         to prove that this macro can be used in packages without regex.c.
63709
63710 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
63711
63712         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
63713         is to be used.
63714
63715 1998-07-03  Jim Meyering  <meyering@ascend.com>
63716
63717         * m4/gettext.m4: Add -lintl if it's found to be necessary.
63718
63719         * m4/gettext.m4: New file -- from gettext-0.10.35.
63720         * m4/lcmessage.m4: Likewise.
63721         * m4/progtest.m4: Likewise.
63722
63723         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
63724         * m4/jm-macros.m4: Require the new macro.
63725
63726 1998-06-29  Jim Meyering  <meyering@ascend.com>
63727
63728         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
63729         for the definition of NGROUPS (used in a system header included
63730         by sys/mount.h).
63731
63732 1998-06-28  Jim Meyering  <meyering@ascend.com>
63733
63734         * m4/ls-mntd-fs.m4: New file.
63735         * m4/fstypename.m4: New file.
63736
63737         * m4/jm-macros.m4: Require the new macro.
63738         * m4/jm-glibc-io.m4: New file.
63739
63740 1998-05-19  Jim Meyering  <meyering@ascend.com>
63741
63742         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
63743         * m4/lchown.m4: New file.
63744
63745         * m4/Makefile.am.in: New file.
63746         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
63747
63748 1998-05-14  Jim Meyering  <meyering@ascend.com>
63749
63750         * m4/Makefile.am (EXTRA_DIST): Add them.
63751         * m4/jm-macros.m4: New file.
63752         * m4/utimbuf.m4: New file.
63753
63754 1998-05-12  Jim Meyering  <meyering@ascend.com>
63755
63756         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
63757
63758 1998-05-11  Jim Meyering  <meyering@ascend.com>
63759
63760         * m4/isc-posix.m4: New file.
63761
63762 1998-05-10  Jim Meyering  <meyering@ascend.com>
63763
63764         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
63765
63766 1998-05-09  Jim Meyering  <meyering@ascend.com>
63767
63768         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
63769         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
63770         with automake.
63771
63772         * m4/ssize_t.m4: New file.
63773         * m4/mktime.m4: Remove file -- the new automake has this now.
63774
63775 1998-04-26  Jim Meyering  <meyering@ascend.com>
63776
63777         * m4/assert.m4: New file.
63778         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
63779
63780 1998-04-05  Jim Meyering  <meyering@ascend.com>
63781
63782         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
63783         (jm_PREREQ): Use it here.
63784
63785 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
63786
63787         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
63788         in acconfig.h.
63789
63790 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
63791
63792         * m4/prereq.m4: New file.
63793         * m4/error.m4: New file.
63794         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
63795
63796 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
63797
63798         * m4/getline.m4: Don't set am_cv_func_working_getline before the
63799         cache-check for the same variable -- that defeated the purpose of
63800         the test; the test program was never run.  This was a problem only
63801         on systems with losing getline functions -- HP-UX 10.20 is one.
63802         Reported by Bjorn Helgaas.
63803
63804 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
63805
63806         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
63807
63808 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
63809
63810         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
63811
63812         * m4/const.m4: New file.  Use an initializer in this declaration
63813         typedef int charset[2]; const charset x;
63814         Reported by Bob Glickstein.
63815
63816 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
63817
63818         * m4/chown.m4: Fix reversed types on -1 args to chown.
63819         From Kaveh Ghazi.
63820
63821 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
63822
63823         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
63824         Add lseek and memchr.
63825
63826         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
63827         T.E.Dickey <dickey@clark.net> said that some older preprocessors
63828         have a 20-character limit on names.
63829
63830 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
63831
63832         * m4/inttypes_h.m4: New file.
63833         * m4/uintmax_t.m4: New file.
63834         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
63835
63836
63837         -----
63838
63839         Local Variables:
63840         coding: utf-8
63841         End:
63842
63843         Copyright (C) 1997-2010 Free Software Foundation, Inc.
63844
63845         Copying and distribution of this file, with or without
63846         modification, are permitted provided the copyright notice
63847         and this notice are preserved.